From 8a552fe871f18f28440d3901877ef078d4befc97 Mon Sep 17 00:00:00 2001 From: Victor Borja Date: Mon, 9 Nov 2026 07:02:49 -0600 Subject: [PATCH] s2, s2c, lib: no written {r: Region} binders (E4): effect row inference supplies every Region (1081 binders removed); types test chooses a capability on a local def with a written binder --- bootstrap/s2c-seed.c | 5946 +++++++++++++++++++++--------------------- lib/datalog.srs | 92 +- lib/kanren.srs | 92 +- s2/ast.srs | 54 +- s2/bmap.srs | 84 +- s2/coll.srs | 38 +- s2/datalog.srs | 126 +- s2/eff.srs | 68 +- s2/emit.srs | 132 +- s2/eval.srs | 56 +- s2/facts.srs | 92 +- s2/flow.srs | 304 +-- s2/hash.srs | 108 +- s2/kanren.srs | 16 +- s2/kfd.srs | 66 +- s2/ksearch.srs | 28 +- s2/lex.srs | 12 +- s2/mono.srs | 36 +- s2/names.srs | 150 +- s2/parse.srs | 182 +- s2/pure.srs | 56 +- s2/queue.srs | 8 +- s2/store.srs | 16 +- s2/sym.srs | 2 +- s2/tlevel.srs | 102 +- s2/types.srs | 212 +- s2c/main.srs | 34 +- tests/s2/types.out | 2 +- tests/s2/types.srs | 2 +- 29 files changed, 4058 insertions(+), 4058 deletions(-) diff --git a/bootstrap/s2c-seed.c b/bootstrap/s2c-seed.c index 56bfffdc..a30ac67e 100644 --- a/bootstrap/s2c-seed.c +++ b/bootstrap/s2c-seed.c @@ -1485,66 +1485,66 @@ static int64_t f_Ast__sym(srs_cap* p_eff__Console, struct E_Sym__Sym* p_s); static int64_t f_Ast__indent(srs_cap* p_eff__Console, int64_t p_n); static int64_t f_Ast__line(srs_cap* p_eff__Console, int64_t p_ind); static int64_t f_Ast__syms(srs_cap* p_eff__Console, struct E_Coll__List__Sym__Sym* p_xs, srs_str p_sep); -static int64_t f_Ast__tys(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Ty* p_xs); -static int64_t f_Ast__ty(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Ty* p_t); +static int64_t f_Ast__tys(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Ty* p_xs); +static int64_t f_Ast__ty(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Ty* p_t); static srs_str f_Ast__opText(struct E_Ast__BinOp* p_op); static int64_t f_Ast__rank(struct E_Ast__Bind* p_b); -static struct E_Ast__Bind* f_Ast__bindOf(srs_cap* p_r, struct E_Ast__Expr* p_e); -static bool f_Ast__fits(srs_cap* p_r, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n); -static int64_t f_Ast__operand(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n, int64_t p_ind); -static int64_t f_Ast__args(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_ind); -static int64_t f_Ast__body(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, int64_t p_ind); -static int64_t f_Ast__expr(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, int64_t p_ind); +static struct E_Ast__Bind* f_Ast__bindOf(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e); +static bool f_Ast__fits(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n); +static int64_t f_Ast__operand(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n, int64_t p_ind); +static int64_t f_Ast__args(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_ind); +static int64_t f_Ast__body(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, int64_t p_ind); +static int64_t f_Ast__expr(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, int64_t p_ind); static srs_str f_Ast__unText(struct E_Ast__UnOp* p_op); -static int64_t f_Ast__elseBody(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_t, struct E_Ast__Expr* p_x, int64_t p_ind); +static int64_t f_Ast__elseBody(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Expr* p_t, struct E_Ast__Expr* p_x, int64_t p_ind); static bool f_Ast__multiLine(struct E_Ast__Expr* p_e); -static int64_t f_Ast__arms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Arm* p_xs, int64_t p_ind); +static int64_t f_Ast__arms(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Arm* p_xs, int64_t p_ind); static int64_t f_Ast__pat(srs_cap* p_eff__Console, struct E_Ast__Pat* p_p); -static int64_t f_Ast__stmts(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Stmt* p_xs, int64_t p_ind); -static int64_t f_Ast__stmt(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Stmt* p_s, int64_t p_ind); +static int64_t f_Ast__stmts(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Stmt* p_xs, int64_t p_ind); +static int64_t f_Ast__stmt(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Stmt* p_s, int64_t p_ind); static srs_str f_Ast__qText(struct E_Ast__Q* p_q); static srs_str f_Ast__loopText(struct E_Ast__LoopCond* p_k); -static int64_t f_Ast__binding(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, int64_t p_ind); +static int64_t f_Ast__binding(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, int64_t p_ind); static int64_t f_Ast__term(srs_cap* p_eff__Console, struct E_Ast__Term* p_t); static int64_t f_Ast__terms(srs_cap* p_eff__Console, struct E_Coll__List__Ast__Term* p_xs); static int64_t f_Ast__atoms(srs_cap* p_eff__Console, struct E_Coll__List__Ast__Atom* p_xs); -static int64_t f_Ast__binders(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Binder* p_xs); -static int64_t f_Ast__groups(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Group* p_xs); -static int64_t f_Ast__fn(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind); -static int64_t f_Ast__sigs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind); -static int64_t f_Ast__fnSig(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind); -static int64_t f_Ast__withClauses(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, struct E_Ast__Expr* p_e, int64_t p_ind); +static int64_t f_Ast__binders(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Binder* p_xs); +static int64_t f_Ast__groups(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Group* p_xs); +static int64_t f_Ast__fn(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind); +static int64_t f_Ast__sigs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind); +static int64_t f_Ast__fnSig(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind); +static int64_t f_Ast__withClauses(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, struct E_Ast__Expr* p_e, int64_t p_ind); static srs_str f_Ast__condText(struct E_Ast__Cond* p_k); -static int64_t f_Ast__clauses(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, int64_t p_ind); -static int64_t f_Ast__fns(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind); +static int64_t f_Ast__clauses(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, int64_t p_ind); +static int64_t f_Ast__fns(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind); static int64_t f_Ast__trans(srs_cap* p_eff__Console, struct E_Coll__List__Ast__Trans* p_xs); -static int64_t f_Ast__ops(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Op* p_xs); +static int64_t f_Ast__ops(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Op* p_xs); static int64_t f_Ast__rules(srs_cap* p_eff__Console, struct E_Coll__List__Ast__RuleDef* p_xs); -static int64_t f_Ast__cases(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Case* p_xs); -static int64_t f_Ast__decl(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d); -static int64_t f_Ast__tyArms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__TyArm* p_xs); -static int64_t f_Ast__valArms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__ValArm* p_xs); -static int64_t f_Ast__print(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__ISet* f_Coll__setEmpty(srs_cap* p_r); -static struct E_Coll__BMap__Coll__Unit* f_Coll__bEmpty__Coll__Unit(srs_cap* p_r); -static struct E_Coll__ISet* f_Coll__setAdd(srs_cap* p_r, struct E_Coll__ISet* p_s, int64_t p_k); -static struct E_Coll__BMap__Coll__Unit* f_Coll__bInsert__Coll__Unit(srs_cap* p_r, struct E_Coll__BMap__Coll__Unit* p_m, int64_t p_k, struct E_Coll__Unit* p_v); +static int64_t f_Ast__cases(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Case* p_xs); +static int64_t f_Ast__decl(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d); +static int64_t f_Ast__tyArms(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__TyArm* p_xs); +static int64_t f_Ast__valArms(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__ValArm* p_xs); +static int64_t f_Ast__print(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__ISet* f_Coll__setEmpty(srs_cap* p_eff__Region); +static struct E_Coll__BMap__Coll__Unit* f_Coll__bEmpty__Coll__Unit(srs_cap* p_eff__Region); +static struct E_Coll__ISet* f_Coll__setAdd(srs_cap* p_eff__Region, struct E_Coll__ISet* p_s, int64_t p_k); +static struct E_Coll__BMap__Coll__Unit* f_Coll__bInsert__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BMap__Coll__Unit* p_m, int64_t p_k, struct E_Coll__Unit* p_v); static bool f_Coll__bIsNode__Coll__Unit(struct E_Coll__BTree__Coll__Unit* p_n); static struct E_Coll__BTree__Coll__Unit* f_Coll__bFind__Coll__Unit(struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bRep__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bIns__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2L__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2L__Coll__Unit(srs_cap* p_r, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b); -static struct E_Coll__Split__Coll__Unit* f_Coll__bSplitIns__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2R__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2R__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3A__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3A__Coll__Unit(srs_cap* p_r, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3B__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3B__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3C__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3C__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__Split__Coll__Unit* p_s); -static struct E_Coll__BTree__Coll__Unit* f_Coll__bRootIns__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bRep__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bIns__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2L__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2L__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b); +static struct E_Coll__Split__Coll__Unit* f_Coll__bSplitIns__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2R__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2R__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3A__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3A__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3B__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3B__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3C__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3C__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__Split__Coll__Unit* p_s); +static struct E_Coll__BTree__Coll__Unit* f_Coll__bRootIns__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v); static bool f_Coll__setHas(struct E_Coll__ISet* p_s, int64_t p_k); static bool f_Coll__bHas__Coll__Unit(struct E_Coll__BMap__Coll__Unit* p_m, int64_t p_k); static int64_t f_Coll__setSize(struct E_Coll__ISet* p_s); @@ -1561,429 +1561,429 @@ static int64_t f_D__thash(struct E_Coll__List__D__Val* p_t, int64_t p_h); static int64_t f_D__tupleHash(struct E_Coll__List__D__Val* p_t); static struct E_Coll__List__D__Val* f_D__tupleOf(struct E_D__Row* p_row); static int64_t f_D__stampOf(struct E_D__Row* p_row); -static struct E_D__Rel* f_D__newRel(srs_cap* p_r, struct E_Coll__List__I64* p_ic); -static struct E_Coll__List__D__Row* f_D__bucket(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_m, int64_t p_h); +static struct E_D__Rel* f_D__newRel(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_ic); +static struct E_Coll__List__D__Row* f_D__bucket(struct E_Coll__BTree__Coll__List_1_D__Row* p_m, int64_t p_h); static struct E_Coll__List__D__Row* f_Coll__bTGetOr__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_d); static struct E_Coll__List__D__Row* f_Coll__bValOr__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_n, int64_t p_k, struct E_Coll__List__D__Row* p_d); static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bFind__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k); static bool f_D__inRows(struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__D__Val* p_t); -static bool f_D__has(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t); +static bool f_D__has(struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t); static struct E_Coll__List__D__Val* f_D__from(struct E_Coll__List__D__Val* p_t, int64_t p_c); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_D__indexCols(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_cols, struct E_D__Row* p_row, struct E_Coll__List__D__Val* p_t, struct E_Coll__List__I64* p_ic); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_D__indexCols(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_cols, struct E_D__Row* p_row, struct E_Coll__List__D__Val* p_t, struct E_Coll__List__I64* p_ic); static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bFind__Coll__BTree_1_Coll__List_1_D__Row(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bPushT__D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_D__Row* p_x); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bPushT__D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_D__Row* p_x); static bool f_Coll__bIsNode__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_n); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRep__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bIns__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2L__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2L__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b); -static struct E_Coll__Split__Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2R__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2R__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3A__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3A__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3B__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3B__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3C__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3C__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__Split__Coll__List_1_D__Row* p_s); -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRootIns__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRep__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bIns__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2L__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2L__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b); +static struct E_Coll__Split__Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2R__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2R__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3A__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3A__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3B__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3B__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3C__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3C__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__Split__Coll__List_1_D__Row* p_s); +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRootIns__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v); static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bValOr__Coll__BTree_1_Coll__List_1_D__Row(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_n, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_d); static bool f_Coll__bIsNode__Coll__BTree_1_Coll__List_1_D__Row(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_n); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b); -static struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s); -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRootIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); -static struct E_D__Rel* f_D__add(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_D__Row* p_row); -static struct E_Coll__List__D__Row* f_D__cands(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_D__Probe* p_p); -static struct E_Coll__Option__D__RelRef* f_D__refOf(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s); -static struct E_D__With__D__RelRef* f_D__internId(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b); +static struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s); +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRootIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v); +static struct E_D__Rel* f_D__add(srs_cap* p_eff__Region, struct E_D__Rel* p_rl, struct E_D__Row* p_row); +static struct E_Coll__List__D__Row* f_D__cands(struct E_D__Rel* p_rl, struct E_D__Probe* p_p); +static struct E_Coll__Option__D__RelRef* f_D__refOf(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s); +static struct E_D__With__D__RelRef* f_D__internId(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s); static int64_t f_Coll__length__D__RelRef(struct E_Coll__List__D__RelRef* p_xs); static int64_t f_Coll__lengthFrom__D__RelRef(struct E_Coll__List__D__RelRef* p_xs, int64_t p_n); -static struct E_Coll__List__D__RelRef* f_Coll__rev__D__RelRef(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_xs); -static struct E_Coll__List__D__RelRef* f_Coll__revOnto__D__RelRef(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_xs, struct E_Coll__List__D__RelRef* p_acc); +static struct E_Coll__List__D__RelRef* f_Coll__rev__D__RelRef(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_xs); +static struct E_Coll__List__D__RelRef* f_Coll__revOnto__D__RelRef(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_xs, struct E_Coll__List__D__RelRef* p_acc); static int64_t f_D__idOfRef(struct E_D__RelRef* p_ref); static struct E_Sym__Sym* f_D__nameOfRef(struct E_D__RelRef* p_ref); -static struct E_D__With__D__CAtom* f_D__catom(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_D__Atom* p_a); -static struct E_D__With__D__Body* f_D__cbody(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Lit* p_ls, struct E_Coll__List__D__CAtom* p_pos, struct E_Coll__List__D__CAtom* p_neg); -static struct E_Coll__List__D__CAtom* f_Coll__rev__D__CAtom(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_xs); -static struct E_Coll__List__D__CAtom* f_Coll__revOnto__D__CAtom(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_acc); -static struct E_D__With__Coll__List_1_D__Draft* f_D__drafts(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Rule* p_rs, int64_t p_i, struct E_Coll__List__D__Draft* p_acc); -static struct E_Coll__List__D__Draft* f_Coll__rev__D__Draft(srs_cap* p_r, struct E_Coll__List__D__Draft* p_xs); -static struct E_Coll__List__D__Draft* f_Coll__revOnto__D__Draft(srs_cap* p_r, struct E_Coll__List__D__Draft* p_xs, struct E_Coll__List__D__Draft* p_acc); -static struct E_Coll__List__I64* f_D__headIds(srs_cap* p_r, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__D__CRule* f_D__crules(srs_cap* p_r, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_heads, struct E_Coll__List__D__CRule* p_acc); -static struct E_Coll__List__D__CRule* f_Coll__rev__D__CRule(srs_cap* p_r, struct E_Coll__List__D__CRule* p_xs); -static struct E_Coll__List__D__CRule* f_Coll__revOnto__D__CRule(srs_cap* p_r, struct E_Coll__List__D__CRule* p_xs, struct E_Coll__List__D__CRule* p_acc); -static struct E_Coll__List__D__Plan* f_D__plans(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__I64* p_heads, int64_t p_j, struct E_Coll__List__D__Plan* p_acc); -static struct E_Coll__List__D__Plan* f_Coll__rev__D__Plan(srs_cap* p_r, struct E_Coll__List__D__Plan* p_xs); -static struct E_Coll__List__D__Plan* f_Coll__revOnto__D__Plan(srs_cap* p_r, struct E_Coll__List__D__Plan* p_xs, struct E_Coll__List__D__Plan* p_acc); -static struct E_Coll__List__D__Step* f_D__steps(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_body, int64_t p_j, int64_t p_i, struct E_Coll__List__D__Step* p_acc); -static struct E_Coll__List__D__Step* f_Coll__rev__D__Step(srs_cap* p_r, struct E_Coll__List__D__Step* p_xs); -static struct E_Coll__List__D__Step* f_Coll__revOnto__D__Step(srs_cap* p_r, struct E_Coll__List__D__Step* p_xs, struct E_Coll__List__D__Step* p_acc); -static struct E_D__Bound* f_D__argVal(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_D__Arg* p_a); +static struct E_D__With__D__CAtom* f_D__catom(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_D__Atom* p_a); +static struct E_D__With__D__Body* f_D__cbody(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Lit* p_ls, struct E_Coll__List__D__CAtom* p_pos, struct E_Coll__List__D__CAtom* p_neg); +static struct E_Coll__List__D__CAtom* f_Coll__rev__D__CAtom(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_xs); +static struct E_Coll__List__D__CAtom* f_Coll__revOnto__D__CAtom(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_acc); +static struct E_D__With__Coll__List_1_D__Draft* f_D__drafts(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Rule* p_rs, int64_t p_i, struct E_Coll__List__D__Draft* p_acc); +static struct E_Coll__List__D__Draft* f_Coll__rev__D__Draft(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_xs); +static struct E_Coll__List__D__Draft* f_Coll__revOnto__D__Draft(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_xs, struct E_Coll__List__D__Draft* p_acc); +static struct E_Coll__List__I64* f_D__headIds(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__D__CRule* f_D__crules(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_heads, struct E_Coll__List__D__CRule* p_acc); +static struct E_Coll__List__D__CRule* f_Coll__rev__D__CRule(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_xs); +static struct E_Coll__List__D__CRule* f_Coll__revOnto__D__CRule(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_xs, struct E_Coll__List__D__CRule* p_acc); +static struct E_Coll__List__D__Plan* f_D__plans(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__I64* p_heads, int64_t p_j, struct E_Coll__List__D__Plan* p_acc); +static struct E_Coll__List__D__Plan* f_Coll__rev__D__Plan(srs_cap* p_eff__Region, struct E_Coll__List__D__Plan* p_xs); +static struct E_Coll__List__D__Plan* f_Coll__revOnto__D__Plan(srs_cap* p_eff__Region, struct E_Coll__List__D__Plan* p_xs, struct E_Coll__List__D__Plan* p_acc); +static struct E_Coll__List__D__Step* f_D__steps(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_body, int64_t p_j, int64_t p_i, struct E_Coll__List__D__Step* p_acc); +static struct E_Coll__List__D__Step* f_Coll__rev__D__Step(srs_cap* p_eff__Region, struct E_Coll__List__D__Step* p_xs); +static struct E_Coll__List__D__Step* f_Coll__revOnto__D__Step(srs_cap* p_eff__Region, struct E_Coll__List__D__Step* p_xs, struct E_Coll__List__D__Step* p_acc); +static struct E_D__Bound* f_D__argVal(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_D__Arg* p_a); static struct E_Coll__IMap__D__Val* f_Coll__node__D__Val(struct E_Coll__IMap__D__Val* p_m, int64_t p_k); -static struct E_D__Probe* f_D__probe(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, int64_t p_c); -static struct E_Coll__Option__Coll__IMap_1_D__Val* f_D__matchT(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__IMap__D__Val* f_Coll__insert__D__Val(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_m, int64_t p_k, struct E_D__Val* p_v); -static struct E_Coll__IMap__D__Val* f_Coll__balance__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); +static struct E_D__Probe* f_D__probe(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, int64_t p_c); +static struct E_Coll__Option__Coll__IMap_1_D__Val* f_D__matchT(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_t); +static struct E_Coll__IMap__D__Val* f_Coll__insert__D__Val(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_m, int64_t p_k, struct E_D__Val* p_v); +static struct E_Coll__IMap__D__Val* f_Coll__balance__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); static int64_t f_Coll__size__D__Val(struct E_Coll__IMap__D__Val* p_m); -static struct E_Coll__IMap__D__Val* f_Coll__rotateL__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); -static struct E_Coll__IMap__D__Val* f_Coll__rotateR__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); -static struct E_Coll__IMap__D__Val* f_Coll__bin__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__matchRows(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Row* p_rows, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_out); -static struct E_D__Rel* f_D__relOf(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id); +static struct E_Coll__IMap__D__Val* f_Coll__rotateL__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); +static struct E_Coll__IMap__D__Val* f_Coll__rotateR__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); +static struct E_Coll__IMap__D__Val* f_Coll__bin__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2); +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__matchRows(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Row* p_rows, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_out); +static struct E_D__Rel* f_D__relOf(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id); static struct E_Coll__IMap__D__Rel* f_Coll__node__D__Rel(struct E_Coll__IMap__D__Rel* p_m, int64_t p_k); -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinAtom(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out); -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalAll(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_body, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalPlan(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__Plan* p_p, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinSteps(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__Step* p_steps, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); -static int64_t f_D__recentOf(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a); -static struct E_Coll__Option__Coll__List_1_D__Val* f_D__inst(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_acc); -static struct E_Coll__List__D__Val* f_Coll__rev__D__Val(srs_cap* p_r, struct E_Coll__List__D__Val* p_xs); -static struct E_Coll__List__D__Val* f_Coll__revOnto__D__Val(srs_cap* p_r, struct E_Coll__List__D__Val* p_xs, struct E_Coll__List__D__Val* p_acc); -static struct E_Coll__IMap__D__Rel* f_D__heads(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_h, struct E_D__CRule* p_rule, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); -static struct E_Coll__IMap__D__Rel* f_Coll__insert__D__Rel(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_m, int64_t p_k, struct E_D__Rel* p_v); -static struct E_Coll__IMap__D__Rel* f_Coll__balance__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinAtom(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out); +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalAll(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_body, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalPlan(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__Plan* p_p, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinSteps(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__Step* p_steps, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); +static int64_t f_D__recentOf(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a); +static struct E_Coll__Option__Coll__List_1_D__Val* f_D__inst(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_acc); +static struct E_Coll__List__D__Val* f_Coll__rev__D__Val(srs_cap* p_eff__Region, struct E_Coll__List__D__Val* p_xs); +static struct E_Coll__List__D__Val* f_Coll__revOnto__D__Val(srs_cap* p_eff__Region, struct E_Coll__List__D__Val* p_xs, struct E_Coll__List__D__Val* p_acc); +static struct E_Coll__IMap__D__Rel* f_D__heads(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_h, struct E_D__CRule* p_rule, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs); +static struct E_Coll__IMap__D__Rel* f_Coll__insert__D__Rel(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_m, int64_t p_k, struct E_D__Rel* p_v); +static struct E_Coll__IMap__D__Rel* f_Coll__balance__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); static int64_t f_Coll__size__D__Rel(struct E_Coll__IMap__D__Rel* p_m); -static struct E_Coll__IMap__D__Rel* f_Coll__rotateL__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); -static struct E_Coll__IMap__D__Rel* f_Coll__rotateR__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); -static struct E_Coll__IMap__D__Rel* f_Coll__bin__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); -static bool f_D__negOk(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e); -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__filterNeg(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out); -static struct E_Coll__IMap__D__Rel* f_D__fireAt(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__D__Plan* p_ps, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels); -static struct E_Coll__IMap__D__Rel* f_D__fireWith(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels); -static struct E_Coll__IMap__D__Rel* f_D__fireAll(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels0, struct E_Coll__List__D__CRule* p_rs, int64_t p_rd, struct E_D__Pass* p_pass, struct E_Coll__IMap__D__Rel* p_rels); -static struct E_D__Next* f_D__advance(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc, int64_t p_news); +static struct E_Coll__IMap__D__Rel* f_Coll__rotateL__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); +static struct E_Coll__IMap__D__Rel* f_Coll__rotateR__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); +static struct E_Coll__IMap__D__Rel* f_Coll__bin__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2); +static bool f_D__negOk(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e); +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__filterNeg(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out); +static struct E_Coll__IMap__D__Rel* f_D__fireAt(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__D__Plan* p_ps, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels); +static struct E_Coll__IMap__D__Rel* f_D__fireWith(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels); +static struct E_Coll__IMap__D__Rel* f_D__fireAll(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels0, struct E_Coll__List__D__CRule* p_rs, int64_t p_rd, struct E_D__Pass* p_pass, struct E_Coll__IMap__D__Rel* p_rels); +static struct E_D__Next* f_D__advance(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc, int64_t p_news); static int64_t f_D__inputRound(void); static int64_t f_D__firstRound(void); -static struct E_D__Stage* f_D__rounds(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k, struct E_D__Pass* p_pass); +static struct E_D__Stage* f_D__rounds(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k, struct E_D__Pass* p_pass); static int64_t f_D__stOf(struct E_Coll__IMap__I64* p_st, int64_t p_id); static struct E_Coll__IMap__I64* f_Coll__node__I64(struct E_Coll__IMap__I64* p_m, int64_t p_k); static int64_t f_D__maxSt(struct E_Coll__IMap__I64* p_st, struct E_Coll__List__D__CAtom* p_as, int64_t p_plus, int64_t p_m); -static struct E_D__Raised* f_D__raiseAll(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, bool p_changed); -static struct E_Coll__IMap__I64* f_Coll__insert__I64(srs_cap* p_r, struct E_Coll__IMap__I64* p_m, int64_t p_k, int64_t p_v); -static struct E_Coll__IMap__I64* f_Coll__balance__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); +static struct E_D__Raised* f_D__raiseAll(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, bool p_changed); +static struct E_Coll__IMap__I64* f_Coll__insert__I64(srs_cap* p_eff__Region, struct E_Coll__IMap__I64* p_m, int64_t p_k, int64_t p_v); +static struct E_Coll__IMap__I64* f_Coll__balance__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); static int64_t f_Coll__size__I64(struct E_Coll__IMap__I64* p_m); -static struct E_Coll__IMap__I64* f_Coll__rotateL__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); -static struct E_Coll__IMap__I64* f_Coll__rotateR__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); -static struct E_Coll__IMap__I64* f_Coll__bin__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); +static struct E_Coll__IMap__I64* f_Coll__rotateL__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); +static struct E_Coll__IMap__I64* f_Coll__rotateR__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); +static struct E_Coll__IMap__I64* f_Coll__bin__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2); static int64_t f_D__topOf(struct E_Coll__IMap__I64* p_st, int64_t p_id, int64_t p_k, int64_t p_m); -static struct E_Coll__IMap__I64* f_D__strata(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k); -static struct E_Coll__Option__Sym__Sym* f_D__overHead(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k, struct E_Coll__Option__D__CAtom* p_best); -static struct E_Coll__Option__D__CAtom* f_D__smaller(srs_cap* p_r, struct E_D__CAtom* p_h, struct E_Coll__Option__D__CAtom* p_best); -static struct E_Coll__List__D__CRule* f_D__rulesAt(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, struct E_Coll__List__D__CRule* p_acc); -static struct E_Coll__IMap__D__Rel* f_D__runStrata(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, int64_t p_top, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k); +static struct E_Coll__IMap__I64* f_D__strata(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k); +static struct E_Coll__Option__Sym__Sym* f_D__overHead(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k, struct E_Coll__Option__D__CAtom* p_best); +static struct E_Coll__Option__D__CAtom* f_D__smaller(srs_cap* p_eff__Region, struct E_D__CAtom* p_h, struct E_Coll__Option__D__CAtom* p_best); +static struct E_Coll__List__D__CRule* f_D__rulesAt(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, struct E_Coll__List__D__CRule* p_acc); +static struct E_Coll__IMap__D__Rel* f_D__runStrata(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, int64_t p_top, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k); static bool f_D__allIn(struct E_Coll__List__I64* p_vs, struct E_Coll__List__I64* p_bound); -static struct E_Coll__List__I64* f_D__atomsVars(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_as, struct E_Coll__List__I64* p_acc); -static struct E_Coll__Option__Sym__Sym* f_D__firstUnsafe(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs); +static struct E_Coll__List__I64* f_D__atomsVars(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_as, struct E_Coll__List__I64* p_acc); +static struct E_Coll__Option__Sym__Sym* f_D__firstUnsafe(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs); static bool f_D__memberI(int64_t p_v, struct E_Coll__List__I64* p_xs); -static struct E_Coll__Option__I64* f_D__firstBound(srs_cap* p_r, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_bound, int64_t p_c); -static struct E_Coll__List__I64* f_D__argVars(srs_cap* p_r, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__I64* f_D__colsOf(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_rel); +static struct E_Coll__Option__I64* f_D__firstBound(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_bound, int64_t p_c); +static struct E_Coll__List__I64* f_D__argVars(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__I64* f_D__colsOf(struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_rel); static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__node__Coll__List_1_I64(struct E_Coll__IMap__Coll__List_1_I64* p_m, int64_t p_k); -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesOf(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics); -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probeAtom(srs_cap* p_r, struct E_D__CAtom* p_a, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics); -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__insert__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_I64* p_m, int64_t p_k, struct E_Coll__List__I64* p_v); -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__balance__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesOf(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics); +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probeAtom(srs_cap* p_eff__Region, struct E_D__CAtom* p_a, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics); +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__insert__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_I64* p_m, int64_t p_k, struct E_Coll__List__I64* p_v); +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__balance__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); static int64_t f_Coll__size__Coll__List_1_I64(struct E_Coll__IMap__Coll__List_1_I64* p_m); -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateL__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateR__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__bin__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlan(srs_cap* p_r, struct E_D__Plan* p_p, struct E_Coll__IMap__Coll__List_1_I64* p_ics); -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesSteps(srs_cap* p_r, struct E_Coll__List__D__Step* p_steps, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics); -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlans(srs_cap* p_r, struct E_Coll__List__D__Plan* p_ps, struct E_Coll__IMap__Coll__List_1_I64* p_ics); -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesAll(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__Coll__List_1_I64* p_ics); -static struct E_Coll__IMap__D__Rel* f_D__initRels(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc); -static struct E_D__With__Coll__IMap_1_D__Rel* f_D__load(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Fact* p_fs, struct E_Coll__IMap__D__Rel* p_rels); -static struct E_D__Result* f_D__solve(srs_cap* p_r, struct E_Coll__List__D__Rule* p_rules, struct E_Coll__List__D__Fact* p_facts); -static struct E_Coll__List__Coll__List_1_D__Val* f_D__rowsOf(srs_cap* p_r, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__Coll__List_1_D__Val* p_acc); -static struct E_Coll__List__Coll__List_1_D__Val* f_D__tuples(srs_cap* p_r, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel); -static struct E_Coll__Option__D__Row* f_D__rowIn(srs_cap* p_r, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__Option__D__Row* f_D__findRow(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__Option__D__Proof* f_D__proofOf(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__RelRef* p_ref, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__Option__D__Proof* f_D__byRule(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CRule* p_rl, struct E_Sym__Sym* p_rel, int64_t p_at, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__premises(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc); -static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__absents(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc); -static struct E_Coll__List__D__Proof* f_Coll__rev__D__Proof(srs_cap* p_r, struct E_Coll__List__D__Proof* p_xs); -static struct E_Coll__List__D__Proof* f_Coll__revOnto__D__Proof(srs_cap* p_r, struct E_Coll__List__D__Proof* p_xs, struct E_Coll__List__D__Proof* p_acc); -static struct E_Coll__Option__D__Proof* f_D__why(srs_cap* p_r, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t); -static struct E_Sym__Sym* f_Eff__relSym(srs_cap* p_r, struct E_Eff__Rel* p_rel); -static struct E_Coll__Option__Eff__Req* f_Eff__reqOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_f); -static struct E_Coll__Option__I64* f_Eff__lastDot(srs_cap* p_r, srs_str p_s, int64_t p_i); -static struct E_Sym__Sym* f_Eff__dotted(srs_cap* p_r, srs_cap* p_eff__Console, srs_str p_a, struct E_Sym__Sym* p_b); -static struct E_Eff__Rows* f_Eff__none(srs_cap* p_r); -static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sEmpty__Coll__List_1_Eff__Cap(srs_cap* p_r); -static struct E_Coll__List__Eff__Cap* f_Eff__row(srs_cap* p_r, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f); -static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sLookup__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sFind__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateL__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateR__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__bin__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2); +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlan(srs_cap* p_eff__Region, struct E_D__Plan* p_p, struct E_Coll__IMap__Coll__List_1_I64* p_ics); +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesSteps(srs_cap* p_eff__Region, struct E_Coll__List__D__Step* p_steps, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics); +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlans(srs_cap* p_eff__Region, struct E_Coll__List__D__Plan* p_ps, struct E_Coll__IMap__Coll__List_1_I64* p_ics); +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesAll(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__Coll__List_1_I64* p_ics); +static struct E_Coll__IMap__D__Rel* f_D__initRels(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc); +static struct E_D__With__Coll__IMap_1_D__Rel* f_D__load(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Fact* p_fs, struct E_Coll__IMap__D__Rel* p_rels); +static struct E_D__Result* f_D__solve(srs_cap* p_eff__Region, struct E_Coll__List__D__Rule* p_rules, struct E_Coll__List__D__Fact* p_facts); +static struct E_Coll__List__Coll__List_1_D__Val* f_D__rowsOf(srs_cap* p_eff__Region, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__Coll__List_1_D__Val* p_acc); +static struct E_Coll__List__Coll__List_1_D__Val* f_D__tuples(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel); +static struct E_Coll__Option__D__Row* f_D__rowIn(srs_cap* p_eff__Region, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__D__Val* p_t); +static struct E_Coll__Option__D__Row* f_D__findRow(srs_cap* p_eff__Region, struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t); +static struct E_Coll__Option__D__Proof* f_D__proofOf(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__RelRef* p_ref, struct E_Coll__List__D__Val* p_t); +static struct E_Coll__Option__D__Proof* f_D__byRule(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CRule* p_rl, struct E_Sym__Sym* p_rel, int64_t p_at, struct E_Coll__List__D__Val* p_t); +static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__premises(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc); +static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__absents(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc); +static struct E_Coll__List__D__Proof* f_Coll__rev__D__Proof(srs_cap* p_eff__Region, struct E_Coll__List__D__Proof* p_xs); +static struct E_Coll__List__D__Proof* f_Coll__revOnto__D__Proof(srs_cap* p_eff__Region, struct E_Coll__List__D__Proof* p_xs, struct E_Coll__List__D__Proof* p_acc); +static struct E_Coll__Option__D__Proof* f_D__why(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t); +static struct E_Sym__Sym* f_Eff__relSym(srs_cap* p_eff__Region, struct E_Eff__Rel* p_rel); +static struct E_Coll__Option__Eff__Req* f_Eff__reqOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_f); +static struct E_Coll__Option__I64* f_Eff__lastDot(srs_cap* p_eff__Region, srs_str p_s, int64_t p_i); +static struct E_Sym__Sym* f_Eff__dotted(srs_cap* p_eff__Region, srs_cap* p_eff__Console, srs_str p_a, struct E_Sym__Sym* p_b); +static struct E_Eff__Rows* f_Eff__none(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sEmpty__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region); +static struct E_Coll__List__Eff__Cap* f_Eff__row(srs_cap* p_eff__Region, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f); +static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sLookup__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sFind__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d); static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k); -static bool f_Eff__has(srs_cap* p_r, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f, struct E_Sym__Sym* p_p); +static bool f_Eff__has(srs_cap* p_eff__Region, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f, struct E_Sym__Sym* p_p); static bool f_Eff__capIn(struct E_Coll__List__Eff__Cap* p_cs, struct E_Sym__Sym* p_p); -static struct E_Eff__Set* f_Eff__rows(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__SMap__Sym__Sym* f_Coll__sEmpty__Sym__Sym(srs_cap* p_r); -static struct E_Coll__SMap__Eff__Callee* f_Coll__sEmpty__Eff__Callee(srs_cap* p_r); -static struct E_Coll__SMap__Bool* f_Coll__sEmpty__Bool(srs_cap* p_r); -static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sEmpty__Coll__List_1_I64(srs_cap* p_r); -static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Eff__group(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_names, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m); -static struct E_Coll__Option__Sym__Sym* f_Coll__sLookup__Sym__Sym(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Sym__Sym* f_Coll__sFind__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s); +static struct E_Eff__Set* f_Eff__rows(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__SMap__Sym__Sym* f_Coll__sEmpty__Sym__Sym(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Eff__Callee* f_Coll__sEmpty__Eff__Callee(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Bool* f_Coll__sEmpty__Bool(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sEmpty__Coll__List_1_I64(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Eff__group(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_names, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m); +static struct E_Coll__Option__Sym__Sym* f_Coll__sLookup__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Sym__Sym* f_Coll__sFind__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_d); static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_d); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k); -static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sInsert__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v); +static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sInsert__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__sSet__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); -static struct E_Coll__SMap__Sym__Sym* f_Eff__capNames(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Eff__Cx* p_cx); -static struct E_Coll__SMap__Sym__Sym* f_Eff__namesOf(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__SMap__Sym__Sym* p_m); -static struct E_Coll__SMap__Sym__Sym* f_Coll__sInsert__Sym__Sym(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__sSet__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v); +static struct E_Coll__SMap__Sym__Sym* f_Eff__capNames(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx); +static struct E_Coll__SMap__Sym__Sym* f_Eff__namesOf(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__SMap__Sym__Sym* p_m); +static struct E_Coll__SMap__Sym__Sym* f_Coll__sInsert__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__sSet__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); -static struct E_D__Atom* f_Eff__atom(srs_cap* p_r, struct E_Eff__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__D__Rule* f_Eff__rules(srs_cap* p_r); -static struct E_Eff__Syms* f_Eff__syms(srs_cap* p_r); -static struct E_Eff__Cx* f_Eff__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Cx* p_cx); -static struct E_Coll__SMap__Eff__Callee* f_Coll__sInsert__Eff__Callee(srs_cap* p_r, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__sSet__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v); +static struct E_D__Atom* f_Eff__atom(srs_cap* p_eff__Region, struct E_Eff__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_Coll__List__D__Rule* f_Eff__rules(srs_cap* p_eff__Region); +static struct E_Eff__Syms* f_Eff__syms(srs_cap* p_eff__Region); +static struct E_Eff__Cx* f_Eff__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Cx* p_cx); +static struct E_Coll__SMap__Eff__Callee* f_Coll__sInsert__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__sSet__Eff__Callee(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__sSet__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v); static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); -static struct E_Eff__Callee* f_Eff__calleeOf(srs_cap* p_r, struct E_Ast__Fn* p_f); -static struct E_Coll__SMap__Bool* f_Eff__ctorsOf(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__Bool* p_m); -static struct E_Coll__SMap__Bool* f_Coll__sInsert__Bool(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s, bool p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v); +static struct E_Eff__Callee* f_Eff__calleeOf(srs_cap* p_eff__Region, struct E_Ast__Fn* p_f); +static struct E_Coll__SMap__Bool* f_Eff__ctorsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__Bool* p_m); +static struct E_Coll__SMap__Bool* f_Coll__sInsert__Bool(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s, bool p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__sSet__Bool(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s, bool p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__sSet__Bool(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s, bool p_v); static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); -static struct E_Eff__W* f_Eff__add(srs_cap* p_r, struct E_Eff__W* p_w, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_vs); -static struct E_Coll__List__D__Val* f_Eff__v2(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b); -static bool f_Eff__isIn(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_x); -static struct E_Coll__Option__Bool* f_Coll__sLookup__Bool(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Bool* f_Coll__sFind__Bool(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v); +static struct E_Eff__W* f_Eff__add(srs_cap* p_eff__Region, struct E_Eff__W* p_w, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_vs); +static struct E_Coll__List__D__Val* f_Eff__v2(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b); +static bool f_Eff__isIn(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_x); +static struct E_Coll__Option__Bool* f_Coll__sLookup__Bool(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Bool* f_Coll__sFind__Bool(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_d); -static struct E_Coll__List__D__Fact* f_Eff__decls(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__fn(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_n, struct E_Ast__Fn* p_f, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__hfns(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__declsOf(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__req(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_p, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__call(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_g, struct E_Eff__W* p_w); -static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sLookup__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sFind__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__List__D__Fact* f_Eff__decls(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__fn(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_n, struct E_Ast__Fn* p_f, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__hfns(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__declsOf(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__req(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_p, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__call(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_g, struct E_Eff__W* p_w); +static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sLookup__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sFind__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_d); static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_d); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k); -static struct E_Coll__Option__Eff__Callee* f_Coll__sLookup__Eff__Callee(srs_cap* p_r, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Eff__Callee* f_Coll__sFind__Eff__Callee(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Eff__Callee* f_Coll__sLookup__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Eff__Callee* f_Coll__sFind__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_d); -static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sInsert__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v); +static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sInsert__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__sSet__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__sSet__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v); static bool f_Eff__memberI(int64_t p_x, struct E_Coll__List__I64* p_xs); -static bool f_Eff__isFn(srs_cap* p_r, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_x); -static struct E_Eff__W* f_Eff__reqTo(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__Option__Eff__Req* p_q, struct E_Eff__W* p_w); -static struct E_Eff__At* f_Eff__local(srs_cap* p_r, struct E_Eff__At* p_at, struct E_Coll__List__Sym__Sym* p_xs); -static struct E_Coll__List__Sym__Sym* f_Coll__revOnto__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Eff__W* f_Eff__expr(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Ast__Expr* p_e, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__exprs(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Expr* p_xs, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__arms(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Arm* p_as, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__stmts(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Eff__W* p_w); -static struct E_Eff__W* f_Eff__hds(srs_cap* p_r, struct E_Sym__Sym* p_rel, int64_t p_s, struct E_Coll__List__Sym__Sym* p_ps, struct E_Eff__W* p_w); -static struct E_Emit__Cx* f_Emit__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__El__Fn* p_fs); -static struct E_Coll__SMap__El__Fn* f_Coll__sEmpty__El__Fn(srs_cap* p_r); -static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sEmpty__Emit__CaseAt(srs_cap* p_r); -static struct E_Coll__SMap__Ast__Enum* f_Coll__sEmpty__Ast__Enum(srs_cap* p_r); -static struct E_Coll__SMap__Ast__Proto* f_Coll__sEmpty__Ast__Proto(srs_cap* p_r); -static struct E_Coll__SMap__K__Term* f_Coll__sEmpty__K__Term(srs_cap* p_r); -static struct E_Coll__SMap__El__Fn* f_Emit__fnMap(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m); -static struct E_Coll__SMap__El__Fn* f_Coll__sInsert__El__Fn(srs_cap* p_r, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v); +static bool f_Eff__isFn(srs_cap* p_eff__Region, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_x); +static struct E_Eff__W* f_Eff__reqTo(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__Option__Eff__Req* p_q, struct E_Eff__W* p_w); +static struct E_Eff__At* f_Eff__local(srs_cap* p_eff__Region, struct E_Eff__At* p_at, struct E_Coll__List__Sym__Sym* p_xs); +static struct E_Coll__List__Sym__Sym* f_Coll__revOnto__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Eff__W* f_Eff__expr(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Ast__Expr* p_e, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__exprs(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Expr* p_xs, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__arms(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Arm* p_as, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__stmts(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Eff__W* p_w); +static struct E_Eff__W* f_Eff__hds(srs_cap* p_eff__Region, struct E_Sym__Sym* p_rel, int64_t p_s, struct E_Coll__List__Sym__Sym* p_ps, struct E_Eff__W* p_w); +static struct E_Emit__Cx* f_Emit__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__El__Fn* p_fs); +static struct E_Coll__SMap__El__Fn* f_Coll__sEmpty__El__Fn(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sEmpty__Emit__CaseAt(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Ast__Enum* f_Coll__sEmpty__Ast__Enum(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Ast__Proto* f_Coll__sEmpty__Ast__Proto(srs_cap* p_eff__Region); +static struct E_Coll__SMap__K__Term* f_Coll__sEmpty__K__Term(srs_cap* p_eff__Region); +static struct E_Coll__SMap__El__Fn* f_Emit__fnMap(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m); +static struct E_Coll__SMap__El__Fn* f_Coll__sInsert__El__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__sSet__El__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__sSet__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v); static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); -static struct E_Emit__Cx* f_Emit__cxDecls(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Emit__Cx* p_cx); -static struct E_Coll__SMap__Ast__Enum* f_Coll__sInsert__Ast__Enum(srs_cap* p_r, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v); +static struct E_Emit__Cx* f_Emit__cxDecls(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Emit__Cx* p_cx); +static struct E_Coll__SMap__Ast__Enum* f_Coll__sInsert__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__sSet__Ast__Enum(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__sSet__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v); static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); -static struct E_Coll__SMap__Ast__Proto* f_Coll__sInsert__Ast__Proto(srs_cap* p_r, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v); +static struct E_Coll__SMap__Ast__Proto* f_Coll__sInsert__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__sSet__Ast__Proto(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__sSet__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v); static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); -static struct E_Coll__SMap__K__Term* f_Coll__sInsert__K__Term(srs_cap* p_r, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s, struct E_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v); +static struct E_Coll__SMap__K__Term* f_Coll__sInsert__K__Term(srs_cap* p_eff__Region, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s, struct E_K__Term* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__sSet__K__Term(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s, struct E_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__sSet__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s, struct E_K__Term* p_v); static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); -static struct E_Coll__SMap__Emit__CaseAt* f_Emit__caseMap(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, int64_t p_i, struct E_Coll__SMap__Emit__CaseAt* p_m); -static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sInsert__Emit__CaseAt(srs_cap* p_r, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v); +static struct E_Coll__SMap__Emit__CaseAt* f_Emit__caseMap(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, int64_t p_i, struct E_Coll__SMap__Emit__CaseAt* p_m); +static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sInsert__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__sSet__Emit__CaseAt(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__sSet__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v); static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); -static bool f_Emit__isProto(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n); -static struct E_Coll__Option__Ast__Proto* f_Coll__sLookup__Ast__Proto(srs_cap* p_r, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Ast__Proto* f_Coll__sFind__Ast__Proto(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v); +static bool f_Emit__isProto(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n); +static struct E_Coll__Option__Ast__Proto* f_Coll__sLookup__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Ast__Proto* f_Coll__sFind__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_d); -static struct E_Coll__Option__Emit__CaseAt* f_Emit__caseAt(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_c); -static struct E_Coll__Option__Emit__CaseAt* f_Coll__sLookup__Emit__CaseAt(srs_cap* p_r, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Emit__CaseAt* f_Coll__sFind__Emit__CaseAt(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Emit__CaseAt* f_Emit__caseAt(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_c); +static struct E_Coll__Option__Emit__CaseAt* f_Coll__sLookup__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Emit__CaseAt* f_Coll__sFind__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_d); static struct E_Coll__IMap__K__Term* f_Emit__subst(struct E_Emit__Cx* p_cx); -static struct E_Coll__List__K__Term* f_Emit__grAll(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__K__Term* p_ts); -static struct E_K__Term* f_Emit__gr(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_K__Term* p_t); +static struct E_Coll__List__K__Term* f_Emit__grAll(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__K__Term* p_ts); +static struct E_K__Term* f_Emit__gr(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_K__Term* p_t); static int64_t f_Emit__id(srs_cap* p_eff__Console, struct E_Sym__Sym* p_x); static int64_t f_Emit__idFrom(srs_cap* p_eff__Console, srs_str p_s, int64_t p_b, int64_t p_i, int64_t p_n); static int64_t f_Emit__mangle(srs_cap* p_eff__Console, struct E_K__Term* p_t); @@ -1997,13 +1997,13 @@ static int64_t f_Emit__local(srs_cap* p_eff__Console, struct E_Coll__List__Emit_ static struct E_Sym__Sym* f_Emit__nameOf(struct E_Emit__Name* p_v); static struct E_Coll__List__Emit__Name* f_Emit__vs(struct E_Emit__Env* p_env); static int64_t f_Emit__envN(struct E_Emit__Env* p_env); -static struct E_Emit__Env* f_Emit__bind(srs_cap* p_r, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_x); -static int64_t f_Emit__ctype(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t); -static struct E_Coll__Option__K__Term* f_Emit__nominalOf(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n); -static struct E_Coll__Option__K__Term* f_Coll__sLookup__K__Term(srs_cap* p_r, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__K__Term* f_Coll__sFind__K__Term(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s); +static struct E_Emit__Env* f_Emit__bind(srs_cap* p_eff__Region, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_x); +static int64_t f_Emit__ctype(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t); +static struct E_Coll__Option__K__Term* f_Emit__nominalOf(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n); +static struct E_Coll__Option__K__Term* f_Coll__sLookup__K__Term(srs_cap* p_eff__Region, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__K__Term* f_Coll__sFind__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_d); -static int64_t f_Emit__ex(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_El__Expr* p_e); +static int64_t f_Emit__ex(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_El__Expr* p_e); static int64_t f_Coll__length__Sym__Sym(struct E_Coll__List__Sym__Sym* p_xs); static int64_t f_Coll__lengthFrom__Sym__Sym(struct E_Coll__List__Sym__Sym* p_xs, int64_t p_n); static srs_str f_Emit__binOp(struct E_Ast__BinOp* p_op); @@ -2011,688 +2011,688 @@ static srs_str f_Emit__unOp(struct E_Ast__UnOp* p_op); static int64_t f_Emit__unescLen(srs_str p_s, int64_t p_i, int64_t p_n); static bool f_Emit__isTail(struct E_Emit__Pos* p_pos); static bool f_Emit__isSelf(struct E_Emit__Fi* p_fi, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts); -static int64_t f_Emit__fnName(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts); -static struct E_Coll__Option__El__Fn* f_Coll__sLookup__El__Fn(srs_cap* p_r, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__El__Fn* f_Coll__sFind__El__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s); +static int64_t f_Emit__fnName(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts); +static struct E_Coll__Option__El__Fn* f_Coll__sLookup__El__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__El__Fn* f_Coll__sFind__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_d); static int64_t f_Emit__defName(srs_cap* p_eff__Console, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts); static int64_t f_Emit__sep(srs_cap* p_eff__Console, struct E_Emit__Sep* p_s); static int64_t f_Emit__capArgs(srs_cap* p_eff__Console, struct E_Emit__Env* p_env, struct E_Coll__List__Sym__Sym* p_caps, struct E_Emit__Sep* p_s); -static int64_t f_Emit__initCall(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args); -static int64_t f_Emit__handleEnv(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Name* p_v, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args); -static int64_t f_Emit__args(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__El__Expr* p_xs, struct E_Emit__Sep* p_s); -static int64_t f_Emit__jump(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args); -static int64_t f_Emit__temps(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args, int64_t p_i); +static int64_t f_Emit__initCall(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args); +static int64_t f_Emit__handleEnv(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Name* p_v, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args); +static int64_t f_Emit__args(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__El__Expr* p_xs, struct E_Emit__Sep* p_s); +static int64_t f_Emit__jump(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args); +static int64_t f_Emit__temps(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args, int64_t p_i); static int64_t f_Emit__sets(srs_cap* p_eff__Console, struct E_Coll__List__Emit__Slot* p_slots, int64_t p_i); static struct E_Sym__Sym* f_Emit__slotName(struct E_Emit__Slot* p_sl); -static int64_t f_Emit__ctor(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_en, struct E_Coll__List__K__Term* p_ts, struct E_Sym__Sym* p_c, struct E_Sym__Sym* p_reg, struct E_Coll__List__El__Expr* p_args); -static int64_t f_Emit__fieldSets(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__El__Expr* p_xs); -static int64_t f_Emit__opIndex(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op); +static int64_t f_Emit__ctor(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_en, struct E_Coll__List__K__Term* p_ts, struct E_Sym__Sym* p_c, struct E_Sym__Sym* p_reg, struct E_Coll__List__El__Expr* p_args); +static int64_t f_Emit__fieldSets(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__El__Expr* p_xs); +static int64_t f_Emit__opIndex(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op); static int64_t f_Emit__opIn(struct E_Coll__List__Ast__Op* p_os, struct E_Sym__Sym* p_op, int64_t p_i); -static int64_t f_Emit__op(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_recv, struct E_K__Term* p_ty, struct E_Sym__Sym* p_op, struct E_Coll__List__El__Expr* p_args); -static int64_t f_Emit__opTys(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_ps); +static int64_t f_Emit__op(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_recv, struct E_K__Term* p_ty, struct E_Sym__Sym* p_op, struct E_Coll__List__El__Expr* p_args); +static int64_t f_Emit__opTys(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_ps); static bool f_Emit__kills(struct E_Coll__List__Ast__Trans* p_ts, struct E_Coll__List__Sym__Sym* p_ends); static bool f_Emit__allEnd(struct E_Coll__List__Ast__Trans* p_ts, struct E_Coll__List__Sym__Sym* p_ends); -static int64_t f_Emit__arms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Arm* p_as); +static int64_t f_Emit__arms(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Arm* p_as); static int64_t f_Emit__test(srs_cap* p_eff__Console, struct E_Coll__List__El__Arm* p_rest, int64_t p_n, struct E_Emit__Guard* p_g); -static struct E_Emit__Env* f_Emit__binds(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs); -static int64_t f_Emit__block(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Stmt* p_ss, struct E_El__Expr* p_last, struct E_Coll__List__Emit__Drop* p_drops); +static struct E_Emit__Env* f_Emit__binds(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs); +static int64_t f_Emit__block(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Stmt* p_ss, struct E_El__Expr* p_last, struct E_Coll__List__Emit__Drop* p_drops); static struct E_Emit__Pos* f_Emit__lastPos(struct E_Coll__List__Emit__Drop* p_drops, struct E_Emit__Pos* p_pos); -static int64_t f_Emit__drops(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Drop* p_ds); -static struct E_Sym__Sym* f_Emit__protoOfH(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_h); -static bool f_Emit__hasTail(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e); -static bool f_Emit__armsTail(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as); +static int64_t f_Emit__drops(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Drop* p_ds); +static struct E_Sym__Sym* f_Emit__protoOfH(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_h); +static bool f_Emit__hasTail(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e); +static bool f_Emit__armsTail(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as); static bool f_Emit__hasHandle(struct E_Coll__List__El__Stmt* p_ss); -static struct E_Emit__Fi* f_Emit__fiOf(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Mono__Inst* p_i); -static struct E_Coll__List__K__Term* f_Emit__targsOf(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Coll__rev__K__Term(srs_cap* p_r, struct E_Coll__List__K__Term* p_xs); -static struct E_Coll__List__K__Term* f_Coll__revOnto__K__Term(srs_cap* p_r, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__Emit__Slot* f_Emit__slots(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Param* p_ps); -static struct E_Coll__List__Emit__Slot* f_Emit__valSlots(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Param* p_ps, struct E_Coll__List__Emit__Slot* p_acc); -static struct E_Coll__List__Emit__Slot* f_Coll__rev__Emit__Slot(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_xs); -static struct E_Coll__List__Emit__Slot* f_Coll__revOnto__Emit__Slot(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_xs, struct E_Coll__List__Emit__Slot* p_acc); +static struct E_Emit__Fi* f_Emit__fiOf(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Mono__Inst* p_i); +static struct E_Coll__List__K__Term* f_Emit__targsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Coll__rev__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_xs); +static struct E_Coll__List__K__Term* f_Coll__revOnto__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__Emit__Slot* f_Emit__slots(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Param* p_ps); +static struct E_Coll__List__Emit__Slot* f_Emit__valSlots(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Param* p_ps, struct E_Coll__List__Emit__Slot* p_acc); +static struct E_Coll__List__Emit__Slot* f_Coll__rev__Emit__Slot(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_xs); +static struct E_Coll__List__Emit__Slot* f_Coll__revOnto__Emit__Slot(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_xs, struct E_Coll__List__Emit__Slot* p_acc); static bool f_Emit__isDef(struct E_Mono__Inst* p_i); -static int64_t f_Emit__sig(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k); -static int64_t f_Emit__params(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Slot* p_slots, struct E_Emit__Sep* p_s); -static struct E_Emit__Env* f_Emit__paramEnv(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Emit__Name* p_acc); -static int64_t f_Emit__body(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k, struct E_El__Expr* p_e); -static struct E_Coll__List__K__Term* f_Emit__instTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__slotTys(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__exTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__exsTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__armsTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__stmtsTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Stmt* p_ss, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__closeEnums(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_todo, struct E_Coll__BTree__Coll__List_1_K__Term* p_seen, struct E_Coll__List__K__Term* p_out); -static struct E_Coll__Option__Ast__Enum* f_Coll__sLookup__Ast__Enum(srs_cap* p_r, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Ast__Enum* f_Coll__sFind__Ast__Enum(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s); +static int64_t f_Emit__sig(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k); +static int64_t f_Emit__params(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Slot* p_slots, struct E_Emit__Sep* p_s); +static struct E_Emit__Env* f_Emit__paramEnv(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Emit__Name* p_acc); +static int64_t f_Emit__body(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k, struct E_El__Expr* p_e); +static struct E_Coll__List__K__Term* f_Emit__instTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__slotTys(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__exTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__exsTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__armsTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__stmtsTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Stmt* p_ss, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__closeEnums(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_todo, struct E_Coll__BTree__Coll__List_1_K__Term* p_seen, struct E_Coll__List__K__Term* p_out); +static struct E_Coll__Option__Ast__Enum* f_Coll__sLookup__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Ast__Enum* f_Coll__sFind__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_d); static struct E_Coll__List__K__Term* f_Coll__bTGetOr__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_d); static struct E_Coll__List__K__Term* f_Coll__bValOr__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_n, int64_t p_k, struct E_Coll__List__K__Term* p_d); static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bFind__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bPushT__K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_K__Term* p_x); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bPushT__K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_K__Term* p_x); static bool f_Coll__bIsNode__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_n); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRep__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bIns__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2L__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2L__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b); -static struct E_Coll__Split__Coll__List_1_K__Term* f_Coll__bSplitIns__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2R__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2R__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3A__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3A__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3B__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3B__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3C__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3C__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__Split__Coll__List_1_K__Term* p_s); -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRootIns__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRep__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bIns__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2L__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2L__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b); +static struct E_Coll__Split__Coll__List_1_K__Term* f_Coll__bSplitIns__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2R__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2R__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3A__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3A__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3B__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3B__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3C__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3C__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__Split__Coll__List_1_K__Term* p_s); +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRootIns__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v); static bool f_Emit__inTerms(struct E_Coll__List__K__Term* p_ts, struct E_K__Term* p_t); -static struct E_Coll__List__K__Term* f_Emit__fieldTys(srs_cap* p_r, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_args, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__casesTys(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Emit__bindersTys(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__fieldTys(srs_cap* p_eff__Region, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_args, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__casesTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Emit__bindersTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); static int64_t f_Emit__fwds(srs_cap* p_eff__Console, struct E_Coll__List__K__Term* p_ts); static int64_t f_Emit__termName(srs_cap* p_eff__Console, struct E_K__Term* p_t); -static int64_t f_Emit__structs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts); -static int64_t f_Emit__statics(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts); -static int64_t f_Emit__withEnum(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t, struct E_Emit__Part* p_what); -static int64_t f_Emit__caseStructs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv); -static int64_t f_Emit__fieldDecls(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv); +static int64_t f_Emit__structs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts); +static int64_t f_Emit__statics(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts); +static int64_t f_Emit__withEnum(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t, struct E_Emit__Part* p_what); +static int64_t f_Emit__caseStructs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv); +static int64_t f_Emit__fieldDecls(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv); static int64_t f_Emit__nullaries(srs_cap* p_eff__Console, struct E_Sym__Sym* p_n, struct E_Coll__List__K__Term* p_args, struct E_Coll__List__Ast__Case* p_cs, int64_t p_i); -static int64_t f_Emit__externs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Fn* p_fs); -static struct E_Coll__List__Ty__Bind* f_Emit__ptrs(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ty__Bind* p_acc); -static struct E_Coll__Option__K__Term* f_Emit__externCast(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_gts); -static int64_t f_Emit__protos(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is); -static int64_t f_Emit__bodies(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is); -static int64_t f_Emit__handlers(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs, struct E_Emit__Part* p_what); -static int64_t f_Emit__implFns(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Kind* p_k, struct E_Coll__List__El__Fn* p_fs, struct E_Emit__Part* p_what); -static int64_t f_Emit__vtables(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs); +static int64_t f_Emit__externs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Fn* p_fs); +static struct E_Coll__List__Ty__Bind* f_Emit__ptrs(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ty__Bind* p_acc); +static struct E_Coll__Option__K__Term* f_Emit__externCast(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_gts); +static int64_t f_Emit__protos(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is); +static int64_t f_Emit__bodies(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is); +static int64_t f_Emit__handlers(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs, struct E_Emit__Part* p_what); +static int64_t f_Emit__implFns(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Kind* p_k, struct E_Coll__List__El__Fn* p_fs, struct E_Emit__Part* p_what); +static int64_t f_Emit__vtables(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs); static bool f_Emit__hasRow(struct E_Coll__List__El__Fn* p_fs); -static int64_t f_Emit__wrappers(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_hn, struct E_Coll__List__El__Fn* p_fs); +static int64_t f_Emit__wrappers(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_hn, struct E_Coll__List__El__Fn* p_fs); static struct E_Coll__List__Emit__Slot* f_Emit__opSlots(struct E_Coll__List__Emit__Slot* p_slots); static int64_t f_Emit__envCaps(srs_cap* p_eff__Console, int64_t p_i, int64_t p_n); static int64_t f_Emit__slotArgs(srs_cap* p_eff__Console, struct E_Coll__List__Emit__Slot* p_slots); static int64_t f_Emit__vtOps(srs_cap* p_eff__Console, srs_str p_pre, struct E_Sym__Sym* p_hn, struct E_Coll__List__Ast__Op* p_ops); -static int64_t f_Emit__allocFast(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx); -static bool f_Emit__hasMain(srs_cap* p_r, struct E_Emit__Cx* p_cx); -static int64_t f_Emit__program(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ty__Result* p_res); -static struct E_Emit__Kind* f_Emit__kindOf(srs_cap* p_r, struct E_Mono__Inst* p_i); +static int64_t f_Emit__allocFast(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx); +static bool f_Emit__hasMain(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx); +static int64_t f_Emit__program(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ty__Result* p_res); +static struct E_Emit__Kind* f_Emit__kindOf(srs_cap* p_eff__Region, struct E_Mono__Inst* p_i); static int64_t f_Ev__fuel(void); -static struct E_Ev__Cx* f_Ev__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp); -static struct E_Coll__SMap__Ast__Fn* f_Coll__sEmpty__Ast__Fn(srs_cap* p_r); -static struct E_Coll__SMap__I64* f_Coll__sEmpty__I64(srs_cap* p_r); -static struct E_Ev__Cx* f_Ev__cxDecls(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ev__Cx* p_cx); -static struct E_Coll__SMap__Ast__Fn* f_Coll__sInsert__Ast__Fn(srs_cap* p_r, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v); +static struct E_Ev__Cx* f_Ev__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp); +static struct E_Coll__SMap__Ast__Fn* f_Coll__sEmpty__Ast__Fn(srs_cap* p_eff__Region); +static struct E_Coll__SMap__I64* f_Coll__sEmpty__I64(srs_cap* p_eff__Region); +static struct E_Ev__Cx* f_Ev__cxDecls(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ev__Cx* p_cx); +static struct E_Coll__SMap__Ast__Fn* f_Coll__sInsert__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__sSet__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__sSet__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v); static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); -static struct E_Coll__SMap__I64* f_Ev__caseMap(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__I64* p_m); -static struct E_Coll__SMap__I64* f_Coll__sInsert__I64(srs_cap* p_r, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s, int64_t p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v); +static struct E_Coll__SMap__I64* f_Ev__caseMap(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__I64* p_m); +static struct E_Coll__SMap__I64* f_Coll__sInsert__I64(srs_cap* p_eff__Region, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s, int64_t p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__sSet__I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s, int64_t p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__sSet__I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s, int64_t p_v); static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v); static int64_t f_Coll__length__Ast__Binder(struct E_Coll__List__Ast__Binder* p_xs); static int64_t f_Coll__lengthFrom__Ast__Binder(struct E_Coll__List__Ast__Binder* p_xs, int64_t p_n); -static struct E_Coll__Option__Ev__V* f_Ev__get(srs_cap* p_r, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x); -static struct E_Coll__List__Ev__Bind* f_Ev__set(srs_cap* p_r, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x, struct E_Ev__V* p_v); -static struct E_Coll__List__Ev__Bind* f_Ev__drop(srs_cap* p_r, struct E_Coll__List__Ev__Bind* p_env, int64_t p_k); -static struct E_Ev__R* f_Ev__expr(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Ast__Expr* p_e); -static struct E_Ev__Rs* f_Ev__args(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ev__V* p_acc); -static struct E_Coll__List__Ev__V* f_Coll__rev__Ev__V(srs_cap* p_r, struct E_Coll__List__Ev__V* p_xs); -static struct E_Coll__List__Ev__V* f_Coll__revOnto__Ev__V(srs_cap* p_r, struct E_Coll__List__Ev__V* p_xs, struct E_Coll__List__Ev__V* p_acc); -static struct E_Ev__R* f_Ev__call(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ast__Expr* p_xs); -static struct E_Coll__Option__I64* f_Coll__sLookup__I64(srs_cap* p_r, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__I64* f_Coll__sFind__I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Ev__V* f_Ev__get(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x); +static struct E_Coll__List__Ev__Bind* f_Ev__set(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x, struct E_Ev__V* p_v); +static struct E_Coll__List__Ev__Bind* f_Ev__drop(struct E_Coll__List__Ev__Bind* p_env, int64_t p_k); +static struct E_Ev__R* f_Ev__expr(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Ast__Expr* p_e); +static struct E_Ev__Rs* f_Ev__args(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ev__V* p_acc); +static struct E_Coll__List__Ev__V* f_Coll__rev__Ev__V(srs_cap* p_eff__Region, struct E_Coll__List__Ev__V* p_xs); +static struct E_Coll__List__Ev__V* f_Coll__revOnto__Ev__V(srs_cap* p_eff__Region, struct E_Coll__List__Ev__V* p_xs, struct E_Coll__List__Ev__V* p_acc); +static struct E_Ev__R* f_Ev__call(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ast__Expr* p_xs); +static struct E_Coll__Option__I64* f_Coll__sLookup__I64(srs_cap* p_eff__Region, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__I64* f_Coll__sFind__I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_d); -static struct E_Coll__Option__Ast__Fn* f_Coll__sLookup__Ast__Fn(srs_cap* p_r, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Ast__Fn* f_Coll__sFind__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Ast__Fn* f_Coll__sLookup__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Ast__Fn* f_Coll__sFind__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_d); -static struct E_Ev__R* f_Ev__result(srs_cap* p_r, struct E_Ev__R* p_res, struct E_Coll__List__Ev__Bind* p_env); -static struct E_Coll__List__Ev__Bind* f_Ev__bindAll(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_acc); -static struct E_Ev__R* f_Ev__extern(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__str1(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__str2(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Pure__Prim* p_p, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__strEq(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__strAt(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__strSlice(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__V* p_more, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__bin(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_x); -static struct E_Ev__R* f_Ev__binV(srs_cap* p_r, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ev__V* p_a, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__binI(srs_cap* p_r, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); -static struct E_Ev__R* f_Ev__un(srs_cap* p_r, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Ev__V* p_v, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__result(srs_cap* p_eff__Region, struct E_Ev__R* p_res, struct E_Coll__List__Ev__Bind* p_env); +static struct E_Coll__List__Ev__Bind* f_Ev__bindAll(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_acc); +static struct E_Ev__R* f_Ev__extern(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__str1(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__str2(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Pure__Prim* p_p, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__strEq(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__strAt(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__strSlice(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__V* p_more, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__bin(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_x); +static struct E_Ev__R* f_Ev__binV(srs_cap* p_eff__Region, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ev__V* p_a, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__binI(srs_cap* p_eff__Region, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); +static struct E_Ev__R* f_Ev__un(srs_cap* p_eff__Region, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Ev__V* p_v, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel); static bool f_Ev__eq(struct E_Ev__V* p_a, struct E_Ev__V* p_b); static bool f_Ev__eqAll(struct E_Coll__List__Ev__V* p_xs, struct E_Coll__List__Ev__V* p_ys); -static struct E_Ev__R* f_Ev__arms(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ev__V* p_v, struct E_Coll__List__Ast__Arm* p_as); -static struct E_Coll__List__Ev__Bind* f_Ev__bindPat(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env); -static struct E_Ev__R* f_Ev__block(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_k); -static struct E_Ev__R* f_Ev__bindStmt(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_e, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, int64_t p_k); -static struct E_Ev__R* f_Ev__loop(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__Expr* p_c, struct E_Ast__Expr* p_b); -static struct E_Ev__Out* f_Ev__all(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp); -static struct E_Ev__Out* f_Ev__run(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ev__Line* p_acc); -static struct E_Coll__List__Ev__Line* f_Coll__rev__Ev__Line(srs_cap* p_r, struct E_Coll__List__Ev__Line* p_xs); -static struct E_Coll__List__Ev__Line* f_Coll__revOnto__Ev__Line(srs_cap* p_r, struct E_Coll__List__Ev__Line* p_xs, struct E_Coll__List__Ev__Line* p_acc); +static struct E_Ev__R* f_Ev__arms(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ev__V* p_v, struct E_Coll__List__Ast__Arm* p_as); +static struct E_Coll__List__Ev__Bind* f_Ev__bindPat(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env); +static struct E_Ev__R* f_Ev__block(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_k); +static struct E_Ev__R* f_Ev__bindStmt(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_e, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, int64_t p_k); +static struct E_Ev__R* f_Ev__loop(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__Expr* p_c, struct E_Ast__Expr* p_b); +static struct E_Ev__Out* f_Ev__all(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp); +static struct E_Ev__Out* f_Ev__run(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ev__Line* p_acc); +static struct E_Coll__List__Ev__Line* f_Coll__rev__Ev__Line(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Line* p_xs); +static struct E_Coll__List__Ev__Line* f_Coll__revOnto__Ev__Line(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Line* p_xs, struct E_Coll__List__Ev__Line* p_acc); static int64_t f_Coll__length__Ast__Group(struct E_Coll__List__Ast__Group* p_xs); static int64_t f_Coll__lengthFrom__Ast__Group(struct E_Coll__List__Ast__Group* p_xs, int64_t p_n); static int64_t f_Ev__show(srs_cap* p_eff__Console, struct E_Ev__V* p_v); static int64_t f_Ev__showRest(srs_cap* p_eff__Console, struct E_Coll__List__Ev__V* p_fs); -static struct E_Sym__Sym* f_Fx__relSym(srs_cap* p_r, struct E_Fx__Rel* p_rel); -static struct E_D__Arg* f_Fx__v(srs_cap* p_r, int64_t p_n); -static struct E_D__Arg* f_Fx__c(srs_cap* p_r, int64_t p_n); -static struct E_D__Atom* f_Fx__at(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs); -static struct E_D__Lit* f_Fx__p(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs); -static struct E_D__Lit* f_Fx__n(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs); -static struct E_Coll__List__D__Arg* f_Fx__vs(srs_cap* p_r, struct E_Coll__List__I64* p_xs); -static struct E_D__Rule* f_Fx__rule(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__I64* p_hs, struct E_Coll__List__D__Lit* p_body); -static struct E_Coll__List__D__Rule* f_Fx__rules(srs_cap* p_r); -static struct E_Coll__List__I64* f_Fx__l5__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e); -static struct E_Coll__List__D__Lit* f_Fx__l4__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d); -static struct E_Coll__List__D__Arg* f_Fx__l4__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c, struct E_D__Arg* p_d); -static struct E_Coll__List__D__Arg* f_Fx__l3__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c); -static struct E_Coll__List__D__Arg* f_Fx__l2__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b); -static struct E_Coll__List__D__Arg* f_Fx__l1__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a); -static struct E_Coll__List__D__Lit* f_Fx__l1__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a); -static struct E_Coll__List__D__Lit* f_Fx__l3__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c); -static struct E_Coll__List__I64* f_Fx__l4__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d); -static struct E_Coll__List__D__Lit* f_Fx__l2__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b); -static struct E_Coll__List__I64* f_Fx__l3__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c); -static struct E_Coll__List__I64* f_Fx__l2__I64(srs_cap* p_r, int64_t p_a, int64_t p_b); -static struct E_Coll__List__I64* f_Fx__l1__I64(srs_cap* p_r, int64_t p_a); -static struct E_Coll__List__D__Rule* f_Fx__l5__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d, struct E_D__Rule* p_e); -static struct E_Coll__List__D__Rule* f_Fx__l4__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d); -static struct E_Coll__List__D__Rule* f_Fx__l3__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c); -static struct E_Coll__List__D__Rule* f_Fx__l2__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b); -static struct E_Coll__List__D__Rule* f_Fx__l1__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a); -static struct E_Coll__List__D__Rule* f_Coll__revOnto__D__Rule(srs_cap* p_r, struct E_Coll__List__D__Rule* p_xs, struct E_Coll__List__D__Rule* p_acc); -static struct E_Coll__List__D__Rule* f_Coll__rev__D__Rule(srs_cap* p_r, struct E_Coll__List__D__Rule* p_xs); -static struct E_D__Val* f_Fx__s(srs_cap* p_r, struct E_Sym__Sym* p_x); -static struct E_D__Val* f_Fx__i(srs_cap* p_r, int64_t p_n); -static struct E_D__Fact* f_Fx__fact(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Val* p_vs); -static struct E_Fx__St* f_Fx__add(srs_cap* p_r, struct E_Fx__St* p_st, struct E_D__Fact* p_f); +static struct E_Sym__Sym* f_Fx__relSym(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel); +static struct E_D__Arg* f_Fx__v(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Arg* f_Fx__c(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Atom* f_Fx__at(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs); +static struct E_D__Lit* f_Fx__p(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs); +static struct E_D__Lit* f_Fx__n(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs); +static struct E_Coll__List__D__Arg* f_Fx__vs(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs); +static struct E_D__Rule* f_Fx__rule(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__I64* p_hs, struct E_Coll__List__D__Lit* p_body); +static struct E_Coll__List__D__Rule* f_Fx__rules(srs_cap* p_eff__Region); +static struct E_Coll__List__I64* f_Fx__l5__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e); +static struct E_Coll__List__D__Lit* f_Fx__l4__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d); +static struct E_Coll__List__D__Arg* f_Fx__l4__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c, struct E_D__Arg* p_d); +static struct E_Coll__List__D__Arg* f_Fx__l3__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c); +static struct E_Coll__List__D__Arg* f_Fx__l2__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b); +static struct E_Coll__List__D__Arg* f_Fx__l1__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a); +static struct E_Coll__List__D__Lit* f_Fx__l1__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a); +static struct E_Coll__List__D__Lit* f_Fx__l3__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c); +static struct E_Coll__List__I64* f_Fx__l4__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d); +static struct E_Coll__List__D__Lit* f_Fx__l2__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b); +static struct E_Coll__List__I64* f_Fx__l3__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c); +static struct E_Coll__List__I64* f_Fx__l2__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b); +static struct E_Coll__List__I64* f_Fx__l1__I64(srs_cap* p_eff__Region, int64_t p_a); +static struct E_Coll__List__D__Rule* f_Fx__l5__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d, struct E_D__Rule* p_e); +static struct E_Coll__List__D__Rule* f_Fx__l4__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d); +static struct E_Coll__List__D__Rule* f_Fx__l3__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c); +static struct E_Coll__List__D__Rule* f_Fx__l2__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b); +static struct E_Coll__List__D__Rule* f_Fx__l1__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a); +static struct E_Coll__List__D__Rule* f_Coll__revOnto__D__Rule(srs_cap* p_eff__Region, struct E_Coll__List__D__Rule* p_xs, struct E_Coll__List__D__Rule* p_acc); +static struct E_Coll__List__D__Rule* f_Coll__rev__D__Rule(srs_cap* p_eff__Region, struct E_Coll__List__D__Rule* p_xs); +static struct E_D__Val* f_Fx__s(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x); +static struct E_D__Val* f_Fx__i(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Fact* f_Fx__fact(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Val* p_vs); +static struct E_Fx__St* f_Fx__add(srs_cap* p_eff__Region, struct E_Fx__St* p_st, struct E_D__Fact* p_f); static int64_t f_Fx__fresh(struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__bump(srs_cap* p_r, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__bump(srs_cap* p_eff__Region, struct E_Fx__St* p_st); static bool f_Fx__isConst(struct E_Sym__Sym* p_x); -static struct E_Fx__St* f_Fx__sameNs(srs_cap* p_r, int64_t p_n, struct E_Fx__St* p_st); -static struct E_Coll__List__D__Val* f_Fx__l2__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b); -static struct E_Coll__List__D__Val* f_Fx__l1__D__Val(srs_cap* p_r, struct E_D__Val* p_a); -static struct E_Coll__List__D__Fact* f_Fx__facts(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Fx__St* f_Fx__decls(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__proto(srs_cap* p_r, struct E_Ast__Proto* p_p, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__statesF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__opsF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__ruleDefs(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Fx__St* p_st); -static struct E_Coll__List__D__Val* f_Fx__l4__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d); -static struct E_Coll__List__D__Val* f_Fx__l3__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c); +static struct E_Fx__St* f_Fx__sameNs(srs_cap* p_eff__Region, int64_t p_n, struct E_Fx__St* p_st); +static struct E_Coll__List__D__Val* f_Fx__l2__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b); +static struct E_Coll__List__D__Val* f_Fx__l1__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a); +static struct E_Coll__List__D__Fact* f_Fx__facts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Fx__St* f_Fx__decls(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__proto(srs_cap* p_eff__Region, struct E_Ast__Proto* p_p, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__statesF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__opsF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__ruleDefs(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Fx__St* p_st); +static struct E_Coll__List__D__Val* f_Fx__l4__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d); +static struct E_Coll__List__D__Val* f_Fx__l3__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c); static bool f_Fx__builtinRel(struct E_Sym__Sym* p_n); -static struct E_Fx__St* f_Fx__params(srs_cap* p_r, int64_t p_rid, int64_t p_line, struct E_Coll__List__Sym__Sym* p_xs, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__bodyAtoms(srs_cap* p_r, struct E_Sym__Sym* p_p, int64_t p_rid, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__bodyRel(srs_cap* p_r, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Sym__Sym* p_rel, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__bodyNames(srs_cap* p_r, int64_t p_rid, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__ruleNext(srs_cap* p_r, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st); -static struct E_Coll__Option__Sym__Sym* f_Fx__nth(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i); -static struct E_Fx__St* f_Fx__fn(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Ast__Fn* p_f, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__caps(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Binder* p_bs, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__groups(srs_cap* p_r, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Group* p_gs, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__atoms(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st); -static struct E_Fx__St* f_Fx__atom(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Ast__Atom* p_a, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__params(srs_cap* p_eff__Region, int64_t p_rid, int64_t p_line, struct E_Coll__List__Sym__Sym* p_xs, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__bodyAtoms(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, int64_t p_rid, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__bodyRel(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Sym__Sym* p_rel, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__bodyNames(srs_cap* p_eff__Region, int64_t p_rid, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__ruleNext(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st); +static struct E_Coll__Option__Sym__Sym* f_Fx__nth(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i); +static struct E_Fx__St* f_Fx__fn(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Ast__Fn* p_f, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__caps(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Binder* p_bs, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__groups(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Group* p_gs, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__atoms(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st); +static struct E_Fx__St* f_Fx__atom(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Ast__Atom* p_a, struct E_Fx__St* p_st); static int64_t f_Coll__length__Ast__Term(struct E_Coll__List__Ast__Term* p_xs); static int64_t f_Coll__lengthFrom__Ast__Term(struct E_Coll__List__Ast__Term* p_xs, int64_t p_n); -static struct E_Fx__St* f_Fx__atAtom(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st); -static struct E_Coll__List__D__Val* f_Fx__l5__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e); -static struct E_Fx__St* f_Fx__varsFrom(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i, struct E_Coll__Option__I64* p_op, struct E_Fx__St* p_st); -static struct E_Fx__Verdict* f_Fx__check(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__List__Fx__Rel* f_Fx__kinds(srs_cap* p_r); -static struct E_Coll__List__Fx__Rel* f_Fx__l5__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d, struct E_Fx__Rel* p_e); -static struct E_Coll__List__Fx__Rel* f_Fx__l4__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d); -static struct E_Coll__List__Fx__Rel* f_Fx__l3__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c); -static struct E_Coll__List__Fx__Rel* f_Fx__l2__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b); -static struct E_Coll__List__Fx__Rel* f_Fx__l1__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a); -static struct E_Coll__List__Fx__Rel* f_Coll__revOnto__Fx__Rel(srs_cap* p_r, struct E_Coll__List__Fx__Rel* p_xs, struct E_Coll__List__Fx__Rel* p_acc); -static struct E_Coll__List__Fx__Rel* f_Coll__rev__Fx__Rel(srs_cap* p_r, struct E_Coll__List__Fx__Rel* p_xs); -static struct E_Fx__Verdict* f_Fx__readAll(srs_cap* p_r, struct E_D__Model* p_m, struct E_Coll__List__Fx__Rel* p_ks, struct E_Coll__List__Fx__Clash* p_acc); -static struct E_Coll__List__Fx__Clash* f_Coll__rev__Fx__Clash(srs_cap* p_r, struct E_Coll__List__Fx__Clash* p_xs); -static struct E_Coll__List__Fx__Clash* f_Coll__revOnto__Fx__Clash(srs_cap* p_r, struct E_Coll__List__Fx__Clash* p_xs, struct E_Coll__List__Fx__Clash* p_acc); -static struct E_Coll__Option__Coll__List_1_Fx__Clash* f_Fx__rows(srs_cap* p_r, struct E_Fx__Rel* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Fx__Clash* p_acc); -static struct E_Coll__Option__Fx__Clash* f_Fx__make(srs_cap* p_r, struct E_Fx__Rel* p_k, int64_t p_line, struct E_Sym__Sym* p_n); -static struct E_Coll__Option__I64* f_Fx__opPos(srs_cap* p_r, struct E_Sym__Sym* p_rel); +static struct E_Fx__St* f_Fx__atAtom(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st); +static struct E_Coll__List__D__Val* f_Fx__l5__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e); +static struct E_Fx__St* f_Fx__varsFrom(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i, struct E_Coll__Option__I64* p_op, struct E_Fx__St* p_st); +static struct E_Fx__Verdict* f_Fx__check(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__List__Fx__Rel* f_Fx__kinds(srs_cap* p_eff__Region); +static struct E_Coll__List__Fx__Rel* f_Fx__l5__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d, struct E_Fx__Rel* p_e); +static struct E_Coll__List__Fx__Rel* f_Fx__l4__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d); +static struct E_Coll__List__Fx__Rel* f_Fx__l3__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c); +static struct E_Coll__List__Fx__Rel* f_Fx__l2__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b); +static struct E_Coll__List__Fx__Rel* f_Fx__l1__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a); +static struct E_Coll__List__Fx__Rel* f_Coll__revOnto__Fx__Rel(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Rel* p_xs, struct E_Coll__List__Fx__Rel* p_acc); +static struct E_Coll__List__Fx__Rel* f_Coll__rev__Fx__Rel(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Rel* p_xs); +static struct E_Fx__Verdict* f_Fx__readAll(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Coll__List__Fx__Rel* p_ks, struct E_Coll__List__Fx__Clash* p_acc); +static struct E_Coll__List__Fx__Clash* f_Coll__rev__Fx__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Clash* p_xs); +static struct E_Coll__List__Fx__Clash* f_Coll__revOnto__Fx__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Clash* p_xs, struct E_Coll__List__Fx__Clash* p_acc); +static struct E_Coll__Option__Coll__List_1_Fx__Clash* f_Fx__rows(srs_cap* p_eff__Region, struct E_Fx__Rel* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Fx__Clash* p_acc); +static struct E_Coll__Option__Fx__Clash* f_Fx__make(srs_cap* p_eff__Region, struct E_Fx__Rel* p_k, int64_t p_line, struct E_Sym__Sym* p_n); +static struct E_Coll__Option__I64* f_Fx__opPos(srs_cap* p_eff__Region, struct E_Sym__Sym* p_rel); static bool f_Fx__isPos(struct E_Coll__Option__I64* p_op, int64_t p_i); static struct E_Coll__List__Ast__Handler* f_Flow__cxHs(struct E_Flow__Cx* p_cx); -static struct E_Sym__Sym* f_Flow__relSym(srs_cap* p_r, struct E_Flow__Rel* p_x); +static struct E_Sym__Sym* f_Flow__relSym(srs_cap* p_eff__Region, struct E_Flow__Rel* p_x); static struct E_Flow__Rel* f_Flow__relOf(struct E_Flow__Kind* p_k); -static struct E_D__Val* f_Flow__i(srs_cap* p_r, int64_t p_n); -static struct E_D__Val* f_Flow__s(srs_cap* p_r, struct E_Sym__Sym* p_x); -static struct E_D__Fact* f_Flow__fact1(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a); -static struct E_D__Fact* f_Flow__fact2(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b); -static struct E_D__Fact* f_Flow__fact4(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d); -static struct E_D__Fact* f_Flow__fFlow(srs_cap* p_r, int64_t p_p, int64_t p_q); -static struct E_D__Fact* f_Flow__fStep(srs_cap* p_r, int64_t p_p, int64_t p_q, int64_t p_cap, struct E_Sym__Sym* p_op); -static struct E_D__Fact* f_Flow__fLine(srs_cap* p_r, int64_t p_p, int64_t p_line); -static struct E_D__Fact* f_Flow__fMerge(srs_cap* p_r, int64_t p_m); -static struct E_D__Fact* f_Flow__fClose(srs_cap* p_r, int64_t p_e, int64_t p_cap); -static struct E_D__Fact* f_Flow__fCapOf(srs_cap* p_r, int64_t p_cap, struct E_Sym__Sym* p_proto); -static struct E_D__Fact* f_Flow__fCapName(srs_cap* p_r, int64_t p_cap, struct E_Sym__Sym* p_name); -static struct E_D__Fact* f_Flow__fCapLine(srs_cap* p_r, int64_t p_cap, int64_t p_line); -static struct E_D__Fact* f_Flow__fHandle(srs_cap* p_r, int64_t p_p, int64_t p_cap); -static struct E_D__Fact* f_Flow__fTr(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); -static struct E_D__Fact* f_Flow__fStart(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Flow__fSame(srs_cap* p_r, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); -static struct E_D__Fact* f_Flow__fEndOk(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Flow__fWorld(srs_cap* p_r, int64_t p_w); -static struct E_D__Fact* f_Flow__fact3(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c); -static struct E_D__Fact* f_Flow__fCStep(srs_cap* p_r, int64_t p_p, int64_t p_q); -static struct E_D__Fact* f_Flow__fCallee(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_f); -static struct E_D__Fact* f_Flow__fBind(srs_cap* p_r, int64_t p_p, int64_t p_m, int64_t p_cap); -static struct E_D__Fact* f_Flow__fFirst(srs_cap* p_r, int64_t p_p, int64_t p_m); -static struct E_D__Fact* f_Flow__fNext(srs_cap* p_r, int64_t p_p, int64_t p_m, int64_t p_n); -static struct E_D__Fact* f_Flow__fLast(srs_cap* p_r, int64_t p_p, int64_t p_m); -static struct E_D__Fact* f_Flow__fPre(srs_cap* p_r, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Flow__fPost(srs_cap* p_r, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Flow__fSameI(srs_cap* p_r, int64_t p_j); -static struct E_D__Fact* f_Flow__fEnter(srs_cap* p_r, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Flow__fWant(srs_cap* p_r, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Flow__fNoSol(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_f); -static struct E_D__Fact* f_Flow__fReadAt(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_line); -static struct E_D__Fact* f_Flow__fAssign(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_cap); -static struct E_D__Fact* f_Flow__fAssignFrom(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_y); -static struct E_D__Fact* f_Flow__fAssigns(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x); -static struct E_D__Fact* f_Flow__fEscCap(srs_cap* p_r, int64_t p_e, int64_t p_cap, int64_t p_line); -static struct E_D__Fact* f_Flow__fEscVar(srs_cap* p_r, int64_t p_e, struct E_Sym__Sym* p_y, int64_t p_line); -static struct E_D__Fact* f_Flow__fFin(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s); -static struct E_Flow__St* f_Flow__add(srs_cap* p_r, struct E_Flow__St* p_st, struct E_D__Fact* p_f); -static struct E_Flow__At* f_Flow__fresh(srs_cap* p_r, struct E_Flow__St* p_st); -static struct E_Flow__St* f_Flow__edge(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, int64_t p_q); -static struct E_Flow__At* f_Flow__next(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p); -static struct E_Coll__Option__Flow__Cap* f_Flow__capNamed(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_x); -static struct E_Coll__Option__Sym__Sym* f_Flow__protoOf(srs_cap* p_r, struct E_Coll__List__Ast__Handler* p_hs, struct E_Sym__Sym* p_h); -static struct E_Flow__At* f_Flow__expr(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Expr* p_e); -static struct E_Flow__St* f_Flow__arms(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_ps, int64_t p_m, struct E_Coll__List__Flow__Src* p_sv, struct E_Coll__List__Ast__Arm* p_arms); -static struct E_Coll__List__Sym__Sym* f_Flow__patBinds(srs_cap* p_r, struct E_Ast__Pat* p_p); -static struct E_Coll__List__Flow__Src* f_Flow__srcs(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Ast__Expr* p_e, struct E_Coll__List__Flow__Src* p_acc); -static struct E_Coll__List__Flow__Src* f_Flow__srcsAll(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Flow__Src* p_acc); -static struct E_Coll__List__Flow__Src* f_Flow__srcsArms(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Arm* p_arms, struct E_Coll__List__Flow__Src* p_acc); +static struct E_D__Val* f_Flow__i(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Val* f_Flow__s(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x); +static struct E_D__Fact* f_Flow__fact1(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a); +static struct E_D__Fact* f_Flow__fact2(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b); +static struct E_D__Fact* f_Flow__fact4(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d); +static struct E_D__Fact* f_Flow__fFlow(srs_cap* p_eff__Region, int64_t p_p, int64_t p_q); +static struct E_D__Fact* f_Flow__fStep(srs_cap* p_eff__Region, int64_t p_p, int64_t p_q, int64_t p_cap, struct E_Sym__Sym* p_op); +static struct E_D__Fact* f_Flow__fLine(srs_cap* p_eff__Region, int64_t p_p, int64_t p_line); +static struct E_D__Fact* f_Flow__fMerge(srs_cap* p_eff__Region, int64_t p_m); +static struct E_D__Fact* f_Flow__fClose(srs_cap* p_eff__Region, int64_t p_e, int64_t p_cap); +static struct E_D__Fact* f_Flow__fCapOf(srs_cap* p_eff__Region, int64_t p_cap, struct E_Sym__Sym* p_proto); +static struct E_D__Fact* f_Flow__fCapName(srs_cap* p_eff__Region, int64_t p_cap, struct E_Sym__Sym* p_name); +static struct E_D__Fact* f_Flow__fCapLine(srs_cap* p_eff__Region, int64_t p_cap, int64_t p_line); +static struct E_D__Fact* f_Flow__fHandle(srs_cap* p_eff__Region, int64_t p_p, int64_t p_cap); +static struct E_D__Fact* f_Flow__fTr(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); +static struct E_D__Fact* f_Flow__fStart(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Flow__fSame(srs_cap* p_eff__Region, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); +static struct E_D__Fact* f_Flow__fEndOk(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Flow__fWorld(srs_cap* p_eff__Region, int64_t p_w); +static struct E_D__Fact* f_Flow__fact3(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c); +static struct E_D__Fact* f_Flow__fCStep(srs_cap* p_eff__Region, int64_t p_p, int64_t p_q); +static struct E_D__Fact* f_Flow__fCallee(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_f); +static struct E_D__Fact* f_Flow__fBind(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m, int64_t p_cap); +static struct E_D__Fact* f_Flow__fFirst(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m); +static struct E_D__Fact* f_Flow__fNext(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m, int64_t p_n); +static struct E_D__Fact* f_Flow__fLast(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m); +static struct E_D__Fact* f_Flow__fPre(srs_cap* p_eff__Region, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Flow__fPost(srs_cap* p_eff__Region, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Flow__fSameI(srs_cap* p_eff__Region, int64_t p_j); +static struct E_D__Fact* f_Flow__fEnter(srs_cap* p_eff__Region, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Flow__fWant(srs_cap* p_eff__Region, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Flow__fNoSol(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_f); +static struct E_D__Fact* f_Flow__fReadAt(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_line); +static struct E_D__Fact* f_Flow__fAssign(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_cap); +static struct E_D__Fact* f_Flow__fAssignFrom(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_y); +static struct E_D__Fact* f_Flow__fAssigns(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x); +static struct E_D__Fact* f_Flow__fEscCap(srs_cap* p_eff__Region, int64_t p_e, int64_t p_cap, int64_t p_line); +static struct E_D__Fact* f_Flow__fEscVar(srs_cap* p_eff__Region, int64_t p_e, struct E_Sym__Sym* p_y, int64_t p_line); +static struct E_D__Fact* f_Flow__fFin(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s); +static struct E_Flow__St* f_Flow__add(srs_cap* p_eff__Region, struct E_Flow__St* p_st, struct E_D__Fact* p_f); +static struct E_Flow__At* f_Flow__fresh(srs_cap* p_eff__Region, struct E_Flow__St* p_st); +static struct E_Flow__St* f_Flow__edge(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, int64_t p_q); +static struct E_Flow__At* f_Flow__next(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p); +static struct E_Coll__Option__Flow__Cap* f_Flow__capNamed(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_x); +static struct E_Coll__Option__Sym__Sym* f_Flow__protoOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Handler* p_hs, struct E_Sym__Sym* p_h); +static struct E_Flow__At* f_Flow__expr(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Expr* p_e); +static struct E_Flow__St* f_Flow__arms(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_ps, int64_t p_m, struct E_Coll__List__Flow__Src* p_sv, struct E_Coll__List__Ast__Arm* p_arms); +static struct E_Coll__List__Sym__Sym* f_Flow__patBinds(struct E_Ast__Pat* p_p); +static struct E_Coll__List__Flow__Src* f_Flow__srcs(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Ast__Expr* p_e, struct E_Coll__List__Flow__Src* p_acc); +static struct E_Coll__List__Flow__Src* f_Flow__srcsAll(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Flow__Src* p_acc); +static struct E_Coll__List__Flow__Src* f_Flow__srcsArms(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Arm* p_arms, struct E_Coll__List__Flow__Src* p_acc); static bool f_Flow__isEnumName(struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_n); -static struct E_Coll__List__Flow__CapB* f_Flow__regionBs(srs_cap* p_r, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__CapB* p_acc); -static struct E_Coll__List__Flow__CapB* f_Coll__rev__Flow__CapB(srs_cap* p_r, struct E_Coll__List__Flow__CapB* p_xs); -static struct E_Coll__List__Flow__CapB* f_Coll__revOnto__Flow__CapB(srs_cap* p_r, struct E_Coll__List__Flow__CapB* p_xs, struct E_Coll__List__Flow__CapB* p_acc); -static struct E_Coll__List__Flow__Src* f_Flow__regionSrcs(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Src* p_acc); -static struct E_Flow__At* f_Flow__bindVal(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_v); -static struct E_Flow__At* f_Flow__assignAll(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv); -static struct E_Flow__St* f_Flow__assignFacts(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_a, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv); -static struct E_Flow__St* f_Flow__srcFacts(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_a, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__Src* p_sv); -static struct E_Flow__At* f_Flow__exprs(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Expr* p_xs); -static struct E_Flow__St* f_Flow__merge(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_m, int64_t p_line); -static struct E_Flow__At* f_Flow__step(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, struct E_Flow__Cap* p_c, struct E_Sym__Sym* p_op, int64_t p_line); -static struct E_Flow__At* f_Flow__alloc(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, int64_t p_line); -static struct E_Flow__At* f_Flow__request(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__Option__Eff__Req* p_q, int64_t p_line); -static struct E_Coll__List__Flow__Src* f_Flow__inRegion(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Flow__Src* p_acc); -static struct E_Coll__Option__Flow__Cap* f_Flow__innermost(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto); -static bool f_Flow__isCtor(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f); +static struct E_Coll__List__Flow__CapB* f_Flow__regionBs(srs_cap* p_eff__Region, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__CapB* p_acc); +static struct E_Coll__List__Flow__CapB* f_Coll__rev__Flow__CapB(srs_cap* p_eff__Region, struct E_Coll__List__Flow__CapB* p_xs); +static struct E_Coll__List__Flow__CapB* f_Coll__revOnto__Flow__CapB(srs_cap* p_eff__Region, struct E_Coll__List__Flow__CapB* p_xs, struct E_Coll__List__Flow__CapB* p_acc); +static struct E_Coll__List__Flow__Src* f_Flow__regionSrcs(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Src* p_acc); +static struct E_Flow__At* f_Flow__bindVal(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_v); +static struct E_Flow__At* f_Flow__assignAll(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv); +static struct E_Flow__St* f_Flow__assignFacts(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_a, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv); +static struct E_Flow__St* f_Flow__srcFacts(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_a, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__Src* p_sv); +static struct E_Flow__At* f_Flow__exprs(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Expr* p_xs); +static struct E_Flow__St* f_Flow__merge(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_m, int64_t p_line); +static struct E_Flow__At* f_Flow__step(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, struct E_Flow__Cap* p_c, struct E_Sym__Sym* p_op, int64_t p_line); +static struct E_Flow__At* f_Flow__alloc(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, int64_t p_line); +static struct E_Flow__At* f_Flow__request(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__Option__Eff__Req* p_q, int64_t p_line); +static struct E_Coll__List__Flow__Src* f_Flow__inRegion(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Flow__Src* p_acc); +static struct E_Coll__Option__Flow__Cap* f_Flow__innermost(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto); +static bool f_Flow__isCtor(struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f); static bool f_Flow__caseIn(struct E_Coll__List__Ast__Case* p_cases, struct E_Sym__Sym* p_f); -static struct E_Coll__Option__Ast__Fn* f_Flow__fnNamed(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fns, struct E_Sym__Sym* p_f); -static struct E_Coll__Option__Ast__Proto* f_Flow__protoNamed(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_n); -static struct E_Coll__List__Flow__CapB* f_Flow__capBs(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc); -static struct E_Coll__List__Flow__CapB* f_Flow__capBsOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_bs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc); -static struct E_Coll__List__Ast__Atom* f_Flow__entryAtoms(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Atom* p_acc); -static struct E_Coll__List__Ast__Atom* f_Coll__revOnto__Ast__Atom(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_xs, struct E_Coll__List__Ast__Atom* p_acc); -static struct E_Coll__List__Ast__Atom* f_Coll__rev__Ast__Atom(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_xs); -static struct E_Coll__Option__Flow__Cap* f_Flow__capFor(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Flow__CapB* p_b); -static struct E_Coll__Option__Flow__Cap* f_Flow__capOfProto(srs_cap* p_r, struct E_Coll__Option__Flow__Cap* p_c, struct E_Sym__Sym* p_proto); -static struct E_Coll__Option__Sym__Sym* f_Flow__nthSym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i); -static struct E_Coll__Option__Flow__Cap* f_Flow__onlyCap(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto, struct E_Coll__Option__Flow__Cap* p_found); -static struct E_Coll__Option__Coll__List_1_Flow__Cap* f_Flow__capsFor(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Cap* p_acc); -static struct E_Coll__List__Flow__Cap* f_Coll__rev__Flow__Cap(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_xs); -static struct E_Coll__List__Flow__Cap* f_Coll__revOnto__Flow__Cap(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_xs, struct E_Coll__List__Flow__Cap* p_acc); -static struct E_Flow__At* f_Flow__call(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Fn* p_g, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_line); -static struct E_Flow__St* f_Flow__binds(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__Cap* p_caps, int64_t p_i); +static struct E_Coll__Option__Ast__Fn* f_Flow__fnNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fns, struct E_Sym__Sym* p_f); +static struct E_Coll__Option__Ast__Proto* f_Flow__protoNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_n); +static struct E_Coll__List__Flow__CapB* f_Flow__capBs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc); +static struct E_Coll__List__Flow__CapB* f_Flow__capBsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_bs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc); +static struct E_Coll__List__Ast__Atom* f_Flow__entryAtoms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Atom* p_acc); +static struct E_Coll__List__Ast__Atom* f_Coll__revOnto__Ast__Atom(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_xs, struct E_Coll__List__Ast__Atom* p_acc); +static struct E_Coll__List__Ast__Atom* f_Coll__rev__Ast__Atom(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_xs); +static struct E_Coll__Option__Flow__Cap* f_Flow__capFor(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Flow__CapB* p_b); +static struct E_Coll__Option__Flow__Cap* f_Flow__capOfProto(struct E_Coll__Option__Flow__Cap* p_c, struct E_Sym__Sym* p_proto); +static struct E_Coll__Option__Sym__Sym* f_Flow__nthSym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i); +static struct E_Coll__Option__Flow__Cap* f_Flow__onlyCap(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto, struct E_Coll__Option__Flow__Cap* p_found); +static struct E_Coll__Option__Coll__List_1_Flow__Cap* f_Flow__capsFor(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Cap* p_acc); +static struct E_Coll__List__Flow__Cap* f_Coll__rev__Flow__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_xs); +static struct E_Coll__List__Flow__Cap* f_Coll__revOnto__Flow__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_xs, struct E_Coll__List__Flow__Cap* p_acc); +static struct E_Flow__At* f_Flow__call(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Fn* p_g, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_line); +static struct E_Flow__St* f_Flow__binds(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__Cap* p_caps, int64_t p_i); static bool f_Flow__isVar(struct E_Sym__Sym* p_x); -static struct E_Coll__List__Ast__Term* f_Flow__statePos(srs_cap* p_r, struct E_Ast__Atom* p_a); -static struct E_Coll__List__Ast__Term* f_Flow__dropOne(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs); -static struct E_Coll__List__Ast__Term* f_Flow__firstLast(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs); -static struct E_Coll__Option__Sym__Sym* f_Flow__termSym(srs_cap* p_r, struct E_Ast__Term* p_t); -static struct E_Coll__List__Sym__Sym* f_Flow__varsOf(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Coll__rev__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs); -static struct E_Coll__List__Sym__Sym* f_Flow__varsIn(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assigns(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vars, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc); -static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assignEach(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_rest, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Sym__Sym* p_ss, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc); -static struct E_Coll__List__Sym__Sym* f_Flow__statesOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Flow__addNew(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Ast__Term* f_Flow__statePos(srs_cap* p_eff__Region, struct E_Ast__Atom* p_a); +static struct E_Coll__List__Ast__Term* f_Flow__dropOne(struct E_Coll__List__Ast__Term* p_xs); +static struct E_Coll__List__Ast__Term* f_Flow__firstLast(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_xs); +static struct E_Coll__Option__Sym__Sym* f_Flow__termSym(srs_cap* p_eff__Region, struct E_Ast__Term* p_t); +static struct E_Coll__List__Sym__Sym* f_Flow__varsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Coll__rev__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs); +static struct E_Coll__List__Sym__Sym* f_Flow__varsIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assigns(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vars, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc); +static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assignEach(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_rest, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Sym__Sym* p_ss, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc); +static struct E_Coll__List__Sym__Sym* f_Flow__statesOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Flow__addNew(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); static struct E_Sym__Sym* f_Flow__resolve(struct E_Coll__List__Flow__VS* p_a, struct E_Sym__Sym* p_x); -static bool f_Flow__atomsHold(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Flow__VS* p_a); -static struct E_Coll__List__D__Val* f_Flow__tupleOf(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__D__Val* p_acc); -static bool f_Flow__ruleHolds(srs_cap* p_r, struct E_Coll__List__Flow__PM* p_ms, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t); +static bool f_Flow__atomsHold(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Flow__VS* p_a); +static struct E_Coll__List__D__Val* f_Flow__tupleOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__D__Val* p_acc); +static bool f_Flow__ruleHolds(srs_cap* p_eff__Region, struct E_Coll__List__Flow__PM* p_ms, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t); static bool f_Flow__inTuples(struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__List__Flow__PM* f_Flow__ruleModels(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__PM* p_acc); -static struct E_Coll__List__D__Fact* f_Flow__nextFacts(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Flow__nextOf(srs_cap* p_r, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Rule* f_Flow__ruleDefs(srs_cap* p_r, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Coll__List__D__Rule* p_acc); -static struct E_D__Arg* f_Flow__argOf(srs_cap* p_r, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_vs); -static struct E_Coll__Option__I64* f_Flow__indexSym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i); -static struct E_Coll__List__D__Arg* f_Flow__argsOfNames(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc); -static struct E_Coll__List__D__Arg* f_Coll__rev__D__Arg(srs_cap* p_r, struct E_Coll__List__D__Arg* p_xs); -static struct E_Coll__List__D__Arg* f_Coll__revOnto__D__Arg(srs_cap* p_r, struct E_Coll__List__D__Arg* p_xs, struct E_Coll__List__D__Arg* p_acc); -static struct E_Coll__List__D__Lit* f_Flow__bodyLits(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Lit* p_acc); -static struct E_Coll__List__D__Lit* f_Coll__rev__D__Lit(srs_cap* p_r, struct E_Coll__List__D__Lit* p_xs); -static struct E_Coll__List__D__Lit* f_Coll__revOnto__D__Lit(srs_cap* p_r, struct E_Coll__List__D__Lit* p_xs, struct E_Coll__List__D__Lit* p_acc); -static struct E_Coll__List__D__Arg* f_Flow__termArgs(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc); -static struct E_Coll__List__Flow__CapB* f_Flow__nextHolds(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Term* p_args, struct E_Coll__List__Flow__VS* p_a); -static struct E_Coll__List__Flow__CapB* f_Flow__nextIn(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__Option__Sym__Sym* p_s1, struct E_Coll__Option__Sym__Sym* p_op, struct E_Coll__Option__Sym__Sym* p_s2, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Flow__CapB* p_acc); -static struct E_Coll__List__Flow__CapB* f_Flow__withTrans(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_b, struct E_Coll__List__Flow__CapB* p_acc); +static struct E_Coll__List__Flow__PM* f_Flow__ruleModels(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__PM* p_acc); +static struct E_Coll__List__D__Fact* f_Flow__nextFacts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Flow__nextOf(srs_cap* p_eff__Region, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Rule* f_Flow__ruleDefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Coll__List__D__Rule* p_acc); +static struct E_D__Arg* f_Flow__argOf(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_vs); +static struct E_Coll__Option__I64* f_Flow__indexSym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i); +static struct E_Coll__List__D__Arg* f_Flow__argsOfNames(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc); +static struct E_Coll__List__D__Arg* f_Coll__rev__D__Arg(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_xs); +static struct E_Coll__List__D__Arg* f_Coll__revOnto__D__Arg(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_xs, struct E_Coll__List__D__Arg* p_acc); +static struct E_Coll__List__D__Lit* f_Flow__bodyLits(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Lit* p_acc); +static struct E_Coll__List__D__Lit* f_Coll__rev__D__Lit(srs_cap* p_eff__Region, struct E_Coll__List__D__Lit* p_xs); +static struct E_Coll__List__D__Lit* f_Coll__revOnto__D__Lit(srs_cap* p_eff__Region, struct E_Coll__List__D__Lit* p_xs, struct E_Coll__List__D__Lit* p_acc); +static struct E_Coll__List__D__Arg* f_Flow__termArgs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc); +static struct E_Coll__List__Flow__CapB* f_Flow__nextHolds(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Term* p_args, struct E_Coll__List__Flow__VS* p_a); +static struct E_Coll__List__Flow__CapB* f_Flow__nextIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__Option__Sym__Sym* p_s1, struct E_Coll__Option__Sym__Sym* p_op, struct E_Coll__Option__Sym__Sym* p_s2, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Flow__CapB* p_acc); +static struct E_Coll__List__Flow__CapB* f_Flow__withTrans(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_b, struct E_Coll__List__Flow__CapB* p_acc); static bool f_Flow__opHas(struct E_Coll__List__Ast__Op* p_ops, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); static bool f_Flow__transHas(struct E_Coll__List__Ast__Trans* p_trs, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); -static struct E_Coll__Option__Sym__Sym* f_Flow__atState(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a); -static struct E_Coll__Option__Sym__Sym* f_Flow__atArgs(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_args, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Ast__Atom* p_rest); -static struct E_Coll__Option__Sym__Sym* f_Flow__resolved(srs_cap* p_r, struct E_Coll__Option__Sym__Sym* p_t, struct E_Coll__List__Flow__VS* p_a); -static struct E_Flow__St* f_Flow__sols(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j); -static struct E_Flow__St* f_Flow__prePost(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, int64_t p_j, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_m); -static struct E_Coll__Option__Sym__Sym* f_Flow__startOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_proto); -static struct E_Flow__At* f_Flow__block(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_line); +static struct E_Coll__Option__Sym__Sym* f_Flow__atState(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a); +static struct E_Coll__Option__Sym__Sym* f_Flow__atArgs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_args, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Ast__Atom* p_rest); +static struct E_Coll__Option__Sym__Sym* f_Flow__resolved(srs_cap* p_eff__Region, struct E_Coll__Option__Sym__Sym* p_t, struct E_Coll__List__Flow__VS* p_a); +static struct E_Flow__St* f_Flow__sols(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j); +static struct E_Flow__St* f_Flow__prePost(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, int64_t p_j, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_m); +static struct E_Coll__Option__Sym__Sym* f_Flow__startOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_proto); +static struct E_Flow__At* f_Flow__block(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_line); static int64_t f_Coll__length__Flow__Cap(struct E_Coll__List__Flow__Cap* p_xs); static int64_t f_Coll__lengthFrom__Flow__Cap(struct E_Coll__List__Flow__Cap* p_xs, int64_t p_n); -static struct E_Coll__List__D__Fact* f_Flow__escFacts(srs_cap* p_r, struct E_Coll__List__Flow__Src* p_sv, int64_t p_e, int64_t p_line, struct E_Coll__List__D__Fact* p_fs); -static struct E_Coll__List__D__Fact* f_Flow__closes(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_inner, struct E_Coll__List__Flow__Cap* p_outer, int64_t p_e, struct E_Coll__List__D__Fact* p_fs); -static struct E_Flow__At* f_Flow__stmts(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss); -static struct E_Flow__At* f_Flow__stmt(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Stmt* p_s); -static struct E_Coll__List__D__Fact* f_Flow__protoFacts(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__D__Fact* p_fs); -static struct E_Coll__List__D__Fact* f_Flow__opFacts(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs); -static struct E_Coll__List__D__Fact* f_Flow__transFacts(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_fs); -static struct E_Coll__List__D__Fact* f_Flow__stateFacts(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_start, struct E_Coll__List__Sym__Sym* p_states, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__Option__Sym__Sym* p_dropOp, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs); +static struct E_Coll__List__D__Fact* f_Flow__escFacts(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Src* p_sv, int64_t p_e, int64_t p_line, struct E_Coll__List__D__Fact* p_fs); +static struct E_Coll__List__D__Fact* f_Flow__closes(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_inner, struct E_Coll__List__Flow__Cap* p_outer, int64_t p_e, struct E_Coll__List__D__Fact* p_fs); +static struct E_Flow__At* f_Flow__stmts(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss); +static struct E_Flow__At* f_Flow__stmt(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Stmt* p_s); +static struct E_Coll__List__D__Fact* f_Flow__protoFacts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__D__Fact* p_fs); +static struct E_Coll__List__D__Fact* f_Flow__opFacts(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs); +static struct E_Coll__List__D__Fact* f_Flow__transFacts(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_fs); +static struct E_Coll__List__D__Fact* f_Flow__stateFacts(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_start, struct E_Coll__List__Sym__Sym* p_states, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__Option__Sym__Sym* p_dropOp, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs); static bool f_Flow__memberSym(struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_xs); static bool f_Flow__endsAfterDrop(struct E_Sym__Sym* p_s, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__Option__Sym__Sym* p_dropOp, struct E_Coll__List__Ast__Op* p_ops); static bool f_Flow__dropReaches(struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_d, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__List__Ast__Op* p_ops); static bool f_Flow__transReaches(struct E_Sym__Sym* p_s, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__Sym__Sym* p_ends); -static struct E_D__Arg* f_Flow__v(srs_cap* p_r, int64_t p_n); -static struct E_D__Atom* f_Flow__atom(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__D__Arg* f_Flow__vars(srs_cap* p_r, struct E_Coll__List__I64* p_xs); -static struct E_D__Lit* f_Flow__pos(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_D__Lit* f_Flow__neg(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_D__Rule* f_Flow__rule(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body); -static struct E_Coll__List__D__Rule* f_Flow__rules(srs_cap* p_r); -static struct E_Coll__List__D__Lit* f_Flow__l1__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a); -static struct E_Coll__List__D__Lit* f_Flow__l3__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c); -static struct E_Coll__List__D__Lit* f_Flow__l4__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d); -static struct E_Coll__List__I64* f_Flow__l3__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c); -static struct E_Coll__List__I64* f_Flow__l1__I64(srs_cap* p_r, int64_t p_a); -static struct E_Coll__List__D__Lit* f_Flow__l5__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d, struct E_D__Lit* p_e); -static struct E_Coll__List__I64* f_Flow__l4__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d); -static struct E_Coll__List__D__Lit* f_Flow__l2__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b); -static struct E_Coll__List__I64* f_Flow__l2__I64(srs_cap* p_r, int64_t p_a, int64_t p_b); -static struct E_Coll__List__D__Rule* f_Flow__callRules(srs_cap* p_r); -static struct E_Coll__List__D__Fact* f_Flow__facts(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f); -static struct E_Flow__St* f_Flow__binderCaps(srs_cap* p_r, struct E_Flow__St* p_st, struct E_Coll__List__Flow__CapB* p_bs, int64_t p_line); -static struct E_Flow__St* f_Flow__worlds(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j, struct E_Flow__End* p_end); -static struct E_Flow__St* f_Flow__worldCaps(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_j, struct E_Flow__End* p_end); -static struct E_Flow__Read* f_Flow__clashes(srs_cap* p_r, struct E_D__Model* p_m, struct E_Flow__Kind* p_k, struct E_Flow__Read* p_prev); -static struct E_Flow__Read* f_Flow__clashList(srs_cap* p_r, struct E_Flow__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Flow__Clash* p_acc); -static struct E_Coll__Option__Flow__Clash* f_Flow__clashOf(srs_cap* p_r, struct E_Flow__Kind* p_k, struct E_Coll__List__D__Val* p_t); -static struct E_Coll__Option__Flow__Clash* f_Flow__clashLN(srs_cap* p_r, struct E_Flow__Kind* p_k, struct E_D__Val* p_a, struct E_D__Val* p_b); -static struct E_Flow__Read* f_Flow__readAll(srs_cap* p_r, struct E_D__Model* p_m); -static struct E_Flow__Clash* f_Flow__make(srs_cap* p_r, struct E_Flow__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_name); -static struct E_Flow__Verdict* f_Flow__verdictOf(srs_cap* p_r, struct E_Flow__Read* p_rd); -static struct E_Flow__Verdict* f_Flow__check(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f); -static struct E_Coll__List__D__Rule* f_Flow__capsRules(srs_cap* p_r); -static struct E_Coll__List__D__Rule* f_Flow__l1__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a); -static struct E_Flow__St* f_Flow__needs(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann); -static struct E_Coll__Option__Ast__TypeDecl* f_Flow__typeDecl(srs_cap* p_r, struct E_Coll__List__Ast__TypeDecl* p_ts, struct E_Sym__Sym* p_n); -static struct E_Flow__St* f_Flow__needAtoms(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Atom* p_as, struct E_Flow__St* p_st); -static struct E_Flow__St* f_Flow__needAt(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Term* p_args, struct E_Flow__St* p_st); -static struct E_Coll__Option__Sym__Sym* f_Flow__binderProto(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_b); -static struct E_Flow__St* f_Flow__sameStates(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Flow__St* p_st); -static struct E_Flow__St* f_Flow__sameAll(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ss, struct E_Flow__St* p_st); +static struct E_D__Arg* f_Flow__v(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Atom* f_Flow__atom(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_Coll__List__D__Arg* f_Flow__vars(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs); +static struct E_D__Lit* f_Flow__pos(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_D__Lit* f_Flow__neg(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_D__Rule* f_Flow__rule(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body); +static struct E_Coll__List__D__Rule* f_Flow__rules(srs_cap* p_eff__Region); +static struct E_Coll__List__D__Lit* f_Flow__l1__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a); +static struct E_Coll__List__D__Lit* f_Flow__l3__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c); +static struct E_Coll__List__D__Lit* f_Flow__l4__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d); +static struct E_Coll__List__I64* f_Flow__l3__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c); +static struct E_Coll__List__I64* f_Flow__l1__I64(srs_cap* p_eff__Region, int64_t p_a); +static struct E_Coll__List__D__Lit* f_Flow__l5__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d, struct E_D__Lit* p_e); +static struct E_Coll__List__I64* f_Flow__l4__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d); +static struct E_Coll__List__D__Lit* f_Flow__l2__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b); +static struct E_Coll__List__I64* f_Flow__l2__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b); +static struct E_Coll__List__D__Rule* f_Flow__callRules(srs_cap* p_eff__Region); +static struct E_Coll__List__D__Fact* f_Flow__facts(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f); +static struct E_Flow__St* f_Flow__binderCaps(srs_cap* p_eff__Region, struct E_Flow__St* p_st, struct E_Coll__List__Flow__CapB* p_bs, int64_t p_line); +static struct E_Flow__St* f_Flow__worlds(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j, struct E_Flow__End* p_end); +static struct E_Flow__St* f_Flow__worldCaps(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_j, struct E_Flow__End* p_end); +static struct E_Flow__Read* f_Flow__clashes(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Flow__Kind* p_k, struct E_Flow__Read* p_prev); +static struct E_Flow__Read* f_Flow__clashList(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Flow__Clash* p_acc); +static struct E_Coll__Option__Flow__Clash* f_Flow__clashOf(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, struct E_Coll__List__D__Val* p_t); +static struct E_Coll__Option__Flow__Clash* f_Flow__clashLN(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, struct E_D__Val* p_a, struct E_D__Val* p_b); +static struct E_Flow__Read* f_Flow__readAll(srs_cap* p_eff__Region, struct E_D__Model* p_m); +static struct E_Flow__Clash* f_Flow__make(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_name); +static struct E_Flow__Verdict* f_Flow__verdictOf(srs_cap* p_eff__Region, struct E_Flow__Read* p_rd); +static struct E_Flow__Verdict* f_Flow__check(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f); +static struct E_Coll__List__D__Rule* f_Flow__capsRules(srs_cap* p_eff__Region); +static struct E_Coll__List__D__Rule* f_Flow__l1__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a); +static struct E_Flow__St* f_Flow__needs(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann); +static struct E_Coll__Option__Ast__TypeDecl* f_Flow__typeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TypeDecl* p_ts, struct E_Sym__Sym* p_n); +static struct E_Flow__St* f_Flow__needAtoms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Atom* p_as, struct E_Flow__St* p_st); +static struct E_Flow__St* f_Flow__needAt(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Term* p_args, struct E_Flow__St* p_st); +static struct E_Coll__Option__Sym__Sym* f_Flow__binderProto(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_b); +static struct E_Flow__St* f_Flow__sameStates(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Flow__St* p_st); +static struct E_Flow__St* f_Flow__sameAll(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ss, struct E_Flow__St* p_st); static int64_t f_Hs__lane(int64_t p_h, int64_t p_x, int64_t p_p, int64_t p_m); -static struct E_Hs__Dg* f_Hs__add(srs_cap* p_r, struct E_Hs__Dg* p_g, int64_t p_x); -static struct E_Hs__Dg* f_Hs__str(srs_cap* p_r, struct E_Hs__Dg* p_g, srs_str p_s); -static struct E_Hs__Dg* f_Hs__bytes(srs_cap* p_r, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_i, int64_t p_n); -static struct E_Hs__Dg* f_Hs__dg(srs_cap* p_r, struct E_Hs__Dg* p_g, struct E_Hs__Dg* p_h); +static struct E_Hs__Dg* f_Hs__add(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, int64_t p_x); +static struct E_Hs__Dg* f_Hs__str(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, srs_str p_s); +static struct E_Hs__Dg* f_Hs__bytes(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_i, int64_t p_n); +static struct E_Hs__Dg* f_Hs__dg(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, struct E_Hs__Dg* p_h); static bool f_Hs__less(struct E_Hs__Dg* p_x, struct E_Hs__Dg* p_y); -static struct E_Hs__Dg* f_Hs__name(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Sym__Sym* p_x, struct E_Hs__Where* p_w); -static struct E_Coll__Option__Hs__Dg* f_Coll__sLookup__Hs__Dg(srs_cap* p_r, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Hs__Dg* f_Coll__sFind__Hs__Dg(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s); +static struct E_Hs__Dg* f_Hs__name(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Sym__Sym* p_x, struct E_Hs__Where* p_w); +static struct E_Coll__Option__Hs__Dg* f_Coll__sLookup__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Hs__Dg* f_Coll__sFind__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_d); static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_d); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k); -static struct E_Coll__Option__I64* f_Hs__index(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i); -static struct E_Hs__Dg* f_Hs__ty(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Ty* p_t); +static struct E_Coll__Option__I64* f_Hs__index(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i); +static struct E_Hs__Dg* f_Hs__ty(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Ty* p_t); static int64_t f_Coll__length__Ast__Ty(struct E_Coll__List__Ast__Ty* p_xs); static int64_t f_Coll__lengthFrom__Ast__Ty(struct E_Coll__List__Ast__Ty* p_xs, int64_t p_n); -static struct E_Hs__Dg* f_Hs__tys(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Ty* p_ts); +static struct E_Hs__Dg* f_Hs__tys(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Ty* p_ts); static int64_t f_Hs__binOp(struct E_Ast__BinOp* p_op); -static struct E_Hs__Dg* f_Hs__expr(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Expr* p_e); +static struct E_Hs__Dg* f_Hs__expr(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Expr* p_e); static int64_t f_Coll__length__Ast__Expr(struct E_Coll__List__Ast__Expr* p_xs); static int64_t f_Coll__lengthFrom__Ast__Expr(struct E_Coll__List__Ast__Expr* p_xs, int64_t p_n); static int64_t f_Coll__length__Ast__Arm(struct E_Coll__List__Ast__Arm* p_xs); static int64_t f_Coll__lengthFrom__Ast__Arm(struct E_Coll__List__Ast__Arm* p_xs, int64_t p_n); static int64_t f_Coll__length__Ast__Stmt(struct E_Coll__List__Ast__Stmt* p_xs); static int64_t f_Coll__lengthFrom__Ast__Stmt(struct E_Coll__List__Ast__Stmt* p_xs, int64_t p_n); -static struct E_Hs__Dg* f_Hs__exprs(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Expr* p_xs); -static struct E_Hs__Dg* f_Hs__names(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Sym__Sym* p_xs); -static struct E_Hs__Dg* f_Hs__arms(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Arm* p_as); -static struct E_Hs__W* f_Hs__stmts(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Stmt* p_ss); -static struct E_Hs__Dg* f_Hs__ann(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__Option__Ast__Ty* p_a); -static struct E_Hs__W* f_Hs__binders(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Binder* p_bs); -static struct E_Hs__W* f_Hs__groups(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Group* p_gs); -static struct E_Hs__Dg* f_Hs__atoms(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Atom* p_as); -static struct E_Hs__Dg* f_Hs__terms(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Term* p_ts); -static struct E_Hs__Dg* f_Hs__clauses(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Clause* p_cs); -static struct E_Hs__Dg* f_Hs__fn(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Ast__Fn* p_f); -static struct E_Hs__Dg* f_Hs__enum_(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Ast__Enum* p_e); +static struct E_Hs__Dg* f_Hs__exprs(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Expr* p_xs); +static struct E_Hs__Dg* f_Hs__names(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Sym__Sym* p_xs); +static struct E_Hs__Dg* f_Hs__arms(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Arm* p_as); +static struct E_Hs__W* f_Hs__stmts(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Stmt* p_ss); +static struct E_Hs__Dg* f_Hs__ann(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__Option__Ast__Ty* p_a); +static struct E_Hs__W* f_Hs__binders(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Binder* p_bs); +static struct E_Hs__W* f_Hs__groups(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Group* p_gs); +static struct E_Hs__Dg* f_Hs__atoms(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Atom* p_as); +static struct E_Hs__Dg* f_Hs__terms(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Term* p_ts); +static struct E_Hs__Dg* f_Hs__clauses(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Clause* p_cs); +static struct E_Hs__Dg* f_Hs__fn(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Ast__Fn* p_f); +static struct E_Hs__Dg* f_Hs__enum_(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Ast__Enum* p_e); static int64_t f_Coll__length__Ast__Case(struct E_Coll__List__Ast__Case* p_xs); static int64_t f_Coll__lengthFrom__Ast__Case(struct E_Coll__List__Ast__Case* p_xs, int64_t p_n); -static struct E_Hs__Dg* f_Hs__cases(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs); +static struct E_Hs__Dg* f_Hs__cases(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs); static struct E_Sym__Sym* f_Hs__dName(struct E_Hs__D* p_d); -static struct E_Hs__Dg* f_Hs__hashD(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__D* p_d); -static struct E_Coll__List__Sym__Sym* f_Hs__refs(srs_cap* p_r, struct E_Hs__D* p_d, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__caseRefs(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__binderRefs(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__tyRefs(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__tysRefs(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__eRefs(srs_cap* p_r, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__esRefs(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__armRefs(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__stmtRefs(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Hs__edges(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_x); -static struct E_Coll__Option__Hs__D* f_Coll__sLookup__Hs__D(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Hs__D* f_Coll__sFind__Hs__D(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s); +static struct E_Hs__Dg* f_Hs__hashD(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__D* p_d); +static struct E_Coll__List__Sym__Sym* f_Hs__refs(srs_cap* p_eff__Region, struct E_Hs__D* p_d, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__caseRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__binderRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__tyRefs(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__tysRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__eRefs(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__esRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__armRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__stmtRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Hs__edges(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_x); +static struct E_Coll__Option__Hs__D* f_Coll__sLookup__Hs__D(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Hs__D* f_Coll__sFind__Hs__D(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_d); static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_d); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k); -static struct E_Coll__List__Sym__Sym* f_Hs__inMap(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); -static int64_t f_Hs__geti(srs_cap* p_r, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_x); +static struct E_Coll__List__Sym__Sym* f_Hs__inMap(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); +static int64_t f_Hs__geti(srs_cap* p_eff__Region, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_x); static int64_t f_Hs__min(int64_t p_a, int64_t p_b); -static struct E_Hs__T* f_Hs__visit(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Hs__T* p_t); -static struct E_Hs__T* f_Hs__succs(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_ws, struct E_Hs__T* p_t); -static struct E_Hs__Pop* f_Hs__pop(srs_cap* p_r, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_st, struct E_Coll__SMap__Bool* p_on, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Hs__comps(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_order, struct E_Hs__T* p_t); -static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__rev__Coll__List_1_Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs); -static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__revOnto__Coll__List_1_Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs, struct E_Coll__List__Coll__List_1_Sym__Sym* p_acc); -static struct E_Coll__SMap__Hs__Dg* f_Hs__comp(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_ms); -static struct E_Hs__Dg* f_Hs__hashOf(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Sym__Sym* p_m); -static struct E_Coll__List__Sym__Sym* f_Hs__sorted(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_all, struct E_Coll__List__Sym__Sym* p_ms, struct E_Coll__List__Hs__M* p_acc); -static struct E_Coll__List__Hs__M* f_Hs__ins(srs_cap* p_r, struct E_Coll__List__Hs__M* p_xs, struct E_Hs__M* p_m); -static struct E_Coll__List__Sym__Sym* f_Hs__mNames(srs_cap* p_r, struct E_Coll__List__Hs__M* p_xs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Hs__Dg* f_Hs__whole(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_ms, struct E_Hs__Dg* p_g); -static struct E_Coll__SMap__Hs__Dg* f_Hs__members(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_whole, struct E_Coll__List__Sym__Sym* p_ms, int64_t p_i); -static struct E_Coll__SMap__Hs__Dg* f_Hs__put(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Sym__Sym* p_m, struct E_Hs__Dg* p_g); -static struct E_Coll__SMap__Hs__Dg* f_Coll__sInsert__Hs__Dg(srs_cap* p_r, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v); +static struct E_Hs__T* f_Hs__visit(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Hs__T* p_t); +static struct E_Hs__T* f_Hs__succs(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_ws, struct E_Hs__T* p_t); +static struct E_Hs__Pop* f_Hs__pop(srs_cap* p_eff__Region, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_st, struct E_Coll__SMap__Bool* p_on, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Hs__comps(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_order, struct E_Hs__T* p_t); +static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__rev__Coll__List_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs); +static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__revOnto__Coll__List_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs, struct E_Coll__List__Coll__List_1_Sym__Sym* p_acc); +static struct E_Coll__SMap__Hs__Dg* f_Hs__comp(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_ms); +static struct E_Hs__Dg* f_Hs__hashOf(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Sym__Sym* p_m); +static struct E_Coll__List__Sym__Sym* f_Hs__sorted(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_all, struct E_Coll__List__Sym__Sym* p_ms, struct E_Coll__List__Hs__M* p_acc); +static struct E_Coll__List__Hs__M* f_Hs__ins(srs_cap* p_eff__Region, struct E_Coll__List__Hs__M* p_xs, struct E_Hs__M* p_m); +static struct E_Coll__List__Sym__Sym* f_Hs__mNames(srs_cap* p_eff__Region, struct E_Coll__List__Hs__M* p_xs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Hs__Dg* f_Hs__whole(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_ms, struct E_Hs__Dg* p_g); +static struct E_Coll__SMap__Hs__Dg* f_Hs__members(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_whole, struct E_Coll__List__Sym__Sym* p_ms, int64_t p_i); +static struct E_Coll__SMap__Hs__Dg* f_Hs__put(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Sym__Sym* p_m, struct E_Hs__Dg* p_g); +static struct E_Coll__SMap__Hs__Dg* f_Coll__sInsert__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__sSet__Hs__Dg(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); -static struct E_Coll__SMap__Hs__Dg* f_Hs__casesPut(srs_cap* p_r, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs, int64_t p_i); -static struct E_Coll__SMap__Hs__Dg* f_Hs__compsPut(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Coll__List_1_Sym__Sym* p_cs); -static struct E_Hs__Split* f_Hs__split(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Hs__Split* p_sp); -static struct E_Coll__SMap__Hs__D* f_Coll__sInsert__Hs__D(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__sSet__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v); +static struct E_Coll__SMap__Hs__Dg* f_Hs__casesPut(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs, int64_t p_i); +static struct E_Coll__SMap__Hs__Dg* f_Hs__compsPut(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Coll__List_1_Sym__Sym* p_cs); +static struct E_Hs__Split* f_Hs__split(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Hs__Split* p_sp); +static struct E_Coll__SMap__Hs__D* f_Coll__sInsert__Hs__D(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__sSet__Hs__D(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); -static struct E_Coll__SMap__Hs__Dg* f_Hs__all(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__SMap__Hs__D* f_Coll__sEmpty__Hs__D(srs_cap* p_r); -static struct E_Coll__SMap__Hs__Dg* f_Coll__sEmpty__Hs__Dg(srs_cap* p_r); -static int64_t f_Hs__print(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static int64_t f_Hs__printFrom(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__sSet__Hs__D(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v); +static struct E_Coll__SMap__Hs__Dg* f_Hs__all(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__SMap__Hs__D* f_Coll__sEmpty__Hs__D(srs_cap* p_eff__Region); +static struct E_Coll__SMap__Hs__Dg* f_Coll__sEmpty__Hs__Dg(srs_cap* p_eff__Region); +static int64_t f_Hs__print(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static int64_t f_Hs__printFrom(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds); static int64_t f_Hs__show(srs_cap* p_eff__Console, struct E_Sym__Sym* p_n, struct E_Hs__Dg* p_g); -static bool f_Hs__onStack(srs_cap* p_r, struct E_Coll__SMap__Bool* p_on, struct E_Sym__Sym* p_w); -static struct E_K__Term* f_K__walk(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t); +static bool f_Hs__onStack(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_on, struct E_Sym__Sym* p_w); +static struct E_K__Term* f_K__walk(struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t); static struct E_Coll__IMap__K__Term* f_Coll__node__K__Term(struct E_Coll__IMap__K__Term* p_m, int64_t p_k); -static bool f_K__occurs(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t); -static bool f_K__occursIn(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_Coll__List__K__Term* p_ts); -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unify(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_a, struct E_K__Term* p_b); -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__bind(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t); -static struct E_Coll__IMap__K__Term* f_Coll__insert__K__Term(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_m, int64_t p_k, struct E_K__Term* p_v); -static struct E_Coll__IMap__K__Term* f_Coll__balance__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); +static bool f_K__occurs(struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t); +static bool f_K__occursIn(struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_Coll__List__K__Term* p_ts); +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unify(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_a, struct E_K__Term* p_b); +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__bind(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t); +static struct E_Coll__IMap__K__Term* f_Coll__insert__K__Term(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_m, int64_t p_k, struct E_K__Term* p_v); +static struct E_Coll__IMap__K__Term* f_Coll__balance__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); static int64_t f_Coll__size__K__Term(struct E_Coll__IMap__K__Term* p_m); -static struct E_Coll__IMap__K__Term* f_Coll__rotateL__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); -static struct E_Coll__IMap__K__Term* f_Coll__rotateR__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); -static struct E_Coll__IMap__K__Term* f_Coll__bin__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAll(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_ys); -static struct E_K__Term* f_K__reify(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t); -static struct E_Coll__List__K__Term* f_K__reifyOnto(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__IMap__K__Term* f_Coll__rotateL__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); +static struct E_Coll__IMap__K__Term* f_Coll__rotateR__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); +static struct E_Coll__IMap__K__Term* f_Coll__bin__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2); +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAll(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_ys); +static struct E_K__Term* f_K__reify(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t); +static struct E_Coll__List__K__Term* f_K__reifyOnto(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc); static bool f_K__member(int64_t p_v, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__I64* f_K__ints(srs_cap* p_r, struct E_K__Dom* p_d); +static struct E_Coll__List__I64* f_K__ints(srs_cap* p_eff__Region, struct E_K__Dom* p_d); static int64_t f_K__lo(struct E_K__Dom* p_d); static int64_t f_K__lastOf(int64_t p_h, struct E_Coll__List__I64* p_t); static int64_t f_K__hi(struct E_K__Dom* p_d); static int64_t f_K__domSize(struct E_K__Dom* p_d); static bool f_K__inDom(int64_t p_v, struct E_K__Dom* p_d); -static struct E_Coll__List__I64* f_K__range(srs_cap* p_r, int64_t p_a, int64_t p_b); -static struct E_Coll__List__I64* f_K__rangeOnto(srs_cap* p_r, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__I64* f_K__between(srs_cap* p_r, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b); -static struct E_Coll__List__I64* f_Coll__rev__I64(srs_cap* p_r, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__I64* f_Coll__revOnto__I64(srs_cap* p_r, struct E_Coll__List__I64* p_xs, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__I64* f_K__betweenOnto(srs_cap* p_r, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__I64* f_K__withoutOnto(srs_cap* p_r, struct E_Coll__List__I64* p_xs, int64_t p_v, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__I64* f_K__meetInts(srs_cap* p_r, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d); -static struct E_Coll__List__I64* f_K__meetOnto(srs_cap* p_r, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d, struct E_Coll__List__I64* p_acc); -static struct E_K__DomOf* f_K__domOf(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t); +static struct E_Coll__List__I64* f_K__range(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b); +static struct E_Coll__List__I64* f_K__rangeOnto(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__I64* f_K__between(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b); +static struct E_Coll__List__I64* f_Coll__rev__I64(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs); +static struct E_Coll__List__I64* f_Coll__revOnto__I64(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__I64* f_K__betweenOnto(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__I64* f_K__withoutOnto(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, int64_t p_v, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__I64* f_K__meetInts(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d); +static struct E_Coll__List__I64* f_K__meetOnto(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d, struct E_Coll__List__I64* p_acc); +static struct E_K__DomOf* f_K__domOf(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t); static struct E_Coll__IMap__K__Dom* f_Coll__node__K__Dom(struct E_Coll__IMap__K__Dom* p_m, int64_t p_k); -static struct E_Coll__Option__K__State* f_K__setDom(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs); +static struct E_Coll__Option__K__State* f_K__setDom(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs); static int64_t f_Coll__length__I64(struct E_Coll__List__I64* p_xs); static int64_t f_Coll__lengthFrom__I64(struct E_Coll__List__I64* p_xs, int64_t p_n); -static struct E_Coll__IMap__K__Dom* f_Coll__insert__K__Dom(srs_cap* p_r, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k, struct E_K__Dom* p_v); -static struct E_Coll__IMap__K__Dom* f_Coll__balance__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); +static struct E_Coll__IMap__K__Dom* f_Coll__insert__K__Dom(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k, struct E_K__Dom* p_v); +static struct E_Coll__IMap__K__Dom* f_Coll__balance__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); static int64_t f_Coll__size__K__Dom(struct E_Coll__IMap__K__Dom* p_m); -static struct E_Coll__IMap__K__Dom* f_Coll__rotateL__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); -static struct E_Coll__IMap__K__Dom* f_Coll__rotateR__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); -static struct E_Coll__IMap__K__Dom* f_Coll__bin__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); +static struct E_Coll__IMap__K__Dom* f_Coll__rotateL__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); +static struct E_Coll__IMap__K__Dom* f_Coll__rotateR__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); +static struct E_Coll__IMap__K__Dom* f_Coll__bin__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2); static bool f_K__hasSize(struct E_Coll__IMap__K__Dom* p_ds, int64_t p_n, int64_t p_k); -static struct E_Coll__Option__K__State* f_K__meet(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs); -static struct E_Coll__Option__K__State* f_K__leAt(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, int64_t p_k); -static struct E_Coll__Option__K__State* f_K__neAt(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy); -static struct E_Coll__Option__K__State* f_K__plusAt(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Term* p_z, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, struct E_K__Dom* p_dz); -static struct E_Coll__Option__K__State* f_K__fire(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Fd* p_c); -static struct E_K__Props* f_K__emit(srs_cap* p_r, struct E_K__Props* p_ps, int64_t p_n, struct E_K__Change* p_change); -static struct E_Coll__List__K__Term* f_K__fdTerms(srs_cap* p_r, struct E_K__Fd* p_c); -static struct E_Coll__List__K__Fd* f_K__watchers(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, int64_t p_n); +static struct E_Coll__Option__K__State* f_K__meet(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs); +static struct E_Coll__Option__K__State* f_K__leAt(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, int64_t p_k); +static struct E_Coll__Option__K__State* f_K__neAt(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy); +static struct E_Coll__Option__K__State* f_K__plusAt(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Term* p_z, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, struct E_K__Dom* p_dz); +static struct E_Coll__Option__K__State* f_K__fire(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Fd* p_c); +static struct E_K__Props* f_K__emit(srs_cap* p_eff__Region, struct E_K__Props* p_ps, int64_t p_n, struct E_K__Change* p_change); +static struct E_Coll__List__K__Term* f_K__fdTerms(srs_cap* p_eff__Region, struct E_K__Fd* p_c); +static struct E_Coll__List__K__Fd* f_K__watchers(struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, int64_t p_n); static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__node__Coll__List_1_K__Fd(struct E_Coll__IMap__Coll__List_1_K__Fd* p_m, int64_t p_k); -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_K__watchIn(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, struct E_K__Fd* p_c, struct E_Coll__List__K__Term* p_ts); -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__insert__Coll__List_1_K__Fd(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Fd* p_m, int64_t p_k, struct E_Coll__List__K__Fd* p_v); -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__balance__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_K__watchIn(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, struct E_K__Fd* p_c, struct E_Coll__List__K__Term* p_ts); +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__insert__Coll__List_1_K__Fd(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Fd* p_m, int64_t p_k, struct E_Coll__List__K__Fd* p_v); +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__balance__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); static int64_t f_Coll__size__Coll__List_1_K__Fd(struct E_Coll__IMap__Coll__List_1_K__Fd* p_m); -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateL__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateR__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__bin__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); -static struct E_K__Props* f_K__watch(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Props* p_ps, struct E_K__Fd* p_c); +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateL__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateR__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__bin__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2); +static struct E_K__Props* f_K__watch(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Props* p_ps, struct E_K__Fd* p_c); static bool f_K__isNe(struct E_K__Fd* p_c); -static struct E_Coll__List__K__Fd* f_K__wakeAll(srs_cap* p_r, struct E_K__Props* p_ps, struct E_Coll__List__K__Ev* p_evs, struct E_Coll__List__K__Fd* p_agenda); -static struct E_Coll__List__K__Fd* f_Coll__revOnto__K__Fd(srs_cap* p_r, struct E_Coll__List__K__Fd* p_xs, struct E_Coll__List__K__Fd* p_acc); -static struct E_Coll__Option__K__State* f_K__prop(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda); -static struct E_Coll__Option__K__State* f_K__settleFrom(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda); -static struct E_Coll__List__I64* f_K__varsOf(srs_cap* p_r, struct E_K__Term* p_t, struct E_Coll__List__I64* p_acc); -static struct E_Coll__List__I64* f_K__varsOfAll(srs_cap* p_r, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__I64* p_acc); -static struct E_Coll__Option__K__State* f_K__bound(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s0, struct E_Coll__List__I64* p_ms, struct E_K__State* p_st); -static struct E_Coll__Option__K__Dom* f_Coll__lookup__K__Dom(srs_cap* p_r, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k); -static struct E_Coll__Option__K__State* f_K__post(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__IMap_1_K__Term* p_u); -static struct E_Coll__Option__Coll__List_1_K__Neq* f_K__recheck(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Neq* p_ns, struct E_Coll__List__K__Neq* p_kept); -static struct E_Coll__List__K__Neq* f_Coll__rev__K__Neq(srs_cap* p_r, struct E_Coll__List__K__Neq* p_xs); -static struct E_Coll__List__K__Neq* f_Coll__revOnto__K__Neq(srs_cap* p_r, struct E_Coll__List__K__Neq* p_xs, struct E_Coll__List__K__Neq* p_acc); -static struct E_Coll__Option__K__State* f_K__addNeq(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_a, struct E_K__Term* p_b); -static struct E_K__Pick* f_K__pickVar(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_xs, struct E_K__Pick* p_best); +static struct E_Coll__List__K__Fd* f_K__wakeAll(srs_cap* p_eff__Region, struct E_K__Props* p_ps, struct E_Coll__List__K__Ev* p_evs, struct E_Coll__List__K__Fd* p_agenda); +static struct E_Coll__List__K__Fd* f_Coll__revOnto__K__Fd(srs_cap* p_eff__Region, struct E_Coll__List__K__Fd* p_xs, struct E_Coll__List__K__Fd* p_acc); +static struct E_Coll__Option__K__State* f_K__prop(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda); +static struct E_Coll__Option__K__State* f_K__settleFrom(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda); +static struct E_Coll__List__I64* f_K__varsOf(srs_cap* p_eff__Region, struct E_K__Term* p_t, struct E_Coll__List__I64* p_acc); +static struct E_Coll__List__I64* f_K__varsOfAll(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__I64* p_acc); +static struct E_Coll__Option__K__State* f_K__bound(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s0, struct E_Coll__List__I64* p_ms, struct E_K__State* p_st); +static struct E_Coll__Option__K__Dom* f_Coll__lookup__K__Dom(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k); +static struct E_Coll__Option__K__State* f_K__post(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__IMap_1_K__Term* p_u); +static struct E_Coll__Option__Coll__List_1_K__Neq* f_K__recheck(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Neq* p_ns, struct E_Coll__List__K__Neq* p_kept); +static struct E_Coll__List__K__Neq* f_Coll__rev__K__Neq(srs_cap* p_eff__Region, struct E_Coll__List__K__Neq* p_xs); +static struct E_Coll__List__K__Neq* f_Coll__revOnto__K__Neq(srs_cap* p_eff__Region, struct E_Coll__List__K__Neq* p_xs, struct E_Coll__List__K__Neq* p_acc); +static struct E_Coll__Option__K__State* f_K__addNeq(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_a, struct E_K__Term* p_b); +static struct E_K__Pick* f_K__pickVar(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_xs, struct E_K__Pick* p_best); static bool f_K__smaller(struct E_K__Dom* p_d, struct E_K__Pick* p_best); -static struct E_Coll__List__K__Branch* f_K__labelBranches(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_vs, struct E_Coll__List__K__Goal* p_gs, struct E_Coll__List__K__Branch* p_acc); -static struct E_Coll__List__K__Branch* f_Coll__rev__K__Branch(srs_cap* p_r, struct E_Coll__List__K__Branch* p_xs); -static struct E_Coll__List__K__Branch* f_Coll__revOnto__K__Branch(srs_cap* p_r, struct E_Coll__List__K__Branch* p_xs, struct E_Coll__List__K__Branch* p_acc); -static struct E_K__Goal* f_K__distinct(srs_cap* p_r, struct E_Coll__List__K__Term* p_xs); -static struct E_K__Goal* f_K__neEach(srs_cap* p_r, struct E_K__Term* p_x, struct E_Coll__List__K__Term* p_ys); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__index(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rules); -static struct E_Coll__List__K__Rule* f_Coll__rev__K__Rule(srs_cap* p_r, struct E_Coll__List__K__Rule* p_xs); -static struct E_Coll__List__K__Rule* f_Coll__revOnto__K__Rule(srs_cap* p_r, struct E_Coll__List__K__Rule* p_xs, struct E_Coll__List__K__Rule* p_acc); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__indexOnto(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rs, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix); -static struct E_Coll__Option__Coll__List_1_K__Rule* f_Coll__lookup__Coll__List_1_K__Rule(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__insert__Coll__List_1_K__Rule(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k, struct E_Coll__List__K__Rule* p_v); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__balance__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); +static struct E_Coll__List__K__Branch* f_K__labelBranches(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_vs, struct E_Coll__List__K__Goal* p_gs, struct E_Coll__List__K__Branch* p_acc); +static struct E_Coll__List__K__Branch* f_Coll__rev__K__Branch(srs_cap* p_eff__Region, struct E_Coll__List__K__Branch* p_xs); +static struct E_Coll__List__K__Branch* f_Coll__revOnto__K__Branch(srs_cap* p_eff__Region, struct E_Coll__List__K__Branch* p_xs, struct E_Coll__List__K__Branch* p_acc); +static struct E_K__Goal* f_K__distinct(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_xs); +static struct E_K__Goal* f_K__neEach(srs_cap* p_eff__Region, struct E_K__Term* p_x, struct E_Coll__List__K__Term* p_ys); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__index(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rules); +static struct E_Coll__List__K__Rule* f_Coll__rev__K__Rule(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_xs); +static struct E_Coll__List__K__Rule* f_Coll__revOnto__K__Rule(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_xs, struct E_Coll__List__K__Rule* p_acc); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__indexOnto(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rs, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix); +static struct E_Coll__Option__Coll__List_1_K__Rule* f_Coll__lookup__Coll__List_1_K__Rule(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__insert__Coll__List_1_K__Rule(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k, struct E_Coll__List__K__Rule* p_v); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__balance__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); static int64_t f_Coll__size__Coll__List_1_K__Rule(struct E_Coll__IMap__Coll__List_1_K__Rule* p_m); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateL__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateR__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__bin__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); -static struct E_K__Term* f_K__shift(srs_cap* p_r, struct E_K__Term* p_t, int64_t p_k); -static struct E_Coll__List__K__Term* f_K__shiftOnto(srs_cap* p_r, struct E_Coll__List__K__Term* p_ts, int64_t p_k, struct E_Coll__List__K__Term* p_acc); -static struct E_K__Goal* f_K__shiftGoal(srs_cap* p_r, struct E_K__Goal* p_g, int64_t p_k); -static struct E_K__Fd* f_K__shiftFd(srs_cap* p_r, struct E_K__Fd* p_c, int64_t p_k); -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyOff(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_h, int64_t p_k, struct E_K__Term* p_y); -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAllOff(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_hs, int64_t p_k, struct E_Coll__List__K__Term* p_ys); -static struct E_K__Step* f_K__picks(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rs, struct E_Sym__Sym* p_rel, struct E_Coll__List__K__Term* p_args, struct E_K__State* p_st, struct E_Coll__List__K__Goal* p_rest, struct E_Coll__List__K__Branch* p_out, int64_t p_cost); -static struct E_Coll__Option__K__State* f_K__settled(srs_cap* p_r, struct E_Coll__Option__K__State* p_c); -static struct E_K__Step* f_K__onward(srs_cap* p_r, struct E_Coll__Option__K__State* p_c, struct E_Coll__List__K__Goal* p_rest); -static struct E_K__Step* f_K__kstep(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_K__Branch* p_b); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateL__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateR__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__bin__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2); +static struct E_K__Term* f_K__shift(srs_cap* p_eff__Region, struct E_K__Term* p_t, int64_t p_k); +static struct E_Coll__List__K__Term* f_K__shiftOnto(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_ts, int64_t p_k, struct E_Coll__List__K__Term* p_acc); +static struct E_K__Goal* f_K__shiftGoal(srs_cap* p_eff__Region, struct E_K__Goal* p_g, int64_t p_k); +static struct E_K__Fd* f_K__shiftFd(srs_cap* p_eff__Region, struct E_K__Fd* p_c, int64_t p_k); +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyOff(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_h, int64_t p_k, struct E_K__Term* p_y); +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAllOff(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_hs, int64_t p_k, struct E_Coll__List__K__Term* p_ys); +static struct E_K__Step* f_K__picks(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rs, struct E_Sym__Sym* p_rel, struct E_Coll__List__K__Term* p_args, struct E_K__State* p_st, struct E_Coll__List__K__Goal* p_rest, struct E_Coll__List__K__Branch* p_out, int64_t p_cost); +static struct E_Coll__Option__K__State* f_K__settled(srs_cap* p_eff__Region, struct E_Coll__Option__K__State* p_c); +static struct E_K__Step* f_K__onward(srs_cap* p_eff__Region, struct E_Coll__Option__K__State* p_c, struct E_Coll__List__K__Goal* p_rest); +static struct E_K__Step* f_K__kstep(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_K__Branch* p_b); static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__node__Coll__List_1_K__Rule(struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k); -static struct E_K__Run* f_K__loop(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_Coll__Option__K__Branch* p_cur, struct E_Queue__Queue__K__Branch* p_q, int64_t p_fuel, int64_t p_limit, struct E_Coll__List__K__State* p_found, int64_t p_n); -static struct E_Queue__Popped__K__Branch* f_Queue__pop__K__Branch(srs_cap* p_r, struct E_Queue__Queue__K__Branch* p_q); -static struct E_Coll__List__K__State* f_Coll__rev__K__State(srs_cap* p_r, struct E_Coll__List__K__State* p_xs); -static struct E_Coll__List__K__State* f_Coll__revOnto__K__State(srs_cap* p_r, struct E_Coll__List__K__State* p_xs, struct E_Coll__List__K__State* p_acc); -static struct E_Queue__Queue__K__Branch* f_Queue__pushAll__K__Branch(srs_cap* p_r, struct E_Queue__Queue__K__Branch* p_q, struct E_Coll__List__K__Branch* p_xs); -static struct E_Queue__Queue__K__Branch* f_Queue__push__K__Branch(srs_cap* p_r, struct E_Queue__Queue__K__Branch* p_q, struct E_K__Branch* p_x); -static struct E_K__Run* f_K__solve(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rules, struct E_K__Goal* p_g, int64_t p_nvars, int64_t p_fuel, int64_t p_limit); -static struct E_Queue__Queue__K__Branch* f_Queue__empty__K__Branch(srs_cap* p_r); +static struct E_K__Run* f_K__loop(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_Coll__Option__K__Branch* p_cur, struct E_Queue__Queue__K__Branch* p_q, int64_t p_fuel, int64_t p_limit, struct E_Coll__List__K__State* p_found, int64_t p_n); +static struct E_Queue__Popped__K__Branch* f_Queue__pop__K__Branch(srs_cap* p_eff__Region, struct E_Queue__Queue__K__Branch* p_q); +static struct E_Coll__List__K__State* f_Coll__rev__K__State(srs_cap* p_eff__Region, struct E_Coll__List__K__State* p_xs); +static struct E_Coll__List__K__State* f_Coll__revOnto__K__State(srs_cap* p_eff__Region, struct E_Coll__List__K__State* p_xs, struct E_Coll__List__K__State* p_acc); +static struct E_Queue__Queue__K__Branch* f_Queue__pushAll__K__Branch(srs_cap* p_eff__Region, struct E_Queue__Queue__K__Branch* p_q, struct E_Coll__List__K__Branch* p_xs); +static struct E_Queue__Queue__K__Branch* f_Queue__push__K__Branch(srs_cap* p_eff__Region, struct E_Queue__Queue__K__Branch* p_q, struct E_K__Branch* p_x); +static struct E_K__Run* f_K__solve(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rules, struct E_K__Goal* p_g, int64_t p_nvars, int64_t p_fuel, int64_t p_limit); +static struct E_Queue__Queue__K__Branch* f_Queue__empty__K__Branch(srs_cap* p_eff__Region); static bool f_Lex__isAlpha(int64_t p_c); static bool f_Lex__isDigit(int64_t p_c); static bool f_Lex__isPunct(int64_t p_c); @@ -2706,18 +2706,18 @@ static int64_t f_Lex__digitsEnd(srs_str p_src, int64_t p_i); static int64_t f_Lex__litEnd(srs_str p_src, int64_t p_i, int64_t p_n, int64_t p_q); static int64_t f_Lex__lineEnd(srs_str p_src, int64_t p_i, int64_t p_n); static int64_t f_Lex__top(struct E_Coll__List__I64* p_ind); -static struct E_Lex__Result* f_Lex__lex(srs_cap* p_r, srs_str p_src); -static struct E_Lex__Result* f_Lex__lexFrom(srs_cap* p_r, srs_str p_src, int64_t p_line); -static struct E_Lex__Result* f_Lex__go(srs_cap* p_r, srs_str p_src, int64_t p_n, int64_t p_i, int64_t p_line, int64_t p_depth, bool p_bol, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); -static struct E_Lex__Result* f_Lex__dedent(srs_cap* p_r, srs_str p_src, int64_t p_n, int64_t p_j, int64_t p_line, int64_t p_col, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); -static struct E_Lex__Result* f_Lex__finish(srs_cap* p_r, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); -static struct E_Coll__List__Lex__Tok* f_Lex__closeAll(srs_cap* p_r, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); -static struct E_Coll__List__Lex__Tok* f_Coll__rev__Lex__Tok(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_xs); -static struct E_Coll__List__Lex__Tok* f_Coll__revOnto__Lex__Tok(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_xs, struct E_Coll__List__Lex__Tok* p_acc); -static struct E_K__Term* f_Mono__ground(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t); -static struct E_K__Term* f_Mono__apply(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t); -static struct E_Coll__List__K__Term* f_Mono__applyAll(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__K__Term* f_Mono__groundAll(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc); +static struct E_Lex__Result* f_Lex__lex(srs_cap* p_eff__Region, srs_str p_src); +static struct E_Lex__Result* f_Lex__lexFrom(srs_cap* p_eff__Region, srs_str p_src, int64_t p_line); +static struct E_Lex__Result* f_Lex__go(srs_cap* p_eff__Region, srs_str p_src, int64_t p_n, int64_t p_i, int64_t p_line, int64_t p_depth, bool p_bol, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); +static struct E_Lex__Result* f_Lex__dedent(srs_cap* p_eff__Region, srs_str p_src, int64_t p_n, int64_t p_j, int64_t p_line, int64_t p_col, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); +static struct E_Lex__Result* f_Lex__finish(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); +static struct E_Coll__List__Lex__Tok* f_Lex__closeAll(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out); +static struct E_Coll__List__Lex__Tok* f_Coll__rev__Lex__Tok(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_xs); +static struct E_Coll__List__Lex__Tok* f_Coll__revOnto__Lex__Tok(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_xs, struct E_Coll__List__Lex__Tok* p_acc); +static struct E_K__Term* f_Mono__ground(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t); +static struct E_K__Term* f_Mono__apply(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t); +static struct E_Coll__List__K__Term* f_Mono__applyAll(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Mono__groundAll(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc); static bool f_Mono__termEq(struct E_K__Term* p_a, struct E_K__Term* p_b); static bool f_Mono__termsEq(struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_ys); static int64_t f_Mono__thash(struct E_K__Term* p_t, int64_t p_h); @@ -2725,559 +2725,559 @@ static int64_t f_Mono__thashAll(struct E_Coll__List__K__Term* p_ts, int64_t p_h) static int64_t f_Mono__keyHash(struct E_Mono__Key* p_k); static bool f_Mono__keyEq(struct E_Mono__Key* p_a, struct E_Mono__Key* p_b); static bool f_Mono__inBucket(struct E_Coll__List__Mono__Key* p_ks, struct E_Mono__Key* p_k); -static struct E_Coll__List__Mono__Inst* f_Mono__run(srs_cap* p_r, struct E_Ty__Result* p_res); -static struct E_Coll__SMap__El__Fn* f_Mono__fnMap(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m); -static struct E_Coll__List__Mono__Inst* f_Mono__roots(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Mono__Inst* p_acc); -static struct E_Coll__List__Mono__Inst* f_Coll__rev__Mono__Inst(srs_cap* p_r, struct E_Coll__List__Mono__Inst* p_xs); -static struct E_Coll__List__Mono__Inst* f_Coll__revOnto__Mono__Inst(srs_cap* p_r, struct E_Coll__List__Mono__Inst* p_xs, struct E_Coll__List__Mono__Inst* p_acc); -static struct E_Coll__List__Mono__Inst* f_Mono__loop(srs_cap* p_r, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made, struct E_Coll__List__Mono__Inst* p_out); -static struct E_Mono__Grow* f_Mono__enqueue(srs_cap* p_r, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Key* p_ks, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made); +static struct E_Coll__List__Mono__Inst* f_Mono__run(srs_cap* p_eff__Region, struct E_Ty__Result* p_res); +static struct E_Coll__SMap__El__Fn* f_Mono__fnMap(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m); +static struct E_Coll__List__Mono__Inst* f_Mono__roots(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Mono__Inst* p_acc); +static struct E_Coll__List__Mono__Inst* f_Coll__rev__Mono__Inst(srs_cap* p_eff__Region, struct E_Coll__List__Mono__Inst* p_xs); +static struct E_Coll__List__Mono__Inst* f_Coll__revOnto__Mono__Inst(srs_cap* p_eff__Region, struct E_Coll__List__Mono__Inst* p_xs, struct E_Coll__List__Mono__Inst* p_acc); +static struct E_Coll__List__Mono__Inst* f_Mono__loop(srs_cap* p_eff__Region, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made, struct E_Coll__List__Mono__Inst* p_out); +static struct E_Mono__Grow* f_Mono__enqueue(srs_cap* p_eff__Region, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Key* p_ks, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made); static struct E_Coll__List__Mono__Key* f_Coll__bTGetOr__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_d); static struct E_Coll__List__Mono__Key* f_Coll__bValOr__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_n, int64_t p_k, struct E_Coll__List__Mono__Key* p_d); static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bFind__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bPushT__Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Mono__Key* p_x); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bPushT__Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Mono__Key* p_x); static bool f_Coll__bIsNode__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_n); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRep__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bIns__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2L__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2L__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b); -static struct E_Coll__Split__Coll__List_1_Mono__Key* f_Coll__bSplitIns__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2R__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2R__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3A__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3A__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3B__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3B__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3C__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3C__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s); -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRootIns__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); -static struct E_Coll__List__Mono__Inst* f_Mono__implInsts(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_goal, struct E_Coll__List__Mono__Inst* p_todo); -static struct E_Coll__Option__Mono__Match* f_Mono__pick(srs_cap* p_r, struct E_Coll__List__El__Given* p_gvs, struct E_K__Term* p_t, struct E_Coll__Option__Mono__Match* p_best); -static bool f_Mono__better(srs_cap* p_r, struct E_El__Given* p_a, struct E_El__Given* p_b); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRep__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bIns__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2L__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2L__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b); +static struct E_Coll__Split__Coll__List_1_Mono__Key* f_Coll__bSplitIns__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2R__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2R__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3A__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3A__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3B__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3B__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3C__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3C__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s); +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRootIns__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v); +static struct E_Coll__List__Mono__Inst* f_Mono__implInsts(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_goal, struct E_Coll__List__Mono__Inst* p_todo); +static struct E_Coll__Option__Mono__Match* f_Mono__pick(srs_cap* p_eff__Region, struct E_Coll__List__El__Given* p_gvs, struct E_K__Term* p_t, struct E_Coll__Option__Mono__Match* p_best); +static bool f_Mono__better(srs_cap* p_eff__Region, struct E_El__Given* p_a, struct E_El__Given* p_b); static bool f_Mono__isSome(struct E_Coll__Option__Coll__List_1_Ty__Bind* p_o); -static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchT(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_K__Term* p_p, struct E_K__Term* p_t, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc); -static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchAll(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ps, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc); -static struct E_Coll__List__Mono__Key* f_Mono__calls(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_El__Expr* p_e, struct E_Coll__List__Mono__Key* p_acc); -static struct E_Coll__List__Mono__Key* f_Mono__callsAll(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__Mono__Key* p_acc); -static struct E_Coll__List__Mono__Key* f_Mono__armCalls(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__Mono__Key* p_acc); -static struct E_Coll__List__Mono__Key* f_Mono__stmtCalls(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__Mono__Key* p_acc); -static struct E_Sym__Sym* f_Names__relSym(srs_cap* p_r, struct E_Names__Rel* p_x); -static struct E_D__Val* f_Names__nsVal(srs_cap* p_r, struct E_Names__Ns* p_n); -static struct E_D__Val* f_Names__i(srs_cap* p_r, int64_t p_n); -static struct E_D__Val* f_Names__s(srs_cap* p_r, struct E_Sym__Sym* p_x); -static struct E_D__Fact* f_Names__f2(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b); -static struct E_D__Fact* f_Names__f3(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c); -static struct E_D__Fact* f_Names__f5(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e); -static struct E_D__Fact* f_Names__fDecl(srs_cap* p_r, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_id); -static struct E_D__Fact* f_Names__fDeclLine(srs_cap* p_r, int64_t p_id, int64_t p_line); -static struct E_D__Fact* f_Names__fUseCall(srs_cap* p_r, struct E_Sym__Sym* p_n, int64_t p_line); -static struct E_D__Fact* f_Names__fTyRef(srs_cap* p_r, struct E_Sym__Sym* p_n, int64_t p_line); -static struct E_D__Fact* f_Names__fState(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s); -static struct E_D__Fact* f_Names__fStart(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s, int64_t p_line); -static struct E_D__Fact* f_Names__fTrans(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b, int64_t p_line); -static struct E_D__Fact* f_Names__fDropOp(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_line); -static struct E_D__Fact* f_Names__fOpOf(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op); -static struct E_D__Fact* f_Names__fIsProto(srs_cap* p_r, struct E_Sym__Sym* p_p); -static struct E_D__Fact* f_Names__fHandlerFor(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_p, int64_t p_line); -static struct E_D__Fact* f_Names__fImpl(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f); -static struct E_D__Fact* f_Names__fImplArity(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f, int64_t p_n, int64_t p_line); -static struct E_D__Fact* f_Names__fWantArity(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_n); -static struct E_D__Fact* f_Names__fSameI(srs_cap* p_r, int64_t p_n); -static struct E_Names__St* f_Names__add(srs_cap* p_r, struct E_Names__St* p_st, struct E_D__Fact* p_f); -static struct E_Names__St* f_Names__declare(srs_cap* p_r, struct E_Names__St* p_st, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_line); -static struct E_Names__St* f_Names__builtins(srs_cap* p_r, struct E_Names__St* p_st); -static struct E_Coll__List__D__Fact* f_Names__facts(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Names__St* f_Names__decls(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__decl(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__tyArms(srs_cap* p_r, struct E_Coll__List__Ast__TyArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__valArms(srs_cap* p_r, struct E_Coll__List__Ast__ValArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__fnsIn(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Coll__List__Sym__Sym* f_Names__tparams(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Names__binderNames(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchT(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_K__Term* p_p, struct E_K__Term* p_t, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc); +static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchAll(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ps, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc); +static struct E_Coll__List__Mono__Key* f_Mono__calls(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_El__Expr* p_e, struct E_Coll__List__Mono__Key* p_acc); +static struct E_Coll__List__Mono__Key* f_Mono__callsAll(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__Mono__Key* p_acc); +static struct E_Coll__List__Mono__Key* f_Mono__armCalls(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__Mono__Key* p_acc); +static struct E_Coll__List__Mono__Key* f_Mono__stmtCalls(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__Mono__Key* p_acc); +static struct E_Sym__Sym* f_Names__relSym(srs_cap* p_eff__Region, struct E_Names__Rel* p_x); +static struct E_D__Val* f_Names__nsVal(srs_cap* p_eff__Region, struct E_Names__Ns* p_n); +static struct E_D__Val* f_Names__i(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Val* f_Names__s(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x); +static struct E_D__Fact* f_Names__f2(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b); +static struct E_D__Fact* f_Names__f3(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c); +static struct E_D__Fact* f_Names__f5(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e); +static struct E_D__Fact* f_Names__fDecl(srs_cap* p_eff__Region, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_id); +static struct E_D__Fact* f_Names__fDeclLine(srs_cap* p_eff__Region, int64_t p_id, int64_t p_line); +static struct E_D__Fact* f_Names__fUseCall(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n, int64_t p_line); +static struct E_D__Fact* f_Names__fTyRef(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n, int64_t p_line); +static struct E_D__Fact* f_Names__fState(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s); +static struct E_D__Fact* f_Names__fStart(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s, int64_t p_line); +static struct E_D__Fact* f_Names__fTrans(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b, int64_t p_line); +static struct E_D__Fact* f_Names__fDropOp(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_line); +static struct E_D__Fact* f_Names__fOpOf(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op); +static struct E_D__Fact* f_Names__fIsProto(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p); +static struct E_D__Fact* f_Names__fHandlerFor(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_p, int64_t p_line); +static struct E_D__Fact* f_Names__fImpl(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f); +static struct E_D__Fact* f_Names__fImplArity(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f, int64_t p_n, int64_t p_line); +static struct E_D__Fact* f_Names__fWantArity(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_n); +static struct E_D__Fact* f_Names__fSameI(srs_cap* p_eff__Region, int64_t p_n); +static struct E_Names__St* f_Names__add(srs_cap* p_eff__Region, struct E_Names__St* p_st, struct E_D__Fact* p_f); +static struct E_Names__St* f_Names__declare(srs_cap* p_eff__Region, struct E_Names__St* p_st, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_line); +static struct E_Names__St* f_Names__builtins(srs_cap* p_eff__Region, struct E_Names__St* p_st); +static struct E_Coll__List__D__Fact* f_Names__facts(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Names__St* f_Names__decls(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__decl(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Ast__Decl* p_d, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__tyArms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TyArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__valArms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__ValArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__fnsIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Coll__List__Sym__Sym* f_Names__tparams(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Names__binderNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); static bool f_Names__member(struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_xs); -static struct E_Names__St* f_Names__ty(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__tyIn(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__tys(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__binderTys(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__cases(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__fn(srs_cap* p_r, struct E_Ast__Fn* p_f, struct E_Coll__List__Sym__Sym* p_outer, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__groupTys(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Coll__List__Sym__Sym* f_Names__evidenceNames(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Names__St* f_Names__clauses(srs_cap* p_r, struct E_Coll__List__Ast__Clause* p_cs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__useAll(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_line, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__expr(srs_cap* p_r, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__exprs(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__arms(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Coll__List__Sym__Sym* f_Names__binderSyms(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Names__St* f_Names__block(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__annTy(srs_cap* p_r, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__proto(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Proto* p_p, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__statesF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__ops(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__transF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, int64_t p_line, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__handler(srs_cap* p_r, struct E_Ast__Handler* p_h, struct E_Names__St* p_st); -static struct E_Names__St* f_Names__hfns(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Names__St* p_st); -static struct E_D__Arg* f_Names__v(srs_cap* p_r, int64_t p_n); -static struct E_D__Atom* f_Names__atom(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__D__Arg* f_Names__vars(srs_cap* p_r, struct E_Coll__List__I64* p_xs); -static struct E_D__Lit* f_Names__pos(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_D__Lit* f_Names__neg(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_D__Rule* f_Names__rule(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body); -static struct E_D__Arg* f_Names__callNs(srs_cap* p_r); -static struct E_D__Arg* f_Names__typeNs(srs_cap* p_r); -static struct E_Coll__List__D__Rule* f_Names__rules(srs_cap* p_r); -static struct E_Coll__List__D__Lit* f_Names__l1__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a); -static struct E_Coll__List__D__Arg* f_Names__l1__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a); -static struct E_Coll__List__I64* f_Names__l5__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e); -static struct E_Coll__List__I64* f_Names__l1__I64(srs_cap* p_r, int64_t p_a); -static struct E_Coll__List__D__Lit* f_Names__l2__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b); -static struct E_Coll__List__D__Arg* f_Names__l2__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b); -static struct E_Coll__List__D__Lit* f_Names__l3__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c); -static struct E_Coll__List__D__Lit* f_Names__l4__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d); -static struct E_Coll__List__I64* f_Names__l3__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c); -static struct E_Coll__List__I64* f_Names__l4__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d); -static struct E_Coll__List__I64* f_Names__l2__I64(srs_cap* p_r, int64_t p_a, int64_t p_b); -static struct E_Coll__List__D__Rule* f_Names__l1__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a); +static struct E_Names__St* f_Names__ty(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__tyIn(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__tys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__binderTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__cases(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__fn(srs_cap* p_eff__Region, struct E_Ast__Fn* p_f, struct E_Coll__List__Sym__Sym* p_outer, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__groupTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Coll__List__Sym__Sym* f_Names__evidenceNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Names__St* f_Names__clauses(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Clause* p_cs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__useAll(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_line, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__expr(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__exprs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__arms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Coll__List__Sym__Sym* f_Names__binderSyms(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Names__St* f_Names__block(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__annTy(srs_cap* p_eff__Region, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__proto(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Ast__Proto* p_p, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__statesF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__ops(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__transF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, int64_t p_line, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__handler(srs_cap* p_eff__Region, struct E_Ast__Handler* p_h, struct E_Names__St* p_st); +static struct E_Names__St* f_Names__hfns(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Names__St* p_st); +static struct E_D__Arg* f_Names__v(srs_cap* p_eff__Region, int64_t p_n); +static struct E_D__Atom* f_Names__atom(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_Coll__List__D__Arg* f_Names__vars(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs); +static struct E_D__Lit* f_Names__pos(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_D__Lit* f_Names__neg(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_D__Rule* f_Names__rule(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body); +static struct E_D__Arg* f_Names__callNs(srs_cap* p_eff__Region); +static struct E_D__Arg* f_Names__typeNs(srs_cap* p_eff__Region); +static struct E_Coll__List__D__Rule* f_Names__rules(srs_cap* p_eff__Region); +static struct E_Coll__List__D__Lit* f_Names__l1__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a); +static struct E_Coll__List__D__Arg* f_Names__l1__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a); +static struct E_Coll__List__I64* f_Names__l5__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e); +static struct E_Coll__List__I64* f_Names__l1__I64(srs_cap* p_eff__Region, int64_t p_a); +static struct E_Coll__List__D__Lit* f_Names__l2__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b); +static struct E_Coll__List__D__Arg* f_Names__l2__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b); +static struct E_Coll__List__D__Lit* f_Names__l3__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c); +static struct E_Coll__List__D__Lit* f_Names__l4__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d); +static struct E_Coll__List__I64* f_Names__l3__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c); +static struct E_Coll__List__I64* f_Names__l4__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d); +static struct E_Coll__List__I64* f_Names__l2__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b); +static struct E_Coll__List__D__Rule* f_Names__l1__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a); static struct E_Names__Rel* f_Names__relOf(struct E_Names__Kind* p_k); -static struct E_Names__Clash* f_Names__make(srs_cap* p_r, struct E_Names__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_n); -static struct E_Names__Read* f_Names__read(srs_cap* p_r, struct E_D__Model* p_m, struct E_Names__Kind* p_k, struct E_Names__Read* p_prev); -static struct E_Names__Read* f_Names__readList(srs_cap* p_r, struct E_Names__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Names__Clash* p_acc); -static struct E_Coll__Option__Names__Clash* f_Names__clashOf(srs_cap* p_r, struct E_Names__Kind* p_k, struct E_Coll__List__D__Val* p_t); -static struct E_Names__Read* f_Names__readAll(srs_cap* p_r, struct E_D__Model* p_m); -static struct E_Names__Verdict* f_Names__check(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Lex__Tok* f_Parse__eof(srs_cap* p_r); -static struct E_Lex__Tok* f_Parse__peek(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Coll__List__Lex__Tok* f_Parse__next(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Lex__Tok* f_Parse__second(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Names__Clash* f_Names__make(srs_cap* p_eff__Region, struct E_Names__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_n); +static struct E_Names__Read* f_Names__read(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Names__Kind* p_k, struct E_Names__Read* p_prev); +static struct E_Names__Read* f_Names__readList(srs_cap* p_eff__Region, struct E_Names__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Names__Clash* p_acc); +static struct E_Coll__Option__Names__Clash* f_Names__clashOf(srs_cap* p_eff__Region, struct E_Names__Kind* p_k, struct E_Coll__List__D__Val* p_t); +static struct E_Names__Read* f_Names__readAll(srs_cap* p_eff__Region, struct E_D__Model* p_m); +static struct E_Names__Verdict* f_Names__check(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Lex__Tok* f_Parse__eof(srs_cap* p_eff__Region); +static struct E_Lex__Tok* f_Parse__peek(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Coll__List__Lex__Tok* f_Parse__next(struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Lex__Tok* f_Parse__second(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); static int64_t f_Parse__lineOf(struct E_Lex__Tok* p_t); -static int64_t f_Parse__line(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); +static int64_t f_Parse__line(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); static bool f_Parse__opIs(struct E_Lex__Tok* p_t, srs_str p_s); static bool f_Parse__kwIs(struct E_Lex__Tok* p_t, srs_str p_s); -static bool f_Parse__isOp(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); -static bool f_Parse__isKw(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); -static bool f_Parse__isNl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static bool f_Parse__isIndent(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static bool f_Parse__isDedent(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static bool f_Parse__isEof(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Coll__List__Lex__Tok* f_Parse__skipNl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__I64* f_Parse__op(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); -static struct E_Parse__R__I64* f_Parse__kw(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); -static struct E_Parse__R__Sym__Sym* f_Parse__ident(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__I64* f_Parse__layoutOpen(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Coll__List__Lex__Tok* f_Parse__endLine(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__file(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__decls(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Decl* p_acc); -static struct E_Coll__List__Ast__Decl* f_Coll__rev__Ast__Decl(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_xs); -static struct E_Coll__List__Ast__Decl* f_Coll__revOnto__Ast__Decl(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_xs, struct E_Coll__List__Ast__Decl* p_acc); -static struct E_Parse__R__Ast__Decl* f_Parse__decl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Decl* f_Parse__typeDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Ast__TBody* f_Parse__typeBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Binder* p_vals); +static bool f_Parse__isOp(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); +static bool f_Parse__isKw(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); +static bool f_Parse__isNl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static bool f_Parse__isIndent(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static bool f_Parse__isDedent(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static bool f_Parse__isEof(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Coll__List__Lex__Tok* f_Parse__skipNl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__I64* f_Parse__op(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); +static struct E_Parse__R__I64* f_Parse__kw(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s); +static struct E_Parse__R__Sym__Sym* f_Parse__ident(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__I64* f_Parse__layoutOpen(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Coll__List__Lex__Tok* f_Parse__endLine(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__file(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__decls(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Decl* p_acc); +static struct E_Coll__List__Ast__Decl* f_Coll__rev__Ast__Decl(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_xs); +static struct E_Coll__List__Ast__Decl* f_Coll__revOnto__Ast__Decl(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_xs, struct E_Coll__List__Ast__Decl* p_acc); +static struct E_Parse__R__Ast__Decl* f_Parse__decl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Decl* f_Parse__typeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Ast__TBody* f_Parse__typeBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Binder* p_vals); static bool f_Parse__binderNamed(struct E_Coll__List__Ast__Binder* p_bs, srs_str p_x); -static struct E_Parse__R__Ast__TBody* f_Parse__tyBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__I64* f_Parse__armsOpen(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__TyArm* f_Parse__tyArms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__TyArm* p_acc); -static struct E_Coll__List__Ast__TyArm* f_Coll__rev__Ast__TyArm(srs_cap* p_r, struct E_Coll__List__Ast__TyArm* p_xs); -static struct E_Coll__List__Ast__TyArm* f_Coll__revOnto__Ast__TyArm(srs_cap* p_r, struct E_Coll__List__Ast__TyArm* p_xs, struct E_Coll__List__Ast__TyArm* p_acc); -static struct E_Parse__R__Coll__List_1_Ast__ValArm* f_Parse__valArms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__ValArm* p_acc); -static struct E_Coll__List__Ast__ValArm* f_Coll__rev__Ast__ValArm(srs_cap* p_r, struct E_Coll__List__Ast__ValArm* p_xs); -static struct E_Coll__List__Ast__ValArm* f_Coll__revOnto__Ast__ValArm(srs_cap* p_r, struct E_Coll__List__Ast__ValArm* p_xs, struct E_Coll__List__Ast__ValArm* p_acc); -static struct E_Parse__R__Ast__VPat* f_Parse__valuePat(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Decl* f_Parse__traitDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Ast__Decl* f_Parse__givenDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Coll__List_1_Ast__Fn* f_Parse__defs(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, bool p_sig, struct E_Coll__List__Ast__Fn* p_acc); -static struct E_Coll__List__Ast__Fn* f_Coll__rev__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_xs); -static struct E_Coll__List__Ast__Fn* f_Coll__revOnto__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_xs, struct E_Coll__List__Ast__Fn* p_acc); -static struct E_Parse__R__Ast__Decl* f_Parse__wrapFn(srs_cap* p_r, struct E_Parse__R__Ast__Fn* p_rf); -static struct E_Parse__R__Ast__Fn* f_Parse__fn(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Parse__FnKind* p_k); -static struct E_Coll__List__Ast__Group* f_Coll__rev__Ast__Group(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_xs); -static struct E_Coll__List__Ast__Group* f_Coll__revOnto__Ast__Group(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_xs, struct E_Coll__List__Ast__Group* p_acc); -static struct E_Parse__R__Ast__Fn* f_Parse__fnBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, struct E_Parse__FnKind* p_k); -static struct E_Parse__R__Ast__Fn* f_Parse__bodyOf(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, bool p_spec); -static struct E_Parse__R__Coll__List_1_Ast__Clause* f_Parse__clauses(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Clause* p_acc); -static struct E_Coll__List__Ast__Clause* f_Coll__rev__Ast__Clause(srs_cap* p_r, struct E_Coll__List__Ast__Clause* p_xs); -static struct E_Coll__List__Ast__Clause* f_Coll__revOnto__Ast__Clause(srs_cap* p_r, struct E_Coll__List__Ast__Clause* p_xs, struct E_Coll__List__Ast__Clause* p_acc); -static struct E_Parse__R__Ast__Clause* f_Parse__clause(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Coll__Option__Ast__Cond* f_Parse__condOf(srs_cap* p_r, struct E_Lex__Tok* p_t); -static struct E_Parse__R__Ast__Clause* f_Parse__proof(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__groups(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Group* p_acc); -static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__moreGroups(srs_cap* p_r, struct E_Parse__R__Coll__List_1_Ast__Binder* p_rb, struct E_Parse__GKind* p_kind, struct E_Coll__List__Ast__Group* p_acc); -static struct E_Ast__Group* f_Parse__groupOf(srs_cap* p_r, struct E_Parse__GKind* p_k, struct E_Coll__List__Ast__Binder* p_bs); -static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__binders(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Binder* p_acc); -static struct E_Coll__List__Ast__Binder* f_Coll__rev__Ast__Binder(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_xs); -static struct E_Coll__List__Ast__Binder* f_Coll__revOnto__Ast__Binder(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_xs, struct E_Coll__List__Ast__Binder* p_acc); -static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__params(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__exitFacts(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__atoms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc); -static struct E_Parse__R__Ast__Atom* f_Parse__atom(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Term* f_Parse__terms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Term* p_acc); -static struct E_Coll__List__Ast__Term* f_Coll__rev__Ast__Term(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs); -static struct E_Coll__List__Ast__Term* f_Coll__revOnto__Ast__Term(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs, struct E_Coll__List__Ast__Term* p_acc); -static struct E_Parse__R__Ast__Ty* f_Parse__ty(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Ty* f_Parse__tys(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Ty* p_acc); -static struct E_Coll__List__Ast__Ty* f_Coll__rev__Ast__Ty(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_xs); -static struct E_Coll__List__Ast__Ty* f_Coll__revOnto__Ast__Ty(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_xs, struct E_Coll__List__Ast__Ty* p_acc); -static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__names(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__nameLine(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Parse__R__Ast__Decl* f_Parse__enumDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Coll__List_1_Ast__Case* f_Parse__cases(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Case* p_acc); -static struct E_Coll__List__Ast__Case* f_Coll__rev__Ast__Case(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_xs); -static struct E_Coll__List__Ast__Case* f_Coll__revOnto__Ast__Case(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_xs, struct E_Coll__List__Ast__Case* p_acc); -static struct E_Parse__R__Ast__Decl* f_Parse__proto(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Coll__List__Ast__Op* f_Coll__rev__Ast__Op(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_xs); -static struct E_Coll__List__Ast__Op* f_Coll__revOnto__Ast__Op(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_xs, struct E_Coll__List__Ast__Op* p_acc); -static struct E_Coll__List__Ast__RuleDef* f_Coll__rev__Ast__RuleDef(srs_cap* p_r, struct E_Coll__List__Ast__RuleDef* p_xs); -static struct E_Coll__List__Ast__RuleDef* f_Coll__revOnto__Ast__RuleDef(srs_cap* p_r, struct E_Coll__List__Ast__RuleDef* p_xs, struct E_Coll__List__Ast__RuleDef* p_acc); -static struct E_Parse__R__Parse__Pr* f_Parse__items(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Parse__Pr* p_pr); -static struct E_Parse__R__Ast__Op* f_Parse__opDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Coll__List_1_Ast__Trans* f_Parse__trans(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Trans* p_acc); -static struct E_Coll__List__Ast__Trans* f_Coll__rev__Ast__Trans(srs_cap* p_r, struct E_Coll__List__Ast__Trans* p_xs); -static struct E_Coll__List__Ast__Trans* f_Coll__revOnto__Ast__Trans(srs_cap* p_r, struct E_Coll__List__Ast__Trans* p_xs, struct E_Coll__List__Ast__Trans* p_acc); -static struct E_Parse__R__Ast__RuleDef* f_Parse__ruleDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__ruleBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc); -static struct E_Parse__R__Ast__Decl* f_Parse__handler(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Coll__List__Ast__Fn* f_Parse__stateless(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line); +static struct E_Parse__R__Ast__TBody* f_Parse__tyBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__I64* f_Parse__armsOpen(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__TyArm* f_Parse__tyArms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__TyArm* p_acc); +static struct E_Coll__List__Ast__TyArm* f_Coll__rev__Ast__TyArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TyArm* p_xs); +static struct E_Coll__List__Ast__TyArm* f_Coll__revOnto__Ast__TyArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TyArm* p_xs, struct E_Coll__List__Ast__TyArm* p_acc); +static struct E_Parse__R__Coll__List_1_Ast__ValArm* f_Parse__valArms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__ValArm* p_acc); +static struct E_Coll__List__Ast__ValArm* f_Coll__rev__Ast__ValArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__ValArm* p_xs); +static struct E_Coll__List__Ast__ValArm* f_Coll__revOnto__Ast__ValArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__ValArm* p_xs, struct E_Coll__List__Ast__ValArm* p_acc); +static struct E_Parse__R__Ast__VPat* f_Parse__valuePat(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Decl* f_Parse__traitDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Ast__Decl* f_Parse__givenDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Coll__List_1_Ast__Fn* f_Parse__defs(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, bool p_sig, struct E_Coll__List__Ast__Fn* p_acc); +static struct E_Coll__List__Ast__Fn* f_Coll__rev__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_xs); +static struct E_Coll__List__Ast__Fn* f_Coll__revOnto__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_xs, struct E_Coll__List__Ast__Fn* p_acc); +static struct E_Parse__R__Ast__Decl* f_Parse__wrapFn(srs_cap* p_eff__Region, struct E_Parse__R__Ast__Fn* p_rf); +static struct E_Parse__R__Ast__Fn* f_Parse__fn(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Parse__FnKind* p_k); +static struct E_Coll__List__Ast__Group* f_Coll__rev__Ast__Group(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_xs); +static struct E_Coll__List__Ast__Group* f_Coll__revOnto__Ast__Group(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_xs, struct E_Coll__List__Ast__Group* p_acc); +static struct E_Parse__R__Ast__Fn* f_Parse__fnBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, struct E_Parse__FnKind* p_k); +static struct E_Parse__R__Ast__Fn* f_Parse__bodyOf(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, bool p_spec); +static struct E_Parse__R__Coll__List_1_Ast__Clause* f_Parse__clauses(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Clause* p_acc); +static struct E_Coll__List__Ast__Clause* f_Coll__rev__Ast__Clause(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Clause* p_xs); +static struct E_Coll__List__Ast__Clause* f_Coll__revOnto__Ast__Clause(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Clause* p_xs, struct E_Coll__List__Ast__Clause* p_acc); +static struct E_Parse__R__Ast__Clause* f_Parse__clause(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Coll__Option__Ast__Cond* f_Parse__condOf(srs_cap* p_eff__Region, struct E_Lex__Tok* p_t); +static struct E_Parse__R__Ast__Clause* f_Parse__proof(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__groups(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Group* p_acc); +static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__moreGroups(srs_cap* p_eff__Region, struct E_Parse__R__Coll__List_1_Ast__Binder* p_rb, struct E_Parse__GKind* p_kind, struct E_Coll__List__Ast__Group* p_acc); +static struct E_Ast__Group* f_Parse__groupOf(srs_cap* p_eff__Region, struct E_Parse__GKind* p_k, struct E_Coll__List__Ast__Binder* p_bs); +static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__binders(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Binder* p_acc); +static struct E_Coll__List__Ast__Binder* f_Coll__rev__Ast__Binder(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_xs); +static struct E_Coll__List__Ast__Binder* f_Coll__revOnto__Ast__Binder(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_xs, struct E_Coll__List__Ast__Binder* p_acc); +static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__params(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__exitFacts(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__atoms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc); +static struct E_Parse__R__Ast__Atom* f_Parse__atom(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Term* f_Parse__terms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Term* p_acc); +static struct E_Coll__List__Ast__Term* f_Coll__rev__Ast__Term(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_xs); +static struct E_Coll__List__Ast__Term* f_Coll__revOnto__Ast__Term(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_xs, struct E_Coll__List__Ast__Term* p_acc); +static struct E_Parse__R__Ast__Ty* f_Parse__ty(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Ty* f_Parse__tys(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Ty* p_acc); +static struct E_Coll__List__Ast__Ty* f_Coll__rev__Ast__Ty(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_xs); +static struct E_Coll__List__Ast__Ty* f_Coll__revOnto__Ast__Ty(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_xs, struct E_Coll__List__Ast__Ty* p_acc); +static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__names(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__nameLine(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Parse__R__Ast__Decl* f_Parse__enumDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Coll__List_1_Ast__Case* f_Parse__cases(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Case* p_acc); +static struct E_Coll__List__Ast__Case* f_Coll__rev__Ast__Case(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_xs); +static struct E_Coll__List__Ast__Case* f_Coll__revOnto__Ast__Case(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_xs, struct E_Coll__List__Ast__Case* p_acc); +static struct E_Parse__R__Ast__Decl* f_Parse__proto(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Coll__List__Ast__Op* f_Coll__rev__Ast__Op(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_xs); +static struct E_Coll__List__Ast__Op* f_Coll__revOnto__Ast__Op(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_xs, struct E_Coll__List__Ast__Op* p_acc); +static struct E_Coll__List__Ast__RuleDef* f_Coll__rev__Ast__RuleDef(srs_cap* p_eff__Region, struct E_Coll__List__Ast__RuleDef* p_xs); +static struct E_Coll__List__Ast__RuleDef* f_Coll__revOnto__Ast__RuleDef(srs_cap* p_eff__Region, struct E_Coll__List__Ast__RuleDef* p_xs, struct E_Coll__List__Ast__RuleDef* p_acc); +static struct E_Parse__R__Parse__Pr* f_Parse__items(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Parse__Pr* p_pr); +static struct E_Parse__R__Ast__Op* f_Parse__opDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Coll__List_1_Ast__Trans* f_Parse__trans(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Trans* p_acc); +static struct E_Coll__List__Ast__Trans* f_Coll__rev__Ast__Trans(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trans* p_xs); +static struct E_Coll__List__Ast__Trans* f_Coll__revOnto__Ast__Trans(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trans* p_xs, struct E_Coll__List__Ast__Trans* p_acc); +static struct E_Parse__R__Ast__RuleDef* f_Parse__ruleDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__ruleBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc); +static struct E_Parse__R__Ast__Decl* f_Parse__handler(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Coll__List__Ast__Fn* f_Parse__stateless(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line); static bool f_Parse__hasInit(struct E_Coll__List__Ast__Fn* p_fs); -static struct E_Coll__List__Ast__Fn* f_Parse__withSelf(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Ast__Ty* p_ptr); -static struct E_Parse__R__Ast__Expr* f_Parse__rhs(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Expr* f_Parse__block(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Ast__Expr* f_Parse__stmts(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc); -static struct E_Ast__Expr* f_Parse__blockOf(srs_cap* p_r, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc); -static struct E_Coll__List__Ast__Stmt* f_Coll__rev__Ast__Stmt(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_xs); -static struct E_Coll__List__Ast__Stmt* f_Coll__revOnto__Ast__Stmt(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_xs, struct E_Coll__List__Ast__Stmt* p_acc); -static bool f_Parse__isPatVal(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Expr* f_Parse__patVal(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_vline, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc); -static struct E_Parse__R__Ast__Stmt* f_Parse__stmt(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Stmt* f_Parse__valStmt(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, bool p_isVar); -static struct E_Parse__R__Coll__Option_1_Ast__Ty* f_Parse__someTy(srs_cap* p_r, struct E_Parse__R__Ast__Ty* p_rt); -static struct E_Parse__R__Ast__Stmt* f_Parse__handleStmt(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Ast__Expr* f_Parse__expr(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Expr* f_Parse__quant(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Ast__Q* p_q); -static struct E_Parse__R__Ast__Expr* f_Parse__matchOf(srs_cap* p_r, struct E_Parse__R__Ast__Expr* p_re); -static struct E_Parse__R__Coll__List_1_Ast__Arm* f_Parse__arms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Arm* p_acc); -static struct E_Coll__List__Ast__Arm* f_Coll__rev__Ast__Arm(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_xs); -static struct E_Coll__List__Ast__Arm* f_Coll__revOnto__Ast__Arm(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_xs, struct E_Coll__List__Ast__Arm* p_acc); -static struct E_Parse__R__Ast__Pat* f_Parse__pat(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Expr* f_Parse__ifExpr(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Parse__R__Ast__Expr* f_Parse__whileExpr(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); -static struct E_Coll__Option__Parse__BinTok* f_Parse__binOf(srs_cap* p_r, struct E_Lex__Tok* p_t); -static struct E_Parse__R__Ast__Expr* f_Parse__binary(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl); -static struct E_Parse__R__Ast__Expr* f_Parse__binLoop(srs_cap* p_r, struct E_Ast__Expr* p_lhs, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl); -static struct E_Parse__R__Ast__Expr* f_Parse__unary(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Expr* f_Parse__unOf(srs_cap* p_r, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Parse__R__Ast__Expr* p_re); +static struct E_Coll__List__Ast__Fn* f_Parse__withSelf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Ast__Ty* p_ptr); +static struct E_Parse__R__Ast__Expr* f_Parse__rhs(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Expr* f_Parse__block(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Ast__Expr* f_Parse__stmts(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc); +static struct E_Ast__Expr* f_Parse__blockOf(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc); +static struct E_Coll__List__Ast__Stmt* f_Coll__rev__Ast__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_xs); +static struct E_Coll__List__Ast__Stmt* f_Coll__revOnto__Ast__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_xs, struct E_Coll__List__Ast__Stmt* p_acc); +static bool f_Parse__isPatVal(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Expr* f_Parse__patVal(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_vline, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc); +static struct E_Parse__R__Ast__Stmt* f_Parse__stmt(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Stmt* f_Parse__valStmt(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, bool p_isVar); +static struct E_Parse__R__Coll__Option_1_Ast__Ty* f_Parse__someTy(srs_cap* p_eff__Region, struct E_Parse__R__Ast__Ty* p_rt); +static struct E_Parse__R__Ast__Stmt* f_Parse__handleStmt(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Ast__Expr* f_Parse__expr(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Expr* f_Parse__quant(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Ast__Q* p_q); +static struct E_Parse__R__Ast__Expr* f_Parse__matchOf(srs_cap* p_eff__Region, struct E_Parse__R__Ast__Expr* p_re); +static struct E_Parse__R__Coll__List_1_Ast__Arm* f_Parse__arms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Arm* p_acc); +static struct E_Coll__List__Ast__Arm* f_Coll__rev__Ast__Arm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_xs); +static struct E_Coll__List__Ast__Arm* f_Coll__revOnto__Ast__Arm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_xs, struct E_Coll__List__Ast__Arm* p_acc); +static struct E_Parse__R__Ast__Pat* f_Parse__pat(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Expr* f_Parse__ifExpr(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Parse__R__Ast__Expr* f_Parse__whileExpr(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line); +static struct E_Coll__Option__Parse__BinTok* f_Parse__binOf(srs_cap* p_eff__Region, struct E_Lex__Tok* p_t); +static struct E_Parse__R__Ast__Expr* f_Parse__binary(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl); +static struct E_Parse__R__Ast__Expr* f_Parse__binLoop(srs_cap* p_eff__Region, struct E_Ast__Expr* p_lhs, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl); +static struct E_Parse__R__Ast__Expr* f_Parse__unary(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Expr* f_Parse__unOf(srs_cap* p_eff__Region, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Parse__R__Ast__Expr* p_re); static int64_t f_Parse__charValue(srs_str p_s); -static struct E_Parse__R__Ast__Expr* f_Parse__primary(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Ast__Expr* f_Parse__callGroups(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen); -static struct E_Parse__R__Ast__Expr* f_Parse__callOf(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Parse__R__Coll__List_1_Ast__Expr* p_ra); -static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__args(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts); -static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__exprs(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Expr* p_acc); -static struct E_Coll__List__Ast__Expr* f_Coll__rev__Ast__Expr(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs); -static struct E_Coll__List__Ast__Expr* f_Coll__revOnto__Ast__Expr(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc); -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__source(srs_cap* p_r, srs_str p_src); -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__sourceFrom(srs_cap* p_r, srs_str p_src, int64_t p_line); -static struct E_Sym__Sym* f_Pure__relSym(srs_cap* p_r, struct E_Pure__Rel* p_rel); +static struct E_Parse__R__Ast__Expr* f_Parse__primary(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Ast__Expr* f_Parse__callGroups(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen); +static struct E_Parse__R__Ast__Expr* f_Parse__callOf(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Parse__R__Coll__List_1_Ast__Expr* p_ra); +static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__args(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts); +static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__exprs(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Expr* p_acc); +static struct E_Coll__List__Ast__Expr* f_Coll__rev__Ast__Expr(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs); +static struct E_Coll__List__Ast__Expr* f_Coll__revOnto__Ast__Expr(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc); +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__source(srs_cap* p_eff__Region, srs_str p_src); +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__sourceFrom(srs_cap* p_eff__Region, srs_str p_src, int64_t p_line); +static struct E_Sym__Sym* f_Pure__relSym(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel); static struct E_Sym__Sym* f_Pure__subj(struct E_Pure__Who* p_w); static struct E_Pure__Rel* f_Pure__direct(struct E_Pure__Who* p_w); static struct E_Pure__Rel* f_Pure__calls(struct E_Pure__Who* p_w); static struct E_Pure__Rel* f_Pure__uses(struct E_Pure__Who* p_w); -static struct E_D__Fact* f_Pure__f1(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a); -static struct E_D__Fact* f_Pure__f2(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); -static struct E_D__Atom* f_Pure__atom(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__D__Arg* f_Pure__vars(srs_cap* p_r, struct E_Coll__List__I64* p_xs); -static struct E_D__Lit* f_Pure__pos(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs); -static struct E_Coll__List__I64* f_Pure__one(srs_cap* p_r, int64_t p_x); -static struct E_Coll__List__I64* f_Pure__two(srs_cap* p_r, int64_t p_x, int64_t p_y); -static struct E_D__Rule* f_Pure__rule1(srs_cap* p_r, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b); -static struct E_D__Rule* f_Pure__rule2(srs_cap* p_r, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b, struct E_Pure__Rel* p_c); -static struct E_Coll__List__D__Rule* f_Pure__rules(srs_cap* p_r); -static bool f_Pure__pureExtern(srs_cap* p_r, struct E_Sym__Sym* p_n); -static struct E_Coll__Option__Pure__Prim* f_Pure__prim(srs_cap* p_r, struct E_Sym__Sym* p_n); -static struct E_Coll__List__D__Fact* f_Pure__facts(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows); -static struct E_Coll__List__Sym__Sym* f_Pure__protos(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__SMap__Sym__Sym* f_Pure__hprotos(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Sym__Sym* p_m); -static struct E_Coll__List__D__Fact* f_Pure__decls(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__rowUses(srs_cap* p_r, struct E_Pure__Who* p_w, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__fns(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__fn(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Ast__Fn* p_f, struct E_Coll__List__D__Fact* p_acc); -static struct E_Pure__Ev* f_Pure__binders(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__expr(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Ast__Expr* p_e, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__exprs(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__arms(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__D__Fact* p_acc); -static struct E_Coll__List__D__Fact* f_Pure__stmts(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__D__Fact* p_acc); -static struct E_Pure__Set* f_Pure__impure(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows); -static struct E_Coll__SMap__Bool* f_Pure__names(srs_cap* p_r, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Bool* p_m); -static bool f_Pure__has(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_n); -static srs_str f_Store__text(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d); -static int64_t f_Store__write(srs_cap* p_r, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s); -static srs_str f_Store__read(srs_cap* p_r, srs_cap* p_eff__Store, srs_str p_dir, struct E_Hs__Dg* p_g); -static bool f_Store__same(srs_cap* p_r, srs_cap* p_eff__Console, srs_str p_entry, srs_str p_want); +static struct E_D__Fact* f_Pure__f1(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a); +static struct E_D__Fact* f_Pure__f2(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); +static struct E_D__Atom* f_Pure__atom(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_Coll__List__D__Arg* f_Pure__vars(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs); +static struct E_D__Lit* f_Pure__pos(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs); +static struct E_Coll__List__I64* f_Pure__one(srs_cap* p_eff__Region, int64_t p_x); +static struct E_Coll__List__I64* f_Pure__two(srs_cap* p_eff__Region, int64_t p_x, int64_t p_y); +static struct E_D__Rule* f_Pure__rule1(srs_cap* p_eff__Region, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b); +static struct E_D__Rule* f_Pure__rule2(srs_cap* p_eff__Region, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b, struct E_Pure__Rel* p_c); +static struct E_Coll__List__D__Rule* f_Pure__rules(srs_cap* p_eff__Region); +static bool f_Pure__pureExtern(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n); +static struct E_Coll__Option__Pure__Prim* f_Pure__prim(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n); +static struct E_Coll__List__D__Fact* f_Pure__facts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows); +static struct E_Coll__List__Sym__Sym* f_Pure__protos(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__SMap__Sym__Sym* f_Pure__hprotos(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Sym__Sym* p_m); +static struct E_Coll__List__D__Fact* f_Pure__decls(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__rowUses(srs_cap* p_eff__Region, struct E_Pure__Who* p_w, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__fns(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__fn(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Ast__Fn* p_f, struct E_Coll__List__D__Fact* p_acc); +static struct E_Pure__Ev* f_Pure__binders(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__expr(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Ast__Expr* p_e, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__exprs(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__arms(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__D__Fact* p_acc); +static struct E_Coll__List__D__Fact* f_Pure__stmts(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__D__Fact* p_acc); +static struct E_Pure__Set* f_Pure__impure(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows); +static struct E_Coll__SMap__Bool* f_Pure__names(srs_cap* p_eff__Region, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Bool* p_m); +static bool f_Pure__has(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_n); +static srs_str f_Store__text(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d); +static int64_t f_Store__write(srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s); +static srs_str f_Store__read(srs_cap* p_eff__Store, srs_str p_dir, struct E_Hs__Dg* p_g); +static bool f_Store__same(srs_cap* p_eff__Region, srs_cap* p_eff__Console, srs_str p_entry, srs_str p_want); static bool f_Store__seen(struct E_Coll__List__Hs__Dg* p_gs, struct E_Hs__Dg* p_g); -static int64_t f_Store__check(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Store__Tally* f_Store__decls(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, srs_str p_dir, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds, struct E_Store__Tally* p_t); -static struct E_Store__Tally* f_Store__one(srs_cap* p_r, srs_cap* p_eff__Console, srs_cap* p_eff__Store, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_want, struct E_Store__Tally* p_t); -static int64_t f_Store__wrote(srs_cap* p_r, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_w); -static struct E_Sym__Sym* f_Sym__of(srs_cap* p_r, srs_str p_s); +static int64_t f_Store__check(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Store__Tally* f_Store__decls(srs_cap* p_eff__Store, srs_cap* p_eff__Console, srs_cap* p_eff__Region, srs_str p_dir, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds, struct E_Store__Tally* p_t); +static struct E_Store__Tally* f_Store__one(srs_cap* p_eff__Console, srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_want, struct E_Store__Tally* p_t); +static int64_t f_Store__wrote(srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_w); +static struct E_Sym__Sym* f_Sym__of(srs_cap* p_eff__Region, srs_str p_s); static int64_t f_Sym__hash(struct E_Sym__Sym* p_a); static srs_str f_Sym__str(struct E_Sym__Sym* p_a); static bool f_Sym__eq(struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b); static int64_t f_Tl__fuel(void); -static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__expand(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sEmpty__Ast__TypeDecl(srs_cap* p_r); -static struct E_Tl__Cx* f_Tl__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Ast__TypeDecl* p_ts, struct E_Coll__SMap__Ast__Fn* p_fs); -static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sInsert__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v); +static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__expand(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sEmpty__Ast__TypeDecl(srs_cap* p_eff__Region); +static struct E_Tl__Cx* f_Tl__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Ast__TypeDecl* p_ts, struct E_Coll__SMap__Ast__Fn* p_fs); +static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sInsert__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v); static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k); static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_n); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__sSet__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__sSet__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v); static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_d); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b); -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s); -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); -static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__decls(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Decl* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Decl* f_Tl__decl(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Decl* p_d, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Fn* f_Tl__fns(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Fn* f_Tl__fn(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Fn* p_f, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Body* f_Tl__body(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Body* p_b, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Group* f_Tl__groups(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Group* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Binder* f_Tl__binders(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Binder* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Case* f_Tl__cases(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Case* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Op* f_Tl__ops(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Op* p_os, struct E_Coll__List__Ast__Op* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Expr* f_Tl__expr(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Expr* f_Tl__exprs(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Arm* f_Tl__arms(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Ast__Arm* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Stmt* f_Tl__stmts(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Ast__Stmt* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Stmt* f_Tl__stmt(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Stmt* p_s, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__Option_1_Ast__Ty* f_Tl__ann(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__Option__Ast__Ty* p_a, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tys(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Ty* f_Tl__ty(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__Ty* p_t, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); -static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sLookup__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s); -static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sFind__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b); +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s); +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v); +static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__decls(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Decl* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Decl* f_Tl__decl(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Decl* p_d, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Fn* f_Tl__fns(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Fn* f_Tl__fn(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Fn* p_f, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Body* f_Tl__body(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Body* p_b, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Group* f_Tl__groups(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Group* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Binder* f_Tl__binders(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Binder* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Case* f_Tl__cases(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Case* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Op* f_Tl__ops(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Op* p_os, struct E_Coll__List__Ast__Op* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Expr* f_Tl__expr(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Expr* f_Tl__exprs(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Arm* f_Tl__arms(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Ast__Arm* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Stmt* f_Tl__stmts(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Ast__Stmt* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Stmt* f_Tl__stmt(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Stmt* p_s, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__Option_1_Ast__Ty* f_Tl__ann(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__Option__Ast__Ty* p_a, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tys(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Ty* f_Tl__ty(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__Ty* p_t, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); +static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sLookup__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s); +static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sFind__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s); static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_d); -static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tyArgs(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Ty* p_ts, int64_t p_fuel, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es); -static struct E_Coll__Option__Ast__Ty* f_Tl__btLookup(srs_cap* p_r, struct E_Coll__List__Tl__Bt* p_bs, struct E_Sym__Sym* p_x); -static struct E_Tl__W__Ast__Ty* f_Tl__apply(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__TypeDecl* p_td, int64_t p_line, struct E_Coll__List__Ast__Ty* p_args, struct E_Ast__Caps* p_caps, struct E_Coll__List__Ast__Expr* p_vals, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); -static struct E_Coll__List__Tl__Bt* f_Tl__zipBt(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Bt* p_acc); -static struct E_Tl__W__Ast__Ty* f_Tl__reduce(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__TBody* p_body, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Ty* f_Tl__tyArm(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__Ty* p_s, struct E_Coll__List__Ast__TyArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); -static struct E_Tl__W__Ast__Ty* f_Tl__valArm(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Tl__V* p_v, struct E_Coll__List__Ast__ValArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tyArgs(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Ty* p_ts, int64_t p_fuel, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es); +static struct E_Coll__Option__Ast__Ty* f_Tl__btLookup(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Bt* p_bs, struct E_Sym__Sym* p_x); +static struct E_Tl__W__Ast__Ty* f_Tl__apply(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__TypeDecl* p_td, int64_t p_line, struct E_Coll__List__Ast__Ty* p_args, struct E_Ast__Caps* p_caps, struct E_Coll__List__Ast__Expr* p_vals, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); +static struct E_Coll__List__Tl__Bt* f_Tl__zipBt(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Bt* p_acc); +static struct E_Tl__W__Ast__Ty* f_Tl__reduce(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__TBody* p_body, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Ty* f_Tl__tyArm(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__Ty* p_s, struct E_Coll__List__Ast__TyArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); +static struct E_Tl__W__Ast__Ty* f_Tl__valArm(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Tl__V* p_v, struct E_Coll__List__Ast__ValArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es); static bool f_Tl__fits(struct E_Ast__VPat* p_p, struct E_Tl__V* p_v); static bool f_Tl__tyEq(struct E_Ast__Ty* p_a, struct E_Ast__Ty* p_b); static bool f_Tl__tysEq(struct E_Coll__List__Ast__Ty* p_xs, struct E_Coll__List__Ast__Ty* p_ys); -static struct E_Tl__Vals* f_Tl__bindVals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Bv* p_acc); +static struct E_Tl__Vals* f_Tl__bindVals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Bv* p_acc); static bool f_Tl__fitsTy(struct E_Ast__Ty* p_t, struct E_Tl__V* p_v); -static struct E_Coll__List__Tl__Err* f_Tl__typeDecl(srs_cap* p_r, struct E_Ast__TypeDecl* p_td, struct E_Coll__List__Tl__Err* p_es); -static struct E_Coll__List__Tl__Err* f_Tl__binderTys(srs_cap* p_r, int64_t p_line, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Err* p_es); -static struct E_Coll__Option__Ast__Ty* f_Tl__binderTyOf(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_x); -static struct E_Coll__List__Tl__Err* f_Tl__patTys(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_n, struct E_Ast__Ty* p_t, struct E_Coll__List__Ast__ValArm* p_arms, struct E_Coll__List__Tl__Err* p_es); -static struct E_Coll__Option__Tl__V* f_Tl__bvLookup(srs_cap* p_r, struct E_Coll__List__Tl__Bv* p_bs, struct E_Sym__Sym* p_x); -static struct E_Coll__Option__Tl__V* f_Tl__eval(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Ast__Expr* p_e, int64_t p_fuel); -static struct E_Coll__Option__Tl__V* f_Tl__evalBlock(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_fuel); -static struct E_Coll__Option__Tl__V* f_Tl__call(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel); -static struct E_Coll__Option__Coll__List_1_Tl__Bv* f_Tl__args(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel, struct E_Coll__List__Tl__Bv* p_acc); -static struct E_Coll__Option__Tl__V* f_Tl__bin(srs_cap* p_r, struct E_Ast__BinOp* p_op, struct E_Coll__Option__Tl__V* p_a, struct E_Coll__Option__Tl__V* p_b); -static struct E_Coll__Option__Tl__V* f_Tl__binV(srs_cap* p_r, struct E_Ast__BinOp* p_op, struct E_Tl__V* p_a, struct E_Tl__V* p_b); -static struct E_Coll__Option__Tl__V* f_Tl__binI(srs_cap* p_r, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y); -static struct E_Coll__Option__Tl__V* f_Tl__un(srs_cap* p_r, struct E_Ast__UnOp* p_op, struct E_Coll__Option__Tl__V* p_a); -static struct E_Coll__List__Tl__Goal* f_Tl__typeGoals(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__List__Tl__Goal* f_Tl__declGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Coll__rev__Tl__Goal(srs_cap* p_r, struct E_Coll__List__Tl__Goal* p_xs); -static struct E_Coll__List__Tl__Goal* f_Coll__revOnto__Tl__Goal(srs_cap* p_r, struct E_Coll__List__Tl__Goal* p_xs, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__bindersGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__tyGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Ty* p_t, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__tysGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__evGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__exprGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__exprsGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__armsGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__stmtsGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Tl__Goal* p_acc); -static struct E_Coll__List__Tl__Goal* f_Tl__annGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Err* f_Tl__typeDecl(srs_cap* p_eff__Region, struct E_Ast__TypeDecl* p_td, struct E_Coll__List__Tl__Err* p_es); +static struct E_Coll__List__Tl__Err* f_Tl__binderTys(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Err* p_es); +static struct E_Coll__Option__Ast__Ty* f_Tl__binderTyOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_x); +static struct E_Coll__List__Tl__Err* f_Tl__patTys(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_n, struct E_Ast__Ty* p_t, struct E_Coll__List__Ast__ValArm* p_arms, struct E_Coll__List__Tl__Err* p_es); +static struct E_Coll__Option__Tl__V* f_Tl__bvLookup(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Bv* p_bs, struct E_Sym__Sym* p_x); +static struct E_Coll__Option__Tl__V* f_Tl__eval(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Ast__Expr* p_e, int64_t p_fuel); +static struct E_Coll__Option__Tl__V* f_Tl__evalBlock(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_fuel); +static struct E_Coll__Option__Tl__V* f_Tl__call(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel); +static struct E_Coll__Option__Coll__List_1_Tl__Bv* f_Tl__args(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel, struct E_Coll__List__Tl__Bv* p_acc); +static struct E_Coll__Option__Tl__V* f_Tl__bin(srs_cap* p_eff__Region, struct E_Ast__BinOp* p_op, struct E_Coll__Option__Tl__V* p_a, struct E_Coll__Option__Tl__V* p_b); +static struct E_Coll__Option__Tl__V* f_Tl__binV(srs_cap* p_eff__Region, struct E_Ast__BinOp* p_op, struct E_Tl__V* p_a, struct E_Tl__V* p_b); +static struct E_Coll__Option__Tl__V* f_Tl__binI(srs_cap* p_eff__Region, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y); +static struct E_Coll__Option__Tl__V* f_Tl__un(srs_cap* p_eff__Region, struct E_Ast__UnOp* p_op, struct E_Coll__Option__Tl__V* p_a); +static struct E_Coll__List__Tl__Goal* f_Tl__typeGoals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__List__Tl__Goal* f_Tl__declGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Coll__rev__Tl__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Goal* p_xs); +static struct E_Coll__List__Tl__Goal* f_Coll__revOnto__Tl__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Goal* p_xs, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__bindersGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__tyGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Ty* p_t, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__tysGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__evGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__exprGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__exprsGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__armsGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__stmtsGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Tl__Goal* p_acc); +static struct E_Coll__List__Tl__Goal* f_Tl__annGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Tl__Goal* p_acc); static bool f_Tl__nominal(struct E_Ast__TypeDecl* p_td); static bool f_Tl__hasFacts(struct E_Coll__List__Ast__Group* p_gs); -static struct E_K__Term* f_Ty__con(srs_cap* p_r, srs_str p_n); -static struct E_Ty__At* f_Ty__fresh(srs_cap* p_r, struct E_Ty__St* p_st); -static struct E_Ty__St* f_Ty__clash(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Ty__Clash* p_c); -static struct E_Ty__St* f_Ty__expect(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_K__Term* p_want); -static struct E_Coll__Option__K__Term* f_Ty__widen(srs_cap* p_r, struct E_Coll__SMap__K__Term* p_nm, struct E_K__Term* p_t); -static struct E_Coll__SMap__K__Term* f_Ty__nominals(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__K__Term* p_m); -static struct E_Ty__St* f_Ty__expectOpt(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_Coll__Option__K__Term* p_want); -static struct E_Coll__Option__K__Term* f_Ty__lookup(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x); -static struct E_K__Term* f_Ty__term(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Ty__Bind* p_tv); -static struct E_Coll__List__K__Term* f_Ty__terms(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); -static struct E_Coll__List__Sym__Sym* f_Ty__tparams(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__Sym__Sym* f_Ty__names(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Ty__Open* f_Ty__open(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_vars); -static struct E_Coll__List__Ty__Bind* f_Ty__rigid(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_acc); -static struct E_Coll__Option__Ast__Fn* f_Ty__fnNamed(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Sym__Sym* p_f); -static struct E_Coll__Option__Ty__CaseOf* f_Ty__caseNamed(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f); -static struct E_Coll__Option__Ast__Case* f_Ty__caseIn(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, struct E_Sym__Sym* p_f); -static struct E_Ty__Open* f_Ty__openEnum(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Ast__Enum* p_e); -static struct E_K__Term* f_Ty__enumTerm(srs_cap* p_r, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_vars); -static struct E_Ty__Ex* f_Ty__expr(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Ast__Expr* p_e, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__lit(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_t, struct E_Coll__Option__K__Term* p_want, struct E_El__Expr* p_e); -static struct E_Ty__Ex* f_Ty__bad(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line); -static struct E_Ty__Ex* f_Ty__call(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__request(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Eff__Req* p_q, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); -static struct E_Coll__Option__Sym__Sym* f_Ty__innermost(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p); -static struct E_Coll__Option__Sym__Sym* f_Ty__innermostFrom(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_seen); -static struct E_Ty__Caps* f_Ty__rowCaps(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Ty__St* f_Ty__args(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs); -static struct E_Ty__Ex* f_Ty__callFn(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__Fn* p_g, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__St* f_Ty__inst(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_name, struct E_Coll__List__K__Term* p_vars); -static struct E_Ty__St* f_Ty__explicit(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__K__Term* p_vars, struct E_Coll__List__K__Term* p_ts); -static struct E_Ty__Es* f_Ty__params(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc); -static struct E_Coll__List__El__Expr* f_Coll__rev__El__Expr(srs_cap* p_r, struct E_Coll__List__El__Expr* p_xs); -static struct E_Coll__List__El__Expr* f_Coll__revOnto__El__Expr(srs_cap* p_r, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc); -static struct E_Ty__Caps* f_Ty__capArgs(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Ty__Caps* f_Ty__capFor(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i); -static struct E_Coll__List__Sym__Sym* f_Ty__capsOf(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_K__Term* f_Ty__con(srs_cap* p_eff__Region, srs_str p_n); +static struct E_Ty__At* f_Ty__fresh(srs_cap* p_eff__Region, struct E_Ty__St* p_st); +static struct E_Ty__St* f_Ty__clash(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Ty__Clash* p_c); +static struct E_Ty__St* f_Ty__expect(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_K__Term* p_want); +static struct E_Coll__Option__K__Term* f_Ty__widen(srs_cap* p_eff__Region, struct E_Coll__SMap__K__Term* p_nm, struct E_K__Term* p_t); +static struct E_Coll__SMap__K__Term* f_Ty__nominals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__K__Term* p_m); +static struct E_Ty__St* f_Ty__expectOpt(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_Coll__Option__K__Term* p_want); +static struct E_Coll__Option__K__Term* f_Ty__lookup(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x); +static struct E_K__Term* f_Ty__term(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Ty__Bind* p_tv); +static struct E_Coll__List__K__Term* f_Ty__terms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__Sym__Sym* f_Ty__tparams(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__Sym__Sym* f_Ty__names(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Ty__Open* f_Ty__open(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_vars); +static struct E_Coll__List__Ty__Bind* f_Ty__rigid(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_acc); +static struct E_Coll__Option__Ast__Fn* f_Ty__fnNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Sym__Sym* p_f); +static struct E_Coll__Option__Ty__CaseOf* f_Ty__caseNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f); +static struct E_Coll__Option__Ast__Case* f_Ty__caseIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, struct E_Sym__Sym* p_f); +static struct E_Ty__Open* f_Ty__openEnum(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Ast__Enum* p_e); +static struct E_K__Term* f_Ty__enumTerm(srs_cap* p_eff__Region, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_vars); +static struct E_Ty__Ex* f_Ty__expr(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Ast__Expr* p_e, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__lit(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_t, struct E_Coll__Option__K__Term* p_want, struct E_El__Expr* p_e); +static struct E_Ty__Ex* f_Ty__bad(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line); +static struct E_Ty__Ex* f_Ty__call(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__request(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Eff__Req* p_q, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); +static struct E_Coll__Option__Sym__Sym* f_Ty__innermost(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p); +static struct E_Coll__Option__Sym__Sym* f_Ty__innermostFrom(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_seen); +static struct E_Ty__Caps* f_Ty__rowCaps(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Ty__St* f_Ty__args(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs); +static struct E_Ty__Ex* f_Ty__callFn(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__Fn* p_g, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__St* f_Ty__inst(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_name, struct E_Coll__List__K__Term* p_vars); +static struct E_Ty__St* f_Ty__explicit(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__K__Term* p_vars, struct E_Coll__List__K__Term* p_ts); +static struct E_Ty__Es* f_Ty__params(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc); +static struct E_Coll__List__El__Expr* f_Coll__rev__El__Expr(srs_cap* p_eff__Region, struct E_Coll__List__El__Expr* p_xs); +static struct E_Coll__List__El__Expr* f_Coll__revOnto__El__Expr(srs_cap* p_eff__Region, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc); +static struct E_Ty__Caps* f_Ty__capArgs(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Ty__Caps* f_Ty__capFor(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i); +static struct E_Coll__List__Sym__Sym* f_Ty__capsOf(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_acc); static bool f_Ty__memberSym(struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_xs); -static struct E_Coll__Option__Sym__Sym* f_Ty__nthSym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i); +static struct E_Coll__Option__Sym__Sym* f_Ty__nthSym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i); static bool f_Ty__isProto(struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_n); -static struct E_Ty__Ex* f_Ty__callCase(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ty__CaseOf* p_co, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__method(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__callCase(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ty__CaseOf* p_co, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__method(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); static struct E_Coll__IMap__K__Term* f_Ty__subst(struct E_Ty__St* p_st); -static struct E_Ty__Ex* f_Ty__callSig(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_K__Term* p_rty, struct E_Sym__Sym* p_name, struct E_Coll__List__Ast__Binder* p_ps, struct E_Ast__Ty* p_ret, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); -static struct E_Coll__List__Ty__Bind* f_Ty__zipBind(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Bind* p_acc); -static struct E_Coll__Option__Ast__Op* f_Ty__protoOp(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op); -static struct E_Coll__Option__Ast__Op* f_Ty__opIn(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_os, struct E_Sym__Sym* p_op); -static struct E_Coll__Option__Ty__TM* f_Ty__traitMethod(srs_cap* p_r, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_t, struct E_Sym__Sym* p_op); -static struct E_Ty__Ex* f_Ty__bin(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__both(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_K__Term* p_arg, struct E_K__Term* p_res, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__eqOp(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__arms(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__Option__K__Term* p_want); -static struct E_Ty__Ex* f_Ty__armsSame(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_K__Term* p_t, struct E_Coll__List__El__Arm* p_acc); -static struct E_Coll__List__El__Arm* f_Coll__rev__El__Arm(srs_cap* p_r, struct E_Coll__List__El__Arm* p_xs); -static struct E_Coll__List__El__Arm* f_Coll__revOnto__El__Arm(srs_cap* p_r, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__El__Arm* p_acc); -static struct E_Ty__AEx* f_Ty__arm(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_ts, struct E_Ast__Arm* p_a, struct E_Coll__Option__K__Term* p_want); -static struct E_Coll__List__Ty__Bind* f_Ty__bindFields(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_bs); -static struct E_Ty__Ex* f_Ty__block(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc); -static struct E_Coll__List__El__Stmt* f_Coll__rev__El__Stmt(srs_cap* p_r, struct E_Coll__List__El__Stmt* p_xs); -static struct E_Coll__List__El__Stmt* f_Coll__revOnto__El__Stmt(srs_cap* p_r, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__El__Stmt* p_acc); -static struct E_Ty__Es* f_Ty__exprs(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc); -static struct E_Ty__Ex* f_Ty__bindStmt(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, int64_t p_sl, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, bool p_mut, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc); +static struct E_Ty__Ex* f_Ty__callSig(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_K__Term* p_rty, struct E_Sym__Sym* p_name, struct E_Coll__List__Ast__Binder* p_ps, struct E_Ast__Ty* p_ret, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want); +static struct E_Coll__List__Ty__Bind* f_Ty__zipBind(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Bind* p_acc); +static struct E_Coll__Option__Ast__Op* f_Ty__protoOp(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op); +static struct E_Coll__Option__Ast__Op* f_Ty__opIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_os, struct E_Sym__Sym* p_op); +static struct E_Coll__Option__Ty__TM* f_Ty__traitMethod(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_t, struct E_Sym__Sym* p_op); +static struct E_Ty__Ex* f_Ty__bin(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__both(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_K__Term* p_arg, struct E_K__Term* p_res, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__eqOp(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__arms(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__Option__K__Term* p_want); +static struct E_Ty__Ex* f_Ty__armsSame(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_K__Term* p_t, struct E_Coll__List__El__Arm* p_acc); +static struct E_Coll__List__El__Arm* f_Coll__rev__El__Arm(srs_cap* p_eff__Region, struct E_Coll__List__El__Arm* p_xs); +static struct E_Coll__List__El__Arm* f_Coll__revOnto__El__Arm(srs_cap* p_eff__Region, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__El__Arm* p_acc); +static struct E_Ty__AEx* f_Ty__arm(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_ts, struct E_Ast__Arm* p_a, struct E_Coll__Option__K__Term* p_want); +static struct E_Coll__List__Ty__Bind* f_Ty__bindFields(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_bs); +static struct E_Ty__Ex* f_Ty__block(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc); +static struct E_Coll__List__El__Stmt* f_Coll__rev__El__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__El__Stmt* p_xs); +static struct E_Coll__List__El__Stmt* f_Coll__revOnto__El__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__El__Stmt* p_acc); +static struct E_Ty__Es* f_Ty__exprs(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc); +static struct E_Ty__Ex* f_Ty__bindStmt(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, int64_t p_sl, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, bool p_mut, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc); static struct E_Sym__Sym* f_Ty__protoOf(struct E_Coll__List__Ast__Handler* p_hs, struct E_Sym__Sym* p_h); -static struct E_Ty__FnEx* f_Ty__fn(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st0, struct E_Ast__Fn* p_f, struct E_Coll__List__Eff__Cap* p_row); -static struct E_Coll__List__Ty__Bind* f_Ty__rowBinds(srs_cap* p_r, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__Ty__Bind* p_acc); -static struct E_Coll__List__Sym__Sym* f_Ty__rowNames(srs_cap* p_r, struct E_Coll__List__Eff__Cap* p_row); -static struct E_Coll__List__Sym__Sym* f_Ty__capNames(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Coll__List__El__Param* f_Ty__elParams(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__El__Param* p_acc); -static struct E_Coll__List__El__Param* f_Coll__rev__El__Param(srs_cap* p_r, struct E_Coll__List__El__Param* p_xs); -static struct E_Coll__List__El__Param* f_Coll__revOnto__El__Param(srs_cap* p_r, struct E_Coll__List__El__Param* p_xs, struct E_Coll__List__El__Param* p_acc); -static struct E_Coll__List__Ty__Bind* f_Ty__binds(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_acc); -static struct E_Coll__List__Ast__Binder* f_Ty__evidence(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_acc); -static struct E_Ty__Cx* f_Ty__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Trait* p_trs); -static struct E_Ty__Result* f_Ty__check(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Ty__Result* f_Ty__checkWith(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Eff__Rows* p_rows); -static struct E_Coll__List__Ty__Goal* f_Coll__rev__Ty__Goal(srs_cap* p_r, struct E_Coll__List__Ty__Goal* p_xs); -static struct E_Coll__List__Ty__Goal* f_Coll__revOnto__Ty__Goal(srs_cap* p_r, struct E_Coll__List__Ty__Goal* p_xs, struct E_Coll__List__Ty__Goal* p_acc); -static struct E_Ty__Fns* f_Ty__decls(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__El__Fn* p_acc, struct E_Coll__List__El__Handler* p_hacc, struct E_Coll__List__El__Given* p_gacc); -static struct E_Coll__List__El__Fn* f_Coll__rev__El__Fn(srs_cap* p_r, struct E_Coll__List__El__Fn* p_xs); -static struct E_Coll__List__El__Fn* f_Coll__revOnto__El__Fn(srs_cap* p_r, struct E_Coll__List__El__Fn* p_xs, struct E_Coll__List__El__Fn* p_acc); -static struct E_Coll__List__El__Handler* f_Coll__rev__El__Handler(srs_cap* p_r, struct E_Coll__List__El__Handler* p_xs); -static struct E_Coll__List__El__Handler* f_Coll__revOnto__El__Handler(srs_cap* p_r, struct E_Coll__List__El__Handler* p_xs, struct E_Coll__List__El__Handler* p_acc); -static struct E_Coll__List__El__Given* f_Coll__rev__El__Given(srs_cap* p_r, struct E_Coll__List__El__Given* p_xs); -static struct E_Coll__List__El__Given* f_Coll__revOnto__El__Given(srs_cap* p_r, struct E_Coll__List__El__Given* p_xs, struct E_Coll__List__El__Given* p_acc); -static struct E_Coll__List__Ast__Fn* f_Ty__underGroups(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc); -static struct E_Coll__List__Sym__Sym* f_Ty__binderNames(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Ty__Fns* f_Ty__fnsEl(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__El__Fn* p_acc); -static struct E_Coll__List__Ty__Clash* f_Ty__unsolved(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs); -static bool f_Ty__ground(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts); +static struct E_Ty__FnEx* f_Ty__fn(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st0, struct E_Ast__Fn* p_f, struct E_Coll__List__Eff__Cap* p_row); +static struct E_Coll__List__Ty__Bind* f_Ty__rowBinds(srs_cap* p_eff__Region, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__Ty__Bind* p_acc); +static struct E_Coll__List__Sym__Sym* f_Ty__rowNames(srs_cap* p_eff__Region, struct E_Coll__List__Eff__Cap* p_row); +static struct E_Coll__List__Sym__Sym* f_Ty__capNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Coll__List__El__Param* f_Ty__elParams(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__El__Param* p_acc); +static struct E_Coll__List__El__Param* f_Coll__rev__El__Param(srs_cap* p_eff__Region, struct E_Coll__List__El__Param* p_xs); +static struct E_Coll__List__El__Param* f_Coll__revOnto__El__Param(srs_cap* p_eff__Region, struct E_Coll__List__El__Param* p_xs, struct E_Coll__List__El__Param* p_acc); +static struct E_Coll__List__Ty__Bind* f_Ty__binds(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_acc); +static struct E_Coll__List__Ast__Binder* f_Ty__evidence(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_acc); +static struct E_Ty__Cx* f_Ty__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Trait* p_trs); +static struct E_Ty__Result* f_Ty__check(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Ty__Result* f_Ty__checkWith(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Eff__Rows* p_rows); +static struct E_Coll__List__Ty__Goal* f_Coll__rev__Ty__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Goal* p_xs); +static struct E_Coll__List__Ty__Goal* f_Coll__revOnto__Ty__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Goal* p_xs, struct E_Coll__List__Ty__Goal* p_acc); +static struct E_Ty__Fns* f_Ty__decls(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__El__Fn* p_acc, struct E_Coll__List__El__Handler* p_hacc, struct E_Coll__List__El__Given* p_gacc); +static struct E_Coll__List__El__Fn* f_Coll__rev__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_xs); +static struct E_Coll__List__El__Fn* f_Coll__revOnto__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_xs, struct E_Coll__List__El__Fn* p_acc); +static struct E_Coll__List__El__Handler* f_Coll__rev__El__Handler(srs_cap* p_eff__Region, struct E_Coll__List__El__Handler* p_xs); +static struct E_Coll__List__El__Handler* f_Coll__revOnto__El__Handler(srs_cap* p_eff__Region, struct E_Coll__List__El__Handler* p_xs, struct E_Coll__List__El__Handler* p_acc); +static struct E_Coll__List__El__Given* f_Coll__rev__El__Given(srs_cap* p_eff__Region, struct E_Coll__List__El__Given* p_xs); +static struct E_Coll__List__El__Given* f_Coll__revOnto__El__Given(srs_cap* p_eff__Region, struct E_Coll__List__El__Given* p_xs, struct E_Coll__List__El__Given* p_acc); +static struct E_Coll__List__Ast__Fn* f_Ty__underGroups(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc); +static struct E_Coll__List__Sym__Sym* f_Ty__binderNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Ty__Fns* f_Ty__fnsEl(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__El__Fn* p_acc); +static struct E_Coll__List__Ty__Clash* f_Ty__unsolved(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs); +static bool f_Ty__ground(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts); static bool f_Ty__groundT(struct E_K__Term* p_t); static bool f_Ty__groundAll(struct E_Coll__List__K__Term* p_ts); static srs_str f_Ty__unTy(struct E_Ast__UnOp* p_op); static int64_t f_Ty__lineOf(struct E_Ast__Expr* p_e); -static struct E_Ty__Cx* f_Ty__byHandler(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Sym__Sym* p_h); -static struct E_Ty__St* f_Ty__rtCall(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Ast__Fn* p_g); -static struct E_Ty__Cx* f_Ty__comptime(srs_cap* p_r, struct E_Ty__Cx* p_cx); -static struct E_Ty__St* f_Ty__pureCall(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_f); -static struct E_Ty__St* f_Ty__pureHandle(srs_cap* p_r, struct E_Ty__Mode* p_mode, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_h); -static struct E_Coll__Option__Sym__Sym* f_Ty__missingCase(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Arm* p_as); +static struct E_Ty__Cx* f_Ty__byHandler(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Sym__Sym* p_h); +static struct E_Ty__St* f_Ty__rtCall(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Ast__Fn* p_g); +static struct E_Ty__Cx* f_Ty__comptime(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx); +static struct E_Ty__St* f_Ty__pureCall(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_f); +static struct E_Ty__St* f_Ty__pureHandle(srs_cap* p_eff__Region, struct E_Ty__Mode* p_mode, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_h); +static struct E_Coll__Option__Sym__Sym* f_Ty__missingCase(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Arm* p_as); static bool f_Ty__hasAny(struct E_Coll__List__Ast__Arm* p_as); -static struct E_Coll__Option__Sym__Sym* f_Ty__firstCase(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_as); -static struct E_Coll__Option__Sym__Sym* f_Ty__uncovered(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Arm* p_as); +static struct E_Coll__Option__Sym__Sym* f_Ty__firstCase(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_as); +static struct E_Coll__Option__Sym__Sym* f_Ty__uncovered(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Arm* p_as); static bool f_Ty__armNames(struct E_Sym__Sym* p_n, struct E_Coll__List__Ast__Arm* p_as); -static struct E_Ty__St* f_Ty__addGoal(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Ty__Goal* p_g); -static struct E_Coll__List__Ty__Cand* f_Ty__cands(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ty__Cand* p_acc); -static struct E_Coll__List__Ty__Cand* f_Coll__rev__Ty__Cand(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_xs); -static struct E_Coll__List__Ty__Cand* f_Coll__revOnto__Ty__Cand(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_xs, struct E_Coll__List__Ty__Cand* p_acc); +static struct E_Ty__St* f_Ty__addGoal(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Ty__Goal* p_g); +static struct E_Coll__List__Ty__Cand* f_Ty__cands(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ty__Cand* p_acc); +static struct E_Coll__List__Ty__Cand* f_Coll__rev__Ty__Cand(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_xs); +static struct E_Coll__List__Ty__Cand* f_Coll__revOnto__Ty__Cand(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_xs, struct E_Coll__List__Ty__Cand* p_acc); static int64_t f_Coll__length__Ty__Cand(struct E_Coll__List__Ty__Cand* p_xs); static int64_t f_Coll__lengthFrom__Ty__Cand(struct E_Coll__List__Ty__Cand* p_xs, int64_t p_n); -static struct E_Coll__List__K__Term* f_Ty__traitGoals(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); +static struct E_Coll__List__K__Term* f_Ty__traitGoals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); static int64_t f_Ty__givenFuel(void); -static struct E_Coll__List__Ty__Clash* f_Ty__goals(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Goal* p_gs, struct E_Coll__List__Ty__Clash* p_cs); -static struct E_Coll__List__Ty__Clash* f_Ty__resClash(srs_cap* p_r, int64_t p_line, struct E_K__Term* p_t, struct E_Ty__Res* p_res, struct E_Coll__List__Ty__Clash* p_cs); -static bool f_Ty__localProves(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Sym__Sym* p_x, struct E_K__Term* p_t); -static struct E_Ty__Res* f_Ty__resolve(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel); -static struct E_Coll__List__Sym__Sym* f_Ty__localsOf(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_t, struct E_Coll__List__Sym__Sym* p_acc); -static struct E_Ty__Vs* f_Ty__viable(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__List__Ty__Cand* p_cs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel, struct E_Coll__List__Ty__Cand* p_acc); -static struct E_Ty__Res* f_Ty__allProved(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Coll__List__K__Term* p_gs, int64_t p_fuel); -static struct E_Ty__Res* f_Ty__best(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_vs, struct E_Coll__List__Ty__Cand* p_all); -static bool f_Ty__beatsAll(srs_cap* p_r, struct E_Ty__Cand* p_c, struct E_Coll__List__Ty__Cand* p_all); +static struct E_Coll__List__Ty__Clash* f_Ty__goals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Goal* p_gs, struct E_Coll__List__Ty__Clash* p_cs); +static struct E_Coll__List__Ty__Clash* f_Ty__resClash(srs_cap* p_eff__Region, int64_t p_line, struct E_K__Term* p_t, struct E_Ty__Res* p_res, struct E_Coll__List__Ty__Clash* p_cs); +static bool f_Ty__localProves(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Sym__Sym* p_x, struct E_K__Term* p_t); +static struct E_Ty__Res* f_Ty__resolve(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel); +static struct E_Coll__List__Sym__Sym* f_Ty__localsOf(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_t, struct E_Coll__List__Sym__Sym* p_acc); +static struct E_Ty__Vs* f_Ty__viable(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__List__Ty__Cand* p_cs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel, struct E_Coll__List__Ty__Cand* p_acc); +static struct E_Ty__Res* f_Ty__allProved(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Coll__List__K__Term* p_gs, int64_t p_fuel); +static struct E_Ty__Res* f_Ty__best(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_vs, struct E_Coll__List__Ty__Cand* p_all); +static bool f_Ty__beatsAll(srs_cap* p_eff__Region, struct E_Ty__Cand* p_c, struct E_Coll__List__Ty__Cand* p_all); static bool f_Ty__sameCand(struct E_Ty__Cand* p_a, struct E_Ty__Cand* p_b); -static bool f_Ty__better(srs_cap* p_r, struct E_Ty__Cand* p_a, struct E_Ty__Cand* p_b); -static struct E_Ty__St* f_Ty__nameUse(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_x, struct E_K__Term* p_t); +static bool f_Ty__better(srs_cap* p_eff__Region, struct E_Ty__Cand* p_a, struct E_Ty__Cand* p_b); +static struct E_Ty__St* f_Ty__nameUse(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_x, struct E_K__Term* p_t); static bool f_Ty__isTrait(struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_n); static bool f_Ty__isEnum(struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_n); static bool f_Ty__isBuiltin(struct E_Sym__Sym* p_n); -static bool f_Ty__isCapOf(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_p); -static struct E_Ty__St* f_Ty__fnShape(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ast__Binder* p_ps); -static struct E_Ty__St* f_Ty__hides(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps); -static struct E_Ty__St* f_Ty__capParams(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Binder* p_ps); -static struct E_Ty__St* f_Ty__givenShape(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Ast__Given* p_g); -static struct E_Coll__Option__Ast__Trait* f_Ty__traitNamed(srs_cap* p_r, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_n); -static struct E_Ty__St* f_Ty__inHead(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Ast__Ty* p_head); +static bool f_Ty__isCapOf(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_p); +static struct E_Ty__St* f_Ty__fnShape(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ast__Binder* p_ps); +static struct E_Ty__St* f_Ty__hides(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps); +static struct E_Ty__St* f_Ty__capParams(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Binder* p_ps); +static struct E_Ty__St* f_Ty__givenShape(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Ast__Given* p_g); +static struct E_Coll__Option__Ast__Trait* f_Ty__traitNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_n); +static struct E_Ty__St* f_Ty__inHead(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Ast__Ty* p_head); static bool f_Ty__occurs(struct E_Sym__Sym* p_x, struct E_Ast__Ty* p_t); static bool f_Ty__occursAll(struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Ty* p_ts); -static struct E_Ty__St* f_Ty__methods(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Ty__Bind* p_tv, struct E_Ty__St* p_st); -static struct E_Coll__List__K__Term* f_Ty__binderTerms(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); -static struct E_Ty__St* f_Ty__missing(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line, struct E_Ty__St* p_st); -static struct E_Coll__List__Ty__Clash* f_Ty__externSlots(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__SMap__Bool* p_ext, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs); -static struct E_Coll__SMap__Bool* f_Ty__externs(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__SMap__Bool* p_m); -static struct E_Coll__List__Ty__Clash* f_Ty__ptrSlots(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__IMap__K__Term* p_s, int64_t p_line, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Clash* p_cs); +static struct E_Ty__St* f_Ty__methods(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Ty__Bind* p_tv, struct E_Ty__St* p_st); +static struct E_Coll__List__K__Term* f_Ty__binderTerms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc); +static struct E_Ty__St* f_Ty__missing(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line, struct E_Ty__St* p_st); +static struct E_Coll__List__Ty__Clash* f_Ty__externSlots(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__SMap__Bool* p_ext, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs); +static struct E_Coll__SMap__Bool* f_Ty__externs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__SMap__Bool* p_m); +static struct E_Coll__List__Ty__Clash* f_Ty__ptrSlots(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__IMap__K__Term* p_s, int64_t p_line, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Clash* p_cs); static bool f_Ty__hasSpec(struct E_Coll__List__Ast__Decl* p_ds); static bool f_Ty__isProtoT(struct E_Coll__List__Ast__Proto* p_ps, struct E_K__Term* p_t); -static struct E_Sym__Sym* f_Ty__headOf(srs_cap* p_r, struct E_K__Term* p_t); -static struct E_Coll__List__Ty__Goal* f_Ty__typeGoals(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Coll__List__Ty__Goal* p_acc); -static struct E_S2c__Read* f_S2c__read(srs_cap* p_r, srs_cap* p_eff__Args, srs_cap* p_eff__Files, int64_t p_i, int64_t p_base, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__S2c__Err* p_errs, struct E_Coll__List__S2c__File* p_fs); -static struct E_Coll__List__S2c__Err* f_Coll__rev__S2c__Err(srs_cap* p_r, struct E_Coll__List__S2c__Err* p_xs); -static struct E_Coll__List__S2c__Err* f_Coll__revOnto__S2c__Err(srs_cap* p_r, struct E_Coll__List__S2c__Err* p_xs, struct E_Coll__List__S2c__Err* p_acc); +static struct E_Sym__Sym* f_Ty__headOf(srs_cap* p_eff__Region, struct E_K__Term* p_t); +static struct E_Coll__List__Ty__Goal* f_Ty__typeGoals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Coll__List__Ty__Goal* p_acc); +static struct E_S2c__Read* f_S2c__read(srs_cap* p_eff__Args, srs_cap* p_eff__Region, srs_cap* p_eff__Files, int64_t p_i, int64_t p_base, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__S2c__Err* p_errs, struct E_Coll__List__S2c__File* p_fs); +static struct E_Coll__List__S2c__Err* f_Coll__rev__S2c__Err(srs_cap* p_eff__Region, struct E_Coll__List__S2c__Err* p_xs); +static struct E_Coll__List__S2c__Err* f_Coll__revOnto__S2c__Err(srs_cap* p_eff__Region, struct E_Coll__List__S2c__Err* p_xs, struct E_Coll__List__S2c__Err* p_acc); static int64_t f_S2c__lineCount(srs_str p_s, int64_t p_i, int64_t p_n); -static int64_t f_S2c__diag(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, srs_str p_code, int64_t p_line, srs_str p_title, struct E_S2c__What* p_w, srs_str p_help); -static struct E_Coll__Option__S2c__File* f_S2c__fileOf(srs_cap* p_r, struct E_Coll__List__S2c__File* p_fs, int64_t p_line); +static int64_t f_S2c__diag(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, srs_str p_code, int64_t p_line, srs_str p_title, struct E_S2c__What* p_w, srs_str p_help); +static struct E_Coll__Option__S2c__File* f_S2c__fileOf(srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, int64_t p_line); static int64_t f_S2c__pad(srs_cap* p_eff__Console, int64_t p_k); static srs_str f_S2c__lineText(srs_str p_s, int64_t p_k, int64_t p_i, int64_t p_n); static int64_t f_S2c__lineEnd(srs_str p_s, int64_t p_i); -static int64_t f_S2c__showErrs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__S2c__Err* p_es); -static int64_t f_S2c__showClashes(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Clash* p_cs); -static int64_t f_S2c__showTl(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Tl__Err* p_es); -static int64_t f_S2c__compile(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds); -static int64_t f_S2c__facts(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds); -static int64_t f_S2c__showFx(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Fx__Clash* p_cs); -static int64_t f_S2c__typed(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds); -static struct E_Coll__List__Tl__Err* f_Coll__rev__Tl__Err(srs_cap* p_r, struct E_Coll__List__Tl__Err* p_xs); -static struct E_Coll__List__Tl__Err* f_Coll__revOnto__Tl__Err(srs_cap* p_r, struct E_Coll__List__Tl__Err* p_xs, struct E_Coll__List__Tl__Err* p_acc); -static struct E_Coll__List__Ty__Clash* f_Coll__rev__Ty__Clash(srs_cap* p_r, struct E_Coll__List__Ty__Clash* p_xs); -static struct E_Coll__List__Ty__Clash* f_Coll__revOnto__Ty__Clash(srs_cap* p_r, struct E_Coll__List__Ty__Clash* p_xs, struct E_Coll__List__Ty__Clash* p_acc); -static int64_t f_S2c__flowed(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res); -static struct E_Coll__List__Flow__Clash* f_Coll__rev__Flow__Clash(srs_cap* p_r, struct E_Coll__List__Flow__Clash* p_xs); -static struct E_Coll__List__Flow__Clash* f_Coll__revOnto__Flow__Clash(srs_cap* p_r, struct E_Coll__List__Flow__Clash* p_xs, struct E_Coll__List__Flow__Clash* p_acc); -static struct E_Flow__Cx* f_S2c__flowCx(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__TypeDecl* p_ts); -static struct E_S2c__Flowed* f_S2c__flowAll(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Flow__Clash* p_acc); -static int64_t f_S2c__showNames(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Names__Clash* p_cs); -static int64_t f_S2c__showFlow(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Flow__Clash* p_cs); +static int64_t f_S2c__showErrs(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__S2c__Err* p_es); +static int64_t f_S2c__showClashes(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Clash* p_cs); +static int64_t f_S2c__showTl(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Tl__Err* p_es); +static int64_t f_S2c__compile(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds); +static int64_t f_S2c__facts(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds); +static int64_t f_S2c__showFx(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Fx__Clash* p_cs); +static int64_t f_S2c__typed(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds); +static struct E_Coll__List__Tl__Err* f_Coll__rev__Tl__Err(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Err* p_xs); +static struct E_Coll__List__Tl__Err* f_Coll__revOnto__Tl__Err(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Err* p_xs, struct E_Coll__List__Tl__Err* p_acc); +static struct E_Coll__List__Ty__Clash* f_Coll__rev__Ty__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Clash* p_xs); +static struct E_Coll__List__Ty__Clash* f_Coll__revOnto__Ty__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Clash* p_xs, struct E_Coll__List__Ty__Clash* p_acc); +static int64_t f_S2c__flowed(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res); +static struct E_Coll__List__Flow__Clash* f_Coll__rev__Flow__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Clash* p_xs); +static struct E_Coll__List__Flow__Clash* f_Coll__revOnto__Flow__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Clash* p_xs, struct E_Coll__List__Flow__Clash* p_acc); +static struct E_Flow__Cx* f_S2c__flowCx(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__TypeDecl* p_ts); +static struct E_S2c__Flowed* f_S2c__flowAll(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Flow__Clash* p_acc); +static int64_t f_S2c__showNames(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Names__Clash* p_cs); +static int64_t f_S2c__showFlow(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Flow__Clash* p_cs); static int64_t f_S2c__internal(srs_cap* p_eff__Console, srs_str p_phase, struct E_Sym__Sym* p_rel); -static int64_t f_S2c__finish(srs_cap* p_r, srs_cap* p_eff__Console, srs_cap* p_eff__Store, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res); +static int64_t f_S2c__finish(srs_cap* p_eff__Console, srs_cap* p_eff__Store, srs_cap* p_eff__Region, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res); static int64_t f_S2c__showLines(srs_cap* p_eff__Console, struct E_Coll__List__Ev__Line* p_ls); -static struct E_S2c__Args* f_S2c__args(srs_cap* p_r, srs_cap* p_eff__Args); +static struct E_S2c__Args* f_S2c__args(srs_cap* p_eff__Args, srs_cap* p_eff__Region); static int64_t f_main(void); static int64_t f_S2c__term(srs_cap* p_eff__Console, struct E_K__Term* p_t); static int64_t f_S2c__terms(srs_cap* p_eff__Console, struct E_Coll__List__K__Term* p_ts); @@ -3332,66 +3332,66 @@ static int64_t f_Ast__sym(srs_cap* p_eff__Console, struct E_Sym__Sym* p_s) { ret static int64_t f_Ast__indent(srs_cap* p_eff__Console, int64_t p_n) { srs_tail: return ({ __auto_type res_ = ((p_n > ((int64_t)0)) ? ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; int64_t t1 = (p_n - ((int64_t)1)); p_eff__Console = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); res_; }) : ((int64_t)0)); res_; }); } static int64_t f_Ast__line(srs_cap* p_eff__Console, int64_t p_ind) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__indent(p_eff__Console, p_ind); res_; }); } static int64_t f_Ast__syms(srs_cap* p_eff__Console, struct E_Coll__List__Sym__Sym* p_xs, srs_str p_sep) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__sym(p_eff__Console, v_h_0)); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, p_sep); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Sym__Sym* t1 = v_t_1; srs_str t2 = p_sep; p_eff__Console = t0; p_xs = t1; p_sep = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__tys(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Ty* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__ty(p_r, p_eff__Console, v_h_0)); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Ty* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__ty(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Ty* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; __auto_type v_caps_2 = s0->u.C_Ast__Ty.f_caps; __auto_type v_vals_3 = s0->u.C_Ast__Ty.f_vals; ({ (void)(f_Ast__sym(p_eff__Console, v_n_0)); (void)(({ __auto_type s4 = v_args_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__tys(p_r, p_eff__Console, v_args_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type s4 = v_vals_3; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_r, p_eff__Console, v_vals_3, ((int64_t)0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ __auto_type s4 = v_caps_2; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_cs_4 = s4->u.C_Ast__Stated.f_cs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"^<", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_cs_4, ((srs_str){(const uint8_t*)", ", 2}))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)">", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); } +static int64_t f_Ast__tys(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Ty* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_h_0)); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Ty* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__ty(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Ty* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; __auto_type v_caps_2 = s0->u.C_Ast__Ty.f_caps; __auto_type v_vals_3 = s0->u.C_Ast__Ty.f_vals; ({ (void)(f_Ast__sym(p_eff__Console, v_n_0)); (void)(({ __auto_type s4 = v_args_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__tys(p_eff__Region, p_eff__Console, v_args_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type s4 = v_vals_3; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_eff__Region, p_eff__Console, v_vals_3, ((int64_t)0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ __auto_type s4 = v_caps_2; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_cs_4 = s4->u.C_Ast__Stated.f_cs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"^<", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_cs_4, ((srs_str){(const uint8_t*)", ", 2}))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)">", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); } static srs_str f_Ast__opText(struct E_Ast__BinOp* p_op) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)"+", 1}); }) : s0->tag == 1 ? ({ ((srs_str){(const uint8_t*)"-", 1}); }) : s0->tag == 2 ? ({ ((srs_str){(const uint8_t*)"*", 1}); }) : s0->tag == 3 ? ({ ((srs_str){(const uint8_t*)"/", 1}); }) : s0->tag == 4 ? ({ ((srs_str){(const uint8_t*)"%", 1}); }) : s0->tag == 5 ? ({ ((srs_str){(const uint8_t*)"<", 1}); }) : s0->tag == 6 ? ({ ((srs_str){(const uint8_t*)"<=", 2}); }) : s0->tag == 7 ? ({ ((srs_str){(const uint8_t*)">", 1}); }) : s0->tag == 8 ? ({ ((srs_str){(const uint8_t*)">=", 2}); }) : s0->tag == 9 ? ({ ((srs_str){(const uint8_t*)"==", 2}); }) : s0->tag == 10 ? ({ ((srs_str){(const uint8_t*)"!=", 2}); }) : s0->tag == 11 ? ({ ((srs_str){(const uint8_t*)"&&", 2}); }) : ({ ((srs_str){(const uint8_t*)"||", 2}); }); }); } static int64_t f_Ast__rank(struct E_Ast__Bind* p_b) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ((int64_t)0); }) : s0->tag == 1 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Infix.f_op; ({ __auto_type s1 = v_op_0; s1->tag == 12 ? ({ ((int64_t)1); }) : s1->tag == 11 ? ({ ((int64_t)2); }) : s1->tag == 9 ? ({ ((int64_t)3); }) : s1->tag == 10 ? ({ ((int64_t)3); }) : s1->tag == 5 ? ({ ((int64_t)4); }) : s1->tag == 6 ? ({ ((int64_t)4); }) : s1->tag == 7 ? ({ ((int64_t)4); }) : s1->tag == 8 ? ({ ((int64_t)4); }) : s1->tag == 0 ? ({ ((int64_t)5); }) : s1->tag == 1 ? ({ ((int64_t)5); }) : s1->tag == 2 ? ({ ((int64_t)6); }) : s1->tag == 3 ? ({ ((int64_t)6); }) : ({ ((int64_t)6); }); }); }) : s0->tag == 2 ? ({ ((int64_t)7); }) : ({ ((int64_t)8); }); }); } -static struct E_Ast__Bind* f_Ast__bindOf(srs_cap* p_r, struct E_Ast__Expr* p_e) { return ({ __auto_type s0 = p_e; s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; ({ struct E_Ast__Bind* o1 = (struct E_Ast__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Bind, u) + sizeof(((struct E_Ast__Bind*)0)->u.C_Ast__Infix))); o1->tag = 1; o1->u.C_Ast__Infix.f_op = v_op_0; o1; }); }) : s0->tag == 8 ? ({ (&N_Ast__Prefix); }) : s0->tag == 9 ? ({ (&N_Ast__Loose); }) : s0->tag == 10 ? ({ (&N_Ast__Loose); }) : s0->tag == 11 ? ({ (&N_Ast__Loose); }) : s0->tag == 12 ? ({ (&N_Ast__Loose); }) : s0->tag == 13 ? ({ (&N_Ast__Loose); }) : s0->tag == 14 ? ({ (&N_Ast__Loose); }) : ({ (&N_Ast__Atomic); }); }); } -static bool f_Ast__fits(srs_cap* p_r, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ __auto_type v_b_0 = s0->u.C_Ast__AtLeast.f_b; (f_Ast__rank(f_Ast__bindOf(p_r, p_e)) >= f_Ast__rank(v_b_0)); }) : ({ __auto_type v_b_0 = s0->u.C_Ast__Above.f_b; (f_Ast__rank(f_Ast__bindOf(p_r, p_e)) > f_Ast__rank(v_b_0)); }); }); } -static int64_t f_Ast__operand(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n, int64_t p_ind) { return ({ __auto_type res_ = (f_Ast__fits(p_r, p_e, p_n) ? f_Ast__expr(p_r, p_eff__Console, p_e, p_ind) : ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__expr(p_r, p_eff__Console, p_e, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; })); res_; }); } -static int64_t f_Ast__args(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__expr(p_r, p_eff__Console, v_h_0, p_ind)); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Expr* t2 = v_t_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__body(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, int64_t p_ind) { return ({ __auto_type s0 = p_e; s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ (void)(f_Ast__stmts(p_r, p_eff__Console, v_ss_0, (p_ind + f_Ast__step()))); (void)(f_Ast__line(p_eff__Console, (p_ind + f_Ast__step()))); __auto_type res_ = f_Ast__expr(p_r, p_eff__Console, v_last_1, (p_ind + f_Ast__step())); res_; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__expr(p_r, p_eff__Console, p_e, p_ind); res_; }); }); }); } -static int64_t f_Ast__expr(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_v_0 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_0); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 3 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"()", 2})); p_eff__Console->live = 0; r_; }); }) : s0->tag == 4 ? ({ __auto_type v_n_0 = s0->u.C_Ast__Name.f_n; f_Ast__sym(p_eff__Console, v_n_0); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_1 = s0->u.C_Ast__Call.f_targs; __auto_type v_chosen_2 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; ({ (void)(f_Ast__sym(p_eff__Console, v_f_0)); (void)(({ __auto_type s4 = v_targs_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__tys(p_r, p_eff__Console, v_targs_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type s4 = v_chosen_2; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"{", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_chosen_2, ((srs_str){(const uint8_t*)", ", 2}))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"}", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_r, p_eff__Console, v_xs_3, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_recv_0 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_1 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_2 = s0->u.C_Ast__Method.f_args; ({ (void)(f_Ast__sym(p_eff__Console, v_recv_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_op_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_r, p_eff__Console, v_xs_2, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_1 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_2 = s0->u.C_Ast__Bin.f_rhs; ({ (void)(f_Ast__operand(p_r, p_eff__Console, v_l_1, ({ struct E_Ast__Need* o3 = (struct E_Ast__Need*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__AtLeast))); o3->tag = 0; o3->u.C_Ast__AtLeast.f_b = ({ struct E_Ast__Bind* o3 = (struct E_Ast__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Bind, u) + sizeof(((struct E_Ast__Bind*)0)->u.C_Ast__Infix))); o3->tag = 1; o3->u.C_Ast__Infix.f_op = v_op_0; o3; }); o3; }), p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__opText(v_op_0)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__operand(p_r, p_eff__Console, v_rhs_2, ({ struct E_Ast__Need* o3 = (struct E_Ast__Need*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__Above))); o3->tag = 1; o3->u.C_Ast__Above.f_b = ({ struct E_Ast__Bind* o3 = (struct E_Ast__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Bind, u) + sizeof(((struct E_Ast__Bind*)0)->u.C_Ast__Infix))); o3->tag = 1; o3->u.C_Ast__Infix.f_op = v_op_0; o3; }); o3; }), p_ind); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Un.f_op; __auto_type v_x_1 = s0->u.C_Ast__Un.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__unText(v_op_0)); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__operand(p_r, p_eff__Console, v_x_1, ({ struct E_Ast__Need* o2 = (struct E_Ast__Need*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__AtLeast))); o2->tag = 0; o2->u.C_Ast__AtLeast.f_b = (&N_Ast__Prefix); o2; }), p_ind); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"if ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__expr(p_r, p_eff__Console, v_c_0, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" then", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__body(p_r, p_eff__Console, v_t_1, p_ind)); __auto_type res_ = f_Ast__elseBody(p_r, p_eff__Console, v_t_1, v_x_2, p_ind); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; ({ (void)(f_Ast__operand(p_r, p_eff__Console, v_s_0, ({ struct E_Ast__Need* o2 = (struct E_Ast__Need*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__AtLeast))); o2->tag = 0; o2->u.C_Ast__AtLeast.f_b = (&N_Ast__Atomic); o2; }), p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" match", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__arms(p_r, p_eff__Console, v_arms_1, (p_ind + f_Ast__step())); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ (void)(f_Ast__stmts(p_r, p_eff__Console, v_ss_0, p_ind)); (void)(f_Ast__line(p_eff__Console, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Ast__Expr* t2 = v_last_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_e = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"while ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__expr(p_r, p_eff__Console, v_c_0, p_ind)); (void)(({ __auto_type s2 = v_c_0; s2->tag == 10 ? ({ ({ (void)(f_Ast__line(p_eff__Console, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"do", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" do", 3})); p_eff__Console->live = 0; r_; }); }); })); __auto_type res_ = f_Ast__body(p_r, p_eff__Console, v_b_1, p_ind); res_; }); }) : s0->tag == 14 ? ({ __auto_type v_q_0 = s0->u.C_Ast__Quant.f_q; __auto_type v_x_1 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_2 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_3 = s0->u.C_Ast__Quant.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__qText(v_q_0)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_x_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)": ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_t_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" => ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Ast__Expr* t2 = v_b_3; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_e = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; ({ (void)(f_Ast__sym(p_eff__Console, v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Ast__Expr* t2 = v_v_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_e = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static struct E_Ast__Bind* f_Ast__bindOf(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e) { return ({ __auto_type s0 = p_e; s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; ({ struct E_Ast__Bind* o1 = (struct E_Ast__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Bind, u) + sizeof(((struct E_Ast__Bind*)0)->u.C_Ast__Infix))); o1->tag = 1; o1->u.C_Ast__Infix.f_op = v_op_0; o1; }); }) : s0->tag == 8 ? ({ (&N_Ast__Prefix); }) : s0->tag == 9 ? ({ (&N_Ast__Loose); }) : s0->tag == 10 ? ({ (&N_Ast__Loose); }) : s0->tag == 11 ? ({ (&N_Ast__Loose); }) : s0->tag == 12 ? ({ (&N_Ast__Loose); }) : s0->tag == 13 ? ({ (&N_Ast__Loose); }) : s0->tag == 14 ? ({ (&N_Ast__Loose); }) : ({ (&N_Ast__Atomic); }); }); } +static bool f_Ast__fits(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ __auto_type v_b_0 = s0->u.C_Ast__AtLeast.f_b; (f_Ast__rank(f_Ast__bindOf(p_eff__Region, p_e)) >= f_Ast__rank(v_b_0)); }) : ({ __auto_type v_b_0 = s0->u.C_Ast__Above.f_b; (f_Ast__rank(f_Ast__bindOf(p_eff__Region, p_e)) > f_Ast__rank(v_b_0)); }); }); } +static int64_t f_Ast__operand(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, struct E_Ast__Need* p_n, int64_t p_ind) { return ({ __auto_type res_ = (f_Ast__fits(p_eff__Region, p_e, p_n) ? f_Ast__expr(p_eff__Console, p_eff__Region, p_e, p_ind) : ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__expr(p_eff__Console, p_eff__Region, p_e, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; })); res_; }); } +static int64_t f_Ast__args(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__expr(p_eff__Console, p_eff__Region, v_h_0, p_ind)); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Expr* t2 = v_t_1; int64_t t3 = p_ind; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__body(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Expr* p_e, int64_t p_ind) { return ({ __auto_type s0 = p_e; s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ (void)(f_Ast__stmts(p_eff__Region, p_eff__Console, v_ss_0, (p_ind + f_Ast__step()))); (void)(f_Ast__line(p_eff__Console, (p_ind + f_Ast__step()))); __auto_type res_ = f_Ast__expr(p_eff__Console, p_eff__Region, v_last_1, (p_ind + f_Ast__step())); res_; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__expr(p_eff__Console, p_eff__Region, p_e, p_ind); res_; }); }); }); } +static int64_t f_Ast__expr(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_v_0 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_0); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 3 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"()", 2})); p_eff__Console->live = 0; r_; }); }) : s0->tag == 4 ? ({ __auto_type v_n_0 = s0->u.C_Ast__Name.f_n; f_Ast__sym(p_eff__Console, v_n_0); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_1 = s0->u.C_Ast__Call.f_targs; __auto_type v_chosen_2 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; ({ (void)(f_Ast__sym(p_eff__Console, v_f_0)); (void)(({ __auto_type s4 = v_targs_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__tys(p_eff__Region, p_eff__Console, v_targs_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type s4 = v_chosen_2; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"{", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_chosen_2, ((srs_str){(const uint8_t*)", ", 2}))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"}", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_eff__Region, p_eff__Console, v_xs_3, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_recv_0 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_1 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_2 = s0->u.C_Ast__Method.f_args; ({ (void)(f_Ast__sym(p_eff__Console, v_recv_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_op_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_eff__Region, p_eff__Console, v_xs_2, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_1 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_2 = s0->u.C_Ast__Bin.f_rhs; ({ (void)(f_Ast__operand(p_eff__Region, p_eff__Console, v_l_1, ({ struct E_Ast__Need* o3 = (struct E_Ast__Need*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__AtLeast))); o3->tag = 0; o3->u.C_Ast__AtLeast.f_b = ({ struct E_Ast__Bind* o3 = (struct E_Ast__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Bind, u) + sizeof(((struct E_Ast__Bind*)0)->u.C_Ast__Infix))); o3->tag = 1; o3->u.C_Ast__Infix.f_op = v_op_0; o3; }); o3; }), p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__opText(v_op_0)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__operand(p_eff__Region, p_eff__Console, v_rhs_2, ({ struct E_Ast__Need* o3 = (struct E_Ast__Need*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__Above))); o3->tag = 1; o3->u.C_Ast__Above.f_b = ({ struct E_Ast__Bind* o3 = (struct E_Ast__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Bind, u) + sizeof(((struct E_Ast__Bind*)0)->u.C_Ast__Infix))); o3->tag = 1; o3->u.C_Ast__Infix.f_op = v_op_0; o3; }); o3; }), p_ind); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Un.f_op; __auto_type v_x_1 = s0->u.C_Ast__Un.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__unText(v_op_0)); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__operand(p_eff__Region, p_eff__Console, v_x_1, ({ struct E_Ast__Need* o2 = (struct E_Ast__Need*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__AtLeast))); o2->tag = 0; o2->u.C_Ast__AtLeast.f_b = (&N_Ast__Prefix); o2; }), p_ind); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"if ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__expr(p_eff__Console, p_eff__Region, v_c_0, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" then", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__body(p_eff__Region, p_eff__Console, v_t_1, p_ind)); __auto_type res_ = f_Ast__elseBody(p_eff__Region, p_eff__Console, v_t_1, v_x_2, p_ind); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; ({ (void)(f_Ast__operand(p_eff__Region, p_eff__Console, v_s_0, ({ struct E_Ast__Need* o2 = (struct E_Ast__Need*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Need, u) + sizeof(((struct E_Ast__Need*)0)->u.C_Ast__AtLeast))); o2->tag = 0; o2->u.C_Ast__AtLeast.f_b = (&N_Ast__Atomic); o2; }), p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" match", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__arms(p_eff__Region, p_eff__Console, v_arms_1, (p_ind + f_Ast__step())); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ (void)(f_Ast__stmts(p_eff__Region, p_eff__Console, v_ss_0, p_ind)); (void)(f_Ast__line(p_eff__Console, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Ast__Expr* t2 = v_last_1; int64_t t3 = p_ind; p_eff__Console = t0; p_eff__Region = t1; p_e = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"while ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__expr(p_eff__Console, p_eff__Region, v_c_0, p_ind)); (void)(({ __auto_type s2 = v_c_0; s2->tag == 10 ? ({ ({ (void)(f_Ast__line(p_eff__Console, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"do", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" do", 3})); p_eff__Console->live = 0; r_; }); }); })); __auto_type res_ = f_Ast__body(p_eff__Region, p_eff__Console, v_b_1, p_ind); res_; }); }) : s0->tag == 14 ? ({ __auto_type v_q_0 = s0->u.C_Ast__Quant.f_q; __auto_type v_x_1 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_2 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_3 = s0->u.C_Ast__Quant.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__qText(v_q_0)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_x_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)": ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_t_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" => ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Ast__Expr* t2 = v_b_3; int64_t t3 = p_ind; p_eff__Console = t0; p_eff__Region = t1; p_e = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; ({ (void)(f_Ast__sym(p_eff__Console, v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Ast__Expr* t2 = v_v_1; int64_t t3 = p_ind; p_eff__Console = t0; p_eff__Region = t1; p_e = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static srs_str f_Ast__unText(struct E_Ast__UnOp* p_op) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)"-", 1}); }) : ({ ((srs_str){(const uint8_t*)"!", 1}); }); }); } -static int64_t f_Ast__elseBody(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Expr* p_t, struct E_Ast__Expr* p_x, int64_t p_ind) { return ({ __auto_type res_ = ((f_Ast__multiLine(p_t) || f_Ast__multiLine(p_x)) ? ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"else", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_r, p_eff__Console, p_x, p_ind); res_; }) : ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" else", 5})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_r, p_eff__Console, p_x, p_ind); res_; })); res_; }); } +static int64_t f_Ast__elseBody(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Expr* p_t, struct E_Ast__Expr* p_x, int64_t p_ind) { return ({ __auto_type res_ = ((f_Ast__multiLine(p_t) || f_Ast__multiLine(p_x)) ? ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"else", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_eff__Region, p_eff__Console, p_x, p_ind); res_; }) : ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" else", 5})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_eff__Region, p_eff__Console, p_x, p_ind); res_; })); res_; }); } static bool f_Ast__multiLine(struct E_Ast__Expr* p_e) { return ({ __auto_type s0 = p_e; s0->tag == 11 ? ({ true; }) : s0->tag == 10 ? ({ true; }) : s0->tag == 12 ? ({ true; }) : s0->tag == 9 ? ({ __auto_type v_t_0 = s0->u.C_Ast__If.f_t; __auto_type v_x_1 = s0->u.C_Ast__If.f_e; (f_Ast__multiLine(v_t_0) || f_Ast__multiLine(v_x_1)); }) : ({ false; }); }); } -static int64_t f_Ast__arms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Arm* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__pat(p_eff__Console, v_p_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" =>", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__body(p_r, p_eff__Console, v_b_3, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Arm* t2 = v_t_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__arms(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Arm* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__pat(p_eff__Console, v_p_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" =>", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__body(p_eff__Region, p_eff__Console, v_b_3, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Arm* t2 = v_t_1; int64_t t3 = p_ind; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } static int64_t f_Ast__pat(srs_cap* p_eff__Console, struct E_Ast__Pat* p_p) { return ({ __auto_type s0 = p_p; s0->tag == 1 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_c_0 = s0->u.C_Ast__PCase.f_c; __auto_type v_bs_1 = s0->u.C_Ast__PCase.f_binds; ({ (void)(f_Ast__sym(p_eff__Console, v_c_0)); __auto_type res_ = ({ __auto_type s2 = v_bs_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_bs_1, ((srs_str){(const uint8_t*)", ", 2}))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__stmts(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Stmt* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(f_Ast__stmt(p_r, p_eff__Console, v_s_0, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Stmt* t2 = v_t_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Ast__stmt(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Stmt* p_s, int64_t p_ind) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Val.f_x; __auto_type v_ann_1 = s0->u.C_Ast__Val.f_ann; __auto_type v_e_2 = s0->u.C_Ast__Val.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"val ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__binding(p_r, p_eff__Console, v_x_0, v_ann_1, v_e_2, p_ind); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Var.f_x; __auto_type v_ann_1 = s0->u.C_Ast__Var.f_ann; __auto_type v_e_2 = s0->u.C_Ast__Var.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"var ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__binding(p_r, p_eff__Console, v_x_0, v_ann_1, v_e_2, p_ind); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Handle.f_x; __auto_type v_h_1 = s0->u.C_Ast__Handle.f_h; __auto_type v_xs_2 = s0->u.C_Ast__Handle.f_args; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"handle ", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_h_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_r, p_eff__Console, v_xs_2, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Do.f_e; f_Ast__expr(p_r, p_eff__Console, v_e_0, p_ind); }) : ({ __auto_type v_k_0 = s0->u.C_Ast__Check.f_k; __auto_type v_e_1 = s0->u.C_Ast__Check.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__loopText(v_k_0)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__expr(p_r, p_eff__Console, v_e_1, p_ind); res_; }); }); }); } +static int64_t f_Ast__stmts(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Stmt* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(f_Ast__stmt(p_eff__Region, p_eff__Console, v_s_0, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Stmt* t2 = v_t_1; int64_t t3 = p_ind; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Ast__stmt(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Stmt* p_s, int64_t p_ind) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Val.f_x; __auto_type v_ann_1 = s0->u.C_Ast__Val.f_ann; __auto_type v_e_2 = s0->u.C_Ast__Val.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"val ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__binding(p_eff__Region, p_eff__Console, v_x_0, v_ann_1, v_e_2, p_ind); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Var.f_x; __auto_type v_ann_1 = s0->u.C_Ast__Var.f_ann; __auto_type v_e_2 = s0->u.C_Ast__Var.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"var ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__binding(p_eff__Region, p_eff__Console, v_x_0, v_ann_1, v_e_2, p_ind); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Handle.f_x; __auto_type v_h_1 = s0->u.C_Ast__Handle.f_h; __auto_type v_xs_2 = s0->u.C_Ast__Handle.f_args; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"handle ", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_h_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__args(p_eff__Region, p_eff__Console, v_xs_2, p_ind)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Do.f_e; f_Ast__expr(p_eff__Console, p_eff__Region, v_e_0, p_ind); }) : ({ __auto_type v_k_0 = s0->u.C_Ast__Check.f_k; __auto_type v_e_1 = s0->u.C_Ast__Check.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__loopText(v_k_0)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__expr(p_eff__Console, p_eff__Region, v_e_1, p_ind); res_; }); }); }); } static srs_str f_Ast__qText(struct E_Ast__Q* p_q) { return ({ __auto_type s0 = p_q; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)"forall", 6}); }) : ({ ((srs_str){(const uint8_t*)"exists", 6}); }); }); } static srs_str f_Ast__loopText(struct E_Ast__LoopCond* p_k) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)"invariant", 9}); }) : ({ ((srs_str){(const uint8_t*)"decreases", 9}); }); }); } -static int64_t f_Ast__binding(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, int64_t p_ind) { return ({ (void)(f_Ast__sym(p_eff__Console, p_x)); (void)(({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)": ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__ty(p_r, p_eff__Console, v_t_0); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" =", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_r, p_eff__Console, p_e, p_ind); res_; }); } +static int64_t f_Ast__binding(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, int64_t p_ind) { return ({ (void)(f_Ast__sym(p_eff__Console, p_x)); (void)(({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)": ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__ty(p_eff__Region, p_eff__Console, v_t_0); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" =", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_eff__Region, p_eff__Console, p_e, p_ind); res_; }); } static int64_t f_Ast__term(srs_cap* p_eff__Console, struct E_Ast__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_Ast__TName.f_n; f_Ast__sym(p_eff__Console, v_n_0); }) : ({ __auto_type v_v_0 = s0->u.C_Ast__TNum.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); }); }); } static int64_t f_Ast__terms(srs_cap* p_eff__Console, struct E_Coll__List__Ast__Term* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__term(p_eff__Console, v_h_0)); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Ast__Term* t1 = v_t_1; p_eff__Console = t0; p_xs = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } static int64_t f_Ast__atoms(srs_cap* p_eff__Console, struct E_Coll__List__Ast__Atom* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_ts_3 = s2->u.C_Ast__Atom.f_args; ({ (void)(f_Ast__sym(p_eff__Console, v_rel_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__terms(p_eff__Console, v_ts_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s4 = v_t_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Ast__Atom* t1 = v_t_1; p_eff__Console = t0; p_xs = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__binders(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Binder* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_ty_3 = s2->u.C_Ast__Binder.f_ty; ({ (void)(f_Ast__sym(p_eff__Console, v_x_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)": ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_ty_3)); __auto_type res_ = ({ __auto_type s4 = v_t_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Binder* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__groups(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Group* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_r, p_eff__Console, v_bs_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"{", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_r, p_eff__Console, v_bs_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"}", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_ats_2 = s2->u.C_Ast__Facts.f_atoms; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"<", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__atoms(p_eff__Console, v_ats_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)">", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Group* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Ast__fn(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_body_0 = s0->u.C_Ast__Fn.f_body; ({ (void)(({ __auto_type s1 = v_body_0; s1->tag == 1 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"extern ", 7})); p_eff__Console->live = 0; r_; }); }) : s1->tag == 2 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"spec ", 5})); p_eff__Console->live = 0; r_; }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = f_Ast__fnSig(p_r, p_eff__Console, p_f, p_ind); res_; }); }); }); res_; }); } -static int64_t f_Ast__sigs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(f_Ast__fnSig(p_r, p_eff__Console, v_f_0, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Fn* t2 = v_t_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Ast__fnSig(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_name_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_2 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_3 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_4 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_5 = s0->u.C_Ast__Fn.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"def ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_0)); (void)(f_Ast__groups(p_r, p_eff__Console, v_gs_1)); (void)(({ __auto_type s6 = v_gs_1; s6->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_r, p_eff__Console, v_ps_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"): ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_ret_3)); (void)(({ __auto_type s6 = v_exit_4; s6->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" <", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__atoms(p_eff__Console, v_exit_4)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)">", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ __auto_type s6 = v_body_5; s6->tag == 1 ? ({ ((int64_t)0); }) : s6->tag == 0 ? ({ __auto_type v_cs_6 = s6->u.C_Ast__Def.f_cs; __auto_type v_e_7 = s6->u.C_Ast__Def.f_e; f_Ast__withClauses(p_r, p_eff__Console, v_cs_6, v_e_7, p_ind); }) : ({ __auto_type v_cs_6 = s6->u.C_Ast__Spec.f_cs; __auto_type v_e_7 = s6->u.C_Ast__Spec.f_e; f_Ast__withClauses(p_r, p_eff__Console, v_cs_6, v_e_7, p_ind); }); }); res_; }); }); }); res_; }); } -static int64_t f_Ast__withClauses(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, struct E_Ast__Expr* p_e, int64_t p_ind) { return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" =", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_r, p_eff__Console, p_e, p_ind); res_; }); }) : ({ ({ (void)(f_Ast__clauses(p_r, p_eff__Console, p_cs, (p_ind + f_Ast__step()))); (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"=", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_r, p_eff__Console, p_e, p_ind); res_; }); }); }); } +static int64_t f_Ast__binders(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Binder* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_ty_3 = s2->u.C_Ast__Binder.f_ty; ({ (void)(f_Ast__sym(p_eff__Console, v_x_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)": ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_ty_3)); __auto_type res_ = ({ __auto_type s4 = v_t_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Binder* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__groups(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Group* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_eff__Region, p_eff__Console, v_bs_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"{", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_eff__Region, p_eff__Console, v_bs_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"}", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_ats_2 = s2->u.C_Ast__Facts.f_atoms; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"<", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__atoms(p_eff__Console, v_ats_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)">", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Group* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Ast__fn(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_body_0 = s0->u.C_Ast__Fn.f_body; ({ (void)(({ __auto_type s1 = v_body_0; s1->tag == 1 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"extern ", 7})); p_eff__Console->live = 0; r_; }); }) : s1->tag == 2 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"spec ", 5})); p_eff__Console->live = 0; r_; }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = f_Ast__fnSig(p_eff__Region, p_eff__Console, p_f, p_ind); res_; }); }); }); res_; }); } +static int64_t f_Ast__sigs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(f_Ast__fnSig(p_eff__Region, p_eff__Console, v_f_0, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Fn* t2 = v_t_1; int64_t t3 = p_ind; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Ast__fnSig(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Fn* p_f, int64_t p_ind) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_name_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_2 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_3 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_4 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_5 = s0->u.C_Ast__Fn.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"def ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_0)); (void)(f_Ast__groups(p_eff__Region, p_eff__Console, v_gs_1)); (void)(({ __auto_type s6 = v_gs_1; s6->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_eff__Region, p_eff__Console, v_ps_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"): ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_ret_3)); (void)(({ __auto_type s6 = v_exit_4; s6->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" <", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__atoms(p_eff__Console, v_exit_4)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)">", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ __auto_type s6 = v_body_5; s6->tag == 1 ? ({ ((int64_t)0); }) : s6->tag == 0 ? ({ __auto_type v_cs_6 = s6->u.C_Ast__Def.f_cs; __auto_type v_e_7 = s6->u.C_Ast__Def.f_e; f_Ast__withClauses(p_eff__Region, p_eff__Console, v_cs_6, v_e_7, p_ind); }) : ({ __auto_type v_cs_6 = s6->u.C_Ast__Spec.f_cs; __auto_type v_e_7 = s6->u.C_Ast__Spec.f_e; f_Ast__withClauses(p_eff__Region, p_eff__Console, v_cs_6, v_e_7, p_ind); }); }); res_; }); }); }); res_; }); } +static int64_t f_Ast__withClauses(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, struct E_Ast__Expr* p_e, int64_t p_ind) { return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" =", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_eff__Region, p_eff__Console, p_e, p_ind); res_; }); }) : ({ ({ (void)(f_Ast__clauses(p_eff__Region, p_eff__Console, p_cs, (p_ind + f_Ast__step()))); (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"=", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__body(p_eff__Region, p_eff__Console, p_e, p_ind); res_; }); }); }); } static srs_str f_Ast__condText(struct E_Ast__Cond* p_k) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)"requires", 8}); }) : s0->tag == 1 ? ({ ((srs_str){(const uint8_t*)"ensures", 7}); }) : s0->tag == 2 ? ({ ((srs_str){(const uint8_t*)"returns", 7}); }) : s0->tag == 3 ? ({ ((srs_str){(const uint8_t*)"decreases", 9}); }) : ({ ((srs_str){(const uint8_t*)"invariant", 9}); }); }); } -static int64_t f_Ast__clauses(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_k_2 = s2->u.C_Ast__CondC.f_k; __auto_type v_x_3 = s2->u.C_Ast__CondC.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__condText(v_k_2)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__expr(p_r, p_eff__Console, v_x_3, p_ind); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__ProofUsing.f_xs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"proof using ", 12})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__syms(p_eff__Console, v_xs_2, ((srs_str){(const uint8_t*)", ", 2})); res_; }); }) : s2->tag == 2 ? ({ __auto_type v_x_2 = s2->u.C_Ast__ProofInduction.f_x; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"proof by induction ", 19})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__sym(p_eff__Console, v_x_2); res_; }); }) : ({ __auto_type v_s_2 = s2->u.C_Ast__ProofLean.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"proof lean \"", 12})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_2); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Clause* t2 = v_rest_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_cs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Ast__fns(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(f_Ast__fn(p_r, p_eff__Console, v_f_0, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Fn* t2 = v_t_1; int64_t t3 = p_ind; p_r = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Ast__clauses(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Clause* p_cs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_k_2 = s2->u.C_Ast__CondC.f_k; __auto_type v_x_3 = s2->u.C_Ast__CondC.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Ast__condText(v_k_2)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__expr(p_eff__Console, p_eff__Region, v_x_3, p_ind); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__ProofUsing.f_xs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"proof using ", 12})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__syms(p_eff__Console, v_xs_2, ((srs_str){(const uint8_t*)", ", 2})); res_; }); }) : s2->tag == 2 ? ({ __auto_type v_x_2 = s2->u.C_Ast__ProofInduction.f_x; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"proof by induction ", 19})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__sym(p_eff__Console, v_x_2); res_; }); }) : ({ __auto_type v_s_2 = s2->u.C_Ast__ProofLean.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"proof lean \"", 12})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_2); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Clause* t2 = v_rest_1; int64_t t3 = p_ind; p_eff__Region = t0; p_eff__Console = t1; p_cs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Ast__fns(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Fn* p_xs, int64_t p_ind) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__line(p_eff__Console, p_ind)); (void)(f_Ast__fn(p_eff__Region, p_eff__Console, v_f_0, p_ind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Fn* t2 = v_t_1; int64_t t3 = p_ind; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; p_ind = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static int64_t f_Ast__trans(srs_cap* p_eff__Console, struct E_Coll__List__Ast__Trans* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_tr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_tr_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ (void)(f_Ast__sym(p_eff__Console, v_a_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" -> ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_b_3)); __auto_type res_ = ({ __auto_type s4 = v_t_1; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Ast__Trans* t1 = v_t_1; p_eff__Console = t0; p_xs = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__ops(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Op* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_ps_3 = s2->u.C_Ast__Op.f_params; __auto_type v_ret_4 = s2->u.C_Ast__Op.f_ret; __auto_type v_trs_5 = s2->u.C_Ast__Op.f_trans; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"op ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_r, p_eff__Console, v_ps_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"): ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_ret_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" : ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__trans(p_eff__Console, v_trs_5)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Op* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__ops(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Op* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_ps_3 = s2->u.C_Ast__Op.f_params; __auto_type v_ret_4 = s2->u.C_Ast__Op.f_ret; __auto_type v_trs_5 = s2->u.C_Ast__Op.f_trans; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"op ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_eff__Region, p_eff__Console, v_ps_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"): ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_ret_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" : ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__trans(p_eff__Console, v_trs_5)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Op* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } static int64_t f_Ast__rules(srs_cap* p_eff__Console, struct E_Coll__List__Ast__RuleDef* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_name_2 = s2->u.C_Ast__RuleDef.f_name; __auto_type v_ps_3 = s2->u.C_Ast__RuleDef.f_params; __auto_type v_body_4 = s2->u.C_Ast__RuleDef.f_body; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"rule def ", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_ps_3, ((srs_str){(const uint8_t*)", ", 2}))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)") = ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__atoms(p_eff__Console, v_body_4)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Ast__RuleDef* t1 = v_t_1; p_eff__Console = t0; p_xs = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__cases(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Case* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_2)); (void)(({ __auto_type s4 = v_fs_3; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_r, p_eff__Console, v_fs_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Case* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__decl(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Ast__DFn.f_f; f_Ast__fn(p_r, p_eff__Console, v_f_0, ((int64_t)0)); }) : s0->tag == 1 ? ({ __auto_type v_en_0 = s0->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_en_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Enum.f_name; __auto_type v_gs_2 = s1->u.C_Ast__Enum.f_groups; __auto_type v_cs_3 = s1->u.C_Ast__Enum.f_cases; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"enum ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(f_Ast__groups(p_r, p_eff__Console, v_gs_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__cases(p_r, p_eff__Console, v_cs_3); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_p_0 = s0->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s1 = v_p_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Proto.f_name; __auto_type v_sts_2 = s1->u.C_Ast__Proto.f_states; __auto_type v_start_3 = s1->u.C_Ast__Proto.f_start; __auto_type v_ends_4 = s1->u.C_Ast__Proto.f_ends; __auto_type v_dropOp_5 = s1->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_6 = s1->u.C_Ast__Proto.f_ops; __auto_type v_rules_7 = s1->u.C_Ast__Proto.f_rules; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"protocol ", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"state ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_sts_2, ((srs_str){(const uint8_t*)", ", 2}))); (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"start ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_start_3)); (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"end ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_ends_4, ((srs_str){(const uint8_t*)", ", 2}))); (void)(f_Ast__ops(p_r, p_eff__Console, v_ops_6)); (void)(({ __auto_type s8 = v_dropOp_5; s8->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_8 = s8->u.C_Coll__Some.f_v; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"drop ", 5})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__sym(p_eff__Console, v_o_8); res_; }); }); })); __auto_type res_ = f_Ast__rules(p_eff__Console, v_rules_7); res_; }); }); }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_h_0 = s0->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s1 = v_h_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Handler.f_name; __auto_type v_proto_2 = s1->u.C_Ast__Handler.f_proto; __auto_type v_fs_3 = s1->u.C_Ast__Handler.f_fns; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"handler ", 8})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" for ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_proto_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__fns(p_r, p_eff__Console, v_fs_3, f_Ast__step()); res_; }); }); }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_tr_0 = s0->u.C_Ast__DTrait.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_tr_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Trait.f_name; __auto_type v_gs_2 = s1->u.C_Ast__Trait.f_groups; __auto_type v_sigs_3 = s1->u.C_Ast__Trait.f_sigs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"trait ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(f_Ast__groups(p_r, p_eff__Console, v_gs_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__sigs(p_r, p_eff__Console, v_sigs_3, f_Ast__step()); res_; }); }); }); res_; }); }) : s0->tag == 5 ? ({ __auto_type v_g_0 = s0->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s1 = v_g_0; ({ __auto_type v_gs_1 = s1->u.C_Ast__Given.f_groups; __auto_type v_head_2 = s1->u.C_Ast__Given.f_head; __auto_type v_fs_3 = s1->u.C_Ast__Given.f_fns; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"given", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__groups(p_r, p_eff__Console, v_gs_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_head_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__fns(p_r, p_eff__Console, v_fs_3, f_Ast__step()); res_; }); }); }); res_; }); }) : ({ __auto_type v_td_0 = s0->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_td_0; ({ __auto_type v_name_1 = s1->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_2 = s1->u.C_Ast__TypeDecl.f_groups; __auto_type v_vals_3 = s1->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_4 = s1->u.C_Ast__TypeDecl.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"type ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(f_Ast__groups(p_r, p_eff__Console, v_gs_2)); (void)(({ __auto_type s5 = v_vals_3; s5->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" (", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_r, p_eff__Console, v_vals_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s5 = v_body_4; s5->tag == 0 ? ({ __auto_type v_t_5 = s5->u.C_Ast__Alias.f_t; f_Ast__ty(p_r, p_eff__Console, v_t_5); }) : s5->tag == 1 ? ({ __auto_type v_s_5 = s5->u.C_Ast__TyMatch.f_scrut; __auto_type v_arms_6 = s5->u.C_Ast__TyMatch.f_arms; ({ (void)(f_Ast__ty(p_r, p_eff__Console, v_s_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" match", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__tyArms(p_r, p_eff__Console, v_arms_6); res_; }); }) : ({ __auto_type v_x_5 = s5->u.C_Ast__ValMatch.f_x; __auto_type v_arms_6 = s5->u.C_Ast__ValMatch.f_arms; ({ (void)(f_Ast__sym(p_eff__Console, v_x_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" match", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__valArms(p_r, p_eff__Console, v_arms_6); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__tyArms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__TyArm* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__TyArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__TyArm.f_res; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_p_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" => ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_res_3)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__TyArm* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__valArms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__ValArm* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__ValArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__ValArm.f_res; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s4 = v_p_2; s4->tag == 0 ? ({ __auto_type v_v_4 = s4->u.C_Ast__VInt.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_4); p_eff__Console->live = 0; r_; }); }) : s4->tag == 1 ? ({ __auto_type v_s_4 = s4->u.C_Ast__VStr.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_4); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s4->tag == 2 ? ({ __auto_type v_b_4 = s4->u.C_Ast__VBool.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_b_4 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" => ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_r, p_eff__Console, v_res_3)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__ValArm* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Ast__print(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__decl(p_r, p_eff__Console, v_d_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Decl* t2 = v_t_1; p_r = t0; p_eff__Console = t1; p_ds = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__ISet* f_Coll__setEmpty(srs_cap* p_r) { return ({ struct E_Coll__ISet* o0 = (struct E_Coll__ISet*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__ISet, u) + sizeof(((struct E_Coll__ISet*)0)->u.C_Coll__ISet))); o0->tag = 0; o0->u.C_Coll__ISet.f_m = f_Coll__bEmpty__Coll__Unit(p_r); o0; }); } -static struct E_Coll__BMap__Coll__Unit* f_Coll__bEmpty__Coll__Unit(srs_cap* p_r) { return ({ struct E_Coll__BMap__Coll__Unit* o0 = (struct E_Coll__BMap__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BMap__Coll__Unit, u) + sizeof(((struct E_Coll__BMap__Coll__Unit*)0)->u.C_Coll__BMap))); o0->tag = 0; o0->u.C_Coll__BMap.f_n = ((int64_t)0); o0->u.C_Coll__BMap.f_t = (&N_Coll__BTip__Coll__Unit); o0; }); } -static struct E_Coll__ISet* f_Coll__setAdd(srs_cap* p_r, struct E_Coll__ISet* p_s, int64_t p_k) { return ({ __auto_type s0 = p_s; ({ __auto_type v_m_0 = s0->u.C_Coll__ISet.f_m; ({ struct E_Coll__ISet* o1 = (struct E_Coll__ISet*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__ISet, u) + sizeof(((struct E_Coll__ISet*)0)->u.C_Coll__ISet))); o1->tag = 0; o1->u.C_Coll__ISet.f_m = f_Coll__bInsert__Coll__Unit(p_r, v_m_0, p_k, (&N_Coll__U)); o1; }); }); }); } -static struct E_Coll__BMap__Coll__Unit* f_Coll__bInsert__Coll__Unit(srs_cap* p_r, struct E_Coll__BMap__Coll__Unit* p_m, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_n_0 = s0->u.C_Coll__BMap.f_n; __auto_type v_t_1 = s0->u.C_Coll__BMap.f_t; (f_Coll__bIsNode__Coll__Unit(f_Coll__bFind__Coll__Unit(v_t_1, p_k)) ? ({ struct E_Coll__BMap__Coll__Unit* o2 = (struct E_Coll__BMap__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BMap__Coll__Unit, u) + sizeof(((struct E_Coll__BMap__Coll__Unit*)0)->u.C_Coll__BMap))); o2->tag = 0; o2->u.C_Coll__BMap.f_n = v_n_0; o2->u.C_Coll__BMap.f_t = f_Coll__bRep__Coll__Unit(p_r, v_t_1, p_k, p_v); o2; }) : ({ struct E_Coll__BMap__Coll__Unit* o2 = (struct E_Coll__BMap__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BMap__Coll__Unit, u) + sizeof(((struct E_Coll__BMap__Coll__Unit*)0)->u.C_Coll__BMap))); o2->tag = 0; o2->u.C_Coll__BMap.f_n = (v_n_0 + ((int64_t)1)); o2->u.C_Coll__BMap.f_t = f_Coll__bIns__Coll__Unit(p_r, v_t_1, p_k, p_v); o2; })); }); }); } +static int64_t f_Ast__cases(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Case* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_2)); (void)(({ __auto_type s4 = v_fs_3; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_eff__Region, p_eff__Console, v_fs_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Case* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__decl(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Ast__DFn.f_f; f_Ast__fn(p_eff__Region, p_eff__Console, v_f_0, ((int64_t)0)); }) : s0->tag == 1 ? ({ __auto_type v_en_0 = s0->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_en_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Enum.f_name; __auto_type v_gs_2 = s1->u.C_Ast__Enum.f_groups; __auto_type v_cs_3 = s1->u.C_Ast__Enum.f_cases; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"enum ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(f_Ast__groups(p_eff__Region, p_eff__Console, v_gs_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__cases(p_eff__Region, p_eff__Console, v_cs_3); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_p_0 = s0->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s1 = v_p_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Proto.f_name; __auto_type v_sts_2 = s1->u.C_Ast__Proto.f_states; __auto_type v_start_3 = s1->u.C_Ast__Proto.f_start; __auto_type v_ends_4 = s1->u.C_Ast__Proto.f_ends; __auto_type v_dropOp_5 = s1->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_6 = s1->u.C_Ast__Proto.f_ops; __auto_type v_rules_7 = s1->u.C_Ast__Proto.f_rules; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"protocol ", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"state ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_sts_2, ((srs_str){(const uint8_t*)", ", 2}))); (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"start ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_start_3)); (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"end ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__syms(p_eff__Console, v_ends_4, ((srs_str){(const uint8_t*)", ", 2}))); (void)(f_Ast__ops(p_eff__Region, p_eff__Console, v_ops_6)); (void)(({ __auto_type s8 = v_dropOp_5; s8->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_8 = s8->u.C_Coll__Some.f_v; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"drop ", 5})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__sym(p_eff__Console, v_o_8); res_; }); }); })); __auto_type res_ = f_Ast__rules(p_eff__Console, v_rules_7); res_; }); }); }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_h_0 = s0->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s1 = v_h_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Handler.f_name; __auto_type v_proto_2 = s1->u.C_Ast__Handler.f_proto; __auto_type v_fs_3 = s1->u.C_Ast__Handler.f_fns; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"handler ", 8})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" for ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_proto_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__fns(p_eff__Region, p_eff__Console, v_fs_3, f_Ast__step()); res_; }); }); }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_tr_0 = s0->u.C_Ast__DTrait.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_tr_0; ({ __auto_type v_name_1 = s1->u.C_Ast__Trait.f_name; __auto_type v_gs_2 = s1->u.C_Ast__Trait.f_groups; __auto_type v_sigs_3 = s1->u.C_Ast__Trait.f_sigs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"trait ", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(f_Ast__groups(p_eff__Region, p_eff__Console, v_gs_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__sigs(p_eff__Region, p_eff__Console, v_sigs_3, f_Ast__step()); res_; }); }); }); res_; }); }) : s0->tag == 5 ? ({ __auto_type v_g_0 = s0->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s1 = v_g_0; ({ __auto_type v_gs_1 = s1->u.C_Ast__Given.f_groups; __auto_type v_head_2 = s1->u.C_Ast__Given.f_head; __auto_type v_fs_3 = s1->u.C_Ast__Given.f_fns; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"given", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__groups(p_eff__Region, p_eff__Console, v_gs_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_head_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__fns(p_eff__Region, p_eff__Console, v_fs_3, f_Ast__step()); res_; }); }); }); res_; }); }) : ({ __auto_type v_td_0 = s0->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_td_0; ({ __auto_type v_name_1 = s1->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_2 = s1->u.C_Ast__TypeDecl.f_groups; __auto_type v_vals_3 = s1->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_4 = s1->u.C_Ast__TypeDecl.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"type ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__sym(p_eff__Console, v_name_1)); (void)(f_Ast__groups(p_eff__Region, p_eff__Console, v_gs_2)); (void)(({ __auto_type s5 = v_vals_3; s5->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" (", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__binders(p_eff__Region, p_eff__Console, v_vals_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s5 = v_body_4; s5->tag == 0 ? ({ __auto_type v_t_5 = s5->u.C_Ast__Alias.f_t; f_Ast__ty(p_eff__Region, p_eff__Console, v_t_5); }) : s5->tag == 1 ? ({ __auto_type v_s_5 = s5->u.C_Ast__TyMatch.f_scrut; __auto_type v_arms_6 = s5->u.C_Ast__TyMatch.f_arms; ({ (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_s_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" match", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__tyArms(p_eff__Region, p_eff__Console, v_arms_6); res_; }); }) : ({ __auto_type v_x_5 = s5->u.C_Ast__ValMatch.f_x; __auto_type v_arms_6 = s5->u.C_Ast__ValMatch.f_arms; ({ (void)(f_Ast__sym(p_eff__Console, v_x_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" match", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Ast__valArms(p_eff__Region, p_eff__Console, v_arms_6); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__tyArms(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__TyArm* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__TyArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__TyArm.f_res; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_p_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" => ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_res_3)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__TyArm* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__valArms(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__ValArm* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__ValArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__ValArm.f_res; ({ (void)(f_Ast__line(p_eff__Console, f_Ast__step())); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"case ", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s4 = v_p_2; s4->tag == 0 ? ({ __auto_type v_v_4 = s4->u.C_Ast__VInt.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_4); p_eff__Console->live = 0; r_; }); }) : s4->tag == 1 ? ({ __auto_type v_s_4 = s4->u.C_Ast__VStr.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_4); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\"", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s4->tag == 2 ? ({ __auto_type v_b_4 = s4->u.C_Ast__VBool.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_b_4 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" => ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Ast__ty(p_eff__Region, p_eff__Console, v_res_3)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__ValArm* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_xs = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Ast__print(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Ast__decl(p_eff__Region, p_eff__Console, v_d_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s2 = v_t_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Decl* t2 = v_t_1; p_eff__Region = t0; p_eff__Console = t1; p_ds = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__ISet* f_Coll__setEmpty(srs_cap* p_eff__Region) { return ({ struct E_Coll__ISet* o0 = (struct E_Coll__ISet*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__ISet, u) + sizeof(((struct E_Coll__ISet*)0)->u.C_Coll__ISet))); o0->tag = 0; o0->u.C_Coll__ISet.f_m = f_Coll__bEmpty__Coll__Unit(p_eff__Region); o0; }); } +static struct E_Coll__BMap__Coll__Unit* f_Coll__bEmpty__Coll__Unit(srs_cap* p_eff__Region) { return ({ struct E_Coll__BMap__Coll__Unit* o0 = (struct E_Coll__BMap__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BMap__Coll__Unit, u) + sizeof(((struct E_Coll__BMap__Coll__Unit*)0)->u.C_Coll__BMap))); o0->tag = 0; o0->u.C_Coll__BMap.f_n = ((int64_t)0); o0->u.C_Coll__BMap.f_t = (&N_Coll__BTip__Coll__Unit); o0; }); } +static struct E_Coll__ISet* f_Coll__setAdd(srs_cap* p_eff__Region, struct E_Coll__ISet* p_s, int64_t p_k) { return ({ __auto_type s0 = p_s; ({ __auto_type v_m_0 = s0->u.C_Coll__ISet.f_m; ({ struct E_Coll__ISet* o1 = (struct E_Coll__ISet*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__ISet, u) + sizeof(((struct E_Coll__ISet*)0)->u.C_Coll__ISet))); o1->tag = 0; o1->u.C_Coll__ISet.f_m = f_Coll__bInsert__Coll__Unit(p_eff__Region, v_m_0, p_k, (&N_Coll__U)); o1; }); }); }); } +static struct E_Coll__BMap__Coll__Unit* f_Coll__bInsert__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BMap__Coll__Unit* p_m, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_n_0 = s0->u.C_Coll__BMap.f_n; __auto_type v_t_1 = s0->u.C_Coll__BMap.f_t; (f_Coll__bIsNode__Coll__Unit(f_Coll__bFind__Coll__Unit(v_t_1, p_k)) ? ({ struct E_Coll__BMap__Coll__Unit* o2 = (struct E_Coll__BMap__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BMap__Coll__Unit, u) + sizeof(((struct E_Coll__BMap__Coll__Unit*)0)->u.C_Coll__BMap))); o2->tag = 0; o2->u.C_Coll__BMap.f_n = v_n_0; o2->u.C_Coll__BMap.f_t = f_Coll__bRep__Coll__Unit(p_eff__Region, v_t_1, p_k, p_v); o2; }) : ({ struct E_Coll__BMap__Coll__Unit* o2 = (struct E_Coll__BMap__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BMap__Coll__Unit, u) + sizeof(((struct E_Coll__BMap__Coll__Unit*)0)->u.C_Coll__BMap))); o2->tag = 0; o2->u.C_Coll__BMap.f_n = (v_n_0 + ((int64_t)1)); o2->u.C_Coll__BMap.f_t = f_Coll__bIns__Coll__Unit(p_eff__Region, v_t_1, p_k, p_v); o2; })); }); }); } static bool f_Coll__bIsNode__Coll__Unit(struct E_Coll__BTree__Coll__Unit* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } static struct E_Coll__BTree__Coll__Unit* f_Coll__bFind__Coll__Unit(struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__Unit* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__Unit* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__Unit* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__Unit*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bRep__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__Unit(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__Unit(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__Unit(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__Unit(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__Unit(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__Unit(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__Unit(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__Unit(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__Unit(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bIns__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__Unit(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__Unit(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__Unit(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__Unit(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__Unit(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__Unit(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2L__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__Unit(p_r, f_Coll__bSplitIns__Coll__Unit(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__Unit(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__Unit(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2L__Coll__Unit(srs_cap* p_r, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__Unit* f_Coll__bSplitIns__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__Unit* o0 = (struct E_Coll__Split__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__Unit, u) + sizeof(((struct E_Coll__Split__Coll__Unit*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__Unit* o0 = (struct E_Coll__Split__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__Unit, u) + sizeof(((struct E_Coll__Split__Coll__Unit*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__Unit(p_r, ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__Unit* o0 = (struct E_Coll__Split__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__Unit, u) + sizeof(((struct E_Coll__Split__Coll__Unit*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__Unit(p_r, ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2R__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__Unit(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__Unit(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__Unit(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__Unit(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2R__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3A__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__Unit(p_r, f_Coll__bSplitIns__Coll__Unit(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__Unit(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__Unit(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3A__Coll__Unit(srs_cap* p_r, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3B__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__Unit(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__Unit(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__Unit(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__Unit(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3B__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3C__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__Unit(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__Unit(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__Unit(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__Unit(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3C__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__Split__Coll__Unit* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__Unit* f_Coll__bRootIns__Coll__Unit(srs_cap* p_r, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__Unit(p_r, ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bRep__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__Unit(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__Unit(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__Unit(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__Unit(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__Unit(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__Unit(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__Unit(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__Unit(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__Unit* o10 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__Unit(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bIns__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_t, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__Unit(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__Unit(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__Unit* o7 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__Unit(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__Unit(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__Unit(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__Unit(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2L__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__Unit(p_eff__Region, f_Coll__bSplitIns__Coll__Unit(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__Unit(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__Unit(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2L__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__Unit* f_Coll__bSplitIns__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__Unit* o0 = (struct E_Coll__Split__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__Unit, u) + sizeof(((struct E_Coll__Split__Coll__Unit*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__Unit* o0 = (struct E_Coll__Split__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__Unit, u) + sizeof(((struct E_Coll__Split__Coll__Unit*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__Unit(p_eff__Region, ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__Unit* o0 = (struct E_Coll__Split__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__Unit, u) + sizeof(((struct E_Coll__Split__Coll__Unit*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__Unit(p_eff__Region, ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto2R__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__Unit(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__Unit(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__Unit(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__Unit(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift2R__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3A__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__Unit(p_eff__Region, f_Coll__bSplitIns__Coll__Unit(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__Unit(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__Unit(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3A__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3B__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__Unit(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__Unit(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__Unit(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__Unit(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3B__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__Split__Coll__Unit* p_s, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bInto3C__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__Unit); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__Unit); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__Unit(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__Unit(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__Unit(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__Unit(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bLift3C__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__Split__Coll__Unit* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__Unit* o4 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__Unit* f_Coll__bRootIns__Coll__Unit(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__Unit* p_a, int64_t p_k1, struct E_Coll__Unit* p_v1, struct E_Coll__BTree__Coll__Unit* p_b, int64_t p_k2, struct E_Coll__Unit* p_v2, struct E_Coll__BTree__Coll__Unit* p_c, int64_t p_k3, struct E_Coll__Unit* p_v3, struct E_Coll__BTree__Coll__Unit* p_d, int64_t p_k, struct E_Coll__Unit* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__Unit(p_eff__Region, ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__Unit* o0 = (struct E_Coll__BTree__Coll__Unit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__Unit, u) + sizeof(((struct E_Coll__BTree__Coll__Unit*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } static bool f_Coll__setHas(struct E_Coll__ISet* p_s, int64_t p_k) { return ({ __auto_type s0 = p_s; ({ __auto_type v_m_0 = s0->u.C_Coll__ISet.f_m; f_Coll__bHas__Coll__Unit(v_m_0, p_k); }); }); } static bool f_Coll__bHas__Coll__Unit(struct E_Coll__BMap__Coll__Unit* p_m, int64_t p_k) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__BMap.f_t; f_Coll__bIsNode__Coll__Unit(f_Coll__bFind__Coll__Unit(v_t_0, p_k)); }); }); } static int64_t f_Coll__setSize(struct E_Coll__ISet* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_m_0 = s0->u.C_Coll__ISet.f_m; f_Coll__bSize__Coll__Unit(v_m_0); }); }); } @@ -3408,429 +3408,429 @@ static int64_t f_D__thash(struct E_Coll__List__D__Val* p_t, int64_t p_h) { srs_t static int64_t f_D__tupleHash(struct E_Coll__List__D__Val* p_t) { return f_D__thash(p_t, f_D__seed()); } static struct E_Coll__List__D__Val* f_D__tupleOf(struct E_D__Row* p_row) { return ({ __auto_type s0 = p_row; s0->tag == 0 ? ({ __auto_type v_t_0 = s0->u.C_D__Input.f_t; v_t_0; }) : ({ __auto_type v_t_0 = s0->u.C_D__Made.f_t; v_t_0; }); }); } static int64_t f_D__stampOf(struct E_D__Row* p_row) { return ({ __auto_type s0 = p_row; s0->tag == 0 ? ({ f_D__inputRound(); }) : ({ __auto_type v_at_0 = s0->u.C_D__Made.f_at; v_at_0; }); }); } -static struct E_D__Rel* f_D__newRel(srs_cap* p_r, struct E_Coll__List__I64* p_ic) { return ({ struct E_D__Rel* o0 = (struct E_D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rel, u) + sizeof(((struct E_D__Rel*)0)->u.C_D__Rel))); o0->tag = 0; o0->u.C_D__Rel.f_ic = p_ic; o0->u.C_D__Rel.f_set = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_D__Rel.f_cols = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_D__Rel.f_all = (&N_Coll__Nil__D__Row); o0->u.C_D__Rel.f_recent = ((int64_t)0); o0->u.C_D__Rel.f_fresh = ((int64_t)0); o0; }); } -static struct E_Coll__List__D__Row* f_D__bucket(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_m, int64_t p_h) { return f_Coll__bTGetOr__Coll__List_1_D__Row(p_m, p_h, (&N_Coll__Nil__D__Row)); } +static struct E_D__Rel* f_D__newRel(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_ic) { return ({ struct E_D__Rel* o0 = (struct E_D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rel, u) + sizeof(((struct E_D__Rel*)0)->u.C_D__Rel))); o0->tag = 0; o0->u.C_D__Rel.f_ic = p_ic; o0->u.C_D__Rel.f_set = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_D__Rel.f_cols = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_D__Rel.f_all = (&N_Coll__Nil__D__Row); o0->u.C_D__Rel.f_recent = ((int64_t)0); o0->u.C_D__Rel.f_fresh = ((int64_t)0); o0; }); } +static struct E_Coll__List__D__Row* f_D__bucket(struct E_Coll__BTree__Coll__List_1_D__Row* p_m, int64_t p_h) { return f_Coll__bTGetOr__Coll__List_1_D__Row(p_m, p_h, (&N_Coll__Nil__D__Row)); } static struct E_Coll__List__D__Row* f_Coll__bTGetOr__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_d) { return f_Coll__bValOr__Coll__List_1_D__Row(f_Coll__bFind__Coll__List_1_D__Row(p_t, p_k), p_k, p_d); } static struct E_Coll__List__D__Row* f_Coll__bValOr__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_n, int64_t p_k, struct E_Coll__List__D__Row* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bFind__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_D__Row* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_D__Row*){0}; }))))))); res_; }); }); }); } static bool f_D__inRows(struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Val* v_u_2 = f_D__tupleOf(v_row_0); __auto_type res_ = (f_D__tupleEq(v_u_2, p_t) ? true : ({ struct E_Coll__List__D__Row* t0 = v_rest_1; struct E_Coll__List__D__Val* t1 = p_t; p_rows = t0; p_t = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); } -static bool f_D__has(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_set_0 = s0->u.C_D__Rel.f_set; ({ __auto_type res_ = f_D__inRows(f_D__bucket(p_r, v_set_0, f_D__tupleHash(p_t)), p_t); res_; }); }); }); res_; }); } +static bool f_D__has(struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_set_0 = s0->u.C_D__Rel.f_set; ({ __auto_type res_ = f_D__inRows(f_D__bucket(v_set_0, f_D__tupleHash(p_t)), p_t); res_; }); }); }); res_; }); } static struct E_Coll__List__D__Val* f_D__from(struct E_Coll__List__D__Val* p_t, int64_t p_c) { srs_tail: return ({ __auto_type res_ = ((p_c == ((int64_t)0)) ? p_t : ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Val); }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Val* t0 = v_rest_0; int64_t t1 = (p_c - ((int64_t)1)); p_t = t0; p_c = t1; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }); })); res_; }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_D__indexCols(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_cols, struct E_D__Row* p_row, struct E_Coll__List__D__Val* p_t, struct E_Coll__List__I64* p_ic) { srs_tail: return ({ __auto_type s0 = p_ic; s0->tag == 0 ? ({ p_cols; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_D__from(p_t, v_c_0); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t1 = p_cols; struct E_D__Row* t2 = p_row; struct E_Coll__List__D__Val* t3 = p_t; struct E_Coll__List__I64* t4 = v_rest_1; p_r = t0; p_cols = t1; p_row = t2; p_t = t3; p_ic = t4; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* v_n_3 = f_Coll__bFind__Coll__BTree_1_Coll__List_1_D__Row(p_cols, v_c_0); struct E_Coll__BTree__Coll__List_1_D__Row* v_col_4 = f_Coll__bPushT__D__Row(p_r, f_Coll__bValOr__Coll__BTree_1_Coll__List_1_D__Row(v_n_3, v_c_0, (&N_Coll__BTip__Coll__List_1_D__Row)), f_D__vhash(v_v_2), p_row); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t1 = (f_Coll__bIsNode__Coll__BTree_1_Coll__List_1_D__Row(v_n_3) ? f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_cols, v_c_0, v_col_4) : f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_cols, v_c_0, v_col_4)); struct E_D__Row* t2 = p_row; struct E_Coll__List__D__Val* t3 = p_t; struct E_Coll__List__I64* t4 = v_rest_1; p_r = t0; p_cols = t1; p_row = t2; p_t = t3; p_ic = t4; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }); res_; }); }); }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_D__indexCols(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_cols, struct E_D__Row* p_row, struct E_Coll__List__D__Val* p_t, struct E_Coll__List__I64* p_ic) { srs_tail: return ({ __auto_type s0 = p_ic; s0->tag == 0 ? ({ p_cols; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_D__from(p_t, v_c_0); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t1 = p_cols; struct E_D__Row* t2 = p_row; struct E_Coll__List__D__Val* t3 = p_t; struct E_Coll__List__I64* t4 = v_rest_1; p_eff__Region = t0; p_cols = t1; p_row = t2; p_t = t3; p_ic = t4; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* v_n_3 = f_Coll__bFind__Coll__BTree_1_Coll__List_1_D__Row(p_cols, v_c_0); struct E_Coll__BTree__Coll__List_1_D__Row* v_col_4 = f_Coll__bPushT__D__Row(p_eff__Region, f_Coll__bValOr__Coll__BTree_1_Coll__List_1_D__Row(v_n_3, v_c_0, (&N_Coll__BTip__Coll__List_1_D__Row)), f_D__vhash(v_v_2), p_row); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t1 = (f_Coll__bIsNode__Coll__BTree_1_Coll__List_1_D__Row(v_n_3) ? f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_cols, v_c_0, v_col_4) : f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_cols, v_c_0, v_col_4)); struct E_D__Row* t2 = p_row; struct E_Coll__List__D__Val* t3 = p_t; struct E_Coll__List__I64* t4 = v_rest_1; p_eff__Region = t0; p_cols = t1; p_row = t2; p_t = t3; p_ic = t4; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }); res_; }); }); }); }); }); } static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bFind__Coll__BTree_1_Coll__List_1_D__Row(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bPushT__D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_D__Row* p_x) { return ({ struct E_Coll__BTree__Coll__List_1_D__Row* v_n_0 = f_Coll__bFind__Coll__List_1_D__Row(p_t, p_k); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_D__Row(v_n_0) ? f_Coll__bRep__Coll__List_1_D__Row(p_r, p_t, p_k, ({ struct E_Coll__List__D__Row* o1 = (struct E_Coll__List__D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Row, u) + sizeof(((struct E_Coll__List__D__Row*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = f_Coll__bValOr__Coll__List_1_D__Row(v_n_0, p_k, (&N_Coll__Nil__D__Row)); o1; })) : f_Coll__bIns__Coll__List_1_D__Row(p_r, p_t, p_k, ({ struct E_Coll__List__D__Row* o1 = (struct E_Coll__List__D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Row, u) + sizeof(((struct E_Coll__List__D__Row*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Row); o1; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bPushT__D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_D__Row* p_x) { return ({ struct E_Coll__BTree__Coll__List_1_D__Row* v_n_0 = f_Coll__bFind__Coll__List_1_D__Row(p_t, p_k); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_D__Row(v_n_0) ? f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, p_t, p_k, ({ struct E_Coll__List__D__Row* o1 = (struct E_Coll__List__D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Row, u) + sizeof(((struct E_Coll__List__D__Row*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = f_Coll__bValOr__Coll__List_1_D__Row(v_n_0, p_k, (&N_Coll__Nil__D__Row)); o1; })) : f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_t, p_k, ({ struct E_Coll__List__D__Row* o1 = (struct E_Coll__List__D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Row, u) + sizeof(((struct E_Coll__List__D__Row*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Row); o1; }))); res_; }); } static bool f_Coll__bIsNode__Coll__List_1_D__Row(struct E_Coll__BTree__Coll__List_1_D__Row* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRep__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_D__Row(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bIns__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2L__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_D__Row(p_r, f_Coll__bSplitIns__Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2L__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_D__Row(p_r, ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_D__Row(p_r, ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2R__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_D__Row(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2R__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3A__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_D__Row(p_r, f_Coll__bSplitIns__Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3A__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3B__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_D__Row(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3B__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3C__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_D__Row(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_D__Row(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3C__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__Split__Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRootIns__Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_D__Row(p_r, ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRep__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_D__Row(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bIns__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2L__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_D__Row(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2L__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto2R__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_D__Row(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift2R__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3A__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_D__Row(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3A__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3B__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_D__Row(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3B__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__Split__Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bInto3C__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_D__Row(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bLift3C__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__Split__Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bRootIns__Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__List__D__Row* p_v1, struct E_Coll__BTree__Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__List__D__Row* p_v2, struct E_Coll__BTree__Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__List__D__Row* p_v3, struct E_Coll__BTree__Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__List__D__Row* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_D__Row(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } static struct E_Coll__BTree__Coll__List_1_D__Row* f_Coll__bValOr__Coll__BTree_1_Coll__List_1_D__Row(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_n, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static bool f_Coll__bIsNode__Coll__BTree_1_Coll__List_1_D__Row(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__BTree_1_Coll__List_1_D__Row(p_r, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__BTree_1_Coll__List_1_D__Row(p_r, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRootIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_r, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_r, ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_D__Rel* f_D__add(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_D__Row* p_row) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_ic_0 = s0->u.C_D__Rel.f_ic; __auto_type v_set_1 = s0->u.C_D__Rel.f_set; __auto_type v_cols_2 = s0->u.C_D__Rel.f_cols; __auto_type v_all_3 = s0->u.C_D__Rel.f_all; __auto_type v_rc_4 = s0->u.C_D__Rel.f_recent; __auto_type v_fr_5 = s0->u.C_D__Rel.f_fresh; ({ struct E_Coll__List__D__Val* v_t_6 = f_D__tupleOf(p_row); int64_t v_h_7 = f_D__tupleHash(v_t_6); __auto_type res_ = ({ struct E_D__Rel* o8 = (struct E_D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rel, u) + sizeof(((struct E_D__Rel*)0)->u.C_D__Rel))); o8->tag = 0; o8->u.C_D__Rel.f_ic = v_ic_0; o8->u.C_D__Rel.f_set = f_Coll__bPushT__D__Row(p_r, v_set_1, v_h_7, p_row); o8->u.C_D__Rel.f_cols = f_D__indexCols(p_r, v_cols_2, p_row, v_t_6, v_ic_0); o8->u.C_D__Rel.f_all = ({ struct E_Coll__List__D__Row* o8 = (struct E_Coll__List__D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Row, u) + sizeof(((struct E_Coll__List__D__Row*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = p_row; o8->u.C_Coll__Cons.f_t = v_all_3; o8; }); o8->u.C_D__Rel.f_recent = v_rc_4; o8->u.C_D__Rel.f_fresh = (v_fr_5 + ((int64_t)1)); o8; }); res_; }); }); }); res_; }); } -static struct E_Coll__List__D__Row* f_D__cands(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_D__Probe* p_p) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_cols_0 = s0->u.C_D__Rel.f_cols; __auto_type v_all_1 = s0->u.C_D__Rel.f_all; ({ __auto_type res_ = ({ __auto_type s2 = p_p; s2->tag == 0 ? ({ v_all_1; }) : ({ __auto_type v_c_2 = s2->u.C_D__Col.f_c; __auto_type v_h_3 = s2->u.C_D__Col.f_h; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* v_n_4 = f_Coll__bFind__Coll__BTree_1_Coll__List_1_D__Row(v_cols_0, v_c_2); __auto_type res_ = (f_Coll__bIsNode__Coll__BTree_1_Coll__List_1_D__Row(v_n_4) ? f_D__bucket(p_r, f_Coll__bValOr__Coll__BTree_1_Coll__List_1_D__Row(v_n_4, v_c_2, (&N_Coll__BTip__Coll__List_1_D__Row)), v_h_3) : v_all_1); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__D__RelRef* f_D__refOf(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_tab; s0->tag == 0 ? ({ (&N_Coll__None__D__RelRef); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_name_2 = s2->u.C_D__RelRef.f_name; ({ __auto_type res_ = (f_Sym__eq(v_name_2, p_s) ? ({ struct E_Coll__Option__D__RelRef* o3 = (struct E_Coll__Option__D__RelRef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__D__RelRef, u) + sizeof(((struct E_Coll__Option__D__RelRef*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_h_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__RelRef* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_tab = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__D__RelRef*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_D__With__D__RelRef* f_D__internId(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = f_D__refOf(p_r, p_tab, p_s); s0->tag == 1 ? ({ __auto_type v_ref_0 = s0->u.C_Coll__Some.f_v; ({ struct E_D__With__D__RelRef* o1 = (struct E_D__With__D__RelRef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__With__D__RelRef, u) + sizeof(((struct E_D__With__D__RelRef*)0)->u.C_D__With))); o1->tag = 0; o1->u.C_D__With.f_tab = p_tab; o1->u.C_D__With.f_v = v_ref_0; o1; }); }) : ({ ({ struct E_D__RelRef* v_ref_0 = ({ struct E_D__RelRef* o0 = (struct E_D__RelRef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__RelRef, u) + sizeof(((struct E_D__RelRef*)0)->u.C_D__RelRef))); o0->tag = 0; o0->u.C_D__RelRef.f_id = f_Coll__length__D__RelRef(p_tab); o0->u.C_D__RelRef.f_name = p_s; o0; }); __auto_type res_ = ({ struct E_D__With__D__RelRef* o1 = (struct E_D__With__D__RelRef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__With__D__RelRef, u) + sizeof(((struct E_D__With__D__RelRef*)0)->u.C_D__With))); o1->tag = 0; o1->u.C_D__With.f_tab = f_Coll__rev__D__RelRef(p_r, ({ struct E_Coll__List__D__RelRef* o1 = (struct E_Coll__List__D__RelRef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__RelRef, u) + sizeof(((struct E_Coll__List__D__RelRef*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_ref_0; o1->u.C_Coll__Cons.f_t = f_Coll__rev__D__RelRef(p_r, p_tab); o1; })); o1->u.C_D__With.f_v = v_ref_0; o1; }); res_; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o10 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_t, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o7 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2L__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift2R__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3A__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3B__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bInto3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__BTree_1_Coll__List_1_D__Row); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bLift3C__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__Split__Coll__BTree_1_Coll__List_1_D__Row* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o4 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* f_Coll__bRootIns__Coll__BTree_1_Coll__List_1_D__Row(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_a, int64_t p_k1, struct E_Coll__BTree__Coll__List_1_D__Row* p_v1, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_b, int64_t p_k2, struct E_Coll__BTree__Coll__List_1_D__Row* p_v2, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_c, int64_t p_k3, struct E_Coll__BTree__Coll__List_1_D__Row* p_v3, struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* p_d, int64_t p_k, struct E_Coll__BTree__Coll__List_1_D__Row* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__BTree_1_Coll__List_1_D__Row(p_eff__Region, ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* o0 = (struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row, u) + sizeof(((struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_D__Rel* f_D__add(srs_cap* p_eff__Region, struct E_D__Rel* p_rl, struct E_D__Row* p_row) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_ic_0 = s0->u.C_D__Rel.f_ic; __auto_type v_set_1 = s0->u.C_D__Rel.f_set; __auto_type v_cols_2 = s0->u.C_D__Rel.f_cols; __auto_type v_all_3 = s0->u.C_D__Rel.f_all; __auto_type v_rc_4 = s0->u.C_D__Rel.f_recent; __auto_type v_fr_5 = s0->u.C_D__Rel.f_fresh; ({ struct E_Coll__List__D__Val* v_t_6 = f_D__tupleOf(p_row); int64_t v_h_7 = f_D__tupleHash(v_t_6); __auto_type res_ = ({ struct E_D__Rel* o8 = (struct E_D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rel, u) + sizeof(((struct E_D__Rel*)0)->u.C_D__Rel))); o8->tag = 0; o8->u.C_D__Rel.f_ic = v_ic_0; o8->u.C_D__Rel.f_set = f_Coll__bPushT__D__Row(p_eff__Region, v_set_1, v_h_7, p_row); o8->u.C_D__Rel.f_cols = f_D__indexCols(p_eff__Region, v_cols_2, p_row, v_t_6, v_ic_0); o8->u.C_D__Rel.f_all = ({ struct E_Coll__List__D__Row* o8 = (struct E_Coll__List__D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Row, u) + sizeof(((struct E_Coll__List__D__Row*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = p_row; o8->u.C_Coll__Cons.f_t = v_all_3; o8; }); o8->u.C_D__Rel.f_recent = v_rc_4; o8->u.C_D__Rel.f_fresh = (v_fr_5 + ((int64_t)1)); o8; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__D__Row* f_D__cands(struct E_D__Rel* p_rl, struct E_D__Probe* p_p) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_cols_0 = s0->u.C_D__Rel.f_cols; __auto_type v_all_1 = s0->u.C_D__Rel.f_all; ({ __auto_type res_ = ({ __auto_type s2 = p_p; s2->tag == 0 ? ({ v_all_1; }) : ({ __auto_type v_c_2 = s2->u.C_D__Col.f_c; __auto_type v_h_3 = s2->u.C_D__Col.f_h; ({ struct E_Coll__BTree__Coll__BTree_1_Coll__List_1_D__Row* v_n_4 = f_Coll__bFind__Coll__BTree_1_Coll__List_1_D__Row(v_cols_0, v_c_2); __auto_type res_ = (f_Coll__bIsNode__Coll__BTree_1_Coll__List_1_D__Row(v_n_4) ? f_D__bucket(f_Coll__bValOr__Coll__BTree_1_Coll__List_1_D__Row(v_n_4, v_c_2, (&N_Coll__BTip__Coll__List_1_D__Row)), v_h_3) : v_all_1); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__D__RelRef* f_D__refOf(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_tab; s0->tag == 0 ? ({ (&N_Coll__None__D__RelRef); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_name_2 = s2->u.C_D__RelRef.f_name; ({ __auto_type res_ = (f_Sym__eq(v_name_2, p_s) ? ({ struct E_Coll__Option__D__RelRef* o3 = (struct E_Coll__Option__D__RelRef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__D__RelRef, u) + sizeof(((struct E_Coll__Option__D__RelRef*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_h_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__RelRef* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_tab = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__D__RelRef*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_D__With__D__RelRef* f_D__internId(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = f_D__refOf(p_eff__Region, p_tab, p_s); s0->tag == 1 ? ({ __auto_type v_ref_0 = s0->u.C_Coll__Some.f_v; ({ struct E_D__With__D__RelRef* o1 = (struct E_D__With__D__RelRef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__With__D__RelRef, u) + sizeof(((struct E_D__With__D__RelRef*)0)->u.C_D__With))); o1->tag = 0; o1->u.C_D__With.f_tab = p_tab; o1->u.C_D__With.f_v = v_ref_0; o1; }); }) : ({ ({ struct E_D__RelRef* v_ref_0 = ({ struct E_D__RelRef* o0 = (struct E_D__RelRef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__RelRef, u) + sizeof(((struct E_D__RelRef*)0)->u.C_D__RelRef))); o0->tag = 0; o0->u.C_D__RelRef.f_id = f_Coll__length__D__RelRef(p_tab); o0->u.C_D__RelRef.f_name = p_s; o0; }); __auto_type res_ = ({ struct E_D__With__D__RelRef* o1 = (struct E_D__With__D__RelRef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__With__D__RelRef, u) + sizeof(((struct E_D__With__D__RelRef*)0)->u.C_D__With))); o1->tag = 0; o1->u.C_D__With.f_tab = f_Coll__rev__D__RelRef(p_eff__Region, ({ struct E_Coll__List__D__RelRef* o1 = (struct E_Coll__List__D__RelRef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__RelRef, u) + sizeof(((struct E_Coll__List__D__RelRef*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_ref_0; o1->u.C_Coll__Cons.f_t = f_Coll__rev__D__RelRef(p_eff__Region, p_tab); o1; })); o1->u.C_D__With.f_v = v_ref_0; o1; }); res_; }); }); }); } static int64_t f_Coll__length__D__RelRef(struct E_Coll__List__D__RelRef* p_xs) { return f_Coll__lengthFrom__D__RelRef(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__D__RelRef(struct E_Coll__List__D__RelRef* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__RelRef* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Coll__List__D__RelRef* f_Coll__rev__D__RelRef(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_xs) { return f_Coll__revOnto__D__RelRef(p_r, p_xs, (&N_Coll__Nil__D__RelRef)); } -static struct E_Coll__List__D__RelRef* f_Coll__revOnto__D__RelRef(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_xs, struct E_Coll__List__D__RelRef* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__RelRef* t1 = v_t_1; struct E_Coll__List__D__RelRef* t2 = ({ struct E_Coll__List__D__RelRef* o2 = (struct E_Coll__List__D__RelRef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__RelRef, u) + sizeof(((struct E_Coll__List__D__RelRef*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__RelRef*){0}; }); }); }); } +static struct E_Coll__List__D__RelRef* f_Coll__rev__D__RelRef(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_xs) { return f_Coll__revOnto__D__RelRef(p_eff__Region, p_xs, (&N_Coll__Nil__D__RelRef)); } +static struct E_Coll__List__D__RelRef* f_Coll__revOnto__D__RelRef(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_xs, struct E_Coll__List__D__RelRef* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__RelRef* t1 = v_t_1; struct E_Coll__List__D__RelRef* t2 = ({ struct E_Coll__List__D__RelRef* o2 = (struct E_Coll__List__D__RelRef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__RelRef, u) + sizeof(((struct E_Coll__List__D__RelRef*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__RelRef*){0}; }); }); }); } static int64_t f_D__idOfRef(struct E_D__RelRef* p_ref) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ref; ({ __auto_type v_id_0 = s0->u.C_D__RelRef.f_id; ({ __auto_type res_ = v_id_0; res_; }); }); }); res_; }); } static struct E_Sym__Sym* f_D__nameOfRef(struct E_D__RelRef* p_ref) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ref; ({ __auto_type v_name_0 = s0->u.C_D__RelRef.f_name; ({ __auto_type res_ = v_name_0; res_; }); }); }); res_; }); } -static struct E_D__With__D__CAtom* f_D__catom(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_D__Atom* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_rel_0 = s0->u.C_D__Atom.f_rel; __auto_type v_args_1 = s0->u.C_D__Atom.f_args; ({ __auto_type res_ = ({ __auto_type s2 = f_D__internId(p_r, p_tab, v_rel_0); ({ __auto_type v_tab2_2 = s2->u.C_D__With.f_tab; __auto_type v_ref_3 = s2->u.C_D__With.f_v; ({ __auto_type res_ = ({ struct E_D__With__D__CAtom* o4 = (struct E_D__With__D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__With__D__CAtom, u) + sizeof(((struct E_D__With__D__CAtom*)0)->u.C_D__With))); o4->tag = 0; o4->u.C_D__With.f_tab = v_tab2_2; o4->u.C_D__With.f_v = ({ struct E_D__CAtom* o4 = (struct E_D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__CAtom, u) + sizeof(((struct E_D__CAtom*)0)->u.C_D__CAtom))); o4->tag = 0; o4->u.C_D__CAtom.f_rel = v_ref_3; o4->u.C_D__CAtom.f_args = v_args_1; o4; }); o4; }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_D__With__D__Body* f_D__cbody(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Lit* p_ls, struct E_Coll__List__D__CAtom* p_pos, struct E_Coll__List__D__CAtom* p_neg) { srs_tail: return ({ __auto_type s0 = p_ls; s0->tag == 0 ? ({ ({ struct E_D__With__D__Body* o0 = (struct E_D__With__D__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__With__D__Body, u) + sizeof(((struct E_D__With__D__Body*)0)->u.C_D__With))); o0->tag = 0; o0->u.C_D__With.f_tab = p_tab; o0->u.C_D__With.f_v = ({ struct E_D__Body* o0 = (struct E_D__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Body, u) + sizeof(((struct E_D__Body*)0)->u.C_D__Body))); o0->tag = 0; o0->u.C_D__Body.f_pos = f_Coll__rev__D__CAtom(p_r, p_pos); o0->u.C_D__Body.f_neg = f_Coll__rev__D__CAtom(p_r, p_neg); o0; }); o0; }); }) : ({ __auto_type v_l_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_l_0; s2->tag == 0 ? ({ __auto_type v_a_2 = s2->u.C_D__Pos.f_a; ({ __auto_type res_ = ({ __auto_type s3 = f_D__catom(p_r, p_tab, v_a_2); ({ __auto_type v_tab2_3 = s3->u.C_D__With.f_tab; __auto_type v_ca_4 = s3->u.C_D__With.f_v; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__RelRef* t1 = v_tab2_3; struct E_Coll__List__D__Lit* t2 = v_rest_1; struct E_Coll__List__D__CAtom* t3 = ({ struct E_Coll__List__D__CAtom* o5 = (struct E_Coll__List__D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__CAtom, u) + sizeof(((struct E_Coll__List__D__CAtom*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_ca_4; o5->u.C_Coll__Cons.f_t = p_pos; o5; }); struct E_Coll__List__D__CAtom* t4 = p_neg; p_r = t0; p_tab = t1; p_ls = t2; p_pos = t3; p_neg = t4; goto srs_tail; (struct E_D__With__D__Body*){0}; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_a_2 = s2->u.C_D__Neg.f_a; ({ __auto_type res_ = ({ __auto_type s3 = f_D__catom(p_r, p_tab, v_a_2); ({ __auto_type v_tab2_3 = s3->u.C_D__With.f_tab; __auto_type v_ca_4 = s3->u.C_D__With.f_v; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__RelRef* t1 = v_tab2_3; struct E_Coll__List__D__Lit* t2 = v_rest_1; struct E_Coll__List__D__CAtom* t3 = p_pos; struct E_Coll__List__D__CAtom* t4 = ({ struct E_Coll__List__D__CAtom* o5 = (struct E_Coll__List__D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__CAtom, u) + sizeof(((struct E_Coll__List__D__CAtom*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_ca_4; o5->u.C_Coll__Cons.f_t = p_neg; o5; }); p_r = t0; p_tab = t1; p_ls = t2; p_pos = t3; p_neg = t4; goto srs_tail; (struct E_D__With__D__Body*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Coll__List__D__CAtom* f_Coll__rev__D__CAtom(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_xs) { return f_Coll__revOnto__D__CAtom(p_r, p_xs, (&N_Coll__Nil__D__CAtom)); } -static struct E_Coll__List__D__CAtom* f_Coll__revOnto__D__CAtom(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_t_1; struct E_Coll__List__D__CAtom* t2 = ({ struct E_Coll__List__D__CAtom* o2 = (struct E_Coll__List__D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__CAtom, u) + sizeof(((struct E_Coll__List__D__CAtom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__CAtom*){0}; }); }); }); } -static struct E_D__With__Coll__List_1_D__Draft* f_D__drafts(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Rule* p_rs, int64_t p_i, struct E_Coll__List__D__Draft* p_acc) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ struct E_D__With__Coll__List_1_D__Draft* o0 = (struct E_D__With__Coll__List_1_D__Draft*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__With__Coll__List_1_D__Draft, u) + sizeof(((struct E_D__With__Coll__List_1_D__Draft*)0)->u.C_D__With))); o0->tag = 0; o0->u.C_D__With.f_tab = p_tab; o0->u.C_D__With.f_v = f_Coll__rev__D__Draft(p_r, p_acc); o0; }); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__Rule.f_head; __auto_type v_b_3 = s2->u.C_D__Rule.f_body; ({ __auto_type res_ = ({ __auto_type s4 = f_D__catom(p_r, p_tab, v_h_2); ({ __auto_type v_tab2_4 = s4->u.C_D__With.f_tab; __auto_type v_ch_5 = s4->u.C_D__With.f_v; ({ __auto_type res_ = ({ __auto_type s6 = f_D__cbody(p_r, v_tab2_4, v_b_3, (&N_Coll__Nil__D__CAtom), (&N_Coll__Nil__D__CAtom)); ({ __auto_type v_tab3_6 = s6->u.C_D__With.f_tab; __auto_type v_bd_7 = s6->u.C_D__With.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_bd_7; ({ __auto_type v_pos_8 = s8->u.C_D__Body.f_pos; __auto_type v_neg_9 = s8->u.C_D__Body.f_neg; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__RelRef* t1 = v_tab3_6; struct E_Coll__List__D__Rule* t2 = v_rest_1; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Draft* t4 = ({ struct E_Coll__List__D__Draft* o10 = (struct E_Coll__List__D__Draft*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Draft, u) + sizeof(((struct E_Coll__List__D__Draft*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = ({ struct E_D__Draft* o10 = (struct E_D__Draft*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Draft, u) + sizeof(((struct E_D__Draft*)0)->u.C_D__Draft))); o10->tag = 0; o10->u.C_D__Draft.f_head = v_ch_5; o10->u.C_D__Draft.f_body = v_pos_8; o10->u.C_D__Draft.f_neg = v_neg_9; o10->u.C_D__Draft.f_id = p_i; o10; }); o10->u.C_Coll__Cons.f_t = p_acc; o10; }); p_r = t0; p_tab = t1; p_rs = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_D__With__Coll__List_1_D__Draft*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Draft* f_Coll__rev__D__Draft(srs_cap* p_r, struct E_Coll__List__D__Draft* p_xs) { return f_Coll__revOnto__D__Draft(p_r, p_xs, (&N_Coll__Nil__D__Draft)); } -static struct E_Coll__List__D__Draft* f_Coll__revOnto__D__Draft(srs_cap* p_r, struct E_Coll__List__D__Draft* p_xs, struct E_Coll__List__D__Draft* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Draft* t1 = v_t_1; struct E_Coll__List__D__Draft* t2 = ({ struct E_Coll__List__D__Draft* o2 = (struct E_Coll__List__D__Draft*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Draft, u) + sizeof(((struct E_Coll__List__D__Draft*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Draft*){0}; }); }); }); } -static struct E_Coll__List__I64* f_D__headIds(srs_cap* p_r, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_d_0; ({ __auto_type v_h_2 = s2->u.C_D__Draft.f_head; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_ref_3 = s3->u.C_D__CAtom.f_rel; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Draft* t1 = v_rest_1; struct E_Coll__List__I64* t2 = ({ struct E_Coll__List__I64* o4 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_D__idOfRef(v_ref_3); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ds = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__CRule* f_D__crules(srs_cap* p_r, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_heads, struct E_Coll__List__D__CRule* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ f_Coll__rev__D__CRule(p_r, p_acc); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_d_0; ({ __auto_type v_h_2 = s2->u.C_D__Draft.f_head; __auto_type v_body_3 = s2->u.C_D__Draft.f_body; __auto_type v_neg_4 = s2->u.C_D__Draft.f_neg; __auto_type v_i_5 = s2->u.C_D__Draft.f_id; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Draft* t1 = v_rest_1; struct E_Coll__List__I64* t2 = p_heads; struct E_Coll__List__D__CRule* t3 = ({ struct E_Coll__List__D__CRule* o6 = (struct E_Coll__List__D__CRule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__CRule, u) + sizeof(((struct E_Coll__List__D__CRule*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_D__CRule* o6 = (struct E_D__CRule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__CRule, u) + sizeof(((struct E_D__CRule*)0)->u.C_D__CRule))); o6->tag = 0; o6->u.C_D__CRule.f_head = v_h_2; o6->u.C_D__CRule.f_body = v_body_3; o6->u.C_D__CRule.f_neg = v_neg_4; o6->u.C_D__CRule.f_id = v_i_5; o6->u.C_D__CRule.f_plans = f_D__plans(p_r, v_body_3, v_body_3, p_heads, ((int64_t)0), (&N_Coll__Nil__D__Plan)); o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_r = t0; p_ds = t1; p_heads = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__CRule*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__CRule* f_Coll__rev__D__CRule(srs_cap* p_r, struct E_Coll__List__D__CRule* p_xs) { return f_Coll__revOnto__D__CRule(p_r, p_xs, (&N_Coll__Nil__D__CRule)); } -static struct E_Coll__List__D__CRule* f_Coll__revOnto__D__CRule(srs_cap* p_r, struct E_Coll__List__D__CRule* p_xs, struct E_Coll__List__D__CRule* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_t_1; struct E_Coll__List__D__CRule* t2 = ({ struct E_Coll__List__D__CRule* o2 = (struct E_Coll__List__D__CRule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__CRule, u) + sizeof(((struct E_Coll__List__D__CRule*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__CRule*){0}; }); }); }); } -static struct E_Coll__List__D__Plan* f_D__plans(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__I64* p_heads, int64_t p_j, struct E_Coll__List__D__Plan* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_Coll__rev__D__Plan(p_r, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_ref_2 = s2->u.C_D__CAtom.f_rel; ({ __auto_type res_ = (f_D__memberI(f_D__idOfRef(v_ref_2), p_heads) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = p_body; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__List__I64* t3 = p_heads; int64_t t4 = (p_j + ((int64_t)1)); struct E_Coll__List__D__Plan* t5 = ({ struct E_Coll__List__D__Plan* o3 = (struct E_Coll__List__D__Plan*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Plan, u) + sizeof(((struct E_Coll__List__D__Plan*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Plan* o3 = (struct E_D__Plan*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Plan, u) + sizeof(((struct E_D__Plan*)0)->u.C_D__Plan))); o3->tag = 0; o3->u.C_D__Plan.f_first = v_a_0; o3->u.C_D__Plan.f_rest = f_D__steps(p_r, p_body, p_j, ((int64_t)0), (&N_Coll__Nil__D__Step)); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_body = t1; p_xs = t2; p_heads = t3; p_j = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Plan*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = p_body; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__List__I64* t3 = p_heads; int64_t t4 = (p_j + ((int64_t)1)); struct E_Coll__List__D__Plan* t5 = p_acc; p_r = t0; p_body = t1; p_xs = t2; p_heads = t3; p_j = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Plan*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Plan* f_Coll__rev__D__Plan(srs_cap* p_r, struct E_Coll__List__D__Plan* p_xs) { return f_Coll__revOnto__D__Plan(p_r, p_xs, (&N_Coll__Nil__D__Plan)); } -static struct E_Coll__List__D__Plan* f_Coll__revOnto__D__Plan(srs_cap* p_r, struct E_Coll__List__D__Plan* p_xs, struct E_Coll__List__D__Plan* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Plan* t1 = v_t_1; struct E_Coll__List__D__Plan* t2 = ({ struct E_Coll__List__D__Plan* o2 = (struct E_Coll__List__D__Plan*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Plan, u) + sizeof(((struct E_Coll__List__D__Plan*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Plan*){0}; }); }); }); } -static struct E_Coll__List__D__Step* f_D__steps(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_body, int64_t p_j, int64_t p_i, struct E_Coll__List__D__Step* p_acc) { srs_tail: return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ f_Coll__rev__D__Step(p_r, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ((p_i < p_j) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_j; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Step* t4 = ({ struct E_Coll__List__D__Step* o2 = (struct E_Coll__List__D__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Step, u) + sizeof(((struct E_Coll__List__D__Step*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_D__Step* o2 = (struct E_D__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Step, u) + sizeof(((struct E_D__Step*)0)->u.C_D__ReadOld))); o2->tag = 0; o2->u.C_D__ReadOld.f_a = v_a_0; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_body = t1; p_j = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }) : ((p_i == p_j) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_j; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Step* t4 = p_acc; p_r = t0; p_body = t1; p_j = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_j; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Step* t4 = ({ struct E_Coll__List__D__Step* o2 = (struct E_Coll__List__D__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Step, u) + sizeof(((struct E_Coll__List__D__Step*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_D__Step* o2 = (struct E_D__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Step, u) + sizeof(((struct E_D__Step*)0)->u.C_D__ReadAll))); o2->tag = 1; o2->u.C_D__ReadAll.f_a = v_a_0; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_body = t1; p_j = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }))); res_; }); }); }); } -static struct E_Coll__List__D__Step* f_Coll__rev__D__Step(srs_cap* p_r, struct E_Coll__List__D__Step* p_xs) { return f_Coll__revOnto__D__Step(p_r, p_xs, (&N_Coll__Nil__D__Step)); } -static struct E_Coll__List__D__Step* f_Coll__revOnto__D__Step(srs_cap* p_r, struct E_Coll__List__D__Step* p_xs, struct E_Coll__List__D__Step* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Step* t1 = v_t_1; struct E_Coll__List__D__Step* t2 = ({ struct E_Coll__List__D__Step* o2 = (struct E_Coll__List__D__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Step, u) + sizeof(((struct E_Coll__List__D__Step*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }); }); }); } -static struct E_D__Bound* f_D__argVal(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_D__Arg* p_a) { return ({ __auto_type s0 = p_a; s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_D__AVal.f_v; ({ struct E_D__Bound* o1 = (struct E_D__Bound*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Bound, u) + sizeof(((struct E_D__Bound*)0)->u.C_D__Is))); o1->tag = 1; o1->u.C_D__Is.f_v = v_v_0; o1; }); }) : ({ __auto_type v_n_0 = s0->u.C_D__AVar.f_n; ({ __auto_type s1 = f_Coll__node__D__Val(p_env, v_n_0); s1->tag == 0 ? ({ (&N_D__Unbound); }) : ({ __auto_type v_v_1 = s1->u.C_Coll__Bin.f_v; ({ struct E_D__Bound* o2 = (struct E_D__Bound*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Bound, u) + sizeof(((struct E_D__Bound*)0)->u.C_D__Is))); o2->tag = 1; o2->u.C_D__Is.f_v = v_v_1; o2; }); }); }); }); }); } +static struct E_D__With__D__CAtom* f_D__catom(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_D__Atom* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_rel_0 = s0->u.C_D__Atom.f_rel; __auto_type v_args_1 = s0->u.C_D__Atom.f_args; ({ __auto_type res_ = ({ __auto_type s2 = f_D__internId(p_eff__Region, p_tab, v_rel_0); ({ __auto_type v_tab2_2 = s2->u.C_D__With.f_tab; __auto_type v_ref_3 = s2->u.C_D__With.f_v; ({ __auto_type res_ = ({ struct E_D__With__D__CAtom* o4 = (struct E_D__With__D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__With__D__CAtom, u) + sizeof(((struct E_D__With__D__CAtom*)0)->u.C_D__With))); o4->tag = 0; o4->u.C_D__With.f_tab = v_tab2_2; o4->u.C_D__With.f_v = ({ struct E_D__CAtom* o4 = (struct E_D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__CAtom, u) + sizeof(((struct E_D__CAtom*)0)->u.C_D__CAtom))); o4->tag = 0; o4->u.C_D__CAtom.f_rel = v_ref_3; o4->u.C_D__CAtom.f_args = v_args_1; o4; }); o4; }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_D__With__D__Body* f_D__cbody(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Lit* p_ls, struct E_Coll__List__D__CAtom* p_pos, struct E_Coll__List__D__CAtom* p_neg) { srs_tail: return ({ __auto_type s0 = p_ls; s0->tag == 0 ? ({ ({ struct E_D__With__D__Body* o0 = (struct E_D__With__D__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__With__D__Body, u) + sizeof(((struct E_D__With__D__Body*)0)->u.C_D__With))); o0->tag = 0; o0->u.C_D__With.f_tab = p_tab; o0->u.C_D__With.f_v = ({ struct E_D__Body* o0 = (struct E_D__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Body, u) + sizeof(((struct E_D__Body*)0)->u.C_D__Body))); o0->tag = 0; o0->u.C_D__Body.f_pos = f_Coll__rev__D__CAtom(p_eff__Region, p_pos); o0->u.C_D__Body.f_neg = f_Coll__rev__D__CAtom(p_eff__Region, p_neg); o0; }); o0; }); }) : ({ __auto_type v_l_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_l_0; s2->tag == 0 ? ({ __auto_type v_a_2 = s2->u.C_D__Pos.f_a; ({ __auto_type res_ = ({ __auto_type s3 = f_D__catom(p_eff__Region, p_tab, v_a_2); ({ __auto_type v_tab2_3 = s3->u.C_D__With.f_tab; __auto_type v_ca_4 = s3->u.C_D__With.f_v; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__RelRef* t1 = v_tab2_3; struct E_Coll__List__D__Lit* t2 = v_rest_1; struct E_Coll__List__D__CAtom* t3 = ({ struct E_Coll__List__D__CAtom* o5 = (struct E_Coll__List__D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__CAtom, u) + sizeof(((struct E_Coll__List__D__CAtom*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_ca_4; o5->u.C_Coll__Cons.f_t = p_pos; o5; }); struct E_Coll__List__D__CAtom* t4 = p_neg; p_eff__Region = t0; p_tab = t1; p_ls = t2; p_pos = t3; p_neg = t4; goto srs_tail; (struct E_D__With__D__Body*){0}; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_a_2 = s2->u.C_D__Neg.f_a; ({ __auto_type res_ = ({ __auto_type s3 = f_D__catom(p_eff__Region, p_tab, v_a_2); ({ __auto_type v_tab2_3 = s3->u.C_D__With.f_tab; __auto_type v_ca_4 = s3->u.C_D__With.f_v; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__RelRef* t1 = v_tab2_3; struct E_Coll__List__D__Lit* t2 = v_rest_1; struct E_Coll__List__D__CAtom* t3 = p_pos; struct E_Coll__List__D__CAtom* t4 = ({ struct E_Coll__List__D__CAtom* o5 = (struct E_Coll__List__D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__CAtom, u) + sizeof(((struct E_Coll__List__D__CAtom*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_ca_4; o5->u.C_Coll__Cons.f_t = p_neg; o5; }); p_eff__Region = t0; p_tab = t1; p_ls = t2; p_pos = t3; p_neg = t4; goto srs_tail; (struct E_D__With__D__Body*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Coll__List__D__CAtom* f_Coll__rev__D__CAtom(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_xs) { return f_Coll__revOnto__D__CAtom(p_eff__Region, p_xs, (&N_Coll__Nil__D__CAtom)); } +static struct E_Coll__List__D__CAtom* f_Coll__revOnto__D__CAtom(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_t_1; struct E_Coll__List__D__CAtom* t2 = ({ struct E_Coll__List__D__CAtom* o2 = (struct E_Coll__List__D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__CAtom, u) + sizeof(((struct E_Coll__List__D__CAtom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__CAtom*){0}; }); }); }); } +static struct E_D__With__Coll__List_1_D__Draft* f_D__drafts(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Rule* p_rs, int64_t p_i, struct E_Coll__List__D__Draft* p_acc) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ struct E_D__With__Coll__List_1_D__Draft* o0 = (struct E_D__With__Coll__List_1_D__Draft*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__With__Coll__List_1_D__Draft, u) + sizeof(((struct E_D__With__Coll__List_1_D__Draft*)0)->u.C_D__With))); o0->tag = 0; o0->u.C_D__With.f_tab = p_tab; o0->u.C_D__With.f_v = f_Coll__rev__D__Draft(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__Rule.f_head; __auto_type v_b_3 = s2->u.C_D__Rule.f_body; ({ __auto_type res_ = ({ __auto_type s4 = f_D__catom(p_eff__Region, p_tab, v_h_2); ({ __auto_type v_tab2_4 = s4->u.C_D__With.f_tab; __auto_type v_ch_5 = s4->u.C_D__With.f_v; ({ __auto_type res_ = ({ __auto_type s6 = f_D__cbody(p_eff__Region, v_tab2_4, v_b_3, (&N_Coll__Nil__D__CAtom), (&N_Coll__Nil__D__CAtom)); ({ __auto_type v_tab3_6 = s6->u.C_D__With.f_tab; __auto_type v_bd_7 = s6->u.C_D__With.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_bd_7; ({ __auto_type v_pos_8 = s8->u.C_D__Body.f_pos; __auto_type v_neg_9 = s8->u.C_D__Body.f_neg; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__RelRef* t1 = v_tab3_6; struct E_Coll__List__D__Rule* t2 = v_rest_1; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Draft* t4 = ({ struct E_Coll__List__D__Draft* o10 = (struct E_Coll__List__D__Draft*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Draft, u) + sizeof(((struct E_Coll__List__D__Draft*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = ({ struct E_D__Draft* o10 = (struct E_D__Draft*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Draft, u) + sizeof(((struct E_D__Draft*)0)->u.C_D__Draft))); o10->tag = 0; o10->u.C_D__Draft.f_head = v_ch_5; o10->u.C_D__Draft.f_body = v_pos_8; o10->u.C_D__Draft.f_neg = v_neg_9; o10->u.C_D__Draft.f_id = p_i; o10; }); o10->u.C_Coll__Cons.f_t = p_acc; o10; }); p_eff__Region = t0; p_tab = t1; p_rs = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_D__With__Coll__List_1_D__Draft*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Draft* f_Coll__rev__D__Draft(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_xs) { return f_Coll__revOnto__D__Draft(p_eff__Region, p_xs, (&N_Coll__Nil__D__Draft)); } +static struct E_Coll__List__D__Draft* f_Coll__revOnto__D__Draft(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_xs, struct E_Coll__List__D__Draft* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Draft* t1 = v_t_1; struct E_Coll__List__D__Draft* t2 = ({ struct E_Coll__List__D__Draft* o2 = (struct E_Coll__List__D__Draft*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Draft, u) + sizeof(((struct E_Coll__List__D__Draft*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Draft*){0}; }); }); }); } +static struct E_Coll__List__I64* f_D__headIds(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_d_0; ({ __auto_type v_h_2 = s2->u.C_D__Draft.f_head; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_ref_3 = s3->u.C_D__CAtom.f_rel; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Draft* t1 = v_rest_1; struct E_Coll__List__I64* t2 = ({ struct E_Coll__List__I64* o4 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_D__idOfRef(v_ref_3); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ds = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__CRule* f_D__crules(srs_cap* p_eff__Region, struct E_Coll__List__D__Draft* p_ds, struct E_Coll__List__I64* p_heads, struct E_Coll__List__D__CRule* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ f_Coll__rev__D__CRule(p_eff__Region, p_acc); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_d_0; ({ __auto_type v_h_2 = s2->u.C_D__Draft.f_head; __auto_type v_body_3 = s2->u.C_D__Draft.f_body; __auto_type v_neg_4 = s2->u.C_D__Draft.f_neg; __auto_type v_i_5 = s2->u.C_D__Draft.f_id; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Draft* t1 = v_rest_1; struct E_Coll__List__I64* t2 = p_heads; struct E_Coll__List__D__CRule* t3 = ({ struct E_Coll__List__D__CRule* o6 = (struct E_Coll__List__D__CRule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__CRule, u) + sizeof(((struct E_Coll__List__D__CRule*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_D__CRule* o6 = (struct E_D__CRule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__CRule, u) + sizeof(((struct E_D__CRule*)0)->u.C_D__CRule))); o6->tag = 0; o6->u.C_D__CRule.f_head = v_h_2; o6->u.C_D__CRule.f_body = v_body_3; o6->u.C_D__CRule.f_neg = v_neg_4; o6->u.C_D__CRule.f_id = v_i_5; o6->u.C_D__CRule.f_plans = f_D__plans(p_eff__Region, v_body_3, v_body_3, p_heads, ((int64_t)0), (&N_Coll__Nil__D__Plan)); o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_eff__Region = t0; p_ds = t1; p_heads = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__CRule*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__CRule* f_Coll__rev__D__CRule(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_xs) { return f_Coll__revOnto__D__CRule(p_eff__Region, p_xs, (&N_Coll__Nil__D__CRule)); } +static struct E_Coll__List__D__CRule* f_Coll__revOnto__D__CRule(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_xs, struct E_Coll__List__D__CRule* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_t_1; struct E_Coll__List__D__CRule* t2 = ({ struct E_Coll__List__D__CRule* o2 = (struct E_Coll__List__D__CRule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__CRule, u) + sizeof(((struct E_Coll__List__D__CRule*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__CRule*){0}; }); }); }); } +static struct E_Coll__List__D__Plan* f_D__plans(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__I64* p_heads, int64_t p_j, struct E_Coll__List__D__Plan* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_Coll__rev__D__Plan(p_eff__Region, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_ref_2 = s2->u.C_D__CAtom.f_rel; ({ __auto_type res_ = (f_D__memberI(f_D__idOfRef(v_ref_2), p_heads) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = p_body; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__List__I64* t3 = p_heads; int64_t t4 = (p_j + ((int64_t)1)); struct E_Coll__List__D__Plan* t5 = ({ struct E_Coll__List__D__Plan* o3 = (struct E_Coll__List__D__Plan*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Plan, u) + sizeof(((struct E_Coll__List__D__Plan*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Plan* o3 = (struct E_D__Plan*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Plan, u) + sizeof(((struct E_D__Plan*)0)->u.C_D__Plan))); o3->tag = 0; o3->u.C_D__Plan.f_first = v_a_0; o3->u.C_D__Plan.f_rest = f_D__steps(p_eff__Region, p_body, p_j, ((int64_t)0), (&N_Coll__Nil__D__Step)); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_body = t1; p_xs = t2; p_heads = t3; p_j = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Plan*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = p_body; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__List__I64* t3 = p_heads; int64_t t4 = (p_j + ((int64_t)1)); struct E_Coll__List__D__Plan* t5 = p_acc; p_eff__Region = t0; p_body = t1; p_xs = t2; p_heads = t3; p_j = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Plan*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Plan* f_Coll__rev__D__Plan(srs_cap* p_eff__Region, struct E_Coll__List__D__Plan* p_xs) { return f_Coll__revOnto__D__Plan(p_eff__Region, p_xs, (&N_Coll__Nil__D__Plan)); } +static struct E_Coll__List__D__Plan* f_Coll__revOnto__D__Plan(srs_cap* p_eff__Region, struct E_Coll__List__D__Plan* p_xs, struct E_Coll__List__D__Plan* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Plan* t1 = v_t_1; struct E_Coll__List__D__Plan* t2 = ({ struct E_Coll__List__D__Plan* o2 = (struct E_Coll__List__D__Plan*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Plan, u) + sizeof(((struct E_Coll__List__D__Plan*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Plan*){0}; }); }); }); } +static struct E_Coll__List__D__Step* f_D__steps(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_body, int64_t p_j, int64_t p_i, struct E_Coll__List__D__Step* p_acc) { srs_tail: return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ f_Coll__rev__D__Step(p_eff__Region, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ((p_i < p_j) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_j; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Step* t4 = ({ struct E_Coll__List__D__Step* o2 = (struct E_Coll__List__D__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Step, u) + sizeof(((struct E_Coll__List__D__Step*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_D__Step* o2 = (struct E_D__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Step, u) + sizeof(((struct E_D__Step*)0)->u.C_D__ReadOld))); o2->tag = 0; o2->u.C_D__ReadOld.f_a = v_a_0; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_body = t1; p_j = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }) : ((p_i == p_j) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_j; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Step* t4 = p_acc; p_eff__Region = t0; p_body = t1; p_j = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_j; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__List__D__Step* t4 = ({ struct E_Coll__List__D__Step* o2 = (struct E_Coll__List__D__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Step, u) + sizeof(((struct E_Coll__List__D__Step*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_D__Step* o2 = (struct E_D__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Step, u) + sizeof(((struct E_D__Step*)0)->u.C_D__ReadAll))); o2->tag = 1; o2->u.C_D__ReadAll.f_a = v_a_0; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_body = t1; p_j = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }))); res_; }); }); }); } +static struct E_Coll__List__D__Step* f_Coll__rev__D__Step(srs_cap* p_eff__Region, struct E_Coll__List__D__Step* p_xs) { return f_Coll__revOnto__D__Step(p_eff__Region, p_xs, (&N_Coll__Nil__D__Step)); } +static struct E_Coll__List__D__Step* f_Coll__revOnto__D__Step(srs_cap* p_eff__Region, struct E_Coll__List__D__Step* p_xs, struct E_Coll__List__D__Step* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Step* t1 = v_t_1; struct E_Coll__List__D__Step* t2 = ({ struct E_Coll__List__D__Step* o2 = (struct E_Coll__List__D__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Step, u) + sizeof(((struct E_Coll__List__D__Step*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Step*){0}; }); }); }); } +static struct E_D__Bound* f_D__argVal(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_D__Arg* p_a) { return ({ __auto_type s0 = p_a; s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_D__AVal.f_v; ({ struct E_D__Bound* o1 = (struct E_D__Bound*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Bound, u) + sizeof(((struct E_D__Bound*)0)->u.C_D__Is))); o1->tag = 1; o1->u.C_D__Is.f_v = v_v_0; o1; }); }) : ({ __auto_type v_n_0 = s0->u.C_D__AVar.f_n; ({ __auto_type s1 = f_Coll__node__D__Val(p_env, v_n_0); s1->tag == 0 ? ({ (&N_D__Unbound); }) : ({ __auto_type v_v_1 = s1->u.C_Coll__Bin.f_v; ({ struct E_D__Bound* o2 = (struct E_D__Bound*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Bound, u) + sizeof(((struct E_D__Bound*)0)->u.C_D__Is))); o2->tag = 1; o2->u.C_D__Is.f_v = v_v_1; o2; }); }); }); }); }); } static struct E_Coll__IMap__D__Val* f_Coll__node__D__Val(struct E_Coll__IMap__D__Val* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__D__Val* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__D__Val*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__D__Val* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__D__Val*){0}; }) : p_m)); }); }); } -static struct E_D__Probe* f_D__probe(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, int64_t p_c) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ (&N_D__Scan); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_D__argVal(p_r, p_env, v_a_0); s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_D__Is.f_v; ({ struct E_D__Probe* o3 = (struct E_D__Probe*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Probe, u) + sizeof(((struct E_D__Probe*)0)->u.C_D__Col))); o3->tag = 1; o3->u.C_D__Col.f_c = p_c; o3->u.C_D__Col.f_h = f_D__vhash(v_v_2); o3; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; int64_t t3 = (p_c + ((int64_t)1)); p_r = t0; p_env = t1; p_args = t2; p_c = t3; goto srs_tail; (struct E_D__Probe*){0}; }); }); }); }); }); } -static struct E_Coll__Option__Coll__IMap_1_D__Val* f_D__matchT(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__IMap_1_D__Val* o0 = (struct E_Coll__Option__Coll__IMap_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_D__Val*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_env; o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_t; s2->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_D__Val); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_tr_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_a_0; s4->tag == 1 ? ({ __auto_type v_w_4 = s4->u.C_D__AVal.f_v; (f_D__veq(v_v_2, v_w_4) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = v_tr_3; p_r = t0; p_env = t1; p_args = t2; p_t = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_D__Val*){0}; }) : (&N_Coll__None__Coll__IMap_1_D__Val)); }) : ({ __auto_type v_n_4 = s4->u.C_D__AVar.f_n; ({ __auto_type s5 = f_Coll__node__D__Val(p_env, v_n_4); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = f_Coll__insert__D__Val(p_r, p_env, v_n_4, v_v_2); struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = v_tr_3; p_r = t0; p_env = t1; p_args = t2; p_t = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_D__Val*){0}; }); }) : ({ __auto_type v_w_5 = s5->u.C_Coll__Bin.f_v; (f_D__veq(v_v_2, v_w_5) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = v_tr_3; p_r = t0; p_env = t1; p_args = t2; p_t = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_D__Val*){0}; }) : (&N_Coll__None__Coll__IMap_1_D__Val)); }); }); }); }); }); }); }); }); } -static struct E_Coll__IMap__D__Val* f_Coll__insert__D__Val(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_m, int64_t p_k, struct E_D__Val* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__D__Val* o0 = (struct E_Coll__IMap__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__D__Val, u) + sizeof(((struct E_Coll__IMap__D__Val*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__D__Val); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__D__Val); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__D__Val(p_r, v_k2_1, v_v2_2, f_Coll__insert__D__Val(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__D__Val(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__D__Val(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__D__Val* o5 = (struct E_Coll__IMap__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__D__Val, u) + sizeof(((struct E_Coll__IMap__D__Val*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__D__Val* f_Coll__balance__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__D__Val(p_l); int64_t v_sr_1 = f_Coll__size__D__Val(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__D__Val(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__D__Val(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_D__Probe* f_D__probe(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, int64_t p_c) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ (&N_D__Scan); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_D__argVal(p_eff__Region, p_env, v_a_0); s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_D__Is.f_v; ({ struct E_D__Probe* o3 = (struct E_D__Probe*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Probe, u) + sizeof(((struct E_D__Probe*)0)->u.C_D__Col))); o3->tag = 1; o3->u.C_D__Col.f_c = p_c; o3->u.C_D__Col.f_h = f_D__vhash(v_v_2); o3; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; int64_t t3 = (p_c + ((int64_t)1)); p_eff__Region = t0; p_env = t1; p_args = t2; p_c = t3; goto srs_tail; (struct E_D__Probe*){0}; }); }); }); }); }); } +static struct E_Coll__Option__Coll__IMap_1_D__Val* f_D__matchT(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__IMap_1_D__Val* o0 = (struct E_Coll__Option__Coll__IMap_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_D__Val*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_env; o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_t; s2->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_D__Val); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_tr_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_a_0; s4->tag == 1 ? ({ __auto_type v_w_4 = s4->u.C_D__AVal.f_v; (f_D__veq(v_v_2, v_w_4) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = v_tr_3; p_eff__Region = t0; p_env = t1; p_args = t2; p_t = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_D__Val*){0}; }) : (&N_Coll__None__Coll__IMap_1_D__Val)); }) : ({ __auto_type v_n_4 = s4->u.C_D__AVar.f_n; ({ __auto_type s5 = f_Coll__node__D__Val(p_env, v_n_4); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = f_Coll__insert__D__Val(p_eff__Region, p_env, v_n_4, v_v_2); struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = v_tr_3; p_eff__Region = t0; p_env = t1; p_args = t2; p_t = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_D__Val*){0}; }); }) : ({ __auto_type v_w_5 = s5->u.C_Coll__Bin.f_v; (f_D__veq(v_v_2, v_w_5) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = v_tr_3; p_eff__Region = t0; p_env = t1; p_args = t2; p_t = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_D__Val*){0}; }) : (&N_Coll__None__Coll__IMap_1_D__Val)); }); }); }); }); }); }); }); }); } +static struct E_Coll__IMap__D__Val* f_Coll__insert__D__Val(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_m, int64_t p_k, struct E_D__Val* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__D__Val* o0 = (struct E_Coll__IMap__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__D__Val, u) + sizeof(((struct E_Coll__IMap__D__Val*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__D__Val); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__D__Val); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__D__Val(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__D__Val(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__D__Val(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__D__Val(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__D__Val* o5 = (struct E_Coll__IMap__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__D__Val, u) + sizeof(((struct E_Coll__IMap__D__Val*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__D__Val* f_Coll__balance__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__D__Val(p_l); int64_t v_sr_1 = f_Coll__size__D__Val(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__D__Val(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__D__Val(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__D__Val(struct E_Coll__IMap__D__Val* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__D__Val* f_Coll__rotateL__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Val(v_rl_2) < (f_Coll__ratio() * f_Coll__size__D__Val(v_rr_3))) ? f_Coll__bin__D__Val(p_r, v_k2_0, v_v2_1, f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__D__Val(p_r, v_k2_0, v_v2_1, f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Val(p_r, v_k3_4, v_v3_5, f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__D__Val(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__D__Val* f_Coll__rotateR__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__D__Val(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Val(v_lr_3) < (f_Coll__ratio() * f_Coll__size__D__Val(v_ll_2))) ? f_Coll__bin__D__Val(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Val(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__D__Val(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Val(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Val(p_r, v_k3_4, v_v3_5, f_Coll__bin__D__Val(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__D__Val(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__D__Val* f_Coll__bin__D__Val(srs_cap* p_r, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__D__Val* o0 = (struct E_Coll__IMap__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__D__Val, u) + sizeof(((struct E_Coll__IMap__D__Val*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__D__Val(p_l) + f_Coll__size__D__Val(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__matchRows(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Row* p_rows, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_out) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ int64_t v_at_2 = f_D__stampOf(v_row_0); struct E_Coll__List__D__Val* v_t_3 = f_D__tupleOf(v_row_0); __auto_type res_ = ((v_at_2 >= p_rd) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = p_out; p_r = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }) : ({ bool v_take_4 = ({ __auto_type s4 = p_u; s4->tag == 1 ? ({ (v_at_2 == (p_rd - ((int64_t)1))); }) : s4->tag == 0 ? ({ (v_at_2 < (p_rd - ((int64_t)1))); }) : ({ true; }); }); bool v_stop_5 = ({ __auto_type s5 = p_u; s5->tag == 1 ? ({ (v_at_2 < (p_rd - ((int64_t)1))); }) : ({ false; }); }); __auto_type res_ = (v_stop_5 ? p_out : ((!v_take_4) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = p_out; p_r = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }) : ({ __auto_type s6 = f_D__matchT(p_r, p_e, p_args, v_t_3); s6->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = p_out; p_r = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }) : ({ __auto_type v_e2_6 = s6->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = ({ struct E_Coll__List__Coll__IMap_1_D__Val* o7 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_e2_6; o7->u.C_Coll__Cons.f_t = p_out; o7; }); p_r = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }))); res_; })); res_; }); }); }); } -static struct E_D__Rel* f_D__relOf(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id) { return ({ __auto_type s0 = f_Coll__node__D__Rel(p_rels, p_id); s0->tag == 0 ? ({ f_D__newRel(p_r, (&N_Coll__Nil__I64)); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Bin.f_v; v_rl_0; }); }); } +static struct E_Coll__IMap__D__Val* f_Coll__rotateL__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Val(v_rl_2) < (f_Coll__ratio() * f_Coll__size__D__Val(v_rr_3))) ? f_Coll__bin__D__Val(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__D__Val(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Val(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__D__Val(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__D__Val* f_Coll__rotateR__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Val(v_lr_3) < (f_Coll__ratio() * f_Coll__size__D__Val(v_ll_2))) ? f_Coll__bin__D__Val(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__D__Val(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Val(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__D__Val(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__D__Val(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__D__Val* f_Coll__bin__D__Val(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Val* p_v, struct E_Coll__IMap__D__Val* p_l, struct E_Coll__IMap__D__Val* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__D__Val* o0 = (struct E_Coll__IMap__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__D__Val, u) + sizeof(((struct E_Coll__IMap__D__Val*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__D__Val(p_l) + f_Coll__size__D__Val(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__matchRows(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Row* p_rows, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_out) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ int64_t v_at_2 = f_D__stampOf(v_row_0); struct E_Coll__List__D__Val* v_t_3 = f_D__tupleOf(v_row_0); __auto_type res_ = ((v_at_2 >= p_rd) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = p_out; p_eff__Region = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }) : ({ bool v_take_4 = ({ __auto_type s4 = p_u; s4->tag == 1 ? ({ (v_at_2 == (p_rd - ((int64_t)1))); }) : s4->tag == 0 ? ({ (v_at_2 < (p_rd - ((int64_t)1))); }) : ({ true; }); }); bool v_stop_5 = ({ __auto_type s5 = p_u; s5->tag == 1 ? ({ (v_at_2 < (p_rd - ((int64_t)1))); }) : ({ false; }); }); __auto_type res_ = (v_stop_5 ? p_out : ((!v_take_4) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = p_out; p_eff__Region = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }) : ({ __auto_type s6 = f_D__matchT(p_eff__Region, p_e, p_args, v_t_3); s6->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = p_out; p_eff__Region = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }) : ({ __auto_type v_e2_6 = s6->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_e; struct E_Coll__List__D__Arg* t2 = p_args; struct E_Coll__List__D__Row* t3 = v_rest_1; struct E_D__Use* t4 = p_u; int64_t t5 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = ({ struct E_Coll__List__Coll__IMap_1_D__Val* o7 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_e2_6; o7->u.C_Coll__Cons.f_t = p_out; o7; }); p_eff__Region = t0; p_e = t1; p_args = t2; p_rows = t3; p_u = t4; p_rd = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }))); res_; })); res_; }); }); }); } +static struct E_D__Rel* f_D__relOf(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id) { return ({ __auto_type s0 = f_Coll__node__D__Rel(p_rels, p_id); s0->tag == 0 ? ({ f_D__newRel(p_eff__Region, (&N_Coll__Nil__I64)); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Bin.f_v; v_rl_0; }); }); } static struct E_Coll__IMap__D__Rel* f_Coll__node__D__Rel(struct E_Coll__IMap__D__Rel* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__D__Rel* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__D__Rel* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }) : p_m)); }); }); } -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinAtom(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out) { srs_tail: return ({ __auto_type s0 = p_envs; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_a; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ int64_t v_rel_4 = f_D__idOfRef(v_relRef_2); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_D__CAtom* t2 = p_a; struct E_D__Use* t3 = p_u; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = f_D__matchRows(p_r, v_e_0, v_args_3, f_D__cands(p_r, f_D__relOf(p_r, p_rels, v_rel_4), f_D__probe(p_r, v_e_0, v_args_3, ((int64_t)0))), p_u, p_rd, p_out); p_r = t0; p_rels = t1; p_a = t2; p_u = t3; p_rd = t4; p_envs = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalAll(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_body, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { srs_tail: return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ p_envs; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_envs; s2->tag == 0 ? ({ (&N_Coll__Nil__Coll__IMap_1_D__Val); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = v_rest_1; int64_t t3 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = f_D__joinAtom(p_r, p_rels, v_a_0, (&N_D__Full), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val)); p_r = t0; p_rels = t1; p_body = t2; p_rd = t3; p_envs = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }); }); }); } -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalPlan(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__Plan* p_p, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_first_0 = s0->u.C_D__Plan.f_first; __auto_type v_steps_1 = s0->u.C_D__Plan.f_rest; ({ __auto_type res_ = f_D__joinSteps(p_r, p_rels, v_steps_1, p_rd, f_D__joinAtom(p_r, p_rels, v_first_0, (&N_D__Recent), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val))); res_; }); }); }); res_; }); } -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinSteps(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__Step* p_steps, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { srs_tail: return ({ __auto_type s0 = p_steps; s0->tag == 0 ? ({ p_envs; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_envs; s2->tag == 0 ? ({ (&N_Coll__Nil__Coll__IMap_1_D__Val); }) : ({ ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_a_2 = s2->u.C_D__ReadOld.f_a; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__Step* t2 = v_rest_1; int64_t t3 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = f_D__joinAtom(p_r, p_rels, v_a_2, (&N_D__Stable), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val)); p_r = t0; p_rels = t1; p_steps = t2; p_rd = t3; p_envs = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }) : ({ __auto_type v_a_2 = s2->u.C_D__ReadAll.f_a; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__Step* t2 = v_rest_1; int64_t t3 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = f_D__joinAtom(p_r, p_rels, v_a_2, (&N_D__Full), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val)); p_r = t0; p_rels = t1; p_steps = t2; p_rd = t3; p_envs = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }); }); }); }); }); } -static int64_t f_D__recentOf(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_relRef_0 = s0->u.C_D__CAtom.f_rel; ({ int64_t v_rel_1 = f_D__idOfRef(v_relRef_0); __auto_type res_ = ({ __auto_type s2 = f_D__relOf(p_r, p_rels, v_rel_1); ({ __auto_type v_rc_2 = s2->u.C_D__Rel.f_recent; ({ __auto_type res_ = v_rc_2; res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Coll__List_1_D__Val* f_D__inst(srs_cap* p_r, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_D__Val* o0 = (struct E_Coll__Option__Coll__List_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_D__Val, u) + sizeof(((struct E_Coll__Option__Coll__List_1_D__Val*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__D__Val(p_r, p_acc); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_D__argVal(p_r, p_env, v_a_0); s2->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Val); }) : ({ __auto_type v_v_2 = s2->u.C_D__Is.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = ({ struct E_Coll__List__D__Val* o3 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_v_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_env = t1; p_args = t2; p_acc = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_D__Val*){0}; }); }); }); }); }); } -static struct E_Coll__List__D__Val* f_Coll__rev__D__Val(srs_cap* p_r, struct E_Coll__List__D__Val* p_xs) { return f_Coll__revOnto__D__Val(p_r, p_xs, (&N_Coll__Nil__D__Val)); } -static struct E_Coll__List__D__Val* f_Coll__revOnto__D__Val(srs_cap* p_r, struct E_Coll__List__D__Val* p_xs, struct E_Coll__List__D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Val* t1 = v_t_1; struct E_Coll__List__D__Val* t2 = ({ struct E_Coll__List__D__Val* o2 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_D__heads(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_h, struct E_D__CRule* p_rule, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { srs_tail: return ({ __auto_type s0 = p_envs; s0->tag == 0 ? ({ p_rels; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_h; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ int64_t v_rel_4 = f_D__idOfRef(v_relRef_2); __auto_type res_ = ({ __auto_type s5 = f_D__inst(p_r, v_e_0, v_args_3, (&N_Coll__Nil__D__Val)); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_D__CAtom* t2 = p_h; struct E_D__CRule* t3 = p_rule; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; p_r = t0; p_rels = t1; p_h = t2; p_rule = t3; p_rd = t4; p_envs = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }); }) : ({ __auto_type v_t_5 = s5->u.C_Coll__Some.f_v; ({ struct E_D__Rel* v_rl_6 = f_D__relOf(p_r, p_rels, v_rel_4); __auto_type res_ = (f_D__has(p_r, v_rl_6, v_t_5) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_D__CAtom* t2 = p_h; struct E_D__CRule* t3 = p_rule; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; p_r = t0; p_rels = t1; p_h = t2; p_rule = t3; p_rd = t4; p_envs = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = f_Coll__insert__D__Rel(p_r, p_rels, v_rel_4, f_D__add(p_r, v_rl_6, ({ struct E_D__Row* o7 = (struct E_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Row, u) + sizeof(((struct E_D__Row*)0)->u.C_D__Made))); o7->tag = 1; o7->u.C_D__Made.f_at = p_rd; o7->u.C_D__Made.f_rule = p_rule; o7->u.C_D__Made.f_t = v_t_5; o7; }))); struct E_D__CAtom* t2 = p_h; struct E_D__CRule* t3 = p_rule; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; p_r = t0; p_rels = t1; p_h = t2; p_rule = t3; p_rd = t4; p_envs = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_Coll__insert__D__Rel(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_m, int64_t p_k, struct E_D__Rel* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__D__Rel* o0 = (struct E_Coll__IMap__D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__D__Rel, u) + sizeof(((struct E_Coll__IMap__D__Rel*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__D__Rel); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__D__Rel); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__D__Rel(p_r, v_k2_1, v_v2_2, f_Coll__insert__D__Rel(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__D__Rel(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__D__Rel(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__D__Rel* o5 = (struct E_Coll__IMap__D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__D__Rel, u) + sizeof(((struct E_Coll__IMap__D__Rel*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_Coll__balance__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__D__Rel(p_l); int64_t v_sr_1 = f_Coll__size__D__Rel(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__D__Rel(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__D__Rel(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinAtom(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a, struct E_D__Use* p_u, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out) { srs_tail: return ({ __auto_type s0 = p_envs; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_a; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ int64_t v_rel_4 = f_D__idOfRef(v_relRef_2); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_D__CAtom* t2 = p_a; struct E_D__Use* t3 = p_u; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; struct E_Coll__List__Coll__IMap_1_D__Val* t6 = f_D__matchRows(p_eff__Region, v_e_0, v_args_3, f_D__cands(f_D__relOf(p_eff__Region, p_rels, v_rel_4), f_D__probe(p_eff__Region, v_e_0, v_args_3, ((int64_t)0))), p_u, p_rd, p_out); p_eff__Region = t0; p_rels = t1; p_a = t2; p_u = t3; p_rd = t4; p_envs = t5; p_out = t6; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalAll(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_body, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { srs_tail: return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ p_envs; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_envs; s2->tag == 0 ? ({ (&N_Coll__Nil__Coll__IMap_1_D__Val); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = v_rest_1; int64_t t3 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = f_D__joinAtom(p_eff__Region, p_rels, v_a_0, (&N_D__Full), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val)); p_eff__Region = t0; p_rels = t1; p_body = t2; p_rd = t3; p_envs = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }); }); }); } +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__evalPlan(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__Plan* p_p, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_first_0 = s0->u.C_D__Plan.f_first; __auto_type v_steps_1 = s0->u.C_D__Plan.f_rest; ({ __auto_type res_ = f_D__joinSteps(p_eff__Region, p_rels, v_steps_1, p_rd, f_D__joinAtom(p_eff__Region, p_rels, v_first_0, (&N_D__Recent), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val))); res_; }); }); }); res_; }); } +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__joinSteps(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__Step* p_steps, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { srs_tail: return ({ __auto_type s0 = p_steps; s0->tag == 0 ? ({ p_envs; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_envs; s2->tag == 0 ? ({ (&N_Coll__Nil__Coll__IMap_1_D__Val); }) : ({ ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_a_2 = s2->u.C_D__ReadOld.f_a; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__Step* t2 = v_rest_1; int64_t t3 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = f_D__joinAtom(p_eff__Region, p_rels, v_a_2, (&N_D__Stable), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val)); p_eff__Region = t0; p_rels = t1; p_steps = t2; p_rd = t3; p_envs = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }) : ({ __auto_type v_a_2 = s2->u.C_D__ReadAll.f_a; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__Step* t2 = v_rest_1; int64_t t3 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = f_D__joinAtom(p_eff__Region, p_rels, v_a_2, (&N_D__Full), p_rd, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val)); p_eff__Region = t0; p_rels = t1; p_steps = t2; p_rd = t3; p_envs = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }); }); }); }); }); } +static int64_t f_D__recentOf(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_relRef_0 = s0->u.C_D__CAtom.f_rel; ({ int64_t v_rel_1 = f_D__idOfRef(v_relRef_0); __auto_type res_ = ({ __auto_type s2 = f_D__relOf(p_eff__Region, p_rels, v_rel_1); ({ __auto_type v_rc_2 = s2->u.C_D__Rel.f_recent; ({ __auto_type res_ = v_rc_2; res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Coll__List_1_D__Val* f_D__inst(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Val* p_env, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_D__Val* o0 = (struct E_Coll__Option__Coll__List_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_D__Val, u) + sizeof(((struct E_Coll__Option__Coll__List_1_D__Val*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__D__Val(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_D__argVal(p_eff__Region, p_env, v_a_0); s2->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Val); }) : ({ __auto_type v_v_2 = s2->u.C_D__Is.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Val* t1 = p_env; struct E_Coll__List__D__Arg* t2 = v_rest_1; struct E_Coll__List__D__Val* t3 = ({ struct E_Coll__List__D__Val* o3 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_v_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_env = t1; p_args = t2; p_acc = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_D__Val*){0}; }); }); }); }); }); } +static struct E_Coll__List__D__Val* f_Coll__rev__D__Val(srs_cap* p_eff__Region, struct E_Coll__List__D__Val* p_xs) { return f_Coll__revOnto__D__Val(p_eff__Region, p_xs, (&N_Coll__Nil__D__Val)); } +static struct E_Coll__List__D__Val* f_Coll__revOnto__D__Val(srs_cap* p_eff__Region, struct E_Coll__List__D__Val* p_xs, struct E_Coll__List__D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Val* t1 = v_t_1; struct E_Coll__List__D__Val* t2 = ({ struct E_Coll__List__D__Val* o2 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_D__heads(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CAtom* p_h, struct E_D__CRule* p_rule, int64_t p_rd, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs) { srs_tail: return ({ __auto_type s0 = p_envs; s0->tag == 0 ? ({ p_rels; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_h; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ int64_t v_rel_4 = f_D__idOfRef(v_relRef_2); __auto_type res_ = ({ __auto_type s5 = f_D__inst(p_eff__Region, v_e_0, v_args_3, (&N_Coll__Nil__D__Val)); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_D__CAtom* t2 = p_h; struct E_D__CRule* t3 = p_rule; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; p_eff__Region = t0; p_rels = t1; p_h = t2; p_rule = t3; p_rd = t4; p_envs = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }); }) : ({ __auto_type v_t_5 = s5->u.C_Coll__Some.f_v; ({ struct E_D__Rel* v_rl_6 = f_D__relOf(p_eff__Region, p_rels, v_rel_4); __auto_type res_ = (f_D__has(v_rl_6, v_t_5) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_D__CAtom* t2 = p_h; struct E_D__CRule* t3 = p_rule; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; p_eff__Region = t0; p_rels = t1; p_h = t2; p_rule = t3; p_rd = t4; p_envs = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = f_Coll__insert__D__Rel(p_eff__Region, p_rels, v_rel_4, f_D__add(p_eff__Region, v_rl_6, ({ struct E_D__Row* o7 = (struct E_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Row, u) + sizeof(((struct E_D__Row*)0)->u.C_D__Made))); o7->tag = 1; o7->u.C_D__Made.f_at = p_rd; o7->u.C_D__Made.f_rule = p_rule; o7->u.C_D__Made.f_t = v_t_5; o7; }))); struct E_D__CAtom* t2 = p_h; struct E_D__CRule* t3 = p_rule; int64_t t4 = p_rd; struct E_Coll__List__Coll__IMap_1_D__Val* t5 = v_rest_1; p_eff__Region = t0; p_rels = t1; p_h = t2; p_rule = t3; p_rd = t4; p_envs = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_Coll__insert__D__Rel(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_m, int64_t p_k, struct E_D__Rel* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__D__Rel* o0 = (struct E_Coll__IMap__D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__D__Rel, u) + sizeof(((struct E_Coll__IMap__D__Rel*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__D__Rel); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__D__Rel); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__D__Rel(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__D__Rel(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__D__Rel(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__D__Rel(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__D__Rel* o5 = (struct E_Coll__IMap__D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__D__Rel, u) + sizeof(((struct E_Coll__IMap__D__Rel*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_Coll__balance__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__D__Rel(p_l); int64_t v_sr_1 = f_Coll__size__D__Rel(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__D__Rel(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__D__Rel(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__D__Rel(struct E_Coll__IMap__D__Rel* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__D__Rel* f_Coll__rotateL__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Rel(v_rl_2) < (f_Coll__ratio() * f_Coll__size__D__Rel(v_rr_3))) ? f_Coll__bin__D__Rel(p_r, v_k2_0, v_v2_1, f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__D__Rel(p_r, v_k2_0, v_v2_1, f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Rel(p_r, v_k3_4, v_v3_5, f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__D__Rel(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_Coll__rotateR__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__D__Rel(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Rel(v_lr_3) < (f_Coll__ratio() * f_Coll__size__D__Rel(v_ll_2))) ? f_Coll__bin__D__Rel(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Rel(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__D__Rel(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Rel(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Rel(p_r, v_k3_4, v_v3_5, f_Coll__bin__D__Rel(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__D__Rel(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_Coll__bin__D__Rel(srs_cap* p_r, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__D__Rel* o0 = (struct E_Coll__IMap__D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__D__Rel, u) + sizeof(((struct E_Coll__IMap__D__Rel*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__D__Rel(p_l) + f_Coll__size__D__Rel(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } -static bool f_D__negOk(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e) { srs_tail: return ({ __auto_type s0 = p_negs; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ int64_t v_rel_4 = f_D__idOfRef(v_relRef_2); __auto_type res_ = ({ __auto_type s5 = f_D__inst(p_r, p_e, v_args_3, (&N_Coll__Nil__D__Val)); s5->tag == 0 ? ({ false; }) : ({ __auto_type v_t_5 = s5->u.C_Coll__Some.f_v; (f_D__has(p_r, f_D__relOf(p_r, p_rels, v_rel_4), v_t_5) ? false : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__IMap__D__Val* t3 = p_e; p_r = t0; p_rels = t1; p_negs = t2; p_e = t3; goto srs_tail; (bool){0}; })); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__filterNeg(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out) { srs_tail: return ({ __auto_type s0 = p_envs; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = p_negs; struct E_Coll__List__Coll__IMap_1_D__Val* t3 = v_rest_1; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = (f_D__negOk(p_r, p_rels, p_negs, v_e_0) ? ({ struct E_Coll__List__Coll__IMap_1_D__Val* o2 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_e_0; o2->u.C_Coll__Cons.f_t = p_out; o2; }) : p_out); p_r = t0; p_rels = t1; p_negs = t2; p_envs = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_D__fireAt(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__D__Plan* p_ps, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_rels; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_first_2 = s2->u.C_D__Plan.f_first; ({ struct E_Coll__IMap__D__Val* v_e0_3 = (&N_Coll__Tip__D__Val); __auto_type res_ = ((f_D__recentOf(p_r, p_rels0, v_first_2) == ((int64_t)0)) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels0; struct E_D__CRule* t2 = p_rl; struct E_Coll__List__D__Plan* t3 = v_rest_1; int64_t t4 = p_rd; struct E_Coll__IMap__D__Rel* t5 = p_rels; p_r = t0; p_rels0 = t1; p_rl = t2; p_ps = t3; p_rd = t4; p_rels = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels0; struct E_D__CRule* t2 = p_rl; struct E_Coll__List__D__Plan* t3 = v_rest_1; int64_t t4 = p_rd; struct E_Coll__IMap__D__Rel* t5 = f_D__fireWith(p_r, p_rels0, p_rl, f_D__evalPlan(p_r, p_rels0, v_p_0, p_rd, ({ struct E_Coll__List__Coll__IMap_1_D__Val* o4 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_e0_3; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__IMap_1_D__Val); o4; })), p_rd, p_rels); p_r = t0; p_rels0 = t1; p_rl = t2; p_ps = t3; p_rd = t4; p_rels = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_D__fireWith(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_h_0 = s0->u.C_D__CRule.f_head; __auto_type v_neg_1 = s0->u.C_D__CRule.f_neg; ({ __auto_type res_ = f_D__heads(p_r, p_rels, v_h_0, p_rl, p_rd, f_D__filterNeg(p_r, p_rels0, v_neg_1, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val))); res_; }); }); }); res_; }); } -static struct E_Coll__IMap__D__Rel* f_D__fireAll(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels0, struct E_Coll__List__D__CRule* p_rs, int64_t p_rd, struct E_D__Pass* p_pass, struct E_Coll__IMap__D__Rel* p_rels) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_rels; }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_body_2 = s2->u.C_D__CRule.f_body; __auto_type v_plans_3 = s2->u.C_D__CRule.f_plans; ({ struct E_Coll__IMap__D__Val* v_e0_4 = (&N_Coll__Tip__D__Val); struct E_Coll__IMap__D__Rel* v_rels2_5 = ({ __auto_type s5 = p_pass; s5->tag == 0 ? ({ f_D__fireWith(p_r, p_rels0, v_rl_0, f_D__evalAll(p_r, p_rels0, v_body_2, p_rd, ({ struct E_Coll__List__Coll__IMap_1_D__Val* o5 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_e0_4; o5->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__IMap_1_D__Val); o5; })), p_rd, p_rels); }) : ({ f_D__fireAt(p_r, p_rels0, v_rl_0, v_plans_3, p_rd, p_rels); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels0; struct E_Coll__List__D__CRule* t2 = v_rest_1; int64_t t3 = p_rd; struct E_D__Pass* t4 = p_pass; struct E_Coll__IMap__D__Rel* t5 = v_rels2_5; p_r = t0; p_rels0 = t1; p_rs = t2; p_rd = t3; p_pass = t4; p_rels = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_D__Next* f_D__advance(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc, int64_t p_news) { srs_tail: return ({ __auto_type res_ = ((p_id == p_k) ? ({ struct E_D__Next* o0 = (struct E_D__Next*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Next, u) + sizeof(((struct E_D__Next*)0)->u.C_D__Next))); o0->tag = 0; o0->u.C_D__Next.f_rels = p_acc; o0->u.C_D__Next.f_news = p_news; o0; }) : ({ __auto_type res_ = ({ __auto_type s0 = f_D__relOf(p_r, p_rels, p_id); ({ __auto_type v_ic_0 = s0->u.C_D__Rel.f_ic; __auto_type v_set_1 = s0->u.C_D__Rel.f_set; __auto_type v_cols_2 = s0->u.C_D__Rel.f_cols; __auto_type v_all_3 = s0->u.C_D__Rel.f_all; __auto_type v_rc_4 = s0->u.C_D__Rel.f_recent; __auto_type v_fr_5 = s0->u.C_D__Rel.f_fresh; ({ __auto_type res_ = (((v_rc_4 == ((int64_t)0)) && (v_fr_5 == ((int64_t)0))) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; int64_t t2 = (p_id + ((int64_t)1)); int64_t t3 = p_k; struct E_Coll__IMap__D__Rel* t4 = p_acc; int64_t t5 = p_news; p_r = t0; p_rels = t1; p_id = t2; p_k = t3; p_acc = t4; p_news = t5; goto srs_tail; (struct E_D__Next*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; int64_t t2 = (p_id + ((int64_t)1)); int64_t t3 = p_k; struct E_Coll__IMap__D__Rel* t4 = f_Coll__insert__D__Rel(p_r, p_acc, p_id, ({ struct E_D__Rel* o6 = (struct E_D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rel, u) + sizeof(((struct E_D__Rel*)0)->u.C_D__Rel))); o6->tag = 0; o6->u.C_D__Rel.f_ic = v_ic_0; o6->u.C_D__Rel.f_set = v_set_1; o6->u.C_D__Rel.f_cols = v_cols_2; o6->u.C_D__Rel.f_all = v_all_3; o6->u.C_D__Rel.f_recent = v_fr_5; o6->u.C_D__Rel.f_fresh = ((int64_t)0); o6; })); int64_t t5 = (p_news + v_fr_5); p_r = t0; p_rels = t1; p_id = t2; p_k = t3; p_acc = t4; p_news = t5; goto srs_tail; (struct E_D__Next*){0}; })); res_; }); }); }); res_; })); res_; }); } +static struct E_Coll__IMap__D__Rel* f_Coll__rotateL__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Rel(v_rl_2) < (f_Coll__ratio() * f_Coll__size__D__Rel(v_rr_3))) ? f_Coll__bin__D__Rel(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__D__Rel(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Rel(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__D__Rel(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_Coll__rotateR__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__D__Rel(v_lr_3) < (f_Coll__ratio() * f_Coll__size__D__Rel(v_ll_2))) ? f_Coll__bin__D__Rel(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__D__Rel(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__D__Rel(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__D__Rel(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__D__Rel(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_Coll__bin__D__Rel(srs_cap* p_eff__Region, int64_t p_k, struct E_D__Rel* p_v, struct E_Coll__IMap__D__Rel* p_l, struct E_Coll__IMap__D__Rel* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__D__Rel* o0 = (struct E_Coll__IMap__D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__D__Rel, u) + sizeof(((struct E_Coll__IMap__D__Rel*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__D__Rel(p_l) + f_Coll__size__D__Rel(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static bool f_D__negOk(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e) { srs_tail: return ({ __auto_type s0 = p_negs; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ int64_t v_rel_4 = f_D__idOfRef(v_relRef_2); __auto_type res_ = ({ __auto_type s5 = f_D__inst(p_eff__Region, p_e, v_args_3, (&N_Coll__Nil__D__Val)); s5->tag == 0 ? ({ false; }) : ({ __auto_type v_t_5 = s5->u.C_Coll__Some.f_v; (f_D__has(f_D__relOf(p_eff__Region, p_rels, v_rel_4), v_t_5) ? false : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__IMap__D__Val* t3 = p_e; p_eff__Region = t0; p_rels = t1; p_negs = t2; p_e = t3; goto srs_tail; (bool){0}; })); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Coll__IMap_1_D__Val* f_D__filterNeg(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, struct E_Coll__List__Coll__IMap_1_D__Val* p_out) { srs_tail: return ({ __auto_type s0 = p_envs; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = p_negs; struct E_Coll__List__Coll__IMap_1_D__Val* t3 = v_rest_1; struct E_Coll__List__Coll__IMap_1_D__Val* t4 = (f_D__negOk(p_eff__Region, p_rels, p_negs, v_e_0) ? ({ struct E_Coll__List__Coll__IMap_1_D__Val* o2 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_e_0; o2->u.C_Coll__Cons.f_t = p_out; o2; }) : p_out); p_eff__Region = t0; p_rels = t1; p_negs = t2; p_envs = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__Coll__IMap_1_D__Val*){0}; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_D__fireAt(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__D__Plan* p_ps, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_rels; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_first_2 = s2->u.C_D__Plan.f_first; ({ struct E_Coll__IMap__D__Val* v_e0_3 = (&N_Coll__Tip__D__Val); __auto_type res_ = ((f_D__recentOf(p_eff__Region, p_rels0, v_first_2) == ((int64_t)0)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels0; struct E_D__CRule* t2 = p_rl; struct E_Coll__List__D__Plan* t3 = v_rest_1; int64_t t4 = p_rd; struct E_Coll__IMap__D__Rel* t5 = p_rels; p_eff__Region = t0; p_rels0 = t1; p_rl = t2; p_ps = t3; p_rd = t4; p_rels = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels0; struct E_D__CRule* t2 = p_rl; struct E_Coll__List__D__Plan* t3 = v_rest_1; int64_t t4 = p_rd; struct E_Coll__IMap__D__Rel* t5 = f_D__fireWith(p_eff__Region, p_rels0, p_rl, f_D__evalPlan(p_eff__Region, p_rels0, v_p_0, p_rd, ({ struct E_Coll__List__Coll__IMap_1_D__Val* o4 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_e0_3; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__IMap_1_D__Val); o4; })), p_rd, p_rels); p_eff__Region = t0; p_rels0 = t1; p_rl = t2; p_ps = t3; p_rd = t4; p_rels = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_D__fireWith(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels0, struct E_D__CRule* p_rl, struct E_Coll__List__Coll__IMap_1_D__Val* p_envs, int64_t p_rd, struct E_Coll__IMap__D__Rel* p_rels) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_h_0 = s0->u.C_D__CRule.f_head; __auto_type v_neg_1 = s0->u.C_D__CRule.f_neg; ({ __auto_type res_ = f_D__heads(p_eff__Region, p_rels, v_h_0, p_rl, p_rd, f_D__filterNeg(p_eff__Region, p_rels0, v_neg_1, p_envs, (&N_Coll__Nil__Coll__IMap_1_D__Val))); res_; }); }); }); res_; }); } +static struct E_Coll__IMap__D__Rel* f_D__fireAll(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels0, struct E_Coll__List__D__CRule* p_rs, int64_t p_rd, struct E_D__Pass* p_pass, struct E_Coll__IMap__D__Rel* p_rels) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_rels; }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_body_2 = s2->u.C_D__CRule.f_body; __auto_type v_plans_3 = s2->u.C_D__CRule.f_plans; ({ struct E_Coll__IMap__D__Val* v_e0_4 = (&N_Coll__Tip__D__Val); struct E_Coll__IMap__D__Rel* v_rels2_5 = ({ __auto_type s5 = p_pass; s5->tag == 0 ? ({ f_D__fireWith(p_eff__Region, p_rels0, v_rl_0, f_D__evalAll(p_eff__Region, p_rels0, v_body_2, p_rd, ({ struct E_Coll__List__Coll__IMap_1_D__Val* o5 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_e0_4; o5->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__IMap_1_D__Val); o5; })), p_rd, p_rels); }) : ({ f_D__fireAt(p_eff__Region, p_rels0, v_rl_0, v_plans_3, p_rd, p_rels); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels0; struct E_Coll__List__D__CRule* t2 = v_rest_1; int64_t t3 = p_rd; struct E_D__Pass* t4 = p_pass; struct E_Coll__IMap__D__Rel* t5 = v_rels2_5; p_eff__Region = t0; p_rels0 = t1; p_rs = t2; p_rd = t3; p_pass = t4; p_rels = t5; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_D__Next* f_D__advance(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc, int64_t p_news) { srs_tail: return ({ __auto_type res_ = ((p_id == p_k) ? ({ struct E_D__Next* o0 = (struct E_D__Next*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Next, u) + sizeof(((struct E_D__Next*)0)->u.C_D__Next))); o0->tag = 0; o0->u.C_D__Next.f_rels = p_acc; o0->u.C_D__Next.f_news = p_news; o0; }) : ({ __auto_type res_ = ({ __auto_type s0 = f_D__relOf(p_eff__Region, p_rels, p_id); ({ __auto_type v_ic_0 = s0->u.C_D__Rel.f_ic; __auto_type v_set_1 = s0->u.C_D__Rel.f_set; __auto_type v_cols_2 = s0->u.C_D__Rel.f_cols; __auto_type v_all_3 = s0->u.C_D__Rel.f_all; __auto_type v_rc_4 = s0->u.C_D__Rel.f_recent; __auto_type v_fr_5 = s0->u.C_D__Rel.f_fresh; ({ __auto_type res_ = (((v_rc_4 == ((int64_t)0)) && (v_fr_5 == ((int64_t)0))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; int64_t t2 = (p_id + ((int64_t)1)); int64_t t3 = p_k; struct E_Coll__IMap__D__Rel* t4 = p_acc; int64_t t5 = p_news; p_eff__Region = t0; p_rels = t1; p_id = t2; p_k = t3; p_acc = t4; p_news = t5; goto srs_tail; (struct E_D__Next*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; int64_t t2 = (p_id + ((int64_t)1)); int64_t t3 = p_k; struct E_Coll__IMap__D__Rel* t4 = f_Coll__insert__D__Rel(p_eff__Region, p_acc, p_id, ({ struct E_D__Rel* o6 = (struct E_D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rel, u) + sizeof(((struct E_D__Rel*)0)->u.C_D__Rel))); o6->tag = 0; o6->u.C_D__Rel.f_ic = v_ic_0; o6->u.C_D__Rel.f_set = v_set_1; o6->u.C_D__Rel.f_cols = v_cols_2; o6->u.C_D__Rel.f_all = v_all_3; o6->u.C_D__Rel.f_recent = v_fr_5; o6->u.C_D__Rel.f_fresh = ((int64_t)0); o6; })); int64_t t5 = (p_news + v_fr_5); p_eff__Region = t0; p_rels = t1; p_id = t2; p_k = t3; p_acc = t4; p_news = t5; goto srs_tail; (struct E_D__Next*){0}; })); res_; }); }); }); res_; })); res_; }); } static int64_t f_D__inputRound(void) { return ((int64_t)0); } static int64_t f_D__firstRound(void) { return (f_D__inputRound() + ((int64_t)1)); } -static struct E_D__Stage* f_D__rounds(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k, struct E_D__Pass* p_pass) { srs_tail: return ({ struct E_Coll__IMap__D__Rel* v_fired_0 = f_D__fireAll(p_r, p_rels, p_rs, p_rd, p_pass, p_rels); __auto_type res_ = ({ __auto_type s1 = f_D__advance(p_r, v_fired_0, ((int64_t)0), p_k, v_fired_0, ((int64_t)0)); ({ __auto_type v_rels2_1 = s1->u.C_D__Next.f_rels; __auto_type v_news_2 = s1->u.C_D__Next.f_news; ({ __auto_type res_ = ((v_news_2 == ((int64_t)0)) ? ({ struct E_D__Stage* o3 = (struct E_D__Stage*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Stage, u) + sizeof(((struct E_D__Stage*)0)->u.C_D__Stage))); o3->tag = 0; o3->u.C_D__Stage.f_rels = v_rels2_1; o3->u.C_D__Stage.f_rd = (p_rd + ((int64_t)1)); o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = p_rs; struct E_Coll__IMap__D__Rel* t2 = v_rels2_1; int64_t t3 = (p_rd + ((int64_t)1)); int64_t t4 = p_k; struct E_D__Pass* t5 = (&N_D__NextPass); p_r = t0; p_rs = t1; p_rels = t2; p_rd = t3; p_k = t4; p_pass = t5; goto srs_tail; (struct E_D__Stage*){0}; })); res_; }); }); }); res_; }); } +static struct E_D__Stage* f_D__rounds(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k, struct E_D__Pass* p_pass) { srs_tail: return ({ struct E_Coll__IMap__D__Rel* v_fired_0 = f_D__fireAll(p_eff__Region, p_rels, p_rs, p_rd, p_pass, p_rels); __auto_type res_ = ({ __auto_type s1 = f_D__advance(p_eff__Region, v_fired_0, ((int64_t)0), p_k, v_fired_0, ((int64_t)0)); ({ __auto_type v_rels2_1 = s1->u.C_D__Next.f_rels; __auto_type v_news_2 = s1->u.C_D__Next.f_news; ({ __auto_type res_ = ((v_news_2 == ((int64_t)0)) ? ({ struct E_D__Stage* o3 = (struct E_D__Stage*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Stage, u) + sizeof(((struct E_D__Stage*)0)->u.C_D__Stage))); o3->tag = 0; o3->u.C_D__Stage.f_rels = v_rels2_1; o3->u.C_D__Stage.f_rd = (p_rd + ((int64_t)1)); o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = p_rs; struct E_Coll__IMap__D__Rel* t2 = v_rels2_1; int64_t t3 = (p_rd + ((int64_t)1)); int64_t t4 = p_k; struct E_D__Pass* t5 = (&N_D__NextPass); p_eff__Region = t0; p_rs = t1; p_rels = t2; p_rd = t3; p_k = t4; p_pass = t5; goto srs_tail; (struct E_D__Stage*){0}; })); res_; }); }); }); res_; }); } static int64_t f_D__stOf(struct E_Coll__IMap__I64* p_st, int64_t p_id) { return ({ __auto_type s0 = f_Coll__node__I64(p_st, p_id); s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_v; v_s_0; }); }); } static struct E_Coll__IMap__I64* f_Coll__node__I64(struct E_Coll__IMap__I64* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__I64* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__I64*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__I64* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__I64*){0}; }) : p_m)); }); }); } static int64_t f_D__maxSt(struct E_Coll__IMap__I64* p_st, struct E_Coll__List__D__CAtom* p_as, int64_t p_plus, int64_t p_m) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_relRef_2 = s2->u.C_D__CAtom.f_rel; ({ int64_t v_rel_3 = f_D__idOfRef(v_relRef_2); int64_t v_s_4 = (f_D__stOf(p_st, v_rel_3) + p_plus); __auto_type res_ = ({ struct E_Coll__IMap__I64* t0 = p_st; struct E_Coll__List__D__CAtom* t1 = v_rest_1; int64_t t2 = p_plus; int64_t t3 = ((v_s_4 > p_m) ? v_s_4 : p_m); p_st = t0; p_as = t1; p_plus = t2; p_m = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_D__Raised* f_D__raiseAll(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, bool p_changed) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ struct E_D__Raised* o0 = (struct E_D__Raised*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Raised, u) + sizeof(((struct E_D__Raised*)0)->u.C_D__Raised))); o0->tag = 0; o0->u.C_D__Raised.f_st = p_st; o0->u.C_D__Raised.f_changed = p_changed; o0; }); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; __auto_type v_body_3 = s2->u.C_D__CRule.f_body; __auto_type v_neg_4 = s2->u.C_D__CRule.f_neg; ({ __auto_type res_ = ({ __auto_type s5 = v_h_2; ({ __auto_type v_hrRef_5 = s5->u.C_D__CAtom.f_rel; ({ int64_t v_hr_6 = f_D__idOfRef(v_hrRef_5); int64_t v_m_7 = f_D__maxSt(p_st, v_neg_4, ((int64_t)1), f_D__maxSt(p_st, v_body_3, ((int64_t)0), ((int64_t)0))); __auto_type res_ = ((v_m_7 > f_D__stOf(p_st, v_hr_6)) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = f_Coll__insert__I64(p_r, p_st, v_hr_6, v_m_7); bool t3 = true; p_r = t0; p_rs = t1; p_st = t2; p_changed = t3; goto srs_tail; (struct E_D__Raised*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; bool t3 = p_changed; p_r = t0; p_rs = t1; p_st = t2; p_changed = t3; goto srs_tail; (struct E_D__Raised*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__I64* f_Coll__insert__I64(srs_cap* p_r, struct E_Coll__IMap__I64* p_m, int64_t p_k, int64_t p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__I64* o0 = (struct E_Coll__IMap__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__I64, u) + sizeof(((struct E_Coll__IMap__I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__I64); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__I64); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__I64(p_r, v_k2_1, v_v2_2, f_Coll__insert__I64(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__I64(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__I64(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__I64* o5 = (struct E_Coll__IMap__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__I64, u) + sizeof(((struct E_Coll__IMap__I64*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__I64* f_Coll__balance__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__I64(p_l); int64_t v_sr_1 = f_Coll__size__I64(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__I64(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__I64(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__I64(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__I64(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_D__Raised* f_D__raiseAll(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, bool p_changed) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ struct E_D__Raised* o0 = (struct E_D__Raised*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Raised, u) + sizeof(((struct E_D__Raised*)0)->u.C_D__Raised))); o0->tag = 0; o0->u.C_D__Raised.f_st = p_st; o0->u.C_D__Raised.f_changed = p_changed; o0; }); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; __auto_type v_body_3 = s2->u.C_D__CRule.f_body; __auto_type v_neg_4 = s2->u.C_D__CRule.f_neg; ({ __auto_type res_ = ({ __auto_type s5 = v_h_2; ({ __auto_type v_hrRef_5 = s5->u.C_D__CAtom.f_rel; ({ int64_t v_hr_6 = f_D__idOfRef(v_hrRef_5); int64_t v_m_7 = f_D__maxSt(p_st, v_neg_4, ((int64_t)1), f_D__maxSt(p_st, v_body_3, ((int64_t)0), ((int64_t)0))); __auto_type res_ = ((v_m_7 > f_D__stOf(p_st, v_hr_6)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = f_Coll__insert__I64(p_eff__Region, p_st, v_hr_6, v_m_7); bool t3 = true; p_eff__Region = t0; p_rs = t1; p_st = t2; p_changed = t3; goto srs_tail; (struct E_D__Raised*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; bool t3 = p_changed; p_eff__Region = t0; p_rs = t1; p_st = t2; p_changed = t3; goto srs_tail; (struct E_D__Raised*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__I64* f_Coll__insert__I64(srs_cap* p_eff__Region, struct E_Coll__IMap__I64* p_m, int64_t p_k, int64_t p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__I64* o0 = (struct E_Coll__IMap__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__I64, u) + sizeof(((struct E_Coll__IMap__I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__I64); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__I64); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__I64(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__I64(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__I64(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__I64(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__I64* o5 = (struct E_Coll__IMap__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__I64, u) + sizeof(((struct E_Coll__IMap__I64*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__I64* f_Coll__balance__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__I64(p_l); int64_t v_sr_1 = f_Coll__size__I64(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__I64(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__I64(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__I64(struct E_Coll__IMap__I64* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__I64* f_Coll__rotateL__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__I64(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__I64(v_rl_2) < (f_Coll__ratio() * f_Coll__size__I64(v_rr_3))) ? f_Coll__bin__I64(p_r, v_k2_0, v_v2_1, f_Coll__bin__I64(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__I64(p_r, v_k2_0, v_v2_1, f_Coll__bin__I64(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__I64(p_r, v_k3_4, v_v3_5, f_Coll__bin__I64(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__I64(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__I64* f_Coll__rotateR__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__I64(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__I64(v_lr_3) < (f_Coll__ratio() * f_Coll__size__I64(v_ll_2))) ? f_Coll__bin__I64(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__I64(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__I64(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__I64(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__I64(p_r, v_k3_4, v_v3_5, f_Coll__bin__I64(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__I64(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__I64* f_Coll__bin__I64(srs_cap* p_r, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__I64* o0 = (struct E_Coll__IMap__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__I64, u) + sizeof(((struct E_Coll__IMap__I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__I64(p_l) + f_Coll__size__I64(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_Coll__IMap__I64* f_Coll__rotateL__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__I64(v_rl_2) < (f_Coll__ratio() * f_Coll__size__I64(v_rr_3))) ? f_Coll__bin__I64(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__I64(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__I64(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__I64(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__I64* f_Coll__rotateR__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__I64(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__I64(v_lr_3) < (f_Coll__ratio() * f_Coll__size__I64(v_ll_2))) ? f_Coll__bin__I64(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__I64(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__I64(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__I64(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__I64(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__I64(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__I64(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__I64* f_Coll__bin__I64(srs_cap* p_eff__Region, int64_t p_k, int64_t p_v, struct E_Coll__IMap__I64* p_l, struct E_Coll__IMap__I64* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__I64* o0 = (struct E_Coll__IMap__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__I64, u) + sizeof(((struct E_Coll__IMap__I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__I64(p_l) + f_Coll__size__I64(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } static int64_t f_D__topOf(struct E_Coll__IMap__I64* p_st, int64_t p_id, int64_t p_k, int64_t p_m) { srs_tail: return ((p_id == p_k) ? p_m : ({ struct E_Coll__IMap__I64* t0 = p_st; int64_t t1 = (p_id + ((int64_t)1)); int64_t t2 = p_k; int64_t t3 = ((f_D__stOf(p_st, p_id) > p_m) ? f_D__stOf(p_st, p_id) : p_m); p_st = t0; p_id = t1; p_k = t2; p_m = t3; goto srs_tail; (int64_t){0}; })); } -static struct E_Coll__IMap__I64* f_D__strata(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k) { srs_tail: return ({ __auto_type res_ = ({ __auto_type s0 = f_D__raiseAll(p_r, p_rs, p_st, false); ({ __auto_type v_st2_0 = s0->u.C_D__Raised.f_st; __auto_type v_changed_1 = s0->u.C_D__Raised.f_changed; ({ __auto_type res_ = (((!v_changed_1) || (f_D__topOf(v_st2_0, ((int64_t)0), p_k, ((int64_t)0)) > p_k)) ? v_st2_0 : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = p_rs; struct E_Coll__IMap__I64* t2 = v_st2_0; int64_t t3 = p_k; p_r = t0; p_rs = t1; p_st = t2; p_k = t3; goto srs_tail; (struct E_Coll__IMap__I64*){0}; })); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Sym__Sym* f_D__overHead(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k, struct E_Coll__Option__D__CAtom* p_best) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_best; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_a_0; ({ __auto_type v_nameRef_1 = s1->u.C_D__CAtom.f_rel; ({ struct E_Sym__Sym* v_name_2 = f_D__nameOfRef(v_nameRef_1); __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o3 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_name_2; o3; }); res_; }); }); }); res_; }); }); }); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_hrRef_3 = s3->u.C_D__CAtom.f_rel; ({ int64_t v_hr_4 = f_D__idOfRef(v_hrRef_3); __auto_type res_ = ((f_D__stOf(p_st, v_hr_4) <= p_k) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = p_k; struct E_Coll__Option__D__CAtom* t4 = p_best; p_r = t0; p_rs = t1; p_st = t2; p_k = t3; p_best = t4; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = p_k; struct E_Coll__Option__D__CAtom* t4 = f_D__smaller(p_r, v_h_2, p_best); p_r = t0; p_rs = t1; p_st = t2; p_k = t3; p_best = t4; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__D__CAtom* f_D__smaller(srs_cap* p_r, struct E_D__CAtom* p_h, struct E_Coll__Option__D__CAtom* p_best) { return ({ __auto_type s0 = p_best; s0->tag == 0 ? ({ ({ struct E_Coll__Option__D__CAtom* o0 = (struct E_Coll__Option__D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__D__CAtom, u) + sizeof(((struct E_Coll__Option__D__CAtom*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_h; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = p_h; ({ __auto_type v_hrRef_1 = s1->u.C_D__CAtom.f_rel; ({ int64_t v_hr_2 = f_D__idOfRef(v_hrRef_1); __auto_type res_ = ({ __auto_type s3 = v_b_0; ({ __auto_type v_brRef_3 = s3->u.C_D__CAtom.f_rel; ({ int64_t v_br_4 = f_D__idOfRef(v_brRef_3); __auto_type res_ = ((v_hr_2 < v_br_4) ? ({ struct E_Coll__Option__D__CAtom* o5 = (struct E_Coll__Option__D__CAtom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__D__CAtom, u) + sizeof(((struct E_Coll__Option__D__CAtom*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = p_h; o5; }) : p_best); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__CRule* f_D__rulesAt(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, struct E_Coll__List__D__CRule* p_acc) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ f_Coll__rev__D__CRule(p_r, p_acc); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_hrRef_3 = s3->u.C_D__CAtom.f_rel; ({ int64_t v_hr_4 = f_D__idOfRef(v_hrRef_3); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = p_s; struct E_Coll__List__D__CRule* t4 = ((f_D__stOf(p_st, v_hr_4) == p_s) ? ({ struct E_Coll__List__D__CRule* o5 = (struct E_Coll__List__D__CRule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__CRule, u) + sizeof(((struct E_Coll__List__D__CRule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_rl_0; o5->u.C_Coll__Cons.f_t = p_acc; o5; }) : p_acc); p_r = t0; p_rs = t1; p_st = t2; p_s = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__CRule*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_D__runStrata(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, int64_t p_top, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k) { srs_tail: return ({ __auto_type res_ = ((p_s > p_top) ? p_rels : ({ __auto_type res_ = ({ __auto_type s0 = f_D__rounds(p_r, f_D__rulesAt(p_r, p_rs, p_st, p_s, (&N_Coll__Nil__D__CRule)), p_rels, p_rd, p_k, (&N_D__FirstPass)); ({ __auto_type v_rels2_0 = s0->u.C_D__Stage.f_rels; __auto_type v_rd2_1 = s0->u.C_D__Stage.f_rd; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = p_rs; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = (p_s + ((int64_t)1)); int64_t t4 = p_top; struct E_Coll__IMap__D__Rel* t5 = v_rels2_0; int64_t t6 = v_rd2_1; int64_t t7 = p_k; p_r = t0; p_rs = t1; p_st = t2; p_s = t3; p_top = t4; p_rels = t5; p_rd = t6; p_k = t7; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }); res_; }); }); }); res_; })); res_; }); } +static struct E_Coll__IMap__I64* f_D__strata(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k) { srs_tail: return ({ __auto_type res_ = ({ __auto_type s0 = f_D__raiseAll(p_eff__Region, p_rs, p_st, false); ({ __auto_type v_st2_0 = s0->u.C_D__Raised.f_st; __auto_type v_changed_1 = s0->u.C_D__Raised.f_changed; ({ __auto_type res_ = (((!v_changed_1) || (f_D__topOf(v_st2_0, ((int64_t)0), p_k, ((int64_t)0)) > p_k)) ? v_st2_0 : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = p_rs; struct E_Coll__IMap__I64* t2 = v_st2_0; int64_t t3 = p_k; p_eff__Region = t0; p_rs = t1; p_st = t2; p_k = t3; goto srs_tail; (struct E_Coll__IMap__I64*){0}; })); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Sym__Sym* f_D__overHead(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_k, struct E_Coll__Option__D__CAtom* p_best) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_best; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_a_0; ({ __auto_type v_nameRef_1 = s1->u.C_D__CAtom.f_rel; ({ struct E_Sym__Sym* v_name_2 = f_D__nameOfRef(v_nameRef_1); __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o3 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_name_2; o3; }); res_; }); }); }); res_; }); }); }); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_hrRef_3 = s3->u.C_D__CAtom.f_rel; ({ int64_t v_hr_4 = f_D__idOfRef(v_hrRef_3); __auto_type res_ = ((f_D__stOf(p_st, v_hr_4) <= p_k) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = p_k; struct E_Coll__Option__D__CAtom* t4 = p_best; p_eff__Region = t0; p_rs = t1; p_st = t2; p_k = t3; p_best = t4; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = p_k; struct E_Coll__Option__D__CAtom* t4 = f_D__smaller(p_eff__Region, v_h_2, p_best); p_eff__Region = t0; p_rs = t1; p_st = t2; p_k = t3; p_best = t4; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__D__CAtom* f_D__smaller(srs_cap* p_eff__Region, struct E_D__CAtom* p_h, struct E_Coll__Option__D__CAtom* p_best) { return ({ __auto_type s0 = p_best; s0->tag == 0 ? ({ ({ struct E_Coll__Option__D__CAtom* o0 = (struct E_Coll__Option__D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__D__CAtom, u) + sizeof(((struct E_Coll__Option__D__CAtom*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_h; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = p_h; ({ __auto_type v_hrRef_1 = s1->u.C_D__CAtom.f_rel; ({ int64_t v_hr_2 = f_D__idOfRef(v_hrRef_1); __auto_type res_ = ({ __auto_type s3 = v_b_0; ({ __auto_type v_brRef_3 = s3->u.C_D__CAtom.f_rel; ({ int64_t v_br_4 = f_D__idOfRef(v_brRef_3); __auto_type res_ = ((v_hr_2 < v_br_4) ? ({ struct E_Coll__Option__D__CAtom* o5 = (struct E_Coll__Option__D__CAtom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__D__CAtom, u) + sizeof(((struct E_Coll__Option__D__CAtom*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = p_h; o5; }) : p_best); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__CRule* f_D__rulesAt(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, struct E_Coll__List__D__CRule* p_acc) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ f_Coll__rev__D__CRule(p_eff__Region, p_acc); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_hrRef_3 = s3->u.C_D__CAtom.f_rel; ({ int64_t v_hr_4 = f_D__idOfRef(v_hrRef_3); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = p_s; struct E_Coll__List__D__CRule* t4 = ((f_D__stOf(p_st, v_hr_4) == p_s) ? ({ struct E_Coll__List__D__CRule* o5 = (struct E_Coll__List__D__CRule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__CRule, u) + sizeof(((struct E_Coll__List__D__CRule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_rl_0; o5->u.C_Coll__Cons.f_t = p_acc; o5; }) : p_acc); p_eff__Region = t0; p_rs = t1; p_st = t2; p_s = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__D__CRule*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_D__runStrata(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__I64* p_st, int64_t p_s, int64_t p_top, struct E_Coll__IMap__D__Rel* p_rels, int64_t p_rd, int64_t p_k) { srs_tail: return ({ __auto_type res_ = ((p_s > p_top) ? p_rels : ({ __auto_type res_ = ({ __auto_type s0 = f_D__rounds(p_eff__Region, f_D__rulesAt(p_eff__Region, p_rs, p_st, p_s, (&N_Coll__Nil__D__CRule)), p_rels, p_rd, p_k, (&N_D__FirstPass)); ({ __auto_type v_rels2_0 = s0->u.C_D__Stage.f_rels; __auto_type v_rd2_1 = s0->u.C_D__Stage.f_rd; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = p_rs; struct E_Coll__IMap__I64* t2 = p_st; int64_t t3 = (p_s + ((int64_t)1)); int64_t t4 = p_top; struct E_Coll__IMap__D__Rel* t5 = v_rels2_0; int64_t t6 = v_rd2_1; int64_t t7 = p_k; p_eff__Region = t0; p_rs = t1; p_st = t2; p_s = t3; p_top = t4; p_rels = t5; p_rd = t6; p_k = t7; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; }); res_; }); }); }); res_; })); res_; }); } static bool f_D__allIn(struct E_Coll__List__I64* p_vs, struct E_Coll__List__I64* p_bound) { srs_tail: return ({ __auto_type s0 = p_vs; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_D__memberI(v_v_0, p_bound) ? ({ struct E_Coll__List__I64* t0 = v_rest_1; struct E_Coll__List__I64* t1 = p_bound; p_vs = t0; p_bound = t1; goto srs_tail; (bool){0}; }) : false); }); }); } -static struct E_Coll__List__I64* f_D__atomsVars(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_as, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_args_2 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_rest_1; struct E_Coll__List__I64* t2 = f_D__argVars(p_r, v_args_2, p_acc); p_r = t0; p_as = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_D__firstUnsafe(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; __auto_type v_body_3 = s2->u.C_D__CRule.f_body; __auto_type v_neg_4 = s2->u.C_D__CRule.f_neg; ({ __auto_type res_ = ({ __auto_type s5 = v_h_2; ({ __auto_type v_nameRef_5 = s5->u.C_D__CAtom.f_rel; __auto_type v_hargs_6 = s5->u.C_D__CAtom.f_args; ({ struct E_Sym__Sym* v_name_7 = f_D__nameOfRef(v_nameRef_5); struct E_Coll__List__I64* v_bound_8 = f_D__atomsVars(p_r, v_body_3, (&N_Coll__Nil__I64)); __auto_type res_ = ((f_D__allIn(f_D__argVars(p_r, v_hargs_6, (&N_Coll__Nil__I64)), v_bound_8) && f_D__allIn(f_D__atomsVars(p_r, v_neg_4, (&N_Coll__Nil__I64)), v_bound_8)) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; p_r = t0; p_rs = t1; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }) : ({ struct E_Coll__Option__Sym__Sym* o9 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = v_name_7; o9; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__I64* f_D__atomsVars(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_as, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_args_2 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_rest_1; struct E_Coll__List__I64* t2 = f_D__argVars(p_eff__Region, v_args_2, p_acc); p_eff__Region = t0; p_as = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_D__firstUnsafe(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_h_2 = s2->u.C_D__CRule.f_head; __auto_type v_body_3 = s2->u.C_D__CRule.f_body; __auto_type v_neg_4 = s2->u.C_D__CRule.f_neg; ({ __auto_type res_ = ({ __auto_type s5 = v_h_2; ({ __auto_type v_nameRef_5 = s5->u.C_D__CAtom.f_rel; __auto_type v_hargs_6 = s5->u.C_D__CAtom.f_args; ({ struct E_Sym__Sym* v_name_7 = f_D__nameOfRef(v_nameRef_5); struct E_Coll__List__I64* v_bound_8 = f_D__atomsVars(p_eff__Region, v_body_3, (&N_Coll__Nil__I64)); __auto_type res_ = ((f_D__allIn(f_D__argVars(p_eff__Region, v_hargs_6, (&N_Coll__Nil__I64)), v_bound_8) && f_D__allIn(f_D__atomsVars(p_eff__Region, v_neg_4, (&N_Coll__Nil__I64)), v_bound_8)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; p_eff__Region = t0; p_rs = t1; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }) : ({ struct E_Coll__Option__Sym__Sym* o9 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = v_name_7; o9; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } static bool f_D__memberI(int64_t p_v, struct E_Coll__List__I64* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ((v_h_0 == p_v) ? true : ({ int64_t t0 = p_v; struct E_Coll__List__I64* t1 = v_t_1; p_v = t0; p_xs = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__Option__I64* f_D__firstBound(srs_cap* p_r, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_bound, int64_t p_c) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_a_0; s2->tag == 1 ? ({ ({ struct E_Coll__Option__I64* o2 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_c; o2; }); }) : ({ __auto_type v_n_2 = s2->u.C_D__AVar.f_n; (f_D__memberI(v_n_2, p_bound) ? ({ struct E_Coll__Option__I64* o3 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = p_c; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Arg* t1 = v_rest_1; struct E_Coll__List__I64* t2 = p_bound; int64_t t3 = (p_c + ((int64_t)1)); p_r = t0; p_args = t1; p_bound = t2; p_c = t3; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); }); }); } -static struct E_Coll__List__I64* f_D__argVars(srs_cap* p_r, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_a_0; s2->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Arg* t1 = v_rest_1; struct E_Coll__List__I64* t2 = p_acc; p_r = t0; p_args = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }) : ({ __auto_type v_n_2 = s2->u.C_D__AVar.f_n; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Arg* t1 = v_rest_1; struct E_Coll__List__I64* t2 = ({ struct E_Coll__List__I64* o3 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_n_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_args = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); }); }); } -static struct E_Coll__List__I64* f_D__colsOf(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_rel) { return ({ __auto_type s0 = f_Coll__node__Coll__List_1_I64(p_ics, p_rel); s0->tag == 0 ? ({ (&N_Coll__Nil__I64); }) : ({ __auto_type v_cs_0 = s0->u.C_Coll__Bin.f_v; v_cs_0; }); }); } +static struct E_Coll__Option__I64* f_D__firstBound(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_bound, int64_t p_c) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_a_0; s2->tag == 1 ? ({ ({ struct E_Coll__Option__I64* o2 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_c; o2; }); }) : ({ __auto_type v_n_2 = s2->u.C_D__AVar.f_n; (f_D__memberI(v_n_2, p_bound) ? ({ struct E_Coll__Option__I64* o3 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = p_c; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Arg* t1 = v_rest_1; struct E_Coll__List__I64* t2 = p_bound; int64_t t3 = (p_c + ((int64_t)1)); p_eff__Region = t0; p_args = t1; p_bound = t2; p_c = t3; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); }); }); } +static struct E_Coll__List__I64* f_D__argVars(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_args, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_args; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_a_0; s2->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Arg* t1 = v_rest_1; struct E_Coll__List__I64* t2 = p_acc; p_eff__Region = t0; p_args = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }) : ({ __auto_type v_n_2 = s2->u.C_D__AVar.f_n; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Arg* t1 = v_rest_1; struct E_Coll__List__I64* t2 = ({ struct E_Coll__List__I64* o3 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_n_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_args = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); }); }); } +static struct E_Coll__List__I64* f_D__colsOf(struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_rel) { return ({ __auto_type s0 = f_Coll__node__Coll__List_1_I64(p_ics, p_rel); s0->tag == 0 ? ({ (&N_Coll__Nil__I64); }) : ({ __auto_type v_cs_0 = s0->u.C_Coll__Bin.f_v; v_cs_0; }); }); } static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__node__Coll__List_1_I64(struct E_Coll__IMap__Coll__List_1_I64* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__Coll__List_1_I64* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__Coll__List_1_I64* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }) : p_m)); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesOf(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_args_2 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_rest_1; struct E_Coll__List__I64* t2 = f_D__argVars(p_r, v_args_2, p_bound); struct E_Coll__IMap__Coll__List_1_I64* t3 = f_D__probeAtom(p_r, v_a_0, p_bound, p_ics); p_r = t0; p_body = t1; p_bound = t2; p_ics = t3; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probeAtom(srs_cap* p_r, struct E_D__CAtom* p_a, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_relRef_0 = s0->u.C_D__CAtom.f_rel; __auto_type v_args_1 = s0->u.C_D__CAtom.f_args; ({ int64_t v_rel_2 = f_D__idOfRef(v_relRef_0); struct E_Coll__List__I64* v_old_3 = f_D__colsOf(p_r, p_ics, v_rel_2); __auto_type res_ = ({ __auto_type s4 = f_D__firstBound(p_r, v_args_1, p_bound, ((int64_t)0)); s4->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_c_4 = s4->u.C_Coll__Some.f_v; (f_D__memberI(v_c_4, v_old_3) ? p_ics : f_Coll__insert__Coll__List_1_I64(p_r, p_ics, v_rel_2, ({ struct E_Coll__List__I64* o5 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_c_4; o5->u.C_Coll__Cons.f_t = v_old_3; o5; }))); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__insert__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_I64* p_m, int64_t p_k, struct E_Coll__List__I64* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__Coll__List_1_I64* o0 = (struct E_Coll__IMap__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__Coll__List_1_I64); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__Coll__List_1_I64); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__Coll__List_1_I64(p_r, v_k2_1, v_v2_2, f_Coll__insert__Coll__List_1_I64(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__Coll__List_1_I64(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__Coll__List_1_I64(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__Coll__List_1_I64* o5 = (struct E_Coll__IMap__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_I64*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__balance__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__Coll__List_1_I64(p_l); int64_t v_sr_1 = f_Coll__size__Coll__List_1_I64(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__Coll__List_1_I64(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__Coll__List_1_I64(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesOf(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_body, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_args_2 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_rest_1; struct E_Coll__List__I64* t2 = f_D__argVars(p_eff__Region, v_args_2, p_bound); struct E_Coll__IMap__Coll__List_1_I64* t3 = f_D__probeAtom(p_eff__Region, v_a_0, p_bound, p_ics); p_eff__Region = t0; p_body = t1; p_bound = t2; p_ics = t3; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probeAtom(srs_cap* p_eff__Region, struct E_D__CAtom* p_a, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_relRef_0 = s0->u.C_D__CAtom.f_rel; __auto_type v_args_1 = s0->u.C_D__CAtom.f_args; ({ int64_t v_rel_2 = f_D__idOfRef(v_relRef_0); struct E_Coll__List__I64* v_old_3 = f_D__colsOf(p_ics, v_rel_2); __auto_type res_ = ({ __auto_type s4 = f_D__firstBound(p_eff__Region, v_args_1, p_bound, ((int64_t)0)); s4->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_c_4 = s4->u.C_Coll__Some.f_v; (f_D__memberI(v_c_4, v_old_3) ? p_ics : f_Coll__insert__Coll__List_1_I64(p_eff__Region, p_ics, v_rel_2, ({ struct E_Coll__List__I64* o5 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_c_4; o5->u.C_Coll__Cons.f_t = v_old_3; o5; }))); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__insert__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_I64* p_m, int64_t p_k, struct E_Coll__List__I64* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__Coll__List_1_I64* o0 = (struct E_Coll__IMap__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__Coll__List_1_I64); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__Coll__List_1_I64); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__Coll__List_1_I64(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__Coll__List_1_I64(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__Coll__List_1_I64(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__Coll__List_1_I64(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__Coll__List_1_I64* o5 = (struct E_Coll__IMap__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_I64*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__balance__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__Coll__List_1_I64(p_l); int64_t v_sr_1 = f_Coll__size__Coll__List_1_I64(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__Coll__List_1_I64(struct E_Coll__IMap__Coll__List_1_I64* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateL__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_I64(v_rl_2) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_I64(v_rr_3))) ? f_Coll__bin__Coll__List_1_I64(p_r, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_r, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_I64(p_r, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__Coll__List_1_I64(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateR__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_I64(v_lr_3) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_I64(v_ll_2))) ? f_Coll__bin__Coll__List_1_I64(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_I64(p_r, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_I64(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__Coll__List_1_I64(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__bin__Coll__List_1_I64(srs_cap* p_r, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__Coll__List_1_I64* o0 = (struct E_Coll__IMap__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__Coll__List_1_I64(p_l) + f_Coll__size__Coll__List_1_I64(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlan(srs_cap* p_r, struct E_D__Plan* p_p, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_first_0 = s0->u.C_D__Plan.f_first; __auto_type v_steps_1 = s0->u.C_D__Plan.f_rest; ({ __auto_type res_ = ({ __auto_type s2 = v_first_0; ({ __auto_type v_args_2 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = f_D__probesSteps(p_r, v_steps_1, f_D__argVars(p_r, v_args_2, (&N_Coll__Nil__I64)), f_D__probeAtom(p_r, v_first_0, (&N_Coll__Nil__I64), p_ics)); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesSteps(srs_cap* p_r, struct E_Coll__List__D__Step* p_steps, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_steps; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_D__CAtom* v_a_2 = ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_D__ReadOld.f_a; v_x_2; }) : ({ __auto_type v_x_2 = s2->u.C_D__ReadAll.f_a; v_x_2; }); }); __auto_type res_ = ({ __auto_type s3 = v_a_2; ({ __auto_type v_args_3 = s3->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Step* t1 = v_rest_1; struct E_Coll__List__I64* t2 = f_D__argVars(p_r, v_args_3, p_bound); struct E_Coll__IMap__Coll__List_1_I64* t3 = f_D__probeAtom(p_r, v_a_2, p_bound, p_ics); p_r = t0; p_steps = t1; p_bound = t2; p_ics = t3; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlans(srs_cap* p_r, struct E_Coll__List__D__Plan* p_ps, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Plan* t1 = v_rest_1; struct E_Coll__IMap__Coll__List_1_I64* t2 = f_D__probesPlan(p_r, v_p_0, p_ics); p_r = t0; p_ps = t1; p_ics = t2; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesAll(srs_cap* p_r, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_body_2 = s2->u.C_D__CRule.f_body; __auto_type v_plans_3 = s2->u.C_D__CRule.f_plans; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__Coll__List_1_I64* t2 = f_D__probesPlans(p_r, v_plans_3, f_D__probesOf(p_r, v_body_2, (&N_Coll__Nil__I64), p_ics)); p_r = t0; p_rs = t1; p_ics = t2; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__IMap__D__Rel* f_D__initRels(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc) { srs_tail: return ({ __auto_type res_ = ((p_id == p_k) ? p_acc : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_I64* t1 = p_ics; int64_t t2 = (p_id + ((int64_t)1)); int64_t t3 = p_k; struct E_Coll__IMap__D__Rel* t4 = f_Coll__insert__D__Rel(p_r, p_acc, p_id, f_D__newRel(p_r, f_D__colsOf(p_r, p_ics, p_id))); p_r = t0; p_ics = t1; p_id = t2; p_k = t3; p_acc = t4; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; })); res_; }); } -static struct E_D__With__Coll__IMap_1_D__Rel* f_D__load(srs_cap* p_r, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Fact* p_fs, struct E_Coll__IMap__D__Rel* p_rels) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ({ struct E_D__With__Coll__IMap_1_D__Rel* o0 = (struct E_D__With__Coll__IMap_1_D__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__With__Coll__IMap_1_D__Rel, u) + sizeof(((struct E_D__With__Coll__IMap_1_D__Rel*)0)->u.C_D__With))); o0->tag = 0; o0->u.C_D__With.f_tab = p_tab; o0->u.C_D__With.f_v = p_rels; o0; }); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_rel_2 = s2->u.C_D__Fact.f_rel; __auto_type v_vals_3 = s2->u.C_D__Fact.f_vals; ({ __auto_type res_ = ({ __auto_type s4 = f_D__internId(p_r, p_tab, v_rel_2); ({ __auto_type v_tab2_4 = s4->u.C_D__With.f_tab; __auto_type v_ref_5 = s4->u.C_D__With.f_v; ({ int64_t v_id_6 = f_D__idOfRef(v_ref_5); struct E_D__Rel* v_rl_7 = f_D__relOf(p_r, p_rels, v_id_6); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__RelRef* t1 = v_tab2_4; struct E_Coll__List__D__Fact* t2 = v_rest_1; struct E_Coll__IMap__D__Rel* t3 = (f_D__has(p_r, v_rl_7, v_vals_3) ? p_rels : f_Coll__insert__D__Rel(p_r, p_rels, v_id_6, f_D__add(p_r, v_rl_7, ({ struct E_D__Row* o8 = (struct E_D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Row, u) + sizeof(((struct E_D__Row*)0)->u.C_D__Input))); o8->tag = 0; o8->u.C_D__Input.f_t = v_vals_3; o8; })))); p_r = t0; p_tab = t1; p_fs = t2; p_rels = t3; goto srs_tail; (struct E_D__With__Coll__IMap_1_D__Rel*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_D__Result* f_D__solve(srs_cap* p_r, struct E_Coll__List__D__Rule* p_rules, struct E_Coll__List__D__Fact* p_facts) { return ({ __auto_type res_ = ({ __auto_type s0 = f_D__drafts(p_r, (&N_Coll__Nil__D__RelRef), p_rules, ((int64_t)0), (&N_Coll__Nil__D__Draft)); ({ __auto_type v_tab1_0 = s0->u.C_D__With.f_tab; __auto_type v_ds_1 = s0->u.C_D__With.f_v; ({ struct E_Coll__List__D__CRule* v_crs_2 = f_D__crules(p_r, v_ds_1, f_D__headIds(p_r, v_ds_1, (&N_Coll__Nil__I64)), (&N_Coll__Nil__D__CRule)); __auto_type res_ = ({ __auto_type s3 = f_D__firstUnsafe(p_r, v_crs_2); s3->tag == 1 ? ({ __auto_type v_bad_3 = s3->u.C_Coll__Some.f_v; ({ struct E_D__Result* o4 = (struct E_D__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Result, u) + sizeof(((struct E_D__Result*)0)->u.C_D__Unsafe))); o4->tag = 1; o4->u.C_D__Unsafe.f_rel = v_bad_3; o4; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s3 = f_D__load(p_r, v_tab1_0, p_facts, f_D__initRels(p_r, f_D__probesAll(p_r, v_crs_2, (&N_Coll__Tip__Coll__List_1_I64)), ((int64_t)0), f_Coll__length__D__RelRef(v_tab1_0), (&N_Coll__Tip__D__Rel))); ({ __auto_type v_tab_3 = s3->u.C_D__With.f_tab; __auto_type v_rels0_4 = s3->u.C_D__With.f_v; ({ int64_t v_k_5 = f_Coll__length__D__RelRef(v_tab_3); struct E_Coll__IMap__I64* v_st_6 = f_D__strata(p_r, v_crs_2, (&N_Coll__Tip__I64), v_k_5); __auto_type res_ = ({ __auto_type s7 = f_D__overHead(p_r, v_crs_2, v_st_6, v_k_5, (&N_Coll__None__D__CAtom)); s7->tag == 1 ? ({ __auto_type v_cyc_7 = s7->u.C_Coll__Some.f_v; ({ struct E_D__Result* o8 = (struct E_D__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Result, u) + sizeof(((struct E_D__Result*)0)->u.C_D__NegCycle))); o8->tag = 2; o8->u.C_D__NegCycle.f_rel = v_cyc_7; o8; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s7 = f_D__advance(p_r, v_rels0_4, ((int64_t)0), v_k_5, v_rels0_4, ((int64_t)0)); ({ __auto_type v_rels_7 = s7->u.C_D__Next.f_rels; ({ __auto_type res_ = ({ struct E_D__Result* o8 = (struct E_D__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Result, u) + sizeof(((struct E_D__Result*)0)->u.C_D__Solved))); o8->tag = 0; o8->u.C_D__Solved.f_m = ({ struct E_D__Model* o8 = (struct E_D__Model*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Model, u) + sizeof(((struct E_D__Model*)0)->u.C_D__Model))); o8->tag = 0; o8->u.C_D__Model.f_tab = v_tab_3; o8->u.C_D__Model.f_rels = f_D__runStrata(p_r, v_crs_2, v_st_6, ((int64_t)0), f_D__topOf(v_st_6, ((int64_t)0), v_k_5, ((int64_t)0)), v_rels_7, f_D__firstRound(), v_k_5); o8; }); o8; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Coll__List_1_D__Val* f_D__rowsOf(srs_cap* p_r, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__Coll__List_1_D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Val* v_t_2 = f_D__tupleOf(v_row_0); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Row* t1 = v_rest_1; struct E_Coll__List__Coll__List_1_D__Val* t2 = ({ struct E_Coll__List__Coll__List_1_D__Val* o3 = (struct E_Coll__List__Coll__List_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__List_1_D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_rows = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Coll__List_1_D__Val*){0}; }); res_; }); }); }); } -static struct E_Coll__List__Coll__List_1_D__Val* f_D__tuples(srs_cap* p_r, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel) { return ({ __auto_type res_ = ({ __auto_type s0 = p_m; ({ __auto_type v_tab_0 = s0->u.C_D__Model.f_tab; __auto_type v_rels_1 = s0->u.C_D__Model.f_rels; ({ __auto_type res_ = ({ __auto_type s2 = f_D__refOf(p_r, v_tab_0, p_rel); s2->tag == 0 ? ({ (&N_Coll__Nil__Coll__List_1_D__Val); }) : ({ __auto_type v_ref_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s3 = f_D__relOf(p_r, v_rels_1, f_D__idOfRef(v_ref_2)); ({ __auto_type v_all_3 = s3->u.C_D__Rel.f_all; ({ __auto_type res_ = f_D__rowsOf(p_r, v_all_3, (&N_Coll__Nil__Coll__List_1_D__Val)); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__D__Row* f_D__rowIn(srs_cap* p_r, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ (&N_Coll__None__D__Row); }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_D__tupleEq(f_D__tupleOf(v_row_0), p_t) ? ({ struct E_Coll__Option__D__Row* o2 = (struct E_Coll__Option__D__Row*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__D__Row, u) + sizeof(((struct E_Coll__Option__D__Row*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_row_0; o2; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Row* t1 = v_rest_1; struct E_Coll__List__D__Val* t2 = p_t; p_r = t0; p_rows = t1; p_t = t2; goto srs_tail; (struct E_Coll__Option__D__Row*){0}; })); }); }); } -static struct E_Coll__Option__D__Row* f_D__findRow(srs_cap* p_r, struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_set_0 = s0->u.C_D__Rel.f_set; ({ __auto_type res_ = f_D__rowIn(p_r, f_D__bucket(p_r, v_set_0, f_D__tupleHash(p_t)), p_t); res_; }); }); }); res_; }); } -static struct E_Coll__Option__D__Proof* f_D__proofOf(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__RelRef* p_ref, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ref; ({ __auto_type v_id_0 = s0->u.C_D__RelRef.f_id; __auto_type v_rel_1 = s0->u.C_D__RelRef.f_name; ({ __auto_type res_ = ({ __auto_type s2 = f_D__findRow(p_r, f_D__relOf(p_r, p_rels, v_id_0), p_t); s2->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_row_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type s3 = v_row_2; s3->tag == 0 ? ({ ({ struct E_Coll__Option__D__Proof* o3 = (struct E_Coll__Option__D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__D__Proof, u) + sizeof(((struct E_Coll__Option__D__Proof*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = ({ struct E_D__Proof* o3 = (struct E_D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Proof, u) + sizeof(((struct E_D__Proof*)0)->u.C_D__Given))); o3->tag = 0; o3->u.C_D__Given.f_rel = v_rel_1; o3->u.C_D__Given.f_t = p_t; o3; }); o3; }); }) : ({ __auto_type v_at_3 = s3->u.C_D__Made.f_at; __auto_type v_rl_4 = s3->u.C_D__Made.f_rule; f_D__byRule(p_r, p_rels, v_rl_4, v_rel_1, v_at_3, p_t); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__D__Proof* f_D__byRule(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CRule* p_rl, struct E_Sym__Sym* p_rel, int64_t p_at, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_h_0 = s0->u.C_D__CRule.f_head; __auto_type v_body_1 = s0->u.C_D__CRule.f_body; __auto_type v_neg_2 = s0->u.C_D__CRule.f_neg; __auto_type v_i_3 = s0->u.C_D__CRule.f_id; ({ __auto_type res_ = ({ __auto_type s4 = v_h_0; ({ __auto_type v_hargs_4 = s4->u.C_D__CAtom.f_args; ({ struct E_Coll__IMap__D__Val* v_e0_5 = (&N_Coll__Tip__D__Val); __auto_type res_ = ({ __auto_type s6 = f_D__matchT(p_r, v_e0_5, v_hargs_4, p_t); s6->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_e_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type s7 = f_D__evalAll(p_r, p_rels, v_body_1, p_at, ({ struct E_Coll__List__Coll__IMap_1_D__Val* o7 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_e_6; o7->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__IMap_1_D__Val); o7; })); s7->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_e2_7 = s7->u.C_Coll__Cons.f_h; ({ __auto_type s8 = f_D__premises(p_r, p_rels, v_body_1, v_neg_2, v_e2_7, (&N_Coll__Nil__D__Proof)); s8->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_ps_8 = s8->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__D__Proof* o9 = (struct E_Coll__Option__D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__D__Proof, u) + sizeof(((struct E_Coll__Option__D__Proof*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = ({ struct E_D__Proof* o9 = (struct E_D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Proof, u) + sizeof(((struct E_D__Proof*)0)->u.C_D__ByRule))); o9->tag = 1; o9->u.C_D__ByRule.f_rule = v_i_3; o9->u.C_D__ByRule.f_rel = p_rel; o9->u.C_D__ByRule.f_t = p_t; o9->u.C_D__ByRule.f_premises = v_ps_8; o9; }); o9; }); }); }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__premises(srs_cap* p_r, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_D__absents(p_r, p_negs, p_e, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_ref_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_D__inst(p_r, p_e, v_args_3, (&N_Coll__Nil__D__Val)); s4->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Proof); }) : ({ __auto_type v_t_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type s5 = f_D__proofOf(p_r, p_rels, v_ref_2, v_t_4); s5->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Proof); }) : ({ __auto_type v_p_5 = s5->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__List__D__CAtom* t3 = p_negs; struct E_Coll__IMap__D__Val* t4 = p_e; struct E_Coll__List__D__Proof* t5 = ({ struct E_Coll__List__D__Proof* o6 = (struct E_Coll__List__D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Proof, u) + sizeof(((struct E_Coll__List__D__Proof*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_p_5; o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_r = t0; p_rels = t1; p_xs = t2; p_negs = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__Option__Coll__List_1_D__Proof*){0}; }); }); }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__absents(srs_cap* p_r, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc) { srs_tail: return ({ __auto_type s0 = p_negs; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_D__Proof* o0 = (struct E_Coll__Option__Coll__List_1_D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_D__Proof, u) + sizeof(((struct E_Coll__Option__Coll__List_1_D__Proof*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__D__Proof(p_r, p_acc); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_ref_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_D__inst(p_r, p_e, v_args_3, (&N_Coll__Nil__D__Val)); s4->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Proof); }) : ({ __auto_type v_t_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__CAtom* t1 = v_rest_1; struct E_Coll__IMap__D__Val* t2 = p_e; struct E_Coll__List__D__Proof* t3 = ({ struct E_Coll__List__D__Proof* o5 = (struct E_Coll__List__D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Proof, u) + sizeof(((struct E_Coll__List__D__Proof*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_D__Proof* o5 = (struct E_D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Proof, u) + sizeof(((struct E_D__Proof*)0)->u.C_D__Absent))); o5->tag = 2; o5->u.C_D__Absent.f_rel = f_D__nameOfRef(v_ref_2); o5->u.C_D__Absent.f_t = v_t_4; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_negs = t1; p_e = t2; p_acc = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_D__Proof*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Proof* f_Coll__rev__D__Proof(srs_cap* p_r, struct E_Coll__List__D__Proof* p_xs) { return f_Coll__revOnto__D__Proof(p_r, p_xs, (&N_Coll__Nil__D__Proof)); } -static struct E_Coll__List__D__Proof* f_Coll__revOnto__D__Proof(srs_cap* p_r, struct E_Coll__List__D__Proof* p_xs, struct E_Coll__List__D__Proof* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Proof* t1 = v_t_1; struct E_Coll__List__D__Proof* t2 = ({ struct E_Coll__List__D__Proof* o2 = (struct E_Coll__List__D__Proof*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Proof, u) + sizeof(((struct E_Coll__List__D__Proof*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Proof*){0}; }); }); }); } -static struct E_Coll__Option__D__Proof* f_D__why(srs_cap* p_r, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_m; ({ __auto_type v_tab_0 = s0->u.C_D__Model.f_tab; __auto_type v_rels_1 = s0->u.C_D__Model.f_rels; ({ __auto_type res_ = ({ __auto_type s2 = f_D__refOf(p_r, v_tab_0, p_rel); s2->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_ref_2 = s2->u.C_Coll__Some.f_v; f_D__proofOf(p_r, v_rels_1, v_ref_2, p_t); }); }); res_; }); }); }); res_; }); } -static struct E_Sym__Sym* f_Eff__relSym(srs_cap* p_r, struct E_Eff__Rel* p_rel) { return ({ __auto_type s0 = p_rel; s0->tag == 0 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"req", 3})); }) : s0->tag == 1 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"decl", 4})); }) : s0->tag == 2 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"calls", 5})); }) : s0->tag == 3 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"hd", 2})); }) : s0->tag == 4 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"needs", 5})); }) : ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"row", 3})); }); }); } -static struct E_Coll__Option__Eff__Req* f_Eff__reqOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_f) { return ({ srs_str v_s_0 = f_Sym__str(p_f); __auto_type res_ = ({ __auto_type s1 = f_Eff__lastDot(p_r, v_s_0, (Str__len(v_s_0) - ((int64_t)1))); s1->tag == 0 ? ({ (&N_Coll__None__Eff__Req); }) : ({ __auto_type v_i_1 = s1->u.C_Coll__Some.f_v; ({ struct E_Sym__Sym* v_p_2 = f_Sym__of(p_r, Str__slice(v_s_0, ((int64_t)0), v_i_1)); struct E_Sym__Sym* v_op_3 = f_Sym__of(p_r, Str__slice(v_s_0, (v_i_1 + ((int64_t)1)), Str__len(v_s_0))); __auto_type res_ = ({ __auto_type s4 = f_Ty__protoOp(p_r, p_ps, v_p_2, v_op_3); s4->tag == 1 ? ({ ({ struct E_Coll__Option__Eff__Req* o4 = (struct E_Coll__Option__Eff__Req*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Eff__Req, u) + sizeof(((struct E_Coll__Option__Eff__Req*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = ({ struct E_Eff__Req* o4 = (struct E_Eff__Req*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Req, u) + sizeof(((struct E_Eff__Req*)0)->u.C_Eff__Req))); o4->tag = 0; o4->u.C_Eff__Req.f_p = v_p_2; o4->u.C_Eff__Req.f_op = v_op_3; o4; }); o4; }); }) : ({ (&N_Coll__None__Eff__Req); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__I64* f_Eff__lastDot(srs_cap* p_r, srs_str p_s, int64_t p_i) { srs_tail: return ({ __auto_type res_ = ((p_i < ((int64_t)0)) ? (&N_Coll__None__I64) : ((Str__at(p_s, p_i) == ((int64_t)46)) ? ({ struct E_Coll__Option__I64* o0 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_i; o0; }) : ({ srs_cap* t0 = p_r; srs_str t1 = p_s; int64_t t2 = (p_i - ((int64_t)1)); p_r = t0; p_s = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__I64*){0}; }))); res_; }); } -static struct E_Sym__Sym* f_Eff__dotted(srs_cap* p_r, srs_cap* p_eff__Console, srs_str p_a, struct E_Sym__Sym* p_b) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Console->vt[5]))(p_eff__Console->self); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, p_a); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Sym__str(p_b)); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Sym__of(p_r, ({ __auto_type r_ = ((srs_str(*)(void*))(p_eff__Console->vt[6]))(p_eff__Console->self); p_eff__Console->live = 0; r_; })); res_; }); } -static struct E_Eff__Rows* f_Eff__none(srs_cap* p_r) { return ({ struct E_Eff__Rows* o0 = (struct E_Eff__Rows*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Rows, u) + sizeof(((struct E_Eff__Rows*)0)->u.C_Eff__Rows))); o0->tag = 0; o0->u.C_Eff__Rows.f_m = f_Coll__sEmpty__Coll__List_1_Eff__Cap(p_r); o0; }); } -static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sEmpty__Coll__List_1_Eff__Cap(srs_cap* p_r) { return ({ struct E_Coll__SMap__Coll__List_1_Eff__Cap* o0 = (struct E_Coll__SMap__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); } -static struct E_Coll__List__Eff__Cap* f_Eff__row(srs_cap* p_r, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rs; ({ __auto_type v_m_0 = s0->u.C_Eff__Rows.f_m; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Coll__List_1_Eff__Cap(p_r, v_m_0, p_f); s1->tag == 1 ? ({ __auto_type v_cs_1 = s1->u.C_Coll__Some.f_v; v_cs_1; }) : ({ (&N_Coll__Nil__Eff__Cap); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sLookup__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Coll__List_1_Eff__Cap(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap)), p_s); }); }); } -static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sFind__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Eff__Cap); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Coll__List_1_Eff__Cap* o4 = (struct E_Coll__Option__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Eff__Cap*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Eff__Cap*){0}; })); }); }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateL__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_I64(v_rl_2) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_I64(v_rr_3))) ? f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__rotateR__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_I64(v_lr_3) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_I64(v_ll_2))) ? f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_I64(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__Coll__List_1_I64(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_Coll__bin__Coll__List_1_I64(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__I64* p_v, struct E_Coll__IMap__Coll__List_1_I64* p_l, struct E_Coll__IMap__Coll__List_1_I64* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__Coll__List_1_I64* o0 = (struct E_Coll__IMap__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_I64*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__Coll__List_1_I64(p_l) + f_Coll__size__Coll__List_1_I64(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlan(srs_cap* p_eff__Region, struct E_D__Plan* p_p, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_first_0 = s0->u.C_D__Plan.f_first; __auto_type v_steps_1 = s0->u.C_D__Plan.f_rest; ({ __auto_type res_ = ({ __auto_type s2 = v_first_0; ({ __auto_type v_args_2 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = f_D__probesSteps(p_eff__Region, v_steps_1, f_D__argVars(p_eff__Region, v_args_2, (&N_Coll__Nil__I64)), f_D__probeAtom(p_eff__Region, v_first_0, (&N_Coll__Nil__I64), p_ics)); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesSteps(srs_cap* p_eff__Region, struct E_Coll__List__D__Step* p_steps, struct E_Coll__List__I64* p_bound, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_steps; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_D__CAtom* v_a_2 = ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_D__ReadOld.f_a; v_x_2; }) : ({ __auto_type v_x_2 = s2->u.C_D__ReadAll.f_a; v_x_2; }); }); __auto_type res_ = ({ __auto_type s3 = v_a_2; ({ __auto_type v_args_3 = s3->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Step* t1 = v_rest_1; struct E_Coll__List__I64* t2 = f_D__argVars(p_eff__Region, v_args_3, p_bound); struct E_Coll__IMap__Coll__List_1_I64* t3 = f_D__probeAtom(p_eff__Region, v_a_2, p_bound, p_ics); p_eff__Region = t0; p_steps = t1; p_bound = t2; p_ics = t3; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesPlans(srs_cap* p_eff__Region, struct E_Coll__List__D__Plan* p_ps, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Plan* t1 = v_rest_1; struct E_Coll__IMap__Coll__List_1_I64* t2 = f_D__probesPlan(p_eff__Region, v_p_0, p_ics); p_eff__Region = t0; p_ps = t1; p_ics = t2; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_I64* f_D__probesAll(srs_cap* p_eff__Region, struct E_Coll__List__D__CRule* p_rs, struct E_Coll__IMap__Coll__List_1_I64* p_ics) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_ics; }) : ({ __auto_type v_rl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rl_0; ({ __auto_type v_body_2 = s2->u.C_D__CRule.f_body; __auto_type v_plans_3 = s2->u.C_D__CRule.f_plans; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CRule* t1 = v_rest_1; struct E_Coll__IMap__Coll__List_1_I64* t2 = f_D__probesPlans(p_eff__Region, v_plans_3, f_D__probesOf(p_eff__Region, v_body_2, (&N_Coll__Nil__I64), p_ics)); p_eff__Region = t0; p_rs = t1; p_ics = t2; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_I64*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__IMap__D__Rel* f_D__initRels(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_I64* p_ics, int64_t p_id, int64_t p_k, struct E_Coll__IMap__D__Rel* p_acc) { srs_tail: return ({ __auto_type res_ = ((p_id == p_k) ? p_acc : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_I64* t1 = p_ics; int64_t t2 = (p_id + ((int64_t)1)); int64_t t3 = p_k; struct E_Coll__IMap__D__Rel* t4 = f_Coll__insert__D__Rel(p_eff__Region, p_acc, p_id, f_D__newRel(p_eff__Region, f_D__colsOf(p_ics, p_id))); p_eff__Region = t0; p_ics = t1; p_id = t2; p_k = t3; p_acc = t4; goto srs_tail; (struct E_Coll__IMap__D__Rel*){0}; })); res_; }); } +static struct E_D__With__Coll__IMap_1_D__Rel* f_D__load(srs_cap* p_eff__Region, struct E_Coll__List__D__RelRef* p_tab, struct E_Coll__List__D__Fact* p_fs, struct E_Coll__IMap__D__Rel* p_rels) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ({ struct E_D__With__Coll__IMap_1_D__Rel* o0 = (struct E_D__With__Coll__IMap_1_D__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__With__Coll__IMap_1_D__Rel, u) + sizeof(((struct E_D__With__Coll__IMap_1_D__Rel*)0)->u.C_D__With))); o0->tag = 0; o0->u.C_D__With.f_tab = p_tab; o0->u.C_D__With.f_v = p_rels; o0; }); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_rel_2 = s2->u.C_D__Fact.f_rel; __auto_type v_vals_3 = s2->u.C_D__Fact.f_vals; ({ __auto_type res_ = ({ __auto_type s4 = f_D__internId(p_eff__Region, p_tab, v_rel_2); ({ __auto_type v_tab2_4 = s4->u.C_D__With.f_tab; __auto_type v_ref_5 = s4->u.C_D__With.f_v; ({ int64_t v_id_6 = f_D__idOfRef(v_ref_5); struct E_D__Rel* v_rl_7 = f_D__relOf(p_eff__Region, p_rels, v_id_6); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__RelRef* t1 = v_tab2_4; struct E_Coll__List__D__Fact* t2 = v_rest_1; struct E_Coll__IMap__D__Rel* t3 = (f_D__has(v_rl_7, v_vals_3) ? p_rels : f_Coll__insert__D__Rel(p_eff__Region, p_rels, v_id_6, f_D__add(p_eff__Region, v_rl_7, ({ struct E_D__Row* o8 = (struct E_D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Row, u) + sizeof(((struct E_D__Row*)0)->u.C_D__Input))); o8->tag = 0; o8->u.C_D__Input.f_t = v_vals_3; o8; })))); p_eff__Region = t0; p_tab = t1; p_fs = t2; p_rels = t3; goto srs_tail; (struct E_D__With__Coll__IMap_1_D__Rel*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_D__Result* f_D__solve(srs_cap* p_eff__Region, struct E_Coll__List__D__Rule* p_rules, struct E_Coll__List__D__Fact* p_facts) { return ({ __auto_type res_ = ({ __auto_type s0 = f_D__drafts(p_eff__Region, (&N_Coll__Nil__D__RelRef), p_rules, ((int64_t)0), (&N_Coll__Nil__D__Draft)); ({ __auto_type v_tab1_0 = s0->u.C_D__With.f_tab; __auto_type v_ds_1 = s0->u.C_D__With.f_v; ({ struct E_Coll__List__D__CRule* v_crs_2 = f_D__crules(p_eff__Region, v_ds_1, f_D__headIds(p_eff__Region, v_ds_1, (&N_Coll__Nil__I64)), (&N_Coll__Nil__D__CRule)); __auto_type res_ = ({ __auto_type s3 = f_D__firstUnsafe(p_eff__Region, v_crs_2); s3->tag == 1 ? ({ __auto_type v_bad_3 = s3->u.C_Coll__Some.f_v; ({ struct E_D__Result* o4 = (struct E_D__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Result, u) + sizeof(((struct E_D__Result*)0)->u.C_D__Unsafe))); o4->tag = 1; o4->u.C_D__Unsafe.f_rel = v_bad_3; o4; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s3 = f_D__load(p_eff__Region, v_tab1_0, p_facts, f_D__initRels(p_eff__Region, f_D__probesAll(p_eff__Region, v_crs_2, (&N_Coll__Tip__Coll__List_1_I64)), ((int64_t)0), f_Coll__length__D__RelRef(v_tab1_0), (&N_Coll__Tip__D__Rel))); ({ __auto_type v_tab_3 = s3->u.C_D__With.f_tab; __auto_type v_rels0_4 = s3->u.C_D__With.f_v; ({ int64_t v_k_5 = f_Coll__length__D__RelRef(v_tab_3); struct E_Coll__IMap__I64* v_st_6 = f_D__strata(p_eff__Region, v_crs_2, (&N_Coll__Tip__I64), v_k_5); __auto_type res_ = ({ __auto_type s7 = f_D__overHead(p_eff__Region, v_crs_2, v_st_6, v_k_5, (&N_Coll__None__D__CAtom)); s7->tag == 1 ? ({ __auto_type v_cyc_7 = s7->u.C_Coll__Some.f_v; ({ struct E_D__Result* o8 = (struct E_D__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Result, u) + sizeof(((struct E_D__Result*)0)->u.C_D__NegCycle))); o8->tag = 2; o8->u.C_D__NegCycle.f_rel = v_cyc_7; o8; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s7 = f_D__advance(p_eff__Region, v_rels0_4, ((int64_t)0), v_k_5, v_rels0_4, ((int64_t)0)); ({ __auto_type v_rels_7 = s7->u.C_D__Next.f_rels; ({ __auto_type res_ = ({ struct E_D__Result* o8 = (struct E_D__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Result, u) + sizeof(((struct E_D__Result*)0)->u.C_D__Solved))); o8->tag = 0; o8->u.C_D__Solved.f_m = ({ struct E_D__Model* o8 = (struct E_D__Model*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Model, u) + sizeof(((struct E_D__Model*)0)->u.C_D__Model))); o8->tag = 0; o8->u.C_D__Model.f_tab = v_tab_3; o8->u.C_D__Model.f_rels = f_D__runStrata(p_eff__Region, v_crs_2, v_st_6, ((int64_t)0), f_D__topOf(v_st_6, ((int64_t)0), v_k_5, ((int64_t)0)), v_rels_7, f_D__firstRound(), v_k_5); o8; }); o8; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Coll__List_1_D__Val* f_D__rowsOf(srs_cap* p_eff__Region, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__Coll__List_1_D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Val* v_t_2 = f_D__tupleOf(v_row_0); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Row* t1 = v_rest_1; struct E_Coll__List__Coll__List_1_D__Val* t2 = ({ struct E_Coll__List__Coll__List_1_D__Val* o3 = (struct E_Coll__List__Coll__List_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__List_1_D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_rows = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Coll__List_1_D__Val*){0}; }); res_; }); }); }); } +static struct E_Coll__List__Coll__List_1_D__Val* f_D__tuples(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel) { return ({ __auto_type res_ = ({ __auto_type s0 = p_m; ({ __auto_type v_tab_0 = s0->u.C_D__Model.f_tab; __auto_type v_rels_1 = s0->u.C_D__Model.f_rels; ({ __auto_type res_ = ({ __auto_type s2 = f_D__refOf(p_eff__Region, v_tab_0, p_rel); s2->tag == 0 ? ({ (&N_Coll__Nil__Coll__List_1_D__Val); }) : ({ __auto_type v_ref_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s3 = f_D__relOf(p_eff__Region, v_rels_1, f_D__idOfRef(v_ref_2)); ({ __auto_type v_all_3 = s3->u.C_D__Rel.f_all; ({ __auto_type res_ = f_D__rowsOf(p_eff__Region, v_all_3, (&N_Coll__Nil__Coll__List_1_D__Val)); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__D__Row* f_D__rowIn(srs_cap* p_eff__Region, struct E_Coll__List__D__Row* p_rows, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_rows; s0->tag == 0 ? ({ (&N_Coll__None__D__Row); }) : ({ __auto_type v_row_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_D__tupleEq(f_D__tupleOf(v_row_0), p_t) ? ({ struct E_Coll__Option__D__Row* o2 = (struct E_Coll__Option__D__Row*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__D__Row, u) + sizeof(((struct E_Coll__Option__D__Row*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_row_0; o2; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Row* t1 = v_rest_1; struct E_Coll__List__D__Val* t2 = p_t; p_eff__Region = t0; p_rows = t1; p_t = t2; goto srs_tail; (struct E_Coll__Option__D__Row*){0}; })); }); }); } +static struct E_Coll__Option__D__Row* f_D__findRow(srs_cap* p_eff__Region, struct E_D__Rel* p_rl, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_set_0 = s0->u.C_D__Rel.f_set; ({ __auto_type res_ = f_D__rowIn(p_eff__Region, f_D__bucket(v_set_0, f_D__tupleHash(p_t)), p_t); res_; }); }); }); res_; }); } +static struct E_Coll__Option__D__Proof* f_D__proofOf(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__RelRef* p_ref, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ref; ({ __auto_type v_id_0 = s0->u.C_D__RelRef.f_id; __auto_type v_rel_1 = s0->u.C_D__RelRef.f_name; ({ __auto_type res_ = ({ __auto_type s2 = f_D__findRow(p_eff__Region, f_D__relOf(p_eff__Region, p_rels, v_id_0), p_t); s2->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_row_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type s3 = v_row_2; s3->tag == 0 ? ({ ({ struct E_Coll__Option__D__Proof* o3 = (struct E_Coll__Option__D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__D__Proof, u) + sizeof(((struct E_Coll__Option__D__Proof*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = ({ struct E_D__Proof* o3 = (struct E_D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Proof, u) + sizeof(((struct E_D__Proof*)0)->u.C_D__Given))); o3->tag = 0; o3->u.C_D__Given.f_rel = v_rel_1; o3->u.C_D__Given.f_t = p_t; o3; }); o3; }); }) : ({ __auto_type v_at_3 = s3->u.C_D__Made.f_at; __auto_type v_rl_4 = s3->u.C_D__Made.f_rule; f_D__byRule(p_eff__Region, p_rels, v_rl_4, v_rel_1, v_at_3, p_t); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__D__Proof* f_D__byRule(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_D__CRule* p_rl, struct E_Sym__Sym* p_rel, int64_t p_at, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rl; ({ __auto_type v_h_0 = s0->u.C_D__CRule.f_head; __auto_type v_body_1 = s0->u.C_D__CRule.f_body; __auto_type v_neg_2 = s0->u.C_D__CRule.f_neg; __auto_type v_i_3 = s0->u.C_D__CRule.f_id; ({ __auto_type res_ = ({ __auto_type s4 = v_h_0; ({ __auto_type v_hargs_4 = s4->u.C_D__CAtom.f_args; ({ struct E_Coll__IMap__D__Val* v_e0_5 = (&N_Coll__Tip__D__Val); __auto_type res_ = ({ __auto_type s6 = f_D__matchT(p_eff__Region, v_e0_5, v_hargs_4, p_t); s6->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_e_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type s7 = f_D__evalAll(p_eff__Region, p_rels, v_body_1, p_at, ({ struct E_Coll__List__Coll__IMap_1_D__Val* o7 = (struct E_Coll__List__Coll__IMap_1_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__IMap_1_D__Val, u) + sizeof(((struct E_Coll__List__Coll__IMap_1_D__Val*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_e_6; o7->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__IMap_1_D__Val); o7; })); s7->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_e2_7 = s7->u.C_Coll__Cons.f_h; ({ __auto_type s8 = f_D__premises(p_eff__Region, p_rels, v_body_1, v_neg_2, v_e2_7, (&N_Coll__Nil__D__Proof)); s8->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_ps_8 = s8->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__D__Proof* o9 = (struct E_Coll__Option__D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__D__Proof, u) + sizeof(((struct E_Coll__Option__D__Proof*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = ({ struct E_D__Proof* o9 = (struct E_D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Proof, u) + sizeof(((struct E_D__Proof*)0)->u.C_D__ByRule))); o9->tag = 1; o9->u.C_D__ByRule.f_rule = v_i_3; o9->u.C_D__ByRule.f_rel = p_rel; o9->u.C_D__ByRule.f_t = p_t; o9->u.C_D__ByRule.f_premises = v_ps_8; o9; }); o9; }); }); }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__premises(srs_cap* p_eff__Region, struct E_Coll__IMap__D__Rel* p_rels, struct E_Coll__List__D__CAtom* p_xs, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_D__absents(p_eff__Region, p_negs, p_e, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_ref_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_D__inst(p_eff__Region, p_e, v_args_3, (&N_Coll__Nil__D__Val)); s4->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Proof); }) : ({ __auto_type v_t_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type s5 = f_D__proofOf(p_eff__Region, p_rels, v_ref_2, v_t_4); s5->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Proof); }) : ({ __auto_type v_p_5 = s5->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__D__Rel* t1 = p_rels; struct E_Coll__List__D__CAtom* t2 = v_rest_1; struct E_Coll__List__D__CAtom* t3 = p_negs; struct E_Coll__IMap__D__Val* t4 = p_e; struct E_Coll__List__D__Proof* t5 = ({ struct E_Coll__List__D__Proof* o6 = (struct E_Coll__List__D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Proof, u) + sizeof(((struct E_Coll__List__D__Proof*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_p_5; o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_eff__Region = t0; p_rels = t1; p_xs = t2; p_negs = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__Option__Coll__List_1_D__Proof*){0}; }); }); }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Coll__List_1_D__Proof* f_D__absents(srs_cap* p_eff__Region, struct E_Coll__List__D__CAtom* p_negs, struct E_Coll__IMap__D__Val* p_e, struct E_Coll__List__D__Proof* p_acc) { srs_tail: return ({ __auto_type s0 = p_negs; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_D__Proof* o0 = (struct E_Coll__Option__Coll__List_1_D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_D__Proof, u) + sizeof(((struct E_Coll__Option__Coll__List_1_D__Proof*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__D__Proof(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_ref_2 = s2->u.C_D__CAtom.f_rel; __auto_type v_args_3 = s2->u.C_D__CAtom.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_D__inst(p_eff__Region, p_e, v_args_3, (&N_Coll__Nil__D__Val)); s4->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_D__Proof); }) : ({ __auto_type v_t_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__CAtom* t1 = v_rest_1; struct E_Coll__IMap__D__Val* t2 = p_e; struct E_Coll__List__D__Proof* t3 = ({ struct E_Coll__List__D__Proof* o5 = (struct E_Coll__List__D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Proof, u) + sizeof(((struct E_Coll__List__D__Proof*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_D__Proof* o5 = (struct E_D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Proof, u) + sizeof(((struct E_D__Proof*)0)->u.C_D__Absent))); o5->tag = 2; o5->u.C_D__Absent.f_rel = f_D__nameOfRef(v_ref_2); o5->u.C_D__Absent.f_t = v_t_4; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_negs = t1; p_e = t2; p_acc = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_D__Proof*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Proof* f_Coll__rev__D__Proof(srs_cap* p_eff__Region, struct E_Coll__List__D__Proof* p_xs) { return f_Coll__revOnto__D__Proof(p_eff__Region, p_xs, (&N_Coll__Nil__D__Proof)); } +static struct E_Coll__List__D__Proof* f_Coll__revOnto__D__Proof(srs_cap* p_eff__Region, struct E_Coll__List__D__Proof* p_xs, struct E_Coll__List__D__Proof* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Proof* t1 = v_t_1; struct E_Coll__List__D__Proof* t2 = ({ struct E_Coll__List__D__Proof* o2 = (struct E_Coll__List__D__Proof*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Proof, u) + sizeof(((struct E_Coll__List__D__Proof*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Proof*){0}; }); }); }); } +static struct E_Coll__Option__D__Proof* f_D__why(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_m; ({ __auto_type v_tab_0 = s0->u.C_D__Model.f_tab; __auto_type v_rels_1 = s0->u.C_D__Model.f_rels; ({ __auto_type res_ = ({ __auto_type s2 = f_D__refOf(p_eff__Region, v_tab_0, p_rel); s2->tag == 0 ? ({ (&N_Coll__None__D__Proof); }) : ({ __auto_type v_ref_2 = s2->u.C_Coll__Some.f_v; f_D__proofOf(p_eff__Region, v_rels_1, v_ref_2, p_t); }); }); res_; }); }); }); res_; }); } +static struct E_Sym__Sym* f_Eff__relSym(srs_cap* p_eff__Region, struct E_Eff__Rel* p_rel) { return ({ __auto_type s0 = p_rel; s0->tag == 0 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"req", 3})); }) : s0->tag == 1 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"decl", 4})); }) : s0->tag == 2 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"calls", 5})); }) : s0->tag == 3 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"hd", 2})); }) : s0->tag == 4 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"needs", 5})); }) : ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"row", 3})); }); }); } +static struct E_Coll__Option__Eff__Req* f_Eff__reqOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_f) { return ({ srs_str v_s_0 = f_Sym__str(p_f); __auto_type res_ = ({ __auto_type s1 = f_Eff__lastDot(p_eff__Region, v_s_0, (Str__len(v_s_0) - ((int64_t)1))); s1->tag == 0 ? ({ (&N_Coll__None__Eff__Req); }) : ({ __auto_type v_i_1 = s1->u.C_Coll__Some.f_v; ({ struct E_Sym__Sym* v_p_2 = f_Sym__of(p_eff__Region, Str__slice(v_s_0, ((int64_t)0), v_i_1)); struct E_Sym__Sym* v_op_3 = f_Sym__of(p_eff__Region, Str__slice(v_s_0, (v_i_1 + ((int64_t)1)), Str__len(v_s_0))); __auto_type res_ = ({ __auto_type s4 = f_Ty__protoOp(p_eff__Region, p_ps, v_p_2, v_op_3); s4->tag == 1 ? ({ ({ struct E_Coll__Option__Eff__Req* o4 = (struct E_Coll__Option__Eff__Req*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Eff__Req, u) + sizeof(((struct E_Coll__Option__Eff__Req*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = ({ struct E_Eff__Req* o4 = (struct E_Eff__Req*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Req, u) + sizeof(((struct E_Eff__Req*)0)->u.C_Eff__Req))); o4->tag = 0; o4->u.C_Eff__Req.f_p = v_p_2; o4->u.C_Eff__Req.f_op = v_op_3; o4; }); o4; }); }) : ({ (&N_Coll__None__Eff__Req); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__I64* f_Eff__lastDot(srs_cap* p_eff__Region, srs_str p_s, int64_t p_i) { srs_tail: return ({ __auto_type res_ = ((p_i < ((int64_t)0)) ? (&N_Coll__None__I64) : ((Str__at(p_s, p_i) == ((int64_t)46)) ? ({ struct E_Coll__Option__I64* o0 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_i; o0; }) : ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_s; int64_t t2 = (p_i - ((int64_t)1)); p_eff__Region = t0; p_s = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__I64*){0}; }))); res_; }); } +static struct E_Sym__Sym* f_Eff__dotted(srs_cap* p_eff__Region, srs_cap* p_eff__Console, srs_str p_a, struct E_Sym__Sym* p_b) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Console->vt[5]))(p_eff__Console->self); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, p_a); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Sym__str(p_b)); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Sym__of(p_eff__Region, ({ __auto_type r_ = ((srs_str(*)(void*))(p_eff__Console->vt[6]))(p_eff__Console->self); p_eff__Console->live = 0; r_; })); res_; }); } +static struct E_Eff__Rows* f_Eff__none(srs_cap* p_eff__Region) { return ({ struct E_Eff__Rows* o0 = (struct E_Eff__Rows*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Rows, u) + sizeof(((struct E_Eff__Rows*)0)->u.C_Eff__Rows))); o0->tag = 0; o0->u.C_Eff__Rows.f_m = f_Coll__sEmpty__Coll__List_1_Eff__Cap(p_eff__Region); o0; }); } +static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sEmpty__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Coll__List_1_Eff__Cap* o0 = (struct E_Coll__SMap__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); } +static struct E_Coll__List__Eff__Cap* f_Eff__row(srs_cap* p_eff__Region, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_rs; ({ __auto_type v_m_0 = s0->u.C_Eff__Rows.f_m; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Coll__List_1_Eff__Cap(p_eff__Region, v_m_0, p_f); s1->tag == 1 ? ({ __auto_type v_cs_1 = s1->u.C_Coll__Some.f_v; v_cs_1; }) : ({ (&N_Coll__Nil__Eff__Cap); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sLookup__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Coll__List_1_Eff__Cap(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap)), p_s); }); }); } +static struct E_Coll__Option__Coll__List_1_Eff__Cap* f_Coll__sFind__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Eff__Cap); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Coll__List_1_Eff__Cap* o4 = (struct E_Coll__Option__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Eff__Cap*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Eff__Cap*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_t, p_k), p_k, p_d); } static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*){0}; }))))))); res_; }); }); }); } -static bool f_Eff__has(srs_cap* p_r, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f, struct E_Sym__Sym* p_p) { return f_Eff__capIn(f_Eff__row(p_r, p_rs, p_f), p_p); } +static bool f_Eff__has(srs_cap* p_eff__Region, struct E_Eff__Rows* p_rs, struct E_Sym__Sym* p_f, struct E_Sym__Sym* p_p) { return f_Eff__capIn(f_Eff__row(p_eff__Region, p_rs, p_f), p_p); } static bool f_Eff__capIn(struct E_Coll__List__Eff__Cap* p_cs, struct E_Sym__Sym* p_p) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_q_2 = s2->u.C_Eff__Cap.f_p; ({ __auto_type res_ = (f_Sym__eq(v_q_2, p_p) ? true : ({ struct E_Coll__List__Eff__Cap* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_p; p_cs = t0; p_p = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Eff__Set* f_Eff__rows(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Eff__Cx* v_cx_0 = f_Eff__cxOf(p_r, p_ds, ({ struct E_Eff__Cx* o0 = (struct E_Eff__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o0->tag = 0; o0->u.C_Eff__Cx.f_ps = (&N_Coll__Nil__Ast__Proto); o0->u.C_Eff__Cx.f_hp = f_Coll__sEmpty__Sym__Sym(p_r); o0->u.C_Eff__Cx.f_fns = f_Coll__sEmpty__Eff__Callee(p_r); o0->u.C_Eff__Cx.f_ctors = f_Coll__sEmpty__Bool(p_r); o0->u.C_Eff__Cx.f_ss = f_Eff__syms(p_r); o0; })); __auto_type res_ = ({ __auto_type s1 = f_D__solve(p_r, f_Eff__rules(p_r), f_Eff__decls(p_r, v_cx_0, p_ds, ({ struct E_Eff__W* o1 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o1->tag = 0; o1->u.C_Eff__W.f_next = ((int64_t)1); o1->u.C_Eff__W.f_facts = (&N_Coll__Nil__D__Fact); o1->u.C_Eff__W.f_reqs = (&N_Coll__Nil__Sym__Sym); o1->u.C_Eff__W.f_calls = f_Coll__sEmpty__Coll__List_1_I64(p_r); o1; }))); s1->tag == 0 ? ({ __auto_type v_m_1 = s1->u.C_D__Solved.f_m; ({ struct E_Eff__Set* o2 = (struct E_Eff__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Set, u) + sizeof(((struct E_Eff__Set*)0)->u.C_Eff__Got))); o2->tag = 0; o2->u.C_Eff__Got.f_rows = ({ struct E_Eff__Rows* o2 = (struct E_Eff__Rows*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Rows, u) + sizeof(((struct E_Eff__Rows*)0)->u.C_Eff__Rows))); o2->tag = 0; o2->u.C_Eff__Rows.f_m = f_Eff__group(p_r, f_Eff__capNames(p_r, p_eff__Console, v_cx_0), f_D__tuples(p_r, v_m_1, f_Eff__relSym(p_r, (&N_Eff__RRow))), f_Coll__sEmpty__Coll__List_1_Eff__Cap(p_r)); o2; }); o2; }); }) : s1->tag == 1 ? ({ __auto_type v_rel_1 = s1->u.C_D__Unsafe.f_rel; ({ struct E_Eff__Set* o2 = (struct E_Eff__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Set, u) + sizeof(((struct E_Eff__Set*)0)->u.C_Eff__RulesBad))); o2->tag = 1; o2->u.C_Eff__RulesBad.f_rel = v_rel_1; o2; }); }) : ({ __auto_type v_rel_1 = s1->u.C_D__NegCycle.f_rel; ({ struct E_Eff__Set* o2 = (struct E_Eff__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Set, u) + sizeof(((struct E_Eff__Set*)0)->u.C_Eff__RulesBad))); o2->tag = 1; o2->u.C_Eff__RulesBad.f_rel = v_rel_1; o2; }); }); }); res_; }); } -static struct E_Coll__SMap__Sym__Sym* f_Coll__sEmpty__Sym__Sym(srs_cap* p_r) { return ({ struct E_Coll__SMap__Sym__Sym* o0 = (struct E_Coll__SMap__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Sym__Sym, u) + sizeof(((struct E_Coll__SMap__Sym__Sym*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); } -static struct E_Coll__SMap__Eff__Callee* f_Coll__sEmpty__Eff__Callee(srs_cap* p_r) { return ({ struct E_Coll__SMap__Eff__Callee* o0 = (struct E_Coll__SMap__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Eff__Callee, u) + sizeof(((struct E_Coll__SMap__Eff__Callee*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); } -static struct E_Coll__SMap__Bool* f_Coll__sEmpty__Bool(srs_cap* p_r) { return ({ struct E_Coll__SMap__Bool* o0 = (struct E_Coll__SMap__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Bool, u) + sizeof(((struct E_Coll__SMap__Bool*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); } -static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sEmpty__Coll__List_1_I64(srs_cap* p_r) { return ({ struct E_Coll__SMap__Coll__List_1_I64* o0 = (struct E_Coll__SMap__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_I64*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); } -static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Eff__group(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_names, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_fv_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 1 ? ({ __auto_type v_pv_4 = s4->u.C_Coll__Cons.f_h; ({ __auto_type s5 = v_fv_2; s5->tag == 0 ? ({ __auto_type v_f_5 = s5->u.C_D__VSym.f_s; ({ __auto_type s6 = v_pv_4; s6->tag == 0 ? ({ __auto_type v_p_6 = s6->u.C_D__VSym.f_s; ({ __auto_type res_ = (f_Sym__eq(v_f_5, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"main", 4}))) ? ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_r = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }) : ({ struct E_Coll__List__Eff__Cap* v_cs_7 = ({ __auto_type s7 = f_Coll__sLookup__Coll__List_1_Eff__Cap(p_r, p_m, v_f_5); s7->tag == 1 ? ({ __auto_type v_xs_7 = s7->u.C_Coll__Some.f_v; v_xs_7; }) : ({ (&N_Coll__Nil__Eff__Cap); }); }); struct E_Sym__Sym* v_x_8 = ({ __auto_type s8 = f_Coll__sLookup__Sym__Sym(p_r, p_names, v_p_6); s8->tag == 1 ? ({ __auto_type v_n_8 = s8->u.C_Coll__Some.f_v; v_n_8; }) : ({ v_p_6; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = f_Coll__sInsert__Coll__List_1_Eff__Cap(p_r, p_m, v_f_5, ({ struct E_Coll__List__Eff__Cap* o9 = (struct E_Coll__List__Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Eff__Cap, u) + sizeof(((struct E_Coll__List__Eff__Cap*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Eff__Cap* o9 = (struct E_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Cap, u) + sizeof(((struct E_Eff__Cap*)0)->u.C_Eff__Cap))); o9->tag = 0; o9->u.C_Eff__Cap.f_p = v_p_6; o9->u.C_Eff__Cap.f_x = v_x_8; o9; }); o9->u.C_Coll__Cons.f_t = v_cs_7; o9; })); p_r = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); res_; })); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_r = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_r = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_r = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_r = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Coll__sLookup__Sym__Sym(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Sym__Sym(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym)), p_s); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Coll__sFind__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Sym__Sym* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); }); }); }); }); } +static struct E_Eff__Set* f_Eff__rows(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Eff__Cx* v_cx_0 = f_Eff__cxOf(p_eff__Region, p_ds, ({ struct E_Eff__Cx* o0 = (struct E_Eff__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o0->tag = 0; o0->u.C_Eff__Cx.f_ps = (&N_Coll__Nil__Ast__Proto); o0->u.C_Eff__Cx.f_hp = f_Coll__sEmpty__Sym__Sym(p_eff__Region); o0->u.C_Eff__Cx.f_fns = f_Coll__sEmpty__Eff__Callee(p_eff__Region); o0->u.C_Eff__Cx.f_ctors = f_Coll__sEmpty__Bool(p_eff__Region); o0->u.C_Eff__Cx.f_ss = f_Eff__syms(p_eff__Region); o0; })); __auto_type res_ = ({ __auto_type s1 = f_D__solve(p_eff__Region, f_Eff__rules(p_eff__Region), f_Eff__decls(p_eff__Region, v_cx_0, p_ds, ({ struct E_Eff__W* o1 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o1->tag = 0; o1->u.C_Eff__W.f_next = ((int64_t)1); o1->u.C_Eff__W.f_facts = (&N_Coll__Nil__D__Fact); o1->u.C_Eff__W.f_reqs = (&N_Coll__Nil__Sym__Sym); o1->u.C_Eff__W.f_calls = f_Coll__sEmpty__Coll__List_1_I64(p_eff__Region); o1; }))); s1->tag == 0 ? ({ __auto_type v_m_1 = s1->u.C_D__Solved.f_m; ({ struct E_Eff__Set* o2 = (struct E_Eff__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Set, u) + sizeof(((struct E_Eff__Set*)0)->u.C_Eff__Got))); o2->tag = 0; o2->u.C_Eff__Got.f_rows = ({ struct E_Eff__Rows* o2 = (struct E_Eff__Rows*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Rows, u) + sizeof(((struct E_Eff__Rows*)0)->u.C_Eff__Rows))); o2->tag = 0; o2->u.C_Eff__Rows.f_m = f_Eff__group(p_eff__Region, f_Eff__capNames(p_eff__Console, p_eff__Region, v_cx_0), f_D__tuples(p_eff__Region, v_m_1, f_Eff__relSym(p_eff__Region, (&N_Eff__RRow))), f_Coll__sEmpty__Coll__List_1_Eff__Cap(p_eff__Region)); o2; }); o2; }); }) : s1->tag == 1 ? ({ __auto_type v_rel_1 = s1->u.C_D__Unsafe.f_rel; ({ struct E_Eff__Set* o2 = (struct E_Eff__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Set, u) + sizeof(((struct E_Eff__Set*)0)->u.C_Eff__RulesBad))); o2->tag = 1; o2->u.C_Eff__RulesBad.f_rel = v_rel_1; o2; }); }) : ({ __auto_type v_rel_1 = s1->u.C_D__NegCycle.f_rel; ({ struct E_Eff__Set* o2 = (struct E_Eff__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Set, u) + sizeof(((struct E_Eff__Set*)0)->u.C_Eff__RulesBad))); o2->tag = 1; o2->u.C_Eff__RulesBad.f_rel = v_rel_1; o2; }); }); }); res_; }); } +static struct E_Coll__SMap__Sym__Sym* f_Coll__sEmpty__Sym__Sym(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Sym__Sym* o0 = (struct E_Coll__SMap__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Sym__Sym, u) + sizeof(((struct E_Coll__SMap__Sym__Sym*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); } +static struct E_Coll__SMap__Eff__Callee* f_Coll__sEmpty__Eff__Callee(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Eff__Callee* o0 = (struct E_Coll__SMap__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Eff__Callee, u) + sizeof(((struct E_Coll__SMap__Eff__Callee*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); } +static struct E_Coll__SMap__Bool* f_Coll__sEmpty__Bool(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Bool* o0 = (struct E_Coll__SMap__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Bool, u) + sizeof(((struct E_Coll__SMap__Bool*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); } +static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sEmpty__Coll__List_1_I64(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Coll__List_1_I64* o0 = (struct E_Coll__SMap__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_I64*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); } +static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Eff__group(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_names, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_fv_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 1 ? ({ __auto_type v_pv_4 = s4->u.C_Coll__Cons.f_h; ({ __auto_type s5 = v_fv_2; s5->tag == 0 ? ({ __auto_type v_f_5 = s5->u.C_D__VSym.f_s; ({ __auto_type s6 = v_pv_4; s6->tag == 0 ? ({ __auto_type v_p_6 = s6->u.C_D__VSym.f_s; ({ __auto_type res_ = (f_Sym__eq(v_f_5, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"main", 4}))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_eff__Region = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }) : ({ struct E_Coll__List__Eff__Cap* v_cs_7 = ({ __auto_type s7 = f_Coll__sLookup__Coll__List_1_Eff__Cap(p_eff__Region, p_m, v_f_5); s7->tag == 1 ? ({ __auto_type v_xs_7 = s7->u.C_Coll__Some.f_v; v_xs_7; }) : ({ (&N_Coll__Nil__Eff__Cap); }); }); struct E_Sym__Sym* v_x_8 = ({ __auto_type s8 = f_Coll__sLookup__Sym__Sym(p_eff__Region, p_names, v_p_6); s8->tag == 1 ? ({ __auto_type v_n_8 = s8->u.C_Coll__Some.f_v; v_n_8; }) : ({ v_p_6; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = f_Coll__sInsert__Coll__List_1_Eff__Cap(p_eff__Region, p_m, v_f_5, ({ struct E_Coll__List__Eff__Cap* o9 = (struct E_Coll__List__Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Eff__Cap, u) + sizeof(((struct E_Coll__List__Eff__Cap*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Eff__Cap* o9 = (struct E_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Cap, u) + sizeof(((struct E_Eff__Cap*)0)->u.C_Eff__Cap))); o9->tag = 0; o9->u.C_Eff__Cap.f_p = v_p_6; o9->u.C_Eff__Cap.f_x = v_x_8; o9; }); o9->u.C_Coll__Cons.f_t = v_cs_7; o9; })); p_eff__Region = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); res_; })); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_eff__Region = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_eff__Region = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_eff__Region = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_names; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__SMap__Coll__List_1_Eff__Cap* t3 = p_m; p_eff__Region = t0; p_names = t1; p_ts = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Coll__List_1_Eff__Cap*){0}; }); }); }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Coll__sLookup__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Sym__Sym(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym)), p_s); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Coll__sFind__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Sym__Sym* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_t, p_k), p_k, p_d); } static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sInsert__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_n_2) ? ({ struct E_Coll__SMap__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SMap__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_t_0, v_h_1, f_Coll__sSet__Coll__List_1_Eff__Cap(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SMap__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__SMap__Coll__List_1_Eff__Cap* f_Coll__sInsert__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_Eff__Cap* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_n_2) ? ({ struct E_Coll__SMap__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SMap__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Coll__List_1_Eff__Cap(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SMap__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap); o3; })); o3; })); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__sSet__Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_Eff__Cap* o0 = (struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Coll__List_1_Eff__Cap(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__Sym__Sym* f_Eff__capNames(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Eff__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Eff__Cx.f_ps; ({ __auto_type res_ = f_Eff__namesOf(p_r, p_eff__Console, v_ps_0, f_Coll__sEmpty__Sym__Sym(p_r)); res_; }); }); }); res_; }); } -static struct E_Coll__SMap__Sym__Sym* f_Eff__namesOf(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__SMap__Sym__Sym* p_m) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Proto.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Proto* t2 = v_rest_1; struct E_Coll__SMap__Sym__Sym* t3 = f_Coll__sInsert__Sym__Sym(p_r, p_m, v_n_2, f_Eff__dotted(p_r, p_eff__Console, ((srs_str){(const uint8_t*)"eff", 3}), v_n_2)); p_r = t0; p_eff__Console = t1; p_ps = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Sym__Sym* f_Coll__sInsert__Sym__Sym(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_n_2) ? ({ struct E_Coll__SMap__Sym__Sym* o3 = (struct E_Coll__SMap__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Sym__Sym, u) + sizeof(((struct E_Coll__SMap__Sym__Sym*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_t_0, v_h_1, f_Coll__sSet__Sym__Sym(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Sym__Sym* o3 = (struct E_Coll__SMap__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Sym__Sym, u) + sizeof(((struct E_Coll__SMap__Sym__Sym*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o3 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Sym__Sym* o3 = (struct E_Coll__SEntry__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Sym__Sym, u) + sizeof(((struct E_Coll__SEntry__Sym__Sym*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__sSet__Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__Eff__Cap* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_Eff__Cap* o0 = (struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_Eff__Cap* o3 = (struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_Eff__Cap*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Coll__List_1_Eff__Cap(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_Eff__Cap* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_Eff__Cap*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__Sym__Sym* f_Eff__capNames(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Eff__Cx.f_ps; ({ __auto_type res_ = f_Eff__namesOf(p_eff__Region, p_eff__Console, v_ps_0, f_Coll__sEmpty__Sym__Sym(p_eff__Region)); res_; }); }); }); res_; }); } +static struct E_Coll__SMap__Sym__Sym* f_Eff__namesOf(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__SMap__Sym__Sym* p_m) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Proto.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Proto* t2 = v_rest_1; struct E_Coll__SMap__Sym__Sym* t3 = f_Coll__sInsert__Sym__Sym(p_eff__Region, p_m, v_n_2, f_Eff__dotted(p_eff__Region, p_eff__Console, ((srs_str){(const uint8_t*)"eff", 3}), v_n_2)); p_eff__Region = t0; p_eff__Console = t1; p_ps = t2; p_m = t3; goto srs_tail; (struct E_Coll__SMap__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Sym__Sym* f_Coll__sInsert__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_m, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_n_2) ? ({ struct E_Coll__SMap__Sym__Sym* o3 = (struct E_Coll__SMap__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Sym__Sym, u) + sizeof(((struct E_Coll__SMap__Sym__Sym*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Sym__Sym(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Sym__Sym(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Sym__Sym* o3 = (struct E_Coll__SMap__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Sym__Sym, u) + sizeof(((struct E_Coll__SMap__Sym__Sym*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o3 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Sym__Sym* o3 = (struct E_Coll__SEntry__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Sym__Sym, u) + sizeof(((struct E_Coll__SEntry__Sym__Sym*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym); o3; })); o3; })); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Sym__Sym(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__sSet__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Sym__Sym* o0 = (struct E_Coll__SEntry__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Sym__Sym, u) + sizeof(((struct E_Coll__SEntry__Sym__Sym*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o3 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Sym__Sym* o3 = (struct E_Coll__SEntry__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Sym__Sym, u) + sizeof(((struct E_Coll__SEntry__Sym__Sym*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o3 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Sym__Sym(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_D__Atom* f_Eff__atom(srs_cap* p_r, struct E_Eff__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Eff__relSym(p_r, p_rel); o0->u.C_D__Atom.f_args = f_Pure__vars(p_r, p_xs); o0; }); } -static struct E_Coll__List__D__Rule* f_Eff__rules(srs_cap* p_r) { return ({ struct E_D__Rule* v_n1_0 = ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Eff__atom(p_r, (&N_Eff__RNeeds), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o0->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Eff__atom(p_r, (&N_Eff__RReq), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); o0; }); struct E_D__Rule* v_n2_1 = ({ struct E_D__Rule* o1 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o1->tag = 0; o1->u.C_D__Rule.f_head = f_Eff__atom(p_r, (&N_Eff__RNeeds), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o1->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o1 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o1 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o1->tag = 0; o1->u.C_D__Pos.f_a = f_Eff__atom(p_r, (&N_Eff__RDecl), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o1; }); o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o1; }); o1; }); struct E_D__Lit* v_callsA_2 = ({ struct E_D__Lit* o2 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o2->tag = 0; o2->u.C_D__Pos.f_a = ({ struct E_D__Atom* o2 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o2->tag = 0; o2->u.C_D__Atom.f_rel = f_Eff__relSym(p_r, (&N_Eff__RCalls)); o2->u.C_D__Atom.f_args = f_Pure__vars(p_r, ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ((int64_t)0); o2->u.C_Coll__Cons.f_t = f_Pure__two(p_r, ((int64_t)2), ((int64_t)3)); o2; })); o2; }); o2; }); struct E_D__Rule* v_n3_3 = ({ struct E_D__Rule* o3 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o3->tag = 0; o3->u.C_D__Rule.f_head = f_Eff__atom(p_r, (&N_Eff__RNeeds), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o3->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_callsA_2; o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o3 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o3->tag = 0; o3->u.C_D__Pos.f_a = f_Eff__atom(p_r, (&N_Eff__RNeeds), f_Pure__two(p_r, ((int64_t)2), ((int64_t)1))); o3; }); o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o3 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o3->tag = 1; o3->u.C_D__Neg.f_a = f_Eff__atom(p_r, (&N_Eff__RHd), f_Pure__two(p_r, ((int64_t)3), ((int64_t)1))); o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o3; }); o3; }); o3; }); o3; }); struct E_D__Rule* v_w1_4 = ({ struct E_D__Rule* o4 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o4->tag = 0; o4->u.C_D__Rule.f_head = f_Eff__atom(p_r, (&N_Eff__RRow), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o4->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o4 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o4 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o4->tag = 0; o4->u.C_D__Pos.f_a = f_Eff__atom(p_r, (&N_Eff__RNeeds), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o4; }); o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o4 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o4 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o4->tag = 1; o4->u.C_D__Neg.f_a = f_Eff__atom(p_r, (&N_Eff__RDecl), f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o4; }); o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o4; }); o4; }); o4; }); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_n1_0; o5->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_n2_1; o5->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_n3_3; o5->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_w1_4; o5->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o5; }); o5; }); o5; }); o5; }); res_; }); } -static struct E_Eff__Syms* f_Eff__syms(srs_cap* p_r) { return ({ struct E_Eff__Syms* o0 = (struct E_Eff__Syms*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Syms, u) + sizeof(((struct E_Eff__Syms*)0)->u.C_Eff__Syms))); o0->tag = 0; o0->u.C_Eff__Syms.f_req = f_Eff__relSym(p_r, (&N_Eff__RReq)); o0->u.C_Eff__Syms.f_decl = f_Eff__relSym(p_r, (&N_Eff__RDecl)); o0->u.C_Eff__Syms.f_calls = f_Eff__relSym(p_r, (&N_Eff__RCalls)); o0->u.C_Eff__Syms.f_hd = f_Eff__relSym(p_r, (&N_Eff__RHd)); o0->u.C_Eff__Syms.f_region = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6})); o0; }); } -static struct E_Eff__Cx* f_Eff__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Cx* p_cx) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_cx; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_ps_2 = s2->u.C_Eff__Cx.f_ps; __auto_type v_hp_3 = s2->u.C_Eff__Cx.f_hp; __auto_type v_fns_4 = s2->u.C_Eff__Cx.f_fns; __auto_type v_ctors_5 = s2->u.C_Eff__Cx.f_ctors; __auto_type v_ss_6 = s2->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s7 = v_d_0; s7->tag == 2 ? ({ __auto_type v_p_7 = s7->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o8 = (struct E_Eff__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o8->tag = 0; o8->u.C_Eff__Cx.f_ps = ({ struct E_Coll__List__Ast__Proto* o8 = (struct E_Coll__List__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Proto, u) + sizeof(((struct E_Coll__List__Ast__Proto*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_p_7; o8->u.C_Coll__Cons.f_t = v_ps_2; o8; }); o8->u.C_Eff__Cx.f_hp = v_hp_3; o8->u.C_Eff__Cx.f_fns = v_fns_4; o8->u.C_Eff__Cx.f_ctors = v_ctors_5; o8->u.C_Eff__Cx.f_ss = v_ss_6; o8; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); }) : s7->tag == 3 ? ({ __auto_type v_h_7 = s7->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s8 = v_h_7; ({ __auto_type v_n_8 = s8->u.C_Ast__Handler.f_name; __auto_type v_p_9 = s8->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o10 = (struct E_Eff__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o10->tag = 0; o10->u.C_Eff__Cx.f_ps = v_ps_2; o10->u.C_Eff__Cx.f_hp = f_Coll__sInsert__Sym__Sym(p_r, v_hp_3, v_n_8, v_p_9); o10->u.C_Eff__Cx.f_fns = f_Coll__sInsert__Eff__Callee(p_r, v_fns_4, v_n_8, (&N_Eff__Runs)); o10->u.C_Eff__Cx.f_ctors = v_ctors_5; o10->u.C_Eff__Cx.f_ss = v_ss_6; o10; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); res_; }); }); }); res_; }); }) : s7->tag == 0 ? ({ __auto_type v_f_7 = s7->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s8 = v_f_7; ({ __auto_type v_n_8 = s8->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o9 = (struct E_Eff__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o9->tag = 0; o9->u.C_Eff__Cx.f_ps = v_ps_2; o9->u.C_Eff__Cx.f_hp = v_hp_3; o9->u.C_Eff__Cx.f_fns = f_Coll__sInsert__Eff__Callee(p_r, v_fns_4, v_n_8, f_Eff__calleeOf(p_r, v_f_7)); o9->u.C_Eff__Cx.f_ctors = v_ctors_5; o9->u.C_Eff__Cx.f_ss = v_ss_6; o9; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); res_; }); }); }); res_; }); }) : s7->tag == 1 ? ({ __auto_type v_e_7 = s7->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s8 = v_e_7; ({ __auto_type v_cases_8 = s8->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o9 = (struct E_Eff__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o9->tag = 0; o9->u.C_Eff__Cx.f_ps = v_ps_2; o9->u.C_Eff__Cx.f_hp = v_hp_3; o9->u.C_Eff__Cx.f_fns = v_fns_4; o9->u.C_Eff__Cx.f_ctors = f_Eff__ctorsOf(p_r, v_cases_8, v_ctors_5); o9->u.C_Eff__Cx.f_ss = v_ss_6; o9; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = p_cx; p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Eff__Callee* f_Coll__sInsert__Eff__Callee(srs_cap* p_r, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_n_2) ? ({ struct E_Coll__SMap__Eff__Callee* o3 = (struct E_Coll__SMap__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Eff__Callee, u) + sizeof(((struct E_Coll__SMap__Eff__Callee*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_t_0, v_h_1, f_Coll__sSet__Eff__Callee(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Eff__Callee* o3 = (struct E_Coll__SMap__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Eff__Callee, u) + sizeof(((struct E_Coll__SMap__Eff__Callee*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o3 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Eff__Callee* o3 = (struct E_Coll__SEntry__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Eff__Callee, u) + sizeof(((struct E_Coll__SEntry__Eff__Callee*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Sym__Sym* f_Coll__sSet__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_xs, struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Sym__Sym* o0 = (struct E_Coll__SEntry__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Sym__Sym, u) + sizeof(((struct E_Coll__SEntry__Sym__Sym*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Sym__Sym); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o3 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Sym__Sym* o3 = (struct E_Coll__SEntry__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Sym__Sym, u) + sizeof(((struct E_Coll__SEntry__Sym__Sym*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Sym__Sym* o3 = (struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Sym__Sym(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Sym__Sym); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Sym__Sym* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Sym__Sym(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Sym__Sym*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_D__Atom* f_Eff__atom(srs_cap* p_eff__Region, struct E_Eff__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Eff__relSym(p_eff__Region, p_rel); o0->u.C_D__Atom.f_args = f_Pure__vars(p_eff__Region, p_xs); o0; }); } +static struct E_Coll__List__D__Rule* f_Eff__rules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_n1_0 = ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Eff__atom(p_eff__Region, (&N_Eff__RNeeds), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o0->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Eff__atom(p_eff__Region, (&N_Eff__RReq), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); o0; }); struct E_D__Rule* v_n2_1 = ({ struct E_D__Rule* o1 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o1->tag = 0; o1->u.C_D__Rule.f_head = f_Eff__atom(p_eff__Region, (&N_Eff__RNeeds), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o1->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o1 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o1 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o1->tag = 0; o1->u.C_D__Pos.f_a = f_Eff__atom(p_eff__Region, (&N_Eff__RDecl), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o1; }); o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o1; }); o1; }); struct E_D__Lit* v_callsA_2 = ({ struct E_D__Lit* o2 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o2->tag = 0; o2->u.C_D__Pos.f_a = ({ struct E_D__Atom* o2 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o2->tag = 0; o2->u.C_D__Atom.f_rel = f_Eff__relSym(p_eff__Region, (&N_Eff__RCalls)); o2->u.C_D__Atom.f_args = f_Pure__vars(p_eff__Region, ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ((int64_t)0); o2->u.C_Coll__Cons.f_t = f_Pure__two(p_eff__Region, ((int64_t)2), ((int64_t)3)); o2; })); o2; }); o2; }); struct E_D__Rule* v_n3_3 = ({ struct E_D__Rule* o3 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o3->tag = 0; o3->u.C_D__Rule.f_head = f_Eff__atom(p_eff__Region, (&N_Eff__RNeeds), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o3->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_callsA_2; o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o3 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o3->tag = 0; o3->u.C_D__Pos.f_a = f_Eff__atom(p_eff__Region, (&N_Eff__RNeeds), f_Pure__two(p_eff__Region, ((int64_t)2), ((int64_t)1))); o3; }); o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o3 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o3->tag = 1; o3->u.C_D__Neg.f_a = f_Eff__atom(p_eff__Region, (&N_Eff__RHd), f_Pure__two(p_eff__Region, ((int64_t)3), ((int64_t)1))); o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o3; }); o3; }); o3; }); o3; }); struct E_D__Rule* v_w1_4 = ({ struct E_D__Rule* o4 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o4->tag = 0; o4->u.C_D__Rule.f_head = f_Eff__atom(p_eff__Region, (&N_Eff__RRow), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o4->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o4 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o4 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o4->tag = 0; o4->u.C_D__Pos.f_a = f_Eff__atom(p_eff__Region, (&N_Eff__RNeeds), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o4; }); o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o4 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o4 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o4->tag = 1; o4->u.C_D__Neg.f_a = f_Eff__atom(p_eff__Region, (&N_Eff__RDecl), f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o4; }); o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o4; }); o4; }); o4; }); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_n1_0; o5->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_n2_1; o5->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_n3_3; o5->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o5 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_w1_4; o5->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o5; }); o5; }); o5; }); o5; }); res_; }); } +static struct E_Eff__Syms* f_Eff__syms(srs_cap* p_eff__Region) { return ({ struct E_Eff__Syms* o0 = (struct E_Eff__Syms*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Syms, u) + sizeof(((struct E_Eff__Syms*)0)->u.C_Eff__Syms))); o0->tag = 0; o0->u.C_Eff__Syms.f_req = f_Eff__relSym(p_eff__Region, (&N_Eff__RReq)); o0->u.C_Eff__Syms.f_decl = f_Eff__relSym(p_eff__Region, (&N_Eff__RDecl)); o0->u.C_Eff__Syms.f_calls = f_Eff__relSym(p_eff__Region, (&N_Eff__RCalls)); o0->u.C_Eff__Syms.f_hd = f_Eff__relSym(p_eff__Region, (&N_Eff__RHd)); o0->u.C_Eff__Syms.f_region = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6})); o0; }); } +static struct E_Eff__Cx* f_Eff__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Cx* p_cx) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_cx; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_ps_2 = s2->u.C_Eff__Cx.f_ps; __auto_type v_hp_3 = s2->u.C_Eff__Cx.f_hp; __auto_type v_fns_4 = s2->u.C_Eff__Cx.f_fns; __auto_type v_ctors_5 = s2->u.C_Eff__Cx.f_ctors; __auto_type v_ss_6 = s2->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s7 = v_d_0; s7->tag == 2 ? ({ __auto_type v_p_7 = s7->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o8 = (struct E_Eff__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o8->tag = 0; o8->u.C_Eff__Cx.f_ps = ({ struct E_Coll__List__Ast__Proto* o8 = (struct E_Coll__List__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Proto, u) + sizeof(((struct E_Coll__List__Ast__Proto*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_p_7; o8->u.C_Coll__Cons.f_t = v_ps_2; o8; }); o8->u.C_Eff__Cx.f_hp = v_hp_3; o8->u.C_Eff__Cx.f_fns = v_fns_4; o8->u.C_Eff__Cx.f_ctors = v_ctors_5; o8->u.C_Eff__Cx.f_ss = v_ss_6; o8; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); }) : s7->tag == 3 ? ({ __auto_type v_h_7 = s7->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s8 = v_h_7; ({ __auto_type v_n_8 = s8->u.C_Ast__Handler.f_name; __auto_type v_p_9 = s8->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o10 = (struct E_Eff__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o10->tag = 0; o10->u.C_Eff__Cx.f_ps = v_ps_2; o10->u.C_Eff__Cx.f_hp = f_Coll__sInsert__Sym__Sym(p_eff__Region, v_hp_3, v_n_8, v_p_9); o10->u.C_Eff__Cx.f_fns = f_Coll__sInsert__Eff__Callee(p_eff__Region, v_fns_4, v_n_8, (&N_Eff__Runs)); o10->u.C_Eff__Cx.f_ctors = v_ctors_5; o10->u.C_Eff__Cx.f_ss = v_ss_6; o10; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); res_; }); }); }); res_; }); }) : s7->tag == 0 ? ({ __auto_type v_f_7 = s7->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s8 = v_f_7; ({ __auto_type v_n_8 = s8->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o9 = (struct E_Eff__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o9->tag = 0; o9->u.C_Eff__Cx.f_ps = v_ps_2; o9->u.C_Eff__Cx.f_hp = v_hp_3; o9->u.C_Eff__Cx.f_fns = f_Coll__sInsert__Eff__Callee(p_eff__Region, v_fns_4, v_n_8, f_Eff__calleeOf(p_eff__Region, v_f_7)); o9->u.C_Eff__Cx.f_ctors = v_ctors_5; o9->u.C_Eff__Cx.f_ss = v_ss_6; o9; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); res_; }); }); }); res_; }); }) : s7->tag == 1 ? ({ __auto_type v_e_7 = s7->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s8 = v_e_7; ({ __auto_type v_cases_8 = s8->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = ({ struct E_Eff__Cx* o9 = (struct E_Eff__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Cx, u) + sizeof(((struct E_Eff__Cx*)0)->u.C_Eff__Cx))); o9->tag = 0; o9->u.C_Eff__Cx.f_ps = v_ps_2; o9->u.C_Eff__Cx.f_hp = v_hp_3; o9->u.C_Eff__Cx.f_fns = v_fns_4; o9->u.C_Eff__Cx.f_ctors = f_Eff__ctorsOf(p_eff__Region, v_cases_8, v_ctors_5); o9->u.C_Eff__Cx.f_ss = v_ss_6; o9; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Cx* t2 = p_cx; p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Eff__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Eff__Callee* f_Coll__sInsert__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_n_2) ? ({ struct E_Coll__SMap__Eff__Callee* o3 = (struct E_Coll__SMap__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Eff__Callee, u) + sizeof(((struct E_Coll__SMap__Eff__Callee*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Eff__Callee(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Eff__Callee* o3 = (struct E_Coll__SMap__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Eff__Callee, u) + sizeof(((struct E_Coll__SMap__Eff__Callee*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o3 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Eff__Callee* o3 = (struct E_Coll__SEntry__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Eff__Callee, u) + sizeof(((struct E_Coll__SEntry__Eff__Callee*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__sSet__Eff__Callee(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Eff__Callee* o0 = (struct E_Coll__SEntry__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Eff__Callee, u) + sizeof(((struct E_Coll__SEntry__Eff__Callee*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o3 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Eff__Callee* o3 = (struct E_Coll__SEntry__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Eff__Callee, u) + sizeof(((struct E_Coll__SEntry__Eff__Callee*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o3 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Eff__Callee(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__sSet__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s, struct E_Eff__Callee* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Eff__Callee* o0 = (struct E_Coll__SEntry__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Eff__Callee, u) + sizeof(((struct E_Coll__SEntry__Eff__Callee*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o3 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Eff__Callee* o3 = (struct E_Coll__SEntry__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Eff__Callee, u) + sizeof(((struct E_Coll__SEntry__Eff__Callee*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Eff__Callee* o3 = (struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Eff__Callee(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Eff__Callee* f_Eff__calleeOf(srs_cap* p_r, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_body_1 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s2 = v_body_1; s2->tag == 1 ? ({ ({ __auto_type s2 = f_Ty__evidence(p_r, v_gs_0, (&N_Coll__Nil__Ast__Binder)); s2->tag == 0 ? ({ (&N_Eff__Leaf); }) : ({ (&N_Eff__Runs); }); }); }) : ({ (&N_Eff__Runs); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__SMap__Bool* f_Eff__ctorsOf(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__Bool* p_m) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fields_3 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s4 = v_fields_3; s4->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = p_m; p_r = t0; p_cs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = f_Coll__sInsert__Bool(p_r, p_m, v_n_2, true); p_r = t0; p_cs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Bool* f_Coll__sInsert__Bool(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s, bool p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Bool(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Bool(v_n_2) ? ({ struct E_Coll__SMap__Bool* o3 = (struct E_Coll__SMap__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Bool, u) + sizeof(((struct E_Coll__SMap__Bool*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_t_0, v_h_1, f_Coll__sSet__Bool(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Bool(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Bool)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Bool* o3 = (struct E_Coll__SMap__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Bool, u) + sizeof(((struct E_Coll__SMap__Bool*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Bool* o3 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Bool* o3 = (struct E_Coll__SEntry__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Bool, u) + sizeof(((struct E_Coll__SEntry__Bool*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Bool); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Eff__Callee); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Eff__Callee* f_Eff__calleeOf(srs_cap* p_eff__Region, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_body_1 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s2 = v_body_1; s2->tag == 1 ? ({ ({ __auto_type s2 = f_Ty__evidence(p_eff__Region, v_gs_0, (&N_Coll__Nil__Ast__Binder)); s2->tag == 0 ? ({ (&N_Eff__Leaf); }) : ({ (&N_Eff__Runs); }); }); }) : ({ (&N_Eff__Runs); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__SMap__Bool* f_Eff__ctorsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__Bool* p_m) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fields_3 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s4 = v_fields_3; s4->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = p_m; p_eff__Region = t0; p_cs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = f_Coll__sInsert__Bool(p_eff__Region, p_m, v_n_2, true); p_eff__Region = t0; p_cs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Bool* f_Coll__sInsert__Bool(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s, bool p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Bool(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Bool(v_n_2) ? ({ struct E_Coll__SMap__Bool* o3 = (struct E_Coll__SMap__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Bool, u) + sizeof(((struct E_Coll__SMap__Bool*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Bool(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Bool(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Bool)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Bool* o3 = (struct E_Coll__SMap__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Bool, u) + sizeof(((struct E_Coll__SMap__Bool*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Bool* o3 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Bool* o3 = (struct E_Coll__SEntry__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Bool, u) + sizeof(((struct E_Coll__SEntry__Bool*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Bool); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__sSet__Bool(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s, bool p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Bool* o0 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Bool* o0 = (struct E_Coll__SEntry__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Bool, u) + sizeof(((struct E_Coll__SEntry__Bool*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Bool); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Bool* o3 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Bool* o3 = (struct E_Coll__SEntry__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Bool, u) + sizeof(((struct E_Coll__SEntry__Bool*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Bool* o3 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Bool(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__sSet__Bool(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s, bool p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Bool* o0 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Bool* o0 = (struct E_Coll__SEntry__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Bool, u) + sizeof(((struct E_Coll__SEntry__Bool*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Bool); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Bool* o3 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Bool* o3 = (struct E_Coll__SEntry__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Bool, u) + sizeof(((struct E_Coll__SEntry__Bool*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Bool* o3 = (struct E_Coll__List__Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Bool*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Bool(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Bool(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Bool(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Eff__W* f_Eff__add(srs_cap* p_r, struct E_Eff__W* p_w, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_vs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_w; ({ __auto_type v_n_0 = s0->u.C_Eff__W.f_next; __auto_type v_fs_1 = s0->u.C_Eff__W.f_facts; __auto_type v_rq_2 = s0->u.C_Eff__W.f_reqs; __auto_type v_cs_3 = s0->u.C_Eff__W.f_calls; ({ __auto_type res_ = ({ struct E_Eff__W* o4 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o4->tag = 0; o4->u.C_Eff__W.f_next = v_n_0; o4->u.C_Eff__W.f_facts = ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o4 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o4->tag = 0; o4->u.C_D__Fact.f_rel = p_rel; o4->u.C_D__Fact.f_vals = p_vs; o4; }); o4->u.C_Coll__Cons.f_t = v_fs_1; o4; }); o4->u.C_Eff__W.f_reqs = v_rq_2; o4->u.C_Eff__W.f_calls = v_cs_3; o4; }); res_; }); }); }); res_; }); } -static struct E_Coll__List__D__Val* f_Eff__v2(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } -static bool f_Eff__isIn(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__Bool(p_r, p_m, p_x); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } -static struct E_Coll__Option__Bool* f_Coll__sLookup__Bool(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Bool(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Bool(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Bool)), p_s); }); }); } -static struct E_Coll__Option__Bool* f_Coll__sFind__Bool(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Bool); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Bool* o4 = (struct E_Coll__Option__Bool*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Bool, u) + sizeof(((struct E_Coll__Option__Bool*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Bool* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Bool*){0}; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Bool); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Bool* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Bool(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Bool* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Bool* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Bool* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Bool(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Eff__W* f_Eff__add(srs_cap* p_eff__Region, struct E_Eff__W* p_w, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_vs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_w; ({ __auto_type v_n_0 = s0->u.C_Eff__W.f_next; __auto_type v_fs_1 = s0->u.C_Eff__W.f_facts; __auto_type v_rq_2 = s0->u.C_Eff__W.f_reqs; __auto_type v_cs_3 = s0->u.C_Eff__W.f_calls; ({ __auto_type res_ = ({ struct E_Eff__W* o4 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o4->tag = 0; o4->u.C_Eff__W.f_next = v_n_0; o4->u.C_Eff__W.f_facts = ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o4 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o4->tag = 0; o4->u.C_D__Fact.f_rel = p_rel; o4->u.C_D__Fact.f_vals = p_vs; o4; }); o4->u.C_Coll__Cons.f_t = v_fs_1; o4; }); o4->u.C_Eff__W.f_reqs = v_rq_2; o4->u.C_Eff__W.f_calls = v_cs_3; o4; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__D__Val* f_Eff__v2(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } +static bool f_Eff__isIn(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__Bool(p_eff__Region, p_m, p_x); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } +static struct E_Coll__Option__Bool* f_Coll__sLookup__Bool(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Bool(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Bool(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Bool)), p_s); }); }); } +static struct E_Coll__Option__Bool* f_Coll__sFind__Bool(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Bool* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Bool); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Bool* o4 = (struct E_Coll__Option__Bool*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Bool, u) + sizeof(((struct E_Coll__Option__Bool*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Bool* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Bool*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Bool* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Bool(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Bool* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Bool* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Bool(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Bool(p_t, p_k), p_k, p_d); } -static struct E_Coll__List__D__Fact* f_Eff__decls(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = p_w; ({ __auto_type v_fs_0 = s0->u.C_Eff__W.f_facts; ({ __auto_type res_ = v_fs_0; res_; }); }); }); res_; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = p_w; ({ __auto_type v_n_3 = s3->u.C_Eff__W.f_next; __auto_type v_fs_4 = s3->u.C_Eff__W.f_facts; ({ __auto_type res_ = ({ __auto_type s5 = v_f_2; ({ __auto_type v_fname_5 = s5->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Eff__W* t3 = f_Eff__fn(p_r, p_cx, v_fname_5, v_f_2, ({ struct E_Eff__W* o6 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o6->tag = 0; o6->u.C_Eff__W.f_next = v_n_3; o6->u.C_Eff__W.f_facts = v_fs_4; o6->u.C_Eff__W.f_reqs = (&N_Coll__Nil__Sym__Sym); o6->u.C_Eff__W.f_calls = f_Coll__sEmpty__Coll__List_1_I64(p_r); o6; })); p_r = t0; p_cx = t1; p_ds = t2; p_w = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = p_w; ({ __auto_type v_n_3 = s3->u.C_Eff__W.f_next; __auto_type v_fs_4 = s3->u.C_Eff__W.f_facts; ({ __auto_type res_ = ({ __auto_type s5 = v_h_2; ({ __auto_type v_hn_5 = s5->u.C_Ast__Handler.f_name; __auto_type v_hfs_6 = s5->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Eff__W* t3 = f_Eff__hfns(p_r, p_cx, v_hn_5, v_hfs_6, ({ struct E_Eff__W* o7 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o7->tag = 0; o7->u.C_Eff__W.f_next = v_n_3; o7->u.C_Eff__W.f_facts = v_fs_4; o7->u.C_Eff__W.f_reqs = (&N_Coll__Nil__Sym__Sym); o7->u.C_Eff__W.f_calls = f_Coll__sEmpty__Coll__List_1_I64(p_r); o7; })); p_r = t0; p_cx = t1; p_ds = t2; p_w = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Eff__W* t3 = p_w; p_r = t0; p_cx = t1; p_ds = t2; p_w = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } -static struct E_Eff__W* f_Eff__fn(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_n, struct E_Ast__Fn* p_f, struct E_Eff__W* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_1 = s0->u.C_Ast__Fn.f_params; __auto_type v_body_2 = s0->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Ast__Binder* v_ev_3 = f_Ty__evidence(p_r, v_gs_0, (&N_Coll__Nil__Ast__Binder)); struct E_Eff__W* v_w1_4 = f_Eff__declsOf(p_r, p_cx, p_n, v_ev_3, p_w); __auto_type res_ = ({ __auto_type s5 = v_body_2; s5->tag == 0 ? ({ __auto_type v_e_5 = s5->u.C_Ast__Def.f_e; f_Eff__expr(p_r, p_cx, ({ struct E_Eff__At* o6 = (struct E_Eff__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__At, u) + sizeof(((struct E_Eff__At*)0)->u.C_Eff__At))); o6->tag = 0; o6->u.C_Eff__At.f_f = p_n; o6->u.C_Eff__At.f_s = ((int64_t)0); o6->u.C_Eff__At.f_hd = (&N_Coll__Nil__Sym__Sym); o6->u.C_Eff__At.f_ls = f_Ty__names(p_r, v_ps_1, f_Ty__names(p_r, v_ev_3, (&N_Coll__Nil__Sym__Sym))); o6; }), v_e_5, v_w1_4); }) : ({ v_w1_4; }); }); res_; }); }); }); res_; }); } -static struct E_Eff__W* f_Eff__hfns(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_h; struct E_Coll__List__Ast__Fn* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__fn(p_r, p_cx, p_h, v_f_0, p_w); p_r = t0; p_cx = t1; p_h = t2; p_fs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); } -static struct E_Eff__W* f_Eff__declsOf(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = v_t_2; ({ __auto_type v_tn_3 = s3->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_ps_4 = s4->u.C_Eff__Cx.f_ps; __auto_type v_ss_5 = s4->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s6 = v_ss_5; ({ __auto_type v_decl_6 = s6->u.C_Eff__Syms.f_decl; ({ __auto_type res_ = (f_Ty__isProto(v_ps_4, v_tn_3) ? ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__add(p_r, p_w, v_decl_6, f_Eff__v2(p_r, ({ struct E_D__Val* o7 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o7->tag = 0; o7->u.C_D__VSym.f_s = p_f; o7; }), ({ struct E_D__Val* o7 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o7->tag = 0; o7->u.C_D__VSym.f_s = v_tn_3; o7; }))); p_r = t0; p_cx = t1; p_f = t2; p_bs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Eff__W* t4 = p_w; p_r = t0; p_cx = t1; p_f = t2; p_bs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Eff__W* f_Eff__req(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_p, struct E_Eff__W* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_at; ({ __auto_type v_f_0 = s0->u.C_Eff__At.f_f; __auto_type v_hd_1 = s0->u.C_Eff__At.f_hd; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_n_2 = s2->u.C_Eff__W.f_next; __auto_type v_fs_3 = s2->u.C_Eff__W.f_facts; __auto_type v_rq_4 = s2->u.C_Eff__W.f_reqs; __auto_type v_cs_5 = s2->u.C_Eff__W.f_calls; ({ __auto_type res_ = ((f_Ty__memberSym(p_p, v_hd_1) || f_Ty__memberSym(p_p, v_rq_4)) ? p_w : ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_ss_6 = s6->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s7 = v_ss_6; ({ __auto_type v_req_7 = s7->u.C_Eff__Syms.f_req; ({ __auto_type res_ = ({ struct E_Eff__W* o8 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o8->tag = 0; o8->u.C_Eff__W.f_next = v_n_2; o8->u.C_Eff__W.f_facts = ({ struct E_Coll__List__D__Fact* o8 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o8 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o8->tag = 0; o8->u.C_D__Fact.f_rel = v_req_7; o8->u.C_D__Fact.f_vals = f_Eff__v2(p_r, ({ struct E_D__Val* o8 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o8->tag = 0; o8->u.C_D__VSym.f_s = v_f_0; o8; }), ({ struct E_D__Val* o8 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o8->tag = 0; o8->u.C_D__VSym.f_s = p_p; o8; })); o8; }); o8->u.C_Coll__Cons.f_t = v_fs_3; o8; }); o8->u.C_Eff__W.f_reqs = ({ struct E_Coll__List__Sym__Sym* o8 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = p_p; o8->u.C_Coll__Cons.f_t = v_rq_4; o8; }); o8->u.C_Eff__W.f_calls = v_cs_5; o8; }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Eff__W* f_Eff__call(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_g, struct E_Eff__W* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_at; ({ __auto_type v_f_0 = s0->u.C_Eff__At.f_f; __auto_type v_s_1 = s0->u.C_Eff__At.f_s; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_fns_2 = s2->u.C_Eff__Cx.f_fns; __auto_type v_ss_3 = s2->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s4 = p_w; ({ __auto_type v_n_4 = s4->u.C_Eff__W.f_next; __auto_type v_fs_5 = s4->u.C_Eff__W.f_facts; __auto_type v_rq_6 = s4->u.C_Eff__W.f_reqs; __auto_type v_cs_7 = s4->u.C_Eff__W.f_calls; ({ struct E_Coll__List__I64* v_seen_8 = ({ __auto_type s8 = f_Coll__sLookup__Coll__List_1_I64(p_r, v_cs_7, p_g); s8->tag == 1 ? ({ __auto_type v_xs_8 = s8->u.C_Coll__Some.f_v; v_xs_8; }) : ({ (&N_Coll__Nil__I64); }); }); bool v_leaf_9 = ({ __auto_type s9 = f_Coll__sLookup__Eff__Callee(p_r, v_fns_2, p_g); s9->tag == 1 ? ({ __auto_type v_k_9 = s9->u.C_Coll__Some.f_v; ({ __auto_type s10 = v_k_9; s10->tag == 1 ? ({ true; }) : ({ false; }); }); }) : ({ true; }); }); __auto_type res_ = (((v_leaf_9 || f_Sym__eq(v_f_0, p_g)) || f_Eff__memberI(v_s_1, v_seen_8)) ? p_w : ({ __auto_type res_ = ({ __auto_type s10 = v_ss_3; ({ __auto_type v_calls_10 = s10->u.C_Eff__Syms.f_calls; ({ __auto_type res_ = ({ struct E_Eff__W* o11 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o11->tag = 0; o11->u.C_Eff__W.f_next = v_n_4; o11->u.C_Eff__W.f_facts = ({ struct E_Coll__List__D__Fact* o11 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o11 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o11->tag = 0; o11->u.C_D__Fact.f_rel = v_calls_10; o11->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o11 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o11 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o11->tag = 0; o11->u.C_D__VSym.f_s = v_f_0; o11; }); o11->u.C_Coll__Cons.f_t = f_Eff__v2(p_r, ({ struct E_D__Val* o11 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o11->tag = 0; o11->u.C_D__VSym.f_s = p_g; o11; }), ({ struct E_D__Val* o11 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o11->tag = 1; o11->u.C_D__VInt.f_v = v_s_1; o11; })); o11; }); o11; }); o11->u.C_Coll__Cons.f_t = v_fs_5; o11; }); o11->u.C_Eff__W.f_reqs = v_rq_6; o11->u.C_Eff__W.f_calls = f_Coll__sInsert__Coll__List_1_I64(p_r, v_cs_7, p_g, ({ struct E_Coll__List__I64* o11 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_s_1; o11->u.C_Coll__Cons.f_t = v_seen_8; o11; })); o11; }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sLookup__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Coll__List_1_I64(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64)), p_s); }); }); } -static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sFind__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_I64); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Coll__List_1_I64* o4 = (struct E_Coll__Option__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_I64, u) + sizeof(((struct E_Coll__Option__Coll__List_1_I64*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_I64*){0}; })); }); }); }); }); } +static struct E_Coll__List__D__Fact* f_Eff__decls(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = p_w; ({ __auto_type v_fs_0 = s0->u.C_Eff__W.f_facts; ({ __auto_type res_ = v_fs_0; res_; }); }); }); res_; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = p_w; ({ __auto_type v_n_3 = s3->u.C_Eff__W.f_next; __auto_type v_fs_4 = s3->u.C_Eff__W.f_facts; ({ __auto_type res_ = ({ __auto_type s5 = v_f_2; ({ __auto_type v_fname_5 = s5->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Eff__W* t3 = f_Eff__fn(p_eff__Region, p_cx, v_fname_5, v_f_2, ({ struct E_Eff__W* o6 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o6->tag = 0; o6->u.C_Eff__W.f_next = v_n_3; o6->u.C_Eff__W.f_facts = v_fs_4; o6->u.C_Eff__W.f_reqs = (&N_Coll__Nil__Sym__Sym); o6->u.C_Eff__W.f_calls = f_Coll__sEmpty__Coll__List_1_I64(p_eff__Region); o6; })); p_eff__Region = t0; p_cx = t1; p_ds = t2; p_w = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = p_w; ({ __auto_type v_n_3 = s3->u.C_Eff__W.f_next; __auto_type v_fs_4 = s3->u.C_Eff__W.f_facts; ({ __auto_type res_ = ({ __auto_type s5 = v_h_2; ({ __auto_type v_hn_5 = s5->u.C_Ast__Handler.f_name; __auto_type v_hfs_6 = s5->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Eff__W* t3 = f_Eff__hfns(p_eff__Region, p_cx, v_hn_5, v_hfs_6, ({ struct E_Eff__W* o7 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o7->tag = 0; o7->u.C_Eff__W.f_next = v_n_3; o7->u.C_Eff__W.f_facts = v_fs_4; o7->u.C_Eff__W.f_reqs = (&N_Coll__Nil__Sym__Sym); o7->u.C_Eff__W.f_calls = f_Coll__sEmpty__Coll__List_1_I64(p_eff__Region); o7; })); p_eff__Region = t0; p_cx = t1; p_ds = t2; p_w = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Eff__W* t3 = p_w; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_w = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } +static struct E_Eff__W* f_Eff__fn(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_n, struct E_Ast__Fn* p_f, struct E_Eff__W* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_1 = s0->u.C_Ast__Fn.f_params; __auto_type v_body_2 = s0->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Ast__Binder* v_ev_3 = f_Ty__evidence(p_eff__Region, v_gs_0, (&N_Coll__Nil__Ast__Binder)); struct E_Eff__W* v_w1_4 = f_Eff__declsOf(p_eff__Region, p_cx, p_n, v_ev_3, p_w); __auto_type res_ = ({ __auto_type s5 = v_body_2; s5->tag == 0 ? ({ __auto_type v_e_5 = s5->u.C_Ast__Def.f_e; f_Eff__expr(p_eff__Region, p_cx, ({ struct E_Eff__At* o6 = (struct E_Eff__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__At, u) + sizeof(((struct E_Eff__At*)0)->u.C_Eff__At))); o6->tag = 0; o6->u.C_Eff__At.f_f = p_n; o6->u.C_Eff__At.f_s = ((int64_t)0); o6->u.C_Eff__At.f_hd = (&N_Coll__Nil__Sym__Sym); o6->u.C_Eff__At.f_ls = f_Ty__names(p_eff__Region, v_ps_1, f_Ty__names(p_eff__Region, v_ev_3, (&N_Coll__Nil__Sym__Sym))); o6; }), v_e_5, v_w1_4); }) : ({ v_w1_4; }); }); res_; }); }); }); res_; }); } +static struct E_Eff__W* f_Eff__hfns(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_h; struct E_Coll__List__Ast__Fn* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__fn(p_eff__Region, p_cx, p_h, v_f_0, p_w); p_eff__Region = t0; p_cx = t1; p_h = t2; p_fs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); } +static struct E_Eff__W* f_Eff__declsOf(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = v_t_2; ({ __auto_type v_tn_3 = s3->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_ps_4 = s4->u.C_Eff__Cx.f_ps; __auto_type v_ss_5 = s4->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s6 = v_ss_5; ({ __auto_type v_decl_6 = s6->u.C_Eff__Syms.f_decl; ({ __auto_type res_ = (f_Ty__isProto(v_ps_4, v_tn_3) ? ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__add(p_eff__Region, p_w, v_decl_6, f_Eff__v2(p_eff__Region, ({ struct E_D__Val* o7 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o7->tag = 0; o7->u.C_D__VSym.f_s = p_f; o7; }), ({ struct E_D__Val* o7 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o7->tag = 0; o7->u.C_D__VSym.f_s = v_tn_3; o7; }))); p_eff__Region = t0; p_cx = t1; p_f = t2; p_bs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Eff__W* t4 = p_w; p_eff__Region = t0; p_cx = t1; p_f = t2; p_bs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Eff__W* f_Eff__req(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_p, struct E_Eff__W* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_at; ({ __auto_type v_f_0 = s0->u.C_Eff__At.f_f; __auto_type v_hd_1 = s0->u.C_Eff__At.f_hd; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_n_2 = s2->u.C_Eff__W.f_next; __auto_type v_fs_3 = s2->u.C_Eff__W.f_facts; __auto_type v_rq_4 = s2->u.C_Eff__W.f_reqs; __auto_type v_cs_5 = s2->u.C_Eff__W.f_calls; ({ __auto_type res_ = ((f_Ty__memberSym(p_p, v_hd_1) || f_Ty__memberSym(p_p, v_rq_4)) ? p_w : ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_ss_6 = s6->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s7 = v_ss_6; ({ __auto_type v_req_7 = s7->u.C_Eff__Syms.f_req; ({ __auto_type res_ = ({ struct E_Eff__W* o8 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o8->tag = 0; o8->u.C_Eff__W.f_next = v_n_2; o8->u.C_Eff__W.f_facts = ({ struct E_Coll__List__D__Fact* o8 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o8 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o8->tag = 0; o8->u.C_D__Fact.f_rel = v_req_7; o8->u.C_D__Fact.f_vals = f_Eff__v2(p_eff__Region, ({ struct E_D__Val* o8 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o8->tag = 0; o8->u.C_D__VSym.f_s = v_f_0; o8; }), ({ struct E_D__Val* o8 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o8->tag = 0; o8->u.C_D__VSym.f_s = p_p; o8; })); o8; }); o8->u.C_Coll__Cons.f_t = v_fs_3; o8; }); o8->u.C_Eff__W.f_reqs = ({ struct E_Coll__List__Sym__Sym* o8 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = p_p; o8->u.C_Coll__Cons.f_t = v_rq_4; o8; }); o8->u.C_Eff__W.f_calls = v_cs_5; o8; }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Eff__W* f_Eff__call(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Sym__Sym* p_g, struct E_Eff__W* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_at; ({ __auto_type v_f_0 = s0->u.C_Eff__At.f_f; __auto_type v_s_1 = s0->u.C_Eff__At.f_s; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_fns_2 = s2->u.C_Eff__Cx.f_fns; __auto_type v_ss_3 = s2->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s4 = p_w; ({ __auto_type v_n_4 = s4->u.C_Eff__W.f_next; __auto_type v_fs_5 = s4->u.C_Eff__W.f_facts; __auto_type v_rq_6 = s4->u.C_Eff__W.f_reqs; __auto_type v_cs_7 = s4->u.C_Eff__W.f_calls; ({ struct E_Coll__List__I64* v_seen_8 = ({ __auto_type s8 = f_Coll__sLookup__Coll__List_1_I64(p_eff__Region, v_cs_7, p_g); s8->tag == 1 ? ({ __auto_type v_xs_8 = s8->u.C_Coll__Some.f_v; v_xs_8; }) : ({ (&N_Coll__Nil__I64); }); }); bool v_leaf_9 = ({ __auto_type s9 = f_Coll__sLookup__Eff__Callee(p_eff__Region, v_fns_2, p_g); s9->tag == 1 ? ({ __auto_type v_k_9 = s9->u.C_Coll__Some.f_v; ({ __auto_type s10 = v_k_9; s10->tag == 1 ? ({ true; }) : ({ false; }); }); }) : ({ true; }); }); __auto_type res_ = (((v_leaf_9 || f_Sym__eq(v_f_0, p_g)) || f_Eff__memberI(v_s_1, v_seen_8)) ? p_w : ({ __auto_type res_ = ({ __auto_type s10 = v_ss_3; ({ __auto_type v_calls_10 = s10->u.C_Eff__Syms.f_calls; ({ __auto_type res_ = ({ struct E_Eff__W* o11 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o11->tag = 0; o11->u.C_Eff__W.f_next = v_n_4; o11->u.C_Eff__W.f_facts = ({ struct E_Coll__List__D__Fact* o11 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o11 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o11->tag = 0; o11->u.C_D__Fact.f_rel = v_calls_10; o11->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o11 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o11 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o11->tag = 0; o11->u.C_D__VSym.f_s = v_f_0; o11; }); o11->u.C_Coll__Cons.f_t = f_Eff__v2(p_eff__Region, ({ struct E_D__Val* o11 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o11->tag = 0; o11->u.C_D__VSym.f_s = p_g; o11; }), ({ struct E_D__Val* o11 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o11->tag = 1; o11->u.C_D__VInt.f_v = v_s_1; o11; })); o11; }); o11; }); o11->u.C_Coll__Cons.f_t = v_fs_5; o11; }); o11->u.C_Eff__W.f_reqs = v_rq_6; o11->u.C_Eff__W.f_calls = f_Coll__sInsert__Coll__List_1_I64(p_eff__Region, v_cs_7, p_g, ({ struct E_Coll__List__I64* o11 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_s_1; o11->u.C_Coll__Cons.f_t = v_seen_8; o11; })); o11; }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sLookup__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Coll__List_1_I64(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64)), p_s); }); }); } +static struct E_Coll__Option__Coll__List_1_I64* f_Coll__sFind__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_I64); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Coll__List_1_I64* o4 = (struct E_Coll__Option__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_I64, u) + sizeof(((struct E_Coll__Option__Coll__List_1_I64*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_I64*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_t, p_k), p_k, p_d); } static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__Option__Eff__Callee* f_Coll__sLookup__Eff__Callee(srs_cap* p_r, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Eff__Callee(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee)), p_s); }); }); } -static struct E_Coll__Option__Eff__Callee* f_Coll__sFind__Eff__Callee(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Eff__Callee); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Eff__Callee* o4 = (struct E_Coll__Option__Eff__Callee*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Eff__Callee, u) + sizeof(((struct E_Coll__Option__Eff__Callee*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Eff__Callee* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Eff__Callee*){0}; })); }); }); }); }); } +static struct E_Coll__Option__Eff__Callee* f_Coll__sLookup__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Eff__Callee(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Eff__Callee)), p_s); }); }); } +static struct E_Coll__Option__Eff__Callee* f_Coll__sFind__Eff__Callee(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Eff__Callee); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Eff__Callee* o4 = (struct E_Coll__Option__Eff__Callee*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Eff__Callee, u) + sizeof(((struct E_Coll__Option__Eff__Callee*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Eff__Callee* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Eff__Callee*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Eff__Callee* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Eff__Callee* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Eff__Callee* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Eff__Callee(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Eff__Callee(p_t, p_k), p_k, p_d); } -static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sInsert__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_n_2) ? ({ struct E_Coll__SMap__Coll__List_1_I64* o3 = (struct E_Coll__SMap__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_t_0, v_h_1, f_Coll__sSet__Coll__List_1_I64(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Coll__List_1_I64* o3 = (struct E_Coll__SMap__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_I64* o3 = (struct E_Coll__SEntry__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__SMap__Coll__List_1_I64* f_Coll__sInsert__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__SMap__Coll__List_1_I64* p_m, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_n_2) ? ({ struct E_Coll__SMap__Coll__List_1_I64* o3 = (struct E_Coll__SMap__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Coll__List_1_I64(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Coll__List_1_I64* o3 = (struct E_Coll__SMap__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SMap__Coll__List_1_I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_I64* o3 = (struct E_Coll__SEntry__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64); o3; })); o3; })); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__sSet__Coll__List_1_I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_I64* o0 = (struct E_Coll__SEntry__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_I64*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_I64* o3 = (struct E_Coll__SEntry__Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Coll__List_1_I64(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* f_Coll__sSet__Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_xs, struct E_Sym__Sym* p_s, struct E_Coll__List__I64* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_I64* o0 = (struct E_Coll__SEntry__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_I64*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Coll__List_1_I64* o3 = (struct E_Coll__SEntry__Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Coll__List_1_I64, u) + sizeof(((struct E_Coll__SEntry__Coll__List_1_I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Coll__List_1_I64(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Coll__List_1_I64* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Coll__List_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } static bool f_Eff__memberI(int64_t p_x, struct E_Coll__List__I64* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ((v_h_0 == p_x) ? true : ({ int64_t t0 = p_x; struct E_Coll__List__I64* t1 = v_t_1; p_x = t0; p_xs = t1; goto srs_tail; (bool){0}; })); }); }); } -static bool f_Eff__isFn(srs_cap* p_r, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__Eff__Callee(p_r, p_m, p_x); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } -static struct E_Eff__W* f_Eff__reqTo(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__Option__Eff__Req* p_q, struct E_Eff__W* p_w) { return ({ __auto_type s0 = p_q; s0->tag == 1 ? ({ __auto_type v_rq_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_rq_0; ({ __auto_type v_p_1 = s1->u.C_Eff__Req.f_p; ({ __auto_type res_ = f_Eff__req(p_r, p_cx, p_at, v_p_1, p_w); res_; }); }); }); res_; }); }) : ({ p_w; }); }); } -static struct E_Eff__At* f_Eff__local(srs_cap* p_r, struct E_Eff__At* p_at, struct E_Coll__List__Sym__Sym* p_xs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_at; ({ __auto_type v_f_0 = s0->u.C_Eff__At.f_f; __auto_type v_s_1 = s0->u.C_Eff__At.f_s; __auto_type v_hd_2 = s0->u.C_Eff__At.f_hd; __auto_type v_ls_3 = s0->u.C_Eff__At.f_ls; ({ __auto_type res_ = ({ struct E_Eff__At* o4 = (struct E_Eff__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__At, u) + sizeof(((struct E_Eff__At*)0)->u.C_Eff__At))); o4->tag = 0; o4->u.C_Eff__At.f_f = v_f_0; o4->u.C_Eff__At.f_s = v_s_1; o4->u.C_Eff__At.f_hd = v_hd_2; o4->u.C_Eff__At.f_ls = f_Coll__revOnto__Sym__Sym(p_r, p_xs, v_ls_3); o4; }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Sym__Sym* f_Coll__revOnto__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_t_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } -static struct E_Eff__W* f_Eff__expr(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Ast__Expr* p_e, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ __auto_type res_ = ({ __auto_type s1 = p_at; ({ __auto_type v_ls_1 = s1->u.C_Eff__At.f_ls; ({ __auto_type res_ = (f_Ty__memberSym(v_x_0, v_ls_1) ? p_w : f_Eff__call(p_r, p_cx, p_at, v_x_0, p_w)); res_; }); }); }); res_; }); }) : s0->tag == 5 ? ({ __auto_type v_g_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; ({ struct E_Eff__W* v_w1_2 = f_Eff__exprs(p_r, p_cx, p_at, v_xs_1, p_w); __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_ps_3 = s3->u.C_Eff__Cx.f_ps; __auto_type v_fns_4 = s3->u.C_Eff__Cx.f_fns; __auto_type v_ctors_5 = s3->u.C_Eff__Cx.f_ctors; __auto_type v_ss_6 = s3->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s7 = v_ss_6; ({ __auto_type v_region_7 = s7->u.C_Eff__Syms.f_region; ({ __auto_type res_ = (f_Eff__isFn(p_r, v_fns_4, v_g_0) ? f_Eff__call(p_r, p_cx, p_at, v_g_0, v_w1_2) : (f_Eff__isIn(p_r, v_ctors_5, v_g_0) ? f_Eff__req(p_r, p_cx, p_at, v_region_7, v_w1_2) : f_Eff__reqTo(p_r, p_cx, p_at, f_Eff__reqOf(p_r, v_ps_3, v_g_0), v_w1_2))); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Eff__exprs(p_r, p_cx, p_at, v_xs_0, p_w); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_1; struct E_Eff__W* t4 = f_Eff__expr(p_r, p_cx, p_at, v_l_0, p_w); p_r = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_0; struct E_Eff__W* t4 = p_w; p_r = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_2; struct E_Eff__W* t4 = f_Eff__expr(p_r, p_cx, p_at, v_t_1, f_Eff__expr(p_r, p_cx, p_at, v_c_0, p_w)); p_r = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Eff__arms(p_r, p_cx, p_at, v_arms_1, f_Eff__expr(p_r, p_cx, p_at, v_s_0, p_w)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Eff__stmts(p_r, p_cx, p_at, v_ss_0, v_last_1, p_w); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_b_1; struct E_Eff__W* t4 = f_Eff__expr(p_r, p_cx, p_at, v_c_0, p_w); p_r = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_0; struct E_Eff__W* t4 = p_w; p_r = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Quant.f_x; __auto_type v_b_1 = s0->u.C_Ast__Quant.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = f_Eff__local(p_r, p_at, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o2; })); struct E_Ast__Expr* t3 = v_b_1; struct E_Eff__W* t4 = p_w; p_r = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : ({ p_w; }); }); } -static struct E_Eff__W* f_Eff__exprs(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Expr* p_xs, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Expr* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__expr(p_r, p_cx, p_at, v_x_0, p_w); p_r = t0; p_cx = t1; p_at = t2; p_xs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); } -static struct E_Eff__W* f_Eff__arms(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Arm* p_as, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ struct E_Eff__At* v_at2_4 = ({ __auto_type s4 = v_p_2; s4->tag == 0 ? ({ __auto_type v_xs_4 = s4->u.C_Ast__PCase.f_binds; f_Eff__local(p_r, p_at, v_xs_4); }) : ({ p_at; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Arm* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__expr(p_r, p_cx, v_at2_4, v_b_3, p_w); p_r = t0; p_cx = t1; p_at = t2; p_as = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Eff__W* f_Eff__stmts(srs_cap* p_r, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ f_Eff__expr(p_r, p_cx, p_at, p_last, p_w); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = f_Eff__local(p_r, p_at, ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_2; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o4; })); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_r, p_cx, p_at, v_e_3, p_w); p_r = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Var.f_x; __auto_type v_e_3 = s2->u.C_Ast__Var.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = f_Eff__local(p_r, p_at, ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_2; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o4; })); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_r, p_cx, p_at, v_e_3, p_w); p_r = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Handle.f_x; __auto_type v_h_3 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_4 = s2->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s5 = f_Eff__call(p_r, p_cx, p_at, v_h_3, f_Eff__exprs(p_r, p_cx, p_at, v_xs_4, p_w)); ({ __auto_type v_n_5 = s5->u.C_Eff__W.f_next; __auto_type v_fs_6 = s5->u.C_Eff__W.f_facts; __auto_type v_rq_7 = s5->u.C_Eff__W.f_reqs; __auto_type v_cs_8 = s5->u.C_Eff__W.f_calls; ({ __auto_type res_ = ({ __auto_type s9 = p_cx; ({ __auto_type v_hp_9 = s9->u.C_Eff__Cx.f_hp; __auto_type v_ss_10 = s9->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s11 = v_ss_10; ({ __auto_type v_hdRel_11 = s11->u.C_Eff__Syms.f_hd; ({ __auto_type res_ = ({ __auto_type s12 = p_at; ({ __auto_type v_f_12 = s12->u.C_Eff__At.f_f; __auto_type v_hd_13 = s12->u.C_Eff__At.f_hd; __auto_type v_ls_14 = s12->u.C_Eff__At.f_ls; ({ struct E_Coll__List__Sym__Sym* v_hd2_15 = ({ __auto_type s15 = f_Coll__sLookup__Sym__Sym(p_r, v_hp_9, v_h_3); s15->tag == 1 ? ({ __auto_type v_p_15 = s15->u.C_Coll__Some.f_v; ({ struct E_Coll__List__Sym__Sym* o16 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = v_p_15; o16->u.C_Coll__Cons.f_t = v_hd_13; o16; }); }) : ({ v_hd_13; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = ({ struct E_Eff__At* o16 = (struct E_Eff__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__At, u) + sizeof(((struct E_Eff__At*)0)->u.C_Eff__At))); o16->tag = 0; o16->u.C_Eff__At.f_f = v_f_12; o16->u.C_Eff__At.f_s = v_n_5; o16->u.C_Eff__At.f_hd = v_hd2_15; o16->u.C_Eff__At.f_ls = ({ struct E_Coll__List__Sym__Sym* o16 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = v_x_2; o16->u.C_Coll__Cons.f_t = v_ls_14; o16; }); o16; }); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__hds(p_r, v_hdRel_11, v_n_5, v_hd2_15, ({ struct E_Eff__W* o16 = (struct E_Eff__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o16->tag = 0; o16->u.C_Eff__W.f_next = (v_n_5 + ((int64_t)1)); o16->u.C_Eff__W.f_facts = v_fs_6; o16->u.C_Eff__W.f_reqs = v_rq_7; o16->u.C_Eff__W.f_calls = v_cs_8; o16; })); p_r = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_r, p_cx, p_at, v_e_2, p_w); p_r = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; ({ srs_cap* t0 = p_r; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_r, p_cx, p_at, v_e_2, p_w); p_r = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); }); }); } -static struct E_Eff__W* f_Eff__hds(srs_cap* p_r, struct E_Sym__Sym* p_rel, int64_t p_s, struct E_Coll__List__Sym__Sym* p_ps, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_rel; int64_t t2 = p_s; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__add(p_r, p_w, p_rel, f_Eff__v2(p_r, ({ struct E_D__Val* o2 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o2->tag = 1; o2->u.C_D__VInt.f_v = p_s; o2; }), ({ struct E_D__Val* o2 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o2->tag = 0; o2->u.C_D__VSym.f_s = v_p_0; o2; }))); p_r = t0; p_rel = t1; p_s = t2; p_ps = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); } -static struct E_Emit__Cx* f_Emit__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__El__Fn* p_fs) { return ({ __auto_type res_ = f_Emit__cxDecls(p_r, p_ds, ({ struct E_Emit__Cx* o0 = (struct E_Emit__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o0->tag = 0; o0->u.C_Emit__Cx.f_s = p_s; o0->u.C_Emit__Cx.f_fns = f_Emit__fnMap(p_r, p_fs, f_Coll__sEmpty__El__Fn(p_r)); o0->u.C_Emit__Cx.f_cases = f_Coll__sEmpty__Emit__CaseAt(p_r); o0->u.C_Emit__Cx.f_enums = f_Coll__sEmpty__Ast__Enum(p_r); o0->u.C_Emit__Cx.f_protos = f_Coll__sEmpty__Ast__Proto(p_r); o0->u.C_Emit__Cx.f_hprotos = f_Coll__sEmpty__Sym__Sym(p_r); o0->u.C_Emit__Cx.f_alloc = (&N_Emit__VTable); o0->u.C_Emit__Cx.f_nominal = f_Coll__sEmpty__K__Term(p_r); o0; })); res_; }); } -static struct E_Coll__SMap__El__Fn* f_Coll__sEmpty__El__Fn(srs_cap* p_r) { return ({ struct E_Coll__SMap__El__Fn* o0 = (struct E_Coll__SMap__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__El__Fn, u) + sizeof(((struct E_Coll__SMap__El__Fn*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); } -static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sEmpty__Emit__CaseAt(srs_cap* p_r) { return ({ struct E_Coll__SMap__Emit__CaseAt* o0 = (struct E_Coll__SMap__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Emit__CaseAt, u) + sizeof(((struct E_Coll__SMap__Emit__CaseAt*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); } -static struct E_Coll__SMap__Ast__Enum* f_Coll__sEmpty__Ast__Enum(srs_cap* p_r) { return ({ struct E_Coll__SMap__Ast__Enum* o0 = (struct E_Coll__SMap__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Enum, u) + sizeof(((struct E_Coll__SMap__Ast__Enum*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); } -static struct E_Coll__SMap__Ast__Proto* f_Coll__sEmpty__Ast__Proto(srs_cap* p_r) { return ({ struct E_Coll__SMap__Ast__Proto* o0 = (struct E_Coll__SMap__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Proto, u) + sizeof(((struct E_Coll__SMap__Ast__Proto*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); } -static struct E_Coll__SMap__K__Term* f_Coll__sEmpty__K__Term(srs_cap* p_r) { return ({ struct E_Coll__SMap__K__Term* o0 = (struct E_Coll__SMap__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__K__Term, u) + sizeof(((struct E_Coll__SMap__K__Term*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); } -static struct E_Coll__SMap__El__Fn* f_Emit__fnMap(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_n_2 = s2->u.C_El__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__SMap__El__Fn* t2 = f_Coll__sInsert__El__Fn(p_r, p_m, v_n_2, v_f_0); p_r = t0; p_fs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__El__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__El__Fn* f_Coll__sInsert__El__Fn(srs_cap* p_r, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_El__Fn(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_El__Fn(v_n_2) ? ({ struct E_Coll__SMap__El__Fn* o3 = (struct E_Coll__SMap__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__El__Fn, u) + sizeof(((struct E_Coll__SMap__El__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_t_0, v_h_1, f_Coll__sSet__El__Fn(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_El__Fn(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_El__Fn)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__El__Fn* o3 = (struct E_Coll__SMap__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__El__Fn, u) + sizeof(((struct E_Coll__SMap__El__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__El__Fn* o3 = (struct E_Coll__SEntry__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__El__Fn, u) + sizeof(((struct E_Coll__SEntry__El__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_El__Fn); o3; })); o3; })); res_; }); }); }); } +static bool f_Eff__isFn(srs_cap* p_eff__Region, struct E_Coll__SMap__Eff__Callee* p_m, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__Eff__Callee(p_eff__Region, p_m, p_x); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } +static struct E_Eff__W* f_Eff__reqTo(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__Option__Eff__Req* p_q, struct E_Eff__W* p_w) { return ({ __auto_type s0 = p_q; s0->tag == 1 ? ({ __auto_type v_rq_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_rq_0; ({ __auto_type v_p_1 = s1->u.C_Eff__Req.f_p; ({ __auto_type res_ = f_Eff__req(p_eff__Region, p_cx, p_at, v_p_1, p_w); res_; }); }); }); res_; }); }) : ({ p_w; }); }); } +static struct E_Eff__At* f_Eff__local(srs_cap* p_eff__Region, struct E_Eff__At* p_at, struct E_Coll__List__Sym__Sym* p_xs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_at; ({ __auto_type v_f_0 = s0->u.C_Eff__At.f_f; __auto_type v_s_1 = s0->u.C_Eff__At.f_s; __auto_type v_hd_2 = s0->u.C_Eff__At.f_hd; __auto_type v_ls_3 = s0->u.C_Eff__At.f_ls; ({ __auto_type res_ = ({ struct E_Eff__At* o4 = (struct E_Eff__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__At, u) + sizeof(((struct E_Eff__At*)0)->u.C_Eff__At))); o4->tag = 0; o4->u.C_Eff__At.f_f = v_f_0; o4->u.C_Eff__At.f_s = v_s_1; o4->u.C_Eff__At.f_hd = v_hd_2; o4->u.C_Eff__At.f_ls = f_Coll__revOnto__Sym__Sym(p_eff__Region, p_xs, v_ls_3); o4; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Sym__Sym* f_Coll__revOnto__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_t_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } +static struct E_Eff__W* f_Eff__expr(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Ast__Expr* p_e, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ __auto_type res_ = ({ __auto_type s1 = p_at; ({ __auto_type v_ls_1 = s1->u.C_Eff__At.f_ls; ({ __auto_type res_ = (f_Ty__memberSym(v_x_0, v_ls_1) ? p_w : f_Eff__call(p_eff__Region, p_cx, p_at, v_x_0, p_w)); res_; }); }); }); res_; }); }) : s0->tag == 5 ? ({ __auto_type v_g_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; ({ struct E_Eff__W* v_w1_2 = f_Eff__exprs(p_eff__Region, p_cx, p_at, v_xs_1, p_w); __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_ps_3 = s3->u.C_Eff__Cx.f_ps; __auto_type v_fns_4 = s3->u.C_Eff__Cx.f_fns; __auto_type v_ctors_5 = s3->u.C_Eff__Cx.f_ctors; __auto_type v_ss_6 = s3->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s7 = v_ss_6; ({ __auto_type v_region_7 = s7->u.C_Eff__Syms.f_region; ({ __auto_type res_ = (f_Eff__isFn(p_eff__Region, v_fns_4, v_g_0) ? f_Eff__call(p_eff__Region, p_cx, p_at, v_g_0, v_w1_2) : (f_Eff__isIn(p_eff__Region, v_ctors_5, v_g_0) ? f_Eff__req(p_eff__Region, p_cx, p_at, v_region_7, v_w1_2) : f_Eff__reqTo(p_eff__Region, p_cx, p_at, f_Eff__reqOf(p_eff__Region, v_ps_3, v_g_0), v_w1_2))); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Eff__exprs(p_eff__Region, p_cx, p_at, v_xs_0, p_w); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_1; struct E_Eff__W* t4 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_l_0, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_0; struct E_Eff__W* t4 = p_w; p_eff__Region = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_2; struct E_Eff__W* t4 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_t_1, f_Eff__expr(p_eff__Region, p_cx, p_at, v_c_0, p_w)); p_eff__Region = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Eff__arms(p_eff__Region, p_cx, p_at, v_arms_1, f_Eff__expr(p_eff__Region, p_cx, p_at, v_s_0, p_w)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Eff__stmts(p_eff__Region, p_cx, p_at, v_ss_0, v_last_1, p_w); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_b_1; struct E_Eff__W* t4 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_c_0, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Ast__Expr* t3 = v_x_0; struct E_Eff__W* t4 = p_w; p_eff__Region = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Quant.f_x; __auto_type v_b_1 = s0->u.C_Ast__Quant.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = f_Eff__local(p_eff__Region, p_at, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o2; })); struct E_Ast__Expr* t3 = v_b_1; struct E_Eff__W* t4 = p_w; p_eff__Region = t0; p_cx = t1; p_at = t2; p_e = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }) : ({ p_w; }); }); } +static struct E_Eff__W* f_Eff__exprs(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Expr* p_xs, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Expr* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_x_0, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_xs = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); } +static struct E_Eff__W* f_Eff__arms(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Arm* p_as, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ struct E_Eff__At* v_at2_4 = ({ __auto_type s4 = v_p_2; s4->tag == 0 ? ({ __auto_type v_xs_4 = s4->u.C_Ast__PCase.f_binds; f_Eff__local(p_eff__Region, p_at, v_xs_4); }) : ({ p_at; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Arm* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__expr(p_eff__Region, p_cx, v_at2_4, v_b_3, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_as = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Eff__W* f_Eff__stmts(srs_cap* p_eff__Region, struct E_Eff__Cx* p_cx, struct E_Eff__At* p_at, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ f_Eff__expr(p_eff__Region, p_cx, p_at, p_last, p_w); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = f_Eff__local(p_eff__Region, p_at, ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_2; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o4; })); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_e_3, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Var.f_x; __auto_type v_e_3 = s2->u.C_Ast__Var.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = f_Eff__local(p_eff__Region, p_at, ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_2; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o4; })); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_e_3, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Handle.f_x; __auto_type v_h_3 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_4 = s2->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s5 = f_Eff__call(p_eff__Region, p_cx, p_at, v_h_3, f_Eff__exprs(p_eff__Region, p_cx, p_at, v_xs_4, p_w)); ({ __auto_type v_n_5 = s5->u.C_Eff__W.f_next; __auto_type v_fs_6 = s5->u.C_Eff__W.f_facts; __auto_type v_rq_7 = s5->u.C_Eff__W.f_reqs; __auto_type v_cs_8 = s5->u.C_Eff__W.f_calls; ({ __auto_type res_ = ({ __auto_type s9 = p_cx; ({ __auto_type v_hp_9 = s9->u.C_Eff__Cx.f_hp; __auto_type v_ss_10 = s9->u.C_Eff__Cx.f_ss; ({ __auto_type res_ = ({ __auto_type s11 = v_ss_10; ({ __auto_type v_hdRel_11 = s11->u.C_Eff__Syms.f_hd; ({ __auto_type res_ = ({ __auto_type s12 = p_at; ({ __auto_type v_f_12 = s12->u.C_Eff__At.f_f; __auto_type v_hd_13 = s12->u.C_Eff__At.f_hd; __auto_type v_ls_14 = s12->u.C_Eff__At.f_ls; ({ struct E_Coll__List__Sym__Sym* v_hd2_15 = ({ __auto_type s15 = f_Coll__sLookup__Sym__Sym(p_eff__Region, v_hp_9, v_h_3); s15->tag == 1 ? ({ __auto_type v_p_15 = s15->u.C_Coll__Some.f_v; ({ struct E_Coll__List__Sym__Sym* o16 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = v_p_15; o16->u.C_Coll__Cons.f_t = v_hd_13; o16; }); }) : ({ v_hd_13; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = ({ struct E_Eff__At* o16 = (struct E_Eff__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__At, u) + sizeof(((struct E_Eff__At*)0)->u.C_Eff__At))); o16->tag = 0; o16->u.C_Eff__At.f_f = v_f_12; o16->u.C_Eff__At.f_s = v_n_5; o16->u.C_Eff__At.f_hd = v_hd2_15; o16->u.C_Eff__At.f_ls = ({ struct E_Coll__List__Sym__Sym* o16 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = v_x_2; o16->u.C_Coll__Cons.f_t = v_ls_14; o16; }); o16; }); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__hds(p_eff__Region, v_hdRel_11, v_n_5, v_hd2_15, ({ struct E_Eff__W* o16 = (struct E_Eff__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__W, u) + sizeof(((struct E_Eff__W*)0)->u.C_Eff__W))); o16->tag = 0; o16->u.C_Eff__W.f_next = (v_n_5 + ((int64_t)1)); o16->u.C_Eff__W.f_facts = v_fs_6; o16->u.C_Eff__W.f_reqs = v_rq_7; o16->u.C_Eff__W.f_calls = v_cs_8; o16; })); p_eff__Region = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_e_2, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Eff__Cx* t1 = p_cx; struct E_Eff__At* t2 = p_at; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; struct E_Eff__W* t5 = f_Eff__expr(p_eff__Region, p_cx, p_at, v_e_2, p_w); p_eff__Region = t0; p_cx = t1; p_at = t2; p_ss = t3; p_last = t4; p_w = t5; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); }); }); } +static struct E_Eff__W* f_Eff__hds(srs_cap* p_eff__Region, struct E_Sym__Sym* p_rel, int64_t p_s, struct E_Coll__List__Sym__Sym* p_ps, struct E_Eff__W* p_w) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_rel; int64_t t2 = p_s; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Eff__W* t4 = f_Eff__add(p_eff__Region, p_w, p_rel, f_Eff__v2(p_eff__Region, ({ struct E_D__Val* o2 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o2->tag = 1; o2->u.C_D__VInt.f_v = p_s; o2; }), ({ struct E_D__Val* o2 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o2->tag = 0; o2->u.C_D__VSym.f_s = v_p_0; o2; }))); p_eff__Region = t0; p_rel = t1; p_s = t2; p_ps = t3; p_w = t4; goto srs_tail; (struct E_Eff__W*){0}; }); }); }); } +static struct E_Emit__Cx* f_Emit__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__El__Fn* p_fs) { return ({ __auto_type res_ = f_Emit__cxDecls(p_eff__Region, p_ds, ({ struct E_Emit__Cx* o0 = (struct E_Emit__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o0->tag = 0; o0->u.C_Emit__Cx.f_s = p_s; o0->u.C_Emit__Cx.f_fns = f_Emit__fnMap(p_eff__Region, p_fs, f_Coll__sEmpty__El__Fn(p_eff__Region)); o0->u.C_Emit__Cx.f_cases = f_Coll__sEmpty__Emit__CaseAt(p_eff__Region); o0->u.C_Emit__Cx.f_enums = f_Coll__sEmpty__Ast__Enum(p_eff__Region); o0->u.C_Emit__Cx.f_protos = f_Coll__sEmpty__Ast__Proto(p_eff__Region); o0->u.C_Emit__Cx.f_hprotos = f_Coll__sEmpty__Sym__Sym(p_eff__Region); o0->u.C_Emit__Cx.f_alloc = (&N_Emit__VTable); o0->u.C_Emit__Cx.f_nominal = f_Coll__sEmpty__K__Term(p_eff__Region); o0; })); res_; }); } +static struct E_Coll__SMap__El__Fn* f_Coll__sEmpty__El__Fn(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__El__Fn* o0 = (struct E_Coll__SMap__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__El__Fn, u) + sizeof(((struct E_Coll__SMap__El__Fn*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); } +static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sEmpty__Emit__CaseAt(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Emit__CaseAt* o0 = (struct E_Coll__SMap__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Emit__CaseAt, u) + sizeof(((struct E_Coll__SMap__Emit__CaseAt*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); } +static struct E_Coll__SMap__Ast__Enum* f_Coll__sEmpty__Ast__Enum(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Ast__Enum* o0 = (struct E_Coll__SMap__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Enum, u) + sizeof(((struct E_Coll__SMap__Ast__Enum*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); } +static struct E_Coll__SMap__Ast__Proto* f_Coll__sEmpty__Ast__Proto(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Ast__Proto* o0 = (struct E_Coll__SMap__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Proto, u) + sizeof(((struct E_Coll__SMap__Ast__Proto*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); } +static struct E_Coll__SMap__K__Term* f_Coll__sEmpty__K__Term(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__K__Term* o0 = (struct E_Coll__SMap__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__K__Term, u) + sizeof(((struct E_Coll__SMap__K__Term*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); } +static struct E_Coll__SMap__El__Fn* f_Emit__fnMap(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_n_2 = s2->u.C_El__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__SMap__El__Fn* t2 = f_Coll__sInsert__El__Fn(p_eff__Region, p_m, v_n_2, v_f_0); p_eff__Region = t0; p_fs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__El__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__El__Fn* f_Coll__sInsert__El__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_El__Fn(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_El__Fn(v_n_2) ? ({ struct E_Coll__SMap__El__Fn* o3 = (struct E_Coll__SMap__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__El__Fn, u) + sizeof(((struct E_Coll__SMap__El__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__El__Fn(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_El__Fn(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_El__Fn)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__El__Fn* o3 = (struct E_Coll__SMap__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__El__Fn, u) + sizeof(((struct E_Coll__SMap__El__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__El__Fn* o3 = (struct E_Coll__SEntry__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__El__Fn, u) + sizeof(((struct E_Coll__SEntry__El__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_El__Fn); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__sSet__El__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__El__Fn* o0 = (struct E_Coll__SEntry__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__El__Fn, u) + sizeof(((struct E_Coll__SEntry__El__Fn*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_El__Fn); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__El__Fn* o3 = (struct E_Coll__SEntry__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__El__Fn, u) + sizeof(((struct E_Coll__SEntry__El__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__El__Fn(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__sSet__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_El__Fn* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__El__Fn* o0 = (struct E_Coll__SEntry__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__El__Fn, u) + sizeof(((struct E_Coll__SEntry__El__Fn*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_El__Fn); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__El__Fn* o3 = (struct E_Coll__SEntry__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__El__Fn, u) + sizeof(((struct E_Coll__SEntry__El__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_El__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__El__Fn(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Emit__Cx* f_Emit__cxDecls(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Emit__Cx* p_cx) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_cx; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_s_2 = s2->u.C_Emit__Cx.f_s; __auto_type v_fns_3 = s2->u.C_Emit__Cx.f_fns; __auto_type v_cs_4 = s2->u.C_Emit__Cx.f_cases; __auto_type v_es_5 = s2->u.C_Emit__Cx.f_enums; __auto_type v_ps_6 = s2->u.C_Emit__Cx.f_protos; __auto_type v_hp_7 = s2->u.C_Emit__Cx.f_hprotos; __auto_type v_al_8 = s2->u.C_Emit__Cx.f_alloc; __auto_type v_nm_9 = s2->u.C_Emit__Cx.f_nominal; ({ __auto_type res_ = ({ __auto_type s10 = v_d_0; s10->tag == 1 ? ({ __auto_type v_e_10 = s10->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s11 = v_e_10; ({ __auto_type v_n_11 = s11->u.C_Ast__Enum.f_name; __auto_type v_cases_12 = s11->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o13 = (struct E_Emit__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o13->tag = 0; o13->u.C_Emit__Cx.f_s = v_s_2; o13->u.C_Emit__Cx.f_fns = v_fns_3; o13->u.C_Emit__Cx.f_cases = f_Emit__caseMap(p_r, v_cases_12, v_e_10, ((int64_t)0), v_cs_4); o13->u.C_Emit__Cx.f_enums = f_Coll__sInsert__Ast__Enum(p_r, v_es_5, v_n_11, v_e_10); o13->u.C_Emit__Cx.f_protos = v_ps_6; o13->u.C_Emit__Cx.f_hprotos = v_hp_7; o13->u.C_Emit__Cx.f_alloc = v_al_8; o13->u.C_Emit__Cx.f_nominal = v_nm_9; o13; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); res_; }); }); }); res_; }); }) : s10->tag == 2 ? ({ __auto_type v_p_10 = s10->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s11 = v_p_10; ({ __auto_type v_n_11 = s11->u.C_Ast__Proto.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o12 = (struct E_Emit__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o12->tag = 0; o12->u.C_Emit__Cx.f_s = v_s_2; o12->u.C_Emit__Cx.f_fns = v_fns_3; o12->u.C_Emit__Cx.f_cases = v_cs_4; o12->u.C_Emit__Cx.f_enums = v_es_5; o12->u.C_Emit__Cx.f_protos = f_Coll__sInsert__Ast__Proto(p_r, v_ps_6, v_n_11, v_p_10); o12->u.C_Emit__Cx.f_hprotos = v_hp_7; o12->u.C_Emit__Cx.f_alloc = v_al_8; o12->u.C_Emit__Cx.f_nominal = v_nm_9; o12; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); res_; }); }); }); res_; }); }) : s10->tag == 3 ? ({ __auto_type v_h_10 = s10->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s11 = v_h_10; ({ __auto_type v_n_11 = s11->u.C_Ast__Handler.f_name; __auto_type v_p_12 = s11->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o13 = (struct E_Emit__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o13->tag = 0; o13->u.C_Emit__Cx.f_s = v_s_2; o13->u.C_Emit__Cx.f_fns = v_fns_3; o13->u.C_Emit__Cx.f_cases = v_cs_4; o13->u.C_Emit__Cx.f_enums = v_es_5; o13->u.C_Emit__Cx.f_protos = v_ps_6; o13->u.C_Emit__Cx.f_hprotos = f_Coll__sInsert__Sym__Sym(p_r, v_hp_7, v_n_11, v_p_12); o13->u.C_Emit__Cx.f_alloc = (Str__eq(f_Sym__str(v_n_11), ((srs_str){(const uint8_t*)"Srs.Arena", 9})) ? (&N_Emit__Inline) : v_al_8); o13->u.C_Emit__Cx.f_nominal = v_nm_9; o13; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); res_; }); }); }); res_; }); }) : s10->tag == 6 ? ({ __auto_type v_td_10 = s10->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s11 = v_td_10; ({ __auto_type v_n_11 = s11->u.C_Ast__TypeDecl.f_name; __auto_type v_body_12 = s11->u.C_Ast__TypeDecl.f_body; ({ __auto_type res_ = ({ __auto_type s13 = v_body_12; s13->tag == 0 ? ({ __auto_type v_t_13 = s13->u.C_Ast__Alias.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o14 = (struct E_Emit__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o14->tag = 0; o14->u.C_Emit__Cx.f_s = v_s_2; o14->u.C_Emit__Cx.f_fns = v_fns_3; o14->u.C_Emit__Cx.f_cases = v_cs_4; o14->u.C_Emit__Cx.f_enums = v_es_5; o14->u.C_Emit__Cx.f_protos = v_ps_6; o14->u.C_Emit__Cx.f_hprotos = v_hp_7; o14->u.C_Emit__Cx.f_alloc = v_al_8; o14->u.C_Emit__Cx.f_nominal = f_Coll__sInsert__K__Term(p_r, v_nm_9, v_n_11, f_Ty__term(p_r, v_t_13, (&N_Coll__Nil__Ty__Bind))); o14; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = p_cx; p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = p_cx; p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Ast__Enum* f_Coll__sInsert__Ast__Enum(srs_cap* p_r, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_n_2) ? ({ struct E_Coll__SMap__Ast__Enum* o3 = (struct E_Coll__SMap__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Enum, u) + sizeof(((struct E_Coll__SMap__Ast__Enum*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_t_0, v_h_1, f_Coll__sSet__Ast__Enum(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__Enum* o3 = (struct E_Coll__SMap__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Enum, u) + sizeof(((struct E_Coll__SMap__Ast__Enum*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Enum* o3 = (struct E_Coll__SEntry__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Enum, u) + sizeof(((struct E_Coll__SEntry__Ast__Enum*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_El__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_El__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_El__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_El__Fn(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Emit__Cx* f_Emit__cxDecls(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Emit__Cx* p_cx) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_cx; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_s_2 = s2->u.C_Emit__Cx.f_s; __auto_type v_fns_3 = s2->u.C_Emit__Cx.f_fns; __auto_type v_cs_4 = s2->u.C_Emit__Cx.f_cases; __auto_type v_es_5 = s2->u.C_Emit__Cx.f_enums; __auto_type v_ps_6 = s2->u.C_Emit__Cx.f_protos; __auto_type v_hp_7 = s2->u.C_Emit__Cx.f_hprotos; __auto_type v_al_8 = s2->u.C_Emit__Cx.f_alloc; __auto_type v_nm_9 = s2->u.C_Emit__Cx.f_nominal; ({ __auto_type res_ = ({ __auto_type s10 = v_d_0; s10->tag == 1 ? ({ __auto_type v_e_10 = s10->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s11 = v_e_10; ({ __auto_type v_n_11 = s11->u.C_Ast__Enum.f_name; __auto_type v_cases_12 = s11->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o13 = (struct E_Emit__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o13->tag = 0; o13->u.C_Emit__Cx.f_s = v_s_2; o13->u.C_Emit__Cx.f_fns = v_fns_3; o13->u.C_Emit__Cx.f_cases = f_Emit__caseMap(p_eff__Region, v_cases_12, v_e_10, ((int64_t)0), v_cs_4); o13->u.C_Emit__Cx.f_enums = f_Coll__sInsert__Ast__Enum(p_eff__Region, v_es_5, v_n_11, v_e_10); o13->u.C_Emit__Cx.f_protos = v_ps_6; o13->u.C_Emit__Cx.f_hprotos = v_hp_7; o13->u.C_Emit__Cx.f_alloc = v_al_8; o13->u.C_Emit__Cx.f_nominal = v_nm_9; o13; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); res_; }); }); }); res_; }); }) : s10->tag == 2 ? ({ __auto_type v_p_10 = s10->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s11 = v_p_10; ({ __auto_type v_n_11 = s11->u.C_Ast__Proto.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o12 = (struct E_Emit__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o12->tag = 0; o12->u.C_Emit__Cx.f_s = v_s_2; o12->u.C_Emit__Cx.f_fns = v_fns_3; o12->u.C_Emit__Cx.f_cases = v_cs_4; o12->u.C_Emit__Cx.f_enums = v_es_5; o12->u.C_Emit__Cx.f_protos = f_Coll__sInsert__Ast__Proto(p_eff__Region, v_ps_6, v_n_11, v_p_10); o12->u.C_Emit__Cx.f_hprotos = v_hp_7; o12->u.C_Emit__Cx.f_alloc = v_al_8; o12->u.C_Emit__Cx.f_nominal = v_nm_9; o12; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); res_; }); }); }); res_; }); }) : s10->tag == 3 ? ({ __auto_type v_h_10 = s10->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s11 = v_h_10; ({ __auto_type v_n_11 = s11->u.C_Ast__Handler.f_name; __auto_type v_p_12 = s11->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o13 = (struct E_Emit__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o13->tag = 0; o13->u.C_Emit__Cx.f_s = v_s_2; o13->u.C_Emit__Cx.f_fns = v_fns_3; o13->u.C_Emit__Cx.f_cases = v_cs_4; o13->u.C_Emit__Cx.f_enums = v_es_5; o13->u.C_Emit__Cx.f_protos = v_ps_6; o13->u.C_Emit__Cx.f_hprotos = f_Coll__sInsert__Sym__Sym(p_eff__Region, v_hp_7, v_n_11, v_p_12); o13->u.C_Emit__Cx.f_alloc = (Str__eq(f_Sym__str(v_n_11), ((srs_str){(const uint8_t*)"Srs.Arena", 9})) ? (&N_Emit__Inline) : v_al_8); o13->u.C_Emit__Cx.f_nominal = v_nm_9; o13; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); res_; }); }); }); res_; }); }) : s10->tag == 6 ? ({ __auto_type v_td_10 = s10->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s11 = v_td_10; ({ __auto_type v_n_11 = s11->u.C_Ast__TypeDecl.f_name; __auto_type v_body_12 = s11->u.C_Ast__TypeDecl.f_body; ({ __auto_type res_ = ({ __auto_type s13 = v_body_12; s13->tag == 0 ? ({ __auto_type v_t_13 = s13->u.C_Ast__Alias.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = ({ struct E_Emit__Cx* o14 = (struct E_Emit__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Cx, u) + sizeof(((struct E_Emit__Cx*)0)->u.C_Emit__Cx))); o14->tag = 0; o14->u.C_Emit__Cx.f_s = v_s_2; o14->u.C_Emit__Cx.f_fns = v_fns_3; o14->u.C_Emit__Cx.f_cases = v_cs_4; o14->u.C_Emit__Cx.f_enums = v_es_5; o14->u.C_Emit__Cx.f_protos = v_ps_6; o14->u.C_Emit__Cx.f_hprotos = v_hp_7; o14->u.C_Emit__Cx.f_alloc = v_al_8; o14->u.C_Emit__Cx.f_nominal = f_Coll__sInsert__K__Term(p_eff__Region, v_nm_9, v_n_11, f_Ty__term(p_eff__Region, v_t_13, (&N_Coll__Nil__Ty__Bind))); o14; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = p_cx; p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Emit__Cx* t2 = p_cx; p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Emit__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Ast__Enum* f_Coll__sInsert__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_n_2) ? ({ struct E_Coll__SMap__Ast__Enum* o3 = (struct E_Coll__SMap__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Enum, u) + sizeof(((struct E_Coll__SMap__Ast__Enum*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Ast__Enum(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__Enum* o3 = (struct E_Coll__SMap__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Enum, u) + sizeof(((struct E_Coll__SMap__Ast__Enum*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Enum* o3 = (struct E_Coll__SEntry__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Enum, u) + sizeof(((struct E_Coll__SEntry__Ast__Enum*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__sSet__Ast__Enum(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Enum* o0 = (struct E_Coll__SEntry__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Enum, u) + sizeof(((struct E_Coll__SEntry__Ast__Enum*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Enum* o3 = (struct E_Coll__SEntry__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Enum, u) + sizeof(((struct E_Coll__SEntry__Ast__Enum*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__Enum(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__sSet__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Enum* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Enum* o0 = (struct E_Coll__SEntry__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Enum, u) + sizeof(((struct E_Coll__SEntry__Ast__Enum*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Enum* o3 = (struct E_Coll__SEntry__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Enum, u) + sizeof(((struct E_Coll__SEntry__Ast__Enum*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__Enum* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__Enum(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__Ast__Proto* f_Coll__sInsert__Ast__Proto(srs_cap* p_r, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_n_2) ? ({ struct E_Coll__SMap__Ast__Proto* o3 = (struct E_Coll__SMap__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Proto, u) + sizeof(((struct E_Coll__SMap__Ast__Proto*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_t_0, v_h_1, f_Coll__sSet__Ast__Proto(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__Proto* o3 = (struct E_Coll__SMap__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Proto, u) + sizeof(((struct E_Coll__SMap__Ast__Proto*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Proto* o3 = (struct E_Coll__SEntry__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Proto, u) + sizeof(((struct E_Coll__SEntry__Ast__Proto*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Enum); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__Ast__Proto* f_Coll__sInsert__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_n_2) ? ({ struct E_Coll__SMap__Ast__Proto* o3 = (struct E_Coll__SMap__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Proto, u) + sizeof(((struct E_Coll__SMap__Ast__Proto*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Ast__Proto(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__Proto* o3 = (struct E_Coll__SMap__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Proto, u) + sizeof(((struct E_Coll__SMap__Ast__Proto*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Proto* o3 = (struct E_Coll__SEntry__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Proto, u) + sizeof(((struct E_Coll__SEntry__Ast__Proto*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__sSet__Ast__Proto(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Proto* o0 = (struct E_Coll__SEntry__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Proto, u) + sizeof(((struct E_Coll__SEntry__Ast__Proto*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Proto* o3 = (struct E_Coll__SEntry__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Proto, u) + sizeof(((struct E_Coll__SEntry__Ast__Proto*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__Proto(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__sSet__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Proto* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Proto* o0 = (struct E_Coll__SEntry__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Proto, u) + sizeof(((struct E_Coll__SEntry__Ast__Proto*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Proto* o3 = (struct E_Coll__SEntry__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Proto, u) + sizeof(((struct E_Coll__SEntry__Ast__Proto*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__Proto* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__Proto(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__K__Term* f_Coll__sInsert__K__Term(srs_cap* p_r, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s, struct E_K__Term* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_K__Term(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_K__Term(v_n_2) ? ({ struct E_Coll__SMap__K__Term* o3 = (struct E_Coll__SMap__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__K__Term, u) + sizeof(((struct E_Coll__SMap__K__Term*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_t_0, v_h_1, f_Coll__sSet__K__Term(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_K__Term(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_K__Term)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__K__Term* o3 = (struct E_Coll__SMap__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__K__Term, u) + sizeof(((struct E_Coll__SMap__K__Term*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o3 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__K__Term* o3 = (struct E_Coll__SEntry__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__K__Term, u) + sizeof(((struct E_Coll__SEntry__K__Term*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_K__Term); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Proto); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__K__Term* f_Coll__sInsert__K__Term(srs_cap* p_eff__Region, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s, struct E_K__Term* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_K__Term(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_K__Term(v_n_2) ? ({ struct E_Coll__SMap__K__Term* o3 = (struct E_Coll__SMap__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__K__Term, u) + sizeof(((struct E_Coll__SMap__K__Term*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__K__Term(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_K__Term(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_K__Term)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__K__Term* o3 = (struct E_Coll__SMap__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__K__Term, u) + sizeof(((struct E_Coll__SMap__K__Term*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o3 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__K__Term* o3 = (struct E_Coll__SEntry__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__K__Term, u) + sizeof(((struct E_Coll__SEntry__K__Term*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_K__Term); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__sSet__K__Term(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s, struct E_K__Term* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o0 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__K__Term* o0 = (struct E_Coll__SEntry__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__K__Term, u) + sizeof(((struct E_Coll__SEntry__K__Term*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_K__Term); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o3 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__K__Term* o3 = (struct E_Coll__SEntry__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__K__Term, u) + sizeof(((struct E_Coll__SEntry__K__Term*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o3 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__K__Term(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__sSet__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s, struct E_K__Term* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o0 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__K__Term* o0 = (struct E_Coll__SEntry__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__K__Term, u) + sizeof(((struct E_Coll__SEntry__K__Term*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_K__Term); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o3 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__K__Term* o3 = (struct E_Coll__SEntry__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__K__Term, u) + sizeof(((struct E_Coll__SEntry__K__Term*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_K__Term* o3 = (struct E_Coll__List__Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__K__Term(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_K__Term(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_K__Term(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__Emit__CaseAt* f_Emit__caseMap(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, int64_t p_i, struct E_Coll__SMap__Emit__CaseAt* p_m) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Ast__Enum* t2 = p_e; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__SMap__Emit__CaseAt* t4 = f_Coll__sInsert__Emit__CaseAt(p_r, p_m, v_n_2, ({ struct E_Emit__CaseAt* o3 = (struct E_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__CaseAt, u) + sizeof(((struct E_Emit__CaseAt*)0)->u.C_Emit__CaseAt))); o3->tag = 0; o3->u.C_Emit__CaseAt.f_tag = p_i; o3->u.C_Emit__CaseAt.f_en = p_e; o3->u.C_Emit__CaseAt.f_c = v_c_0; o3; })); p_r = t0; p_cs = t1; p_e = t2; p_i = t3; p_m = t4; goto srs_tail; (struct E_Coll__SMap__Emit__CaseAt*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sInsert__Emit__CaseAt(srs_cap* p_r, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_n_2) ? ({ struct E_Coll__SMap__Emit__CaseAt* o3 = (struct E_Coll__SMap__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Emit__CaseAt, u) + sizeof(((struct E_Coll__SMap__Emit__CaseAt*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_t_0, v_h_1, f_Coll__sSet__Emit__CaseAt(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Emit__CaseAt* o3 = (struct E_Coll__SMap__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Emit__CaseAt, u) + sizeof(((struct E_Coll__SMap__Emit__CaseAt*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o3 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Emit__CaseAt* o3 = (struct E_Coll__SEntry__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Emit__CaseAt, u) + sizeof(((struct E_Coll__SEntry__Emit__CaseAt*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_K__Term(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__Emit__CaseAt* f_Emit__caseMap(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, int64_t p_i, struct E_Coll__SMap__Emit__CaseAt* p_m) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Ast__Enum* t2 = p_e; int64_t t3 = (p_i + ((int64_t)1)); struct E_Coll__SMap__Emit__CaseAt* t4 = f_Coll__sInsert__Emit__CaseAt(p_eff__Region, p_m, v_n_2, ({ struct E_Emit__CaseAt* o3 = (struct E_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__CaseAt, u) + sizeof(((struct E_Emit__CaseAt*)0)->u.C_Emit__CaseAt))); o3->tag = 0; o3->u.C_Emit__CaseAt.f_tag = p_i; o3->u.C_Emit__CaseAt.f_en = p_e; o3->u.C_Emit__CaseAt.f_c = v_c_0; o3; })); p_eff__Region = t0; p_cs = t1; p_e = t2; p_i = t3; p_m = t4; goto srs_tail; (struct E_Coll__SMap__Emit__CaseAt*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Emit__CaseAt* f_Coll__sInsert__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_n_2) ? ({ struct E_Coll__SMap__Emit__CaseAt* o3 = (struct E_Coll__SMap__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Emit__CaseAt, u) + sizeof(((struct E_Coll__SMap__Emit__CaseAt*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Emit__CaseAt(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Emit__CaseAt* o3 = (struct E_Coll__SMap__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Emit__CaseAt, u) + sizeof(((struct E_Coll__SMap__Emit__CaseAt*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o3 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Emit__CaseAt* o3 = (struct E_Coll__SEntry__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Emit__CaseAt, u) + sizeof(((struct E_Coll__SEntry__Emit__CaseAt*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__sSet__Emit__CaseAt(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Emit__CaseAt* o0 = (struct E_Coll__SEntry__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Emit__CaseAt, u) + sizeof(((struct E_Coll__SEntry__Emit__CaseAt*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o3 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Emit__CaseAt* o3 = (struct E_Coll__SEntry__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Emit__CaseAt, u) + sizeof(((struct E_Coll__SEntry__Emit__CaseAt*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o3 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Emit__CaseAt(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__sSet__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s, struct E_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Emit__CaseAt* o0 = (struct E_Coll__SEntry__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Emit__CaseAt, u) + sizeof(((struct E_Coll__SEntry__Emit__CaseAt*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o3 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Emit__CaseAt* o3 = (struct E_Coll__SEntry__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Emit__CaseAt, u) + sizeof(((struct E_Coll__SEntry__Emit__CaseAt*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* o3 = (struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Emit__CaseAt(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static bool f_Emit__isProto(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Emit__Cx.f_protos; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Ast__Proto(p_r, v_ps_0, p_n); s1->tag == 1 ? ({ true; }) : ({ false; }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Ast__Proto* f_Coll__sLookup__Ast__Proto(srs_cap* p_r, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__Proto(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto)), p_s); }); }); } -static struct E_Coll__Option__Ast__Proto* f_Coll__sFind__Ast__Proto(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Proto); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__Proto* o4 = (struct E_Coll__Option__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Proto, u) + sizeof(((struct E_Coll__Option__Ast__Proto*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Ast__Proto* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__Proto*){0}; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Emit__CaseAt); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static bool f_Emit__isProto(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Emit__Cx.f_protos; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Ast__Proto(p_eff__Region, v_ps_0, p_n); s1->tag == 1 ? ({ true; }) : ({ false; }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Ast__Proto* f_Coll__sLookup__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Proto* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__Proto(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__Proto)), p_s); }); }); } +static struct E_Coll__Option__Ast__Proto* f_Coll__sFind__Ast__Proto(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Proto); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__Proto* o4 = (struct E_Coll__Option__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Proto, u) + sizeof(((struct E_Coll__Option__Ast__Proto*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Ast__Proto* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__Proto*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__Proto* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Proto* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Proto* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Proto(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Proto(p_t, p_k), p_k, p_d); } -static struct E_Coll__Option__Emit__CaseAt* f_Emit__caseAt(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_c) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_cs_0 = s0->u.C_Emit__Cx.f_cases; ({ __auto_type res_ = f_Coll__sLookup__Emit__CaseAt(p_r, v_cs_0, p_c); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Emit__CaseAt* f_Coll__sLookup__Emit__CaseAt(srs_cap* p_r, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Emit__CaseAt(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt)), p_s); }); }); } -static struct E_Coll__Option__Emit__CaseAt* f_Coll__sFind__Emit__CaseAt(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Emit__CaseAt); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Emit__CaseAt* o4 = (struct E_Coll__Option__Emit__CaseAt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Emit__CaseAt, u) + sizeof(((struct E_Coll__Option__Emit__CaseAt*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Emit__CaseAt*){0}; })); }); }); }); }); } +static struct E_Coll__Option__Emit__CaseAt* f_Emit__caseAt(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_c) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_cs_0 = s0->u.C_Emit__Cx.f_cases; ({ __auto_type res_ = f_Coll__sLookup__Emit__CaseAt(p_eff__Region, v_cs_0, p_c); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Emit__CaseAt* f_Coll__sLookup__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__SMap__Emit__CaseAt* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Emit__CaseAt(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Emit__CaseAt)), p_s); }); }); } +static struct E_Coll__Option__Emit__CaseAt* f_Coll__sFind__Emit__CaseAt(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Emit__CaseAt); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Emit__CaseAt* o4 = (struct E_Coll__Option__Emit__CaseAt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Emit__CaseAt, u) + sizeof(((struct E_Coll__Option__Emit__CaseAt*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Emit__CaseAt*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Emit__CaseAt* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Emit__CaseAt* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Emit__CaseAt(p_t, p_k), p_k, p_d); } static struct E_Coll__IMap__K__Term* f_Emit__subst(struct E_Emit__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_s_0 = s0->u.C_Emit__Cx.f_s; ({ __auto_type res_ = v_s_0; res_; }); }); }); res_; }); } -static struct E_Coll__List__K__Term* f_Emit__grAll(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__K__Term* p_ts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_sub_0 = s0->u.C_Emit__Fi.f_sub; ({ __auto_type res_ = f_Mono__groundAll(p_r, f_Emit__subst(p_cx), v_sub_0, p_ts, (&N_Coll__Nil__K__Term)); res_; }); }); }); res_; }); } -static struct E_K__Term* f_Emit__gr(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_K__Term* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_sub_0 = s0->u.C_Emit__Fi.f_sub; ({ __auto_type res_ = f_Mono__ground(p_r, f_Emit__subst(p_cx), v_sub_0, p_t); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__Term* f_Emit__grAll(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__K__Term* p_ts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_sub_0 = s0->u.C_Emit__Fi.f_sub; ({ __auto_type res_ = f_Mono__groundAll(p_eff__Region, f_Emit__subst(p_cx), v_sub_0, p_ts, (&N_Coll__Nil__K__Term)); res_; }); }); }); res_; }); } +static struct E_K__Term* f_Emit__gr(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_K__Term* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_sub_0 = s0->u.C_Emit__Fi.f_sub; ({ __auto_type res_ = f_Mono__ground(p_eff__Region, f_Emit__subst(p_cx), v_sub_0, p_t); res_; }); }); }); res_; }); } static int64_t f_Emit__id(srs_cap* p_eff__Console, struct E_Sym__Sym* p_x) { return f_Emit__idFrom(p_eff__Console, f_Sym__str(p_x), ((int64_t)0), ((int64_t)0), Str__len(f_Sym__str(p_x))); } static int64_t f_Emit__idFrom(srs_cap* p_eff__Console, srs_str p_s, int64_t p_b, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = ((p_i == p_n) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, Str__slice(p_s, p_b, p_i)); p_eff__Console->live = 0; r_; }) : ((Str__at(p_s, p_i) == ((int64_t)46)) ? ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, Str__slice(p_s, p_b, p_i)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"__", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_str t1 = p_s; int64_t t2 = (p_i + ((int64_t)1)); int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_n; p_eff__Console = t0; p_s = t1; p_b = t2; p_i = t3; p_n = t4; goto srs_tail; (int64_t){0}; }); res_; }) : ({ srs_cap* t0 = p_eff__Console; srs_str t1 = p_s; int64_t t2 = p_b; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_n; p_eff__Console = t0; p_s = t1; p_b = t2; p_i = t3; p_n = t4; goto srs_tail; (int64_t){0}; }))); res_; }); } static int64_t f_Emit__mangle(srs_cap* p_eff__Console, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ (void)(f_Emit__id(p_eff__Console, v_n_0)); __auto_type res_ = ({ __auto_type s2 = v_args_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Coll__length__K__Term(v_args_1)); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__mangleArgs(p_eff__Console, v_args_1); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_v_0 = s0->u.C_K__Int.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_v_0 = s0->u.C_K__Var.f_n; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"V", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); res_; }); }); }); } @@ -3844,13 +3844,13 @@ static int64_t f_Emit__local(srs_cap* p_eff__Console, struct E_Coll__List__Emit_ static struct E_Sym__Sym* f_Emit__nameOf(struct E_Emit__Name* p_v) { return ({ __auto_type s0 = p_v; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Emit__P.f_x; v_x_0; }) : ({ __auto_type v_x_0 = s0->u.C_Emit__L.f_x; v_x_0; }); }); } static struct E_Coll__List__Emit__Name* f_Emit__vs(struct E_Emit__Env* p_env) { return ({ __auto_type res_ = ({ __auto_type s0 = p_env; ({ __auto_type v_vs_0 = s0->u.C_Emit__Env.f_vs; ({ __auto_type res_ = v_vs_0; res_; }); }); }); res_; }); } static int64_t f_Emit__envN(struct E_Emit__Env* p_env) { return ({ __auto_type res_ = ({ __auto_type s0 = p_env; ({ __auto_type v_n_0 = s0->u.C_Emit__Env.f_n; ({ __auto_type res_ = v_n_0; res_; }); }); }); res_; }); } -static struct E_Emit__Env* f_Emit__bind(srs_cap* p_r, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_x) { return ({ __auto_type res_ = ({ __auto_type s0 = p_env; ({ __auto_type v_vs_0 = s0->u.C_Emit__Env.f_vs; __auto_type v_n_1 = s0->u.C_Emit__Env.f_n; ({ __auto_type res_ = ({ struct E_Emit__Env* o2 = (struct E_Emit__Env*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Env, u) + sizeof(((struct E_Emit__Env*)0)->u.C_Emit__Env))); o2->tag = 0; o2->u.C_Emit__Env.f_vs = ({ struct E_Coll__List__Emit__Name* o2 = (struct E_Coll__List__Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Emit__Name, u) + sizeof(((struct E_Coll__List__Emit__Name*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Emit__Name* o2 = (struct E_Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o2->tag = 1; o2->u.C_Emit__L.f_x = p_x; o2->u.C_Emit__L.f_n = v_n_1; o2; }); o2->u.C_Coll__Cons.f_t = v_vs_0; o2; }); o2->u.C_Emit__Env.f_n = (v_n_1 + ((int64_t)1)); o2; }); res_; }); }); }); res_; }); } -static int64_t f_Emit__ctype(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ srs_str v_x_2 = f_Sym__str(v_n_0); __auto_type res_ = ((Str__eq(v_x_2, ((srs_str){(const uint8_t*)"I64", 3})) || Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Unit", 4}))) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"int64_t", 7})); p_eff__Console->live = 0; r_; }) : (Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Bool", 4})) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"bool", 4})); p_eff__Console->live = 0; r_; }) : (Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Str", 3})) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_str", 7})); p_eff__Console->live = 0; r_; }) : (Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Ptr", 3})) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"void*", 5})); p_eff__Console->live = 0; r_; }) : (f_Emit__isProto(p_r, p_cx, v_n_0) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap*", 8})); p_eff__Console->live = 0; r_; }) : ({ __auto_type s3 = f_Emit__nominalOf(p_r, p_cx, v_n_0); s3->tag == 1 ? ({ __auto_type v_b_3 = s3->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_K__Term* t3 = v_b_3; p_r = t0; p_eff__Console = t1; p_cx = t2; p_t = t3; goto srs_tail; (int64_t){0}; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct E_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, v_n_0, v_args_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"*", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })))))); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"int64_t", 7})); p_eff__Console->live = 0; r_; }); }); }); } -static struct E_Coll__Option__K__Term* f_Emit__nominalOf(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_nm_0 = s0->u.C_Emit__Cx.f_nominal; ({ __auto_type res_ = f_Coll__sLookup__K__Term(p_r, v_nm_0, p_n); res_; }); }); }); res_; }); } -static struct E_Coll__Option__K__Term* f_Coll__sLookup__K__Term(srs_cap* p_r, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__K__Term(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_K__Term(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_K__Term)), p_s); }); }); } -static struct E_Coll__Option__K__Term* f_Coll__sFind__K__Term(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__K__Term); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_K__Term* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__K__Term*){0}; })); }); }); }); }); } +static struct E_Emit__Env* f_Emit__bind(srs_cap* p_eff__Region, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_x) { return ({ __auto_type res_ = ({ __auto_type s0 = p_env; ({ __auto_type v_vs_0 = s0->u.C_Emit__Env.f_vs; __auto_type v_n_1 = s0->u.C_Emit__Env.f_n; ({ __auto_type res_ = ({ struct E_Emit__Env* o2 = (struct E_Emit__Env*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Env, u) + sizeof(((struct E_Emit__Env*)0)->u.C_Emit__Env))); o2->tag = 0; o2->u.C_Emit__Env.f_vs = ({ struct E_Coll__List__Emit__Name* o2 = (struct E_Coll__List__Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Emit__Name, u) + sizeof(((struct E_Coll__List__Emit__Name*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Emit__Name* o2 = (struct E_Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o2->tag = 1; o2->u.C_Emit__L.f_x = p_x; o2->u.C_Emit__L.f_n = v_n_1; o2; }); o2->u.C_Coll__Cons.f_t = v_vs_0; o2; }); o2->u.C_Emit__Env.f_n = (v_n_1 + ((int64_t)1)); o2; }); res_; }); }); }); res_; }); } +static int64_t f_Emit__ctype(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ srs_str v_x_2 = f_Sym__str(v_n_0); __auto_type res_ = ((Str__eq(v_x_2, ((srs_str){(const uint8_t*)"I64", 3})) || Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Unit", 4}))) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"int64_t", 7})); p_eff__Console->live = 0; r_; }) : (Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Bool", 4})) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"bool", 4})); p_eff__Console->live = 0; r_; }) : (Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Str", 3})) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_str", 7})); p_eff__Console->live = 0; r_; }) : (Str__eq(v_x_2, ((srs_str){(const uint8_t*)"Ptr", 3})) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"void*", 5})); p_eff__Console->live = 0; r_; }) : (f_Emit__isProto(p_eff__Region, p_cx, v_n_0) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap*", 8})); p_eff__Console->live = 0; r_; }) : ({ __auto_type s3 = f_Emit__nominalOf(p_eff__Region, p_cx, v_n_0); s3->tag == 1 ? ({ __auto_type v_b_3 = s3->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_K__Term* t3 = v_b_3; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_t = t3; goto srs_tail; (int64_t){0}; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct E_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, v_n_0, v_args_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"*", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })))))); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"int64_t", 7})); p_eff__Console->live = 0; r_; }); }); }); } +static struct E_Coll__Option__K__Term* f_Emit__nominalOf(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_n) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_nm_0 = s0->u.C_Emit__Cx.f_nominal; ({ __auto_type res_ = f_Coll__sLookup__K__Term(p_eff__Region, v_nm_0, p_n); res_; }); }); }); res_; }); } +static struct E_Coll__Option__K__Term* f_Coll__sLookup__K__Term(srs_cap* p_eff__Region, struct E_Coll__SMap__K__Term* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__K__Term(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_K__Term(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_K__Term)), p_s); }); }); } +static struct E_Coll__Option__K__Term* f_Coll__sFind__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_K__Term* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__K__Term); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_K__Term* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__K__Term*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_K__Term* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_K__Term(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_K__Term* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_K__Term(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_K__Term(p_t, p_k), p_k, p_d); } -static int64_t f_Emit__ex(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_El__Expr* p_e) { return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_El__Int.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((int64_t)", 10})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_El__Bool.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_v_0 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_El__Str.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((srs_str){(const uint8_t*)\"", 28})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_0); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\", ", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__unescLen(v_s_0, ((int64_t)0), ((int64_t)0))); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"})", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 3 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((int64_t)0)", 12})); p_eff__Console->live = 0; r_; }); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_El__Local.f_x; f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_x_0); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_El__CallFn.f_f; __auto_type v_ts_1 = s0->u.C_El__CallFn.f_targs; __auto_type v_caps_2 = s0->u.C_El__CallFn.f_caps; __auto_type v_args_3 = s0->u.C_El__CallFn.f_args; ({ struct E_Coll__List__K__Term* v_gts_4 = f_Emit__grAll(p_r, p_cx, p_fi, v_ts_1); __auto_type res_ = ((f_Emit__isTail(p_pos) && f_Emit__isSelf(p_fi, v_f_0, v_gts_4)) ? f_Emit__jump(p_r, p_eff__Console, p_cx, p_fi, p_env, v_caps_2, v_args_3) : ({ struct E_Coll__Option__K__Term* v_cast_5 = f_Emit__externCast(p_r, p_cx, v_f_0, v_gts_4); (void)(({ __auto_type s6 = v_cast_5; s6->tag == 1 ? ({ __auto_type v_t_6 = s6->u.C_Coll__Some.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, v_t_6)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(f_Emit__fnName(p_r, p_eff__Console, p_cx, v_f_0, v_gts_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__capArgs(p_eff__Console, p_env, v_caps_2, (&N_Emit__First))); (void)(f_Emit__args(p_r, p_eff__Console, p_cx, p_fi, p_env, v_args_3, ((f_Coll__length__Sym__Sym(v_caps_2) == ((int64_t)0)) ? (&N_Emit__First) : (&N_Emit__Comma)))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s6 = v_cast_5; s6->tag == 1 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); }) : ({ ((int64_t)0); }); }); res_; })); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_en_0 = s0->u.C_El__New.f_en; __auto_type v_ts_1 = s0->u.C_El__New.f_targs; __auto_type v_c_2 = s0->u.C_El__New.f_c; __auto_type v_at_3 = s0->u.C_El__New.f_at; __auto_type v_args_4 = s0->u.C_El__New.f_args; ({ __auto_type s5 = v_at_3; s5->tag == 0 ? ({ __auto_type v_reg_5 = s5->u.C_El__In.f_region; f_Emit__ctor(p_r, p_eff__Console, p_cx, p_fi, p_env, v_en_0, f_Emit__grAll(p_r, p_cx, p_fi, v_ts_1), v_c_2, v_reg_5, v_args_4); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); }) : s0->tag == 7 ? ({ __auto_type v_ts_0 = s0->u.C_El__Nullary.f_targs; __auto_type v_c_1 = s0->u.C_El__Nullary.f_c; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(&N_", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_c_1)); (void)(f_Emit__suffix(p_eff__Console, f_Emit__grAll(p_r, p_cx, p_fi, v_ts_0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_recv_0 = s0->u.C_El__Op.f_recv; __auto_type v_ty_1 = s0->u.C_El__Op.f_ty; __auto_type v_op_2 = s0->u.C_El__Op.f_op; __auto_type v_args_3 = s0->u.C_El__Op.f_args; f_Emit__op(p_r, p_eff__Console, p_cx, p_fi, p_env, v_recv_0, f_Emit__gr(p_r, p_cx, p_fi, v_ty_1), v_op_2, v_args_3); }) : s0->tag == 9 ? ({ __auto_type v_op_0 = s0->u.C_El__Bin.f_op; __auto_type v_l_1 = s0->u.C_El__Bin.f_l; __auto_type v_x_2 = s0->u.C_El__Bin.f_rhs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_l_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Emit__binOp(v_op_0)); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_op_0 = s0->u.C_El__Un.f_op; __auto_type v_x_1 = s0->u.C_El__Un.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Emit__unOp(v_op_0)); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_c_0 = s0->u.C_El__If.f_c; __auto_type v_t_1 = s0->u.C_El__If.f_t; __auto_type v_x_2 = s0->u.C_El__If.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_c_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ? ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_t_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" : ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_x_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_x_0 = s0->u.C_El__Match.f_s; __auto_type v_arms_1 = s0->u.C_El__Match.f_arms; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ __auto_type s", 16})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__envN(p_env)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__arms(p_r, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_arms_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__block(p_r, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_ss_0, v_last_1, (&N_Coll__Nil__Emit__Drop)); res_; }); }) : s0->tag == 14 ? ({ __auto_type v_c_0 = s0->u.C_El__While.f_c; __auto_type v_b_1 = s0->u.C_El__While.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ while (", 10})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_c_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)") { (void)(", 11})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_b_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); } (int64_t)0; })", 19})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 15 ? ({ __auto_type v_x_0 = s0->u.C_El__Assign.f_x; __auto_type v_v_1 = s0->u.C_El__Assign.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = (", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_v_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"), (int64_t)0)", 14})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); } +static int64_t f_Emit__ex(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_El__Expr* p_e) { return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_El__Int.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((int64_t)", 10})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_El__Bool.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_v_0 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_El__Str.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((srs_str){(const uint8_t*)\"", 28})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_0); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\", ", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__unescLen(v_s_0, ((int64_t)0), ((int64_t)0))); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"})", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 3 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((int64_t)0)", 12})); p_eff__Console->live = 0; r_; }); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_El__Local.f_x; f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_x_0); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_El__CallFn.f_f; __auto_type v_ts_1 = s0->u.C_El__CallFn.f_targs; __auto_type v_caps_2 = s0->u.C_El__CallFn.f_caps; __auto_type v_args_3 = s0->u.C_El__CallFn.f_args; ({ struct E_Coll__List__K__Term* v_gts_4 = f_Emit__grAll(p_eff__Region, p_cx, p_fi, v_ts_1); __auto_type res_ = ((f_Emit__isTail(p_pos) && f_Emit__isSelf(p_fi, v_f_0, v_gts_4)) ? f_Emit__jump(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_caps_2, v_args_3) : ({ struct E_Coll__Option__K__Term* v_cast_5 = f_Emit__externCast(p_eff__Region, p_cx, v_f_0, v_gts_4); (void)(({ __auto_type s6 = v_cast_5; s6->tag == 1 ? ({ __auto_type v_t_6 = s6->u.C_Coll__Some.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, v_t_6)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(f_Emit__fnName(p_eff__Region, p_eff__Console, p_cx, v_f_0, v_gts_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__capArgs(p_eff__Console, p_env, v_caps_2, (&N_Emit__First))); (void)(f_Emit__args(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_args_3, ((f_Coll__length__Sym__Sym(v_caps_2) == ((int64_t)0)) ? (&N_Emit__First) : (&N_Emit__Comma)))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s6 = v_cast_5; s6->tag == 1 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); }) : ({ ((int64_t)0); }); }); res_; })); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_en_0 = s0->u.C_El__New.f_en; __auto_type v_ts_1 = s0->u.C_El__New.f_targs; __auto_type v_c_2 = s0->u.C_El__New.f_c; __auto_type v_at_3 = s0->u.C_El__New.f_at; __auto_type v_args_4 = s0->u.C_El__New.f_args; ({ __auto_type s5 = v_at_3; s5->tag == 0 ? ({ __auto_type v_reg_5 = s5->u.C_El__In.f_region; f_Emit__ctor(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_en_0, f_Emit__grAll(p_eff__Region, p_cx, p_fi, v_ts_1), v_c_2, v_reg_5, v_args_4); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); }) : s0->tag == 7 ? ({ __auto_type v_ts_0 = s0->u.C_El__Nullary.f_targs; __auto_type v_c_1 = s0->u.C_El__Nullary.f_c; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(&N_", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_c_1)); (void)(f_Emit__suffix(p_eff__Console, f_Emit__grAll(p_eff__Region, p_cx, p_fi, v_ts_0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_recv_0 = s0->u.C_El__Op.f_recv; __auto_type v_ty_1 = s0->u.C_El__Op.f_ty; __auto_type v_op_2 = s0->u.C_El__Op.f_op; __auto_type v_args_3 = s0->u.C_El__Op.f_args; f_Emit__op(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_recv_0, f_Emit__gr(p_eff__Region, p_cx, p_fi, v_ty_1), v_op_2, v_args_3); }) : s0->tag == 9 ? ({ __auto_type v_op_0 = s0->u.C_El__Bin.f_op; __auto_type v_l_1 = s0->u.C_El__Bin.f_l; __auto_type v_x_2 = s0->u.C_El__Bin.f_rhs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_l_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Emit__binOp(v_op_0)); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_op_0 = s0->u.C_El__Un.f_op; __auto_type v_x_1 = s0->u.C_El__Un.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Emit__unOp(v_op_0)); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_c_0 = s0->u.C_El__If.f_c; __auto_type v_t_1 = s0->u.C_El__If.f_t; __auto_type v_x_2 = s0->u.C_El__If.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_c_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ? ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_t_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" : ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_x_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_x_0 = s0->u.C_El__Match.f_s; __auto_type v_arms_1 = s0->u.C_El__Match.f_arms; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ __auto_type s", 16})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__envN(p_env)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__arms(p_eff__Console, p_eff__Region, p_cx, p_fi, p_env, p_pos, v_arms_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__block(p_eff__Console, p_eff__Region, p_cx, p_fi, p_env, p_pos, v_ss_0, v_last_1, (&N_Coll__Nil__Emit__Drop)); res_; }); }) : s0->tag == 14 ? ({ __auto_type v_c_0 = s0->u.C_El__While.f_c; __auto_type v_b_1 = s0->u.C_El__While.f_body; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ while (", 10})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_c_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)") { (void)(", 11})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_b_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); } (int64_t)0; })", 19})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 15 ? ({ __auto_type v_x_0 = s0->u.C_El__Assign.f_x; __auto_type v_v_1 = s0->u.C_El__Assign.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_x_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = (", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_v_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"), (int64_t)0)", 14})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); } static int64_t f_Coll__length__Sym__Sym(struct E_Coll__List__Sym__Sym* p_xs) { return f_Coll__lengthFrom__Sym__Sym(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Sym__Sym(struct E_Coll__List__Sym__Sym* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Sym__Sym* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } static srs_str f_Emit__binOp(struct E_Ast__BinOp* p_op) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)" + ", 3}); }) : s0->tag == 1 ? ({ ((srs_str){(const uint8_t*)" - ", 3}); }) : s0->tag == 2 ? ({ ((srs_str){(const uint8_t*)" * ", 3}); }) : s0->tag == 3 ? ({ ((srs_str){(const uint8_t*)" / ", 3}); }) : s0->tag == 4 ? ({ ((srs_str){(const uint8_t*)" % ", 3}); }) : s0->tag == 5 ? ({ ((srs_str){(const uint8_t*)" < ", 3}); }) : s0->tag == 6 ? ({ ((srs_str){(const uint8_t*)" <= ", 4}); }) : s0->tag == 7 ? ({ ((srs_str){(const uint8_t*)" > ", 3}); }) : s0->tag == 8 ? ({ ((srs_str){(const uint8_t*)" >= ", 4}); }) : s0->tag == 9 ? ({ ((srs_str){(const uint8_t*)" == ", 4}); }) : s0->tag == 10 ? ({ ((srs_str){(const uint8_t*)" != ", 4}); }) : s0->tag == 11 ? ({ ((srs_str){(const uint8_t*)" && ", 4}); }) : ({ ((srs_str){(const uint8_t*)" || ", 4}); }); }); } @@ -3858,688 +3858,688 @@ static srs_str f_Emit__unOp(struct E_Ast__UnOp* p_op) { return ({ __auto_type s0 static int64_t f_Emit__unescLen(srs_str p_s, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = ((p_i >= Str__len(p_s)) ? p_n : ((Str__at(p_s, p_i) == ((int64_t)92)) ? ({ srs_str t0 = p_s; int64_t t1 = (p_i + ((int64_t)2)); int64_t t2 = (p_n + ((int64_t)1)); p_s = t0; p_i = t1; p_n = t2; goto srs_tail; (int64_t){0}; }) : ({ srs_str t0 = p_s; int64_t t1 = (p_i + ((int64_t)1)); int64_t t2 = (p_n + ((int64_t)1)); p_s = t0; p_i = t1; p_n = t2; goto srs_tail; (int64_t){0}; }))); res_; }); } static bool f_Emit__isTail(struct E_Emit__Pos* p_pos) { return ({ __auto_type s0 = p_pos; s0->tag == 0 ? ({ true; }) : ({ false; }); }); } static bool f_Emit__isSelf(struct E_Emit__Fi* p_fi, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_self_0 = s0->u.C_Emit__Fi.f_self; __auto_type v_sts_1 = s0->u.C_Emit__Fi.f_targs; ({ __auto_type res_ = (f_Sym__eq(p_f, v_self_0) && f_Mono__termsEq(p_ts, v_sts_1)); res_; }); }); }); res_; }); } -static int64_t f_Emit__fnName(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Emit__Cx.f_fns; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__El__Fn(p_r, v_fns_0, p_f); s1->tag == 1 ? ({ __auto_type v_g_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_g_1; ({ __auto_type v_body_2 = s2->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s3 = v_body_2; s3->tag == 1 ? ({ f_Emit__id(p_eff__Console, p_f); }) : ({ f_Emit__defName(p_eff__Console, p_f, p_ts); }); }); res_; }); }); }); res_; }); }) : ({ f_Emit__defName(p_eff__Console, p_f, p_ts); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__El__Fn* f_Coll__sLookup__El__Fn(srs_cap* p_r, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__El__Fn(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_El__Fn(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_El__Fn)), p_s); }); }); } -static struct E_Coll__Option__El__Fn* f_Coll__sFind__El__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__El__Fn); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__El__Fn* o4 = (struct E_Coll__Option__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__El__Fn, u) + sizeof(((struct E_Coll__Option__El__Fn*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_El__Fn* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__El__Fn*){0}; })); }); }); }); }); } +static int64_t f_Emit__fnName(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Emit__Cx.f_fns; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__El__Fn(p_eff__Region, v_fns_0, p_f); s1->tag == 1 ? ({ __auto_type v_g_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_g_1; ({ __auto_type v_body_2 = s2->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s3 = v_body_2; s3->tag == 1 ? ({ f_Emit__id(p_eff__Console, p_f); }) : ({ f_Emit__defName(p_eff__Console, p_f, p_ts); }); }); res_; }); }); }); res_; }); }) : ({ f_Emit__defName(p_eff__Console, p_f, p_ts); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__El__Fn* f_Coll__sLookup__El__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__El__Fn* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__El__Fn(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_El__Fn(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_El__Fn)), p_s); }); }); } +static struct E_Coll__Option__El__Fn* f_Coll__sFind__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__El__Fn); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__El__Fn* o4 = (struct E_Coll__Option__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__El__Fn, u) + sizeof(((struct E_Coll__Option__El__Fn*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_El__Fn* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__El__Fn*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_El__Fn* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_El__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_El__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_El__Fn* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_El__Fn(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_El__Fn(p_t, p_k), p_k, p_d); } static int64_t f_Emit__defName(srs_cap* p_eff__Console, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_ts) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"f_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_f)); __auto_type res_ = f_Emit__suffix(p_eff__Console, p_ts); res_; }); } static int64_t f_Emit__sep(srs_cap* p_eff__Console, struct E_Emit__Sep* p_s) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; }); }); }); } static int64_t f_Emit__capArgs(srs_cap* p_eff__Console, struct E_Emit__Env* p_env, struct E_Coll__List__Sym__Sym* p_caps, struct E_Emit__Sep* p_s) { srs_tail: return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__sep(p_eff__Console, p_s)); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_c_0)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Emit__Env* t1 = p_env; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Emit__Sep* t3 = (&N_Emit__Comma); p_eff__Console = t0; p_env = t1; p_caps = t2; p_s = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Emit__initCall(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"h_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_h)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_init(", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__capArgs(p_eff__Console, p_env, p_caps, (&N_Emit__First))); (void)(f_Emit__args(p_r, p_eff__Console, p_cx, p_fi, p_env, p_args, ((f_Coll__length__Sym__Sym(p_caps) == ((int64_t)0)) ? (&N_Emit__First) : (&N_Emit__Comma)))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); } -static int64_t f_Emit__handleEnv(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Name* p_v, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct { void* st; srs_cap* c[", 30})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Coll__length__Sym__Sym(p_caps)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]; } ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, p_v)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_e = { ", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__initCall(p_r, p_eff__Console, p_cx, p_fi, p_env, p_h, p_caps, p_args)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", { ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__capArgs(p_eff__Console, p_env, p_caps, (&N_Emit__First))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" } }; ", 6})); p_eff__Console->live = 0; r_; }); res_; }); }); }); } -static int64_t f_Emit__args(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__El__Expr* p_xs, struct E_Emit__Sep* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__sep(p_eff__Console, p_s)); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_0)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Coll__List__El__Expr* t5 = v_rest_1; struct E_Emit__Sep* t6 = (&N_Emit__Comma); p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_xs = t5; p_s = t6; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Emit__jump(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_slots_0 = s0->u.C_Emit__Fi.f_slots; __auto_type v_ret_1 = s0->u.C_Emit__Fi.f_ret; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__temps(p_r, p_eff__Console, p_cx, p_fi, p_env, v_slots_0, p_caps, p_args, ((int64_t)0))); (void)(f_Emit__sets(p_eff__Console, v_slots_0, ((int64_t)0))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"goto srs_tail; (", 16})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, v_ret_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"){0}; })", 8})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } -static int64_t f_Emit__temps(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_sl_0; s2->tag == 0 ? ({ ({ __auto_type s2 = p_caps; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_crest_3 = s2->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap* t", 10})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_c_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Coll__List__Emit__Slot* t5 = v_rest_1; struct E_Coll__List__Sym__Sym* t6 = v_crest_3; struct E_Coll__List__El__Expr* t7 = p_args; int64_t t8 = (p_i + ((int64_t)1)); p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_slots = t5; p_caps = t6; p_args = t7; p_i = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); }) : ({ __auto_type v_t_2 = s2->u.C_Emit__SVal.f_t; ({ __auto_type s3 = p_args; s3->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_3 = s3->u.C_Coll__Cons.f_h; __auto_type v_arest_4 = s3->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, v_t_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" t", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_a_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Coll__List__Emit__Slot* t5 = v_rest_1; struct E_Coll__List__Sym__Sym* t6 = p_caps; struct E_Coll__List__El__Expr* t7 = v_arest_4; int64_t t8 = (p_i + ((int64_t)1)); p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_slots = t5; p_caps = t6; p_args = t7; p_i = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); }); }); }); }); } +static int64_t f_Emit__initCall(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"h_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_h)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_init(", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__capArgs(p_eff__Console, p_env, p_caps, (&N_Emit__First))); (void)(f_Emit__args(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_args, ((f_Coll__length__Sym__Sym(p_caps) == ((int64_t)0)) ? (&N_Emit__First) : (&N_Emit__Comma)))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); } +static int64_t f_Emit__handleEnv(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Name* p_v, struct E_Sym__Sym* p_h, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct { void* st; srs_cap* c[", 30})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Coll__length__Sym__Sym(p_caps)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]; } ", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, p_v)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_e = { ", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__initCall(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_h, p_caps, p_args)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", { ", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__capArgs(p_eff__Console, p_env, p_caps, (&N_Emit__First))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" } }; ", 6})); p_eff__Console->live = 0; r_; }); res_; }); }); }); } +static int64_t f_Emit__args(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__El__Expr* p_xs, struct E_Emit__Sep* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__sep(p_eff__Console, p_s)); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_0)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Coll__List__El__Expr* t5 = v_rest_1; struct E_Emit__Sep* t6 = (&N_Emit__Comma); p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_xs = t5; p_s = t6; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Emit__jump(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_slots_0 = s0->u.C_Emit__Fi.f_slots; __auto_type v_ret_1 = s0->u.C_Emit__Fi.f_ret; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__temps(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_slots_0, p_caps, p_args, ((int64_t)0))); (void)(f_Emit__sets(p_eff__Console, v_slots_0, ((int64_t)0))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"goto srs_tail; (", 16})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, v_ret_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"){0}; })", 8})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } +static int64_t f_Emit__temps(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Expr* p_args, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_sl_0; s2->tag == 0 ? ({ ({ __auto_type s2 = p_caps; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_crest_3 = s2->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap* t", 10})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), v_c_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Coll__List__Emit__Slot* t5 = v_rest_1; struct E_Coll__List__Sym__Sym* t6 = v_crest_3; struct E_Coll__List__El__Expr* t7 = p_args; int64_t t8 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_slots = t5; p_caps = t6; p_args = t7; p_i = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); }) : ({ __auto_type v_t_2 = s2->u.C_Emit__SVal.f_t; ({ __auto_type s3 = p_args; s3->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_3 = s3->u.C_Coll__Cons.f_h; __auto_type v_arest_4 = s3->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, v_t_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" t", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_a_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Coll__List__Emit__Slot* t5 = v_rest_1; struct E_Coll__List__Sym__Sym* t6 = p_caps; struct E_Coll__List__El__Expr* t7 = v_arest_4; int64_t t8 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_slots = t5; p_caps = t6; p_args = t7; p_i = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); }); }); }); }); } static int64_t f_Emit__sets(srs_cap* p_eff__Console, struct E_Coll__List__Emit__Slot* p_slots, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"p_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, f_Emit__slotName(v_sl_0))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = t", 4})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; int64_t t2 = (p_i + ((int64_t)1)); p_eff__Console = t0; p_slots = t1; p_i = t2; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static struct E_Sym__Sym* f_Emit__slotName(struct E_Emit__Slot* p_sl) { return ({ __auto_type s0 = p_sl; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Emit__SCap.f_x; v_x_0; }) : ({ __auto_type v_x_0 = s0->u.C_Emit__SVal.f_x; v_x_0; }); }); } -static int64_t f_Emit__ctor(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_en, struct E_Coll__List__K__Term* p_ts, struct E_Sym__Sym* p_c, struct E_Sym__Sym* p_reg, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type s0 = f_Emit__caseAt(p_r, p_cx, p_c); s0->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_ca_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_ca_0; ({ __auto_type v_tag_1 = s1->u.C_Emit__CaseAt.f_tag; __auto_type v_cs_2 = s1->u.C_Emit__CaseAt.f_c; ({ __auto_type res_ = ({ __auto_type s3 = v_cs_2; ({ __auto_type v_fields_3 = s3->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_al_4 = s4->u.C_Emit__Cx.f_alloc; ({ int64_t v_n_5 = f_Emit__envN(p_env); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ struct E_", 12})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"* o", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_5); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = (struct E_", 13})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"*)", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s6 = v_al_4; s6->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_alloc(", 10})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_reg)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((void*(*)(void*, int64_t))(", 28})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_reg)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->vt[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIndex(p_r, p_cx, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6})), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"alloc", 5})))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]))(", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_reg)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->self, ", 8})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(int64_t)(offsetof(struct E_", 28})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", u) + sizeof(((struct E_", 25})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"*)0)->u.C_", 10})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_c)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"))); o", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_5); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->tag = ", 8})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_tag_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__fieldSets(p_r, p_eff__Console, p_cx, p_fi, p_env, v_n_5, p_c, v_fields_3, p_args)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" o", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_5); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__fieldSets(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__El__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_frest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_f_0; ({ __auto_type v_fx_4 = s4->u.C_Ast__Binder.f_x; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" o", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_n); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->u.C_", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_c)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".f_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_fx_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; int64_t t5 = p_n; struct E_Sym__Sym* t6 = p_c; struct E_Coll__List__Ast__Binder* t7 = v_frest_1; struct E_Coll__List__El__Expr* t8 = v_xrest_3; p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_n = t5; p_c = t6; p_fs = t7; p_xs = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); }); }); } -static int64_t f_Emit__opIndex(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Emit__Cx.f_protos; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Ast__Proto(p_r, v_ps_0, p_p); s1->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_pr_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_pr_1; ({ __auto_type v_ops_2 = s2->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = f_Emit__opIn(v_ops_2, p_op, ((int64_t)0)); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static int64_t f_Emit__ctor(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_en, struct E_Coll__List__K__Term* p_ts, struct E_Sym__Sym* p_c, struct E_Sym__Sym* p_reg, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type s0 = f_Emit__caseAt(p_eff__Region, p_cx, p_c); s0->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_ca_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_ca_0; ({ __auto_type v_tag_1 = s1->u.C_Emit__CaseAt.f_tag; __auto_type v_cs_2 = s1->u.C_Emit__CaseAt.f_c; ({ __auto_type res_ = ({ __auto_type s3 = v_cs_2; ({ __auto_type v_fields_3 = s3->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_al_4 = s4->u.C_Emit__Cx.f_alloc; ({ int64_t v_n_5 = f_Emit__envN(p_env); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ struct E_", 12})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"* o", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_5); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = (struct E_", 13})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"*)", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s6 = v_al_4; s6->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_alloc(", 10})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_reg)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"((void*(*)(void*, int64_t))(", 28})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_reg)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->vt[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIndex(p_eff__Region, p_cx, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6})), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"alloc", 5})))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]))(", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_reg)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->self, ", 8})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(int64_t)(offsetof(struct E_", 28})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", u) + sizeof(((struct E_", 25})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_en, p_ts)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"*)0)->u.C_", 10})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_c)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"))); o", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_5); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->tag = ", 8})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_tag_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__fieldSets(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_n_5, p_c, v_fields_3, p_args)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" o", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_5); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__fieldSets(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__El__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_frest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_f_0; ({ __auto_type v_fx_4 = s4->u.C_Ast__Binder.f_x; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" o", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_n); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->u.C_", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_c)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".f_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_fx_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_x_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; int64_t t5 = p_n; struct E_Sym__Sym* t6 = p_c; struct E_Coll__List__Ast__Binder* t7 = v_frest_1; struct E_Coll__List__El__Expr* t8 = v_xrest_3; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_n = t5; p_c = t6; p_fs = t7; p_xs = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); }); }); } +static int64_t f_Emit__opIndex(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Emit__Cx.f_protos; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Ast__Proto(p_eff__Region, v_ps_0, p_p); s1->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_pr_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_pr_1; ({ __auto_type v_ops_2 = s2->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = f_Emit__opIn(v_ops_2, p_op, ((int64_t)0)); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } static int64_t f_Emit__opIn(struct E_Coll__List__Ast__Op* p_os, struct E_Sym__Sym* p_op, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ p_i; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Op.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_op) ? p_i : ({ struct E_Coll__List__Ast__Op* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_op; int64_t t2 = (p_i + ((int64_t)1)); p_os = t0; p_op = t1; p_i = t2; goto srs_tail; (int64_t){0}; })); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__op(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_recv, struct E_K__Term* p_ty, struct E_Sym__Sym* p_op, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type s0 = p_ty; s0->tag == 1 ? ({ __auto_type v_pn_0 = s0->u.C_K__Con.f_f; __auto_type v_targs_1 = s0->u.C_K__Con.f_args; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_ps_2 = s2->u.C_Emit__Cx.f_protos; ({ __auto_type res_ = ({ __auto_type s3 = f_Coll__sLookup__Ast__Proto(p_r, v_ps_2, v_pn_0); s3->tag == 1 ? ({ __auto_type v_p_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_p_3; ({ __auto_type v_ends_4 = s4->u.C_Ast__Proto.f_ends; __auto_type v_ops_5 = s4->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = ({ __auto_type s6 = f_Ty__opIn(p_r, v_ops_5, p_op); s6->tag == 1 ? ({ __auto_type v_o_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_o_6; ({ __auto_type v_ops2_7 = s7->u.C_Ast__Op.f_params; __auto_type v_oret_8 = s7->u.C_Ast__Op.f_ret; __auto_type v_trans_9 = s7->u.C_Ast__Op.f_trans; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ __auto_type r_ = ((", 22})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, f_Ty__term(p_r, v_oret_8, (&N_Coll__Nil__Ty__Bind)))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(*)(void*", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__opTys(p_r, p_eff__Console, p_cx, v_ops2_7)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"))(", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_recv)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->vt[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIn(v_ops_5, p_op, ((int64_t)0))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]))(", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_recv)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->self", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__args(p_r, p_eff__Console, p_cx, p_fi, p_env, p_args, (&N_Emit__Comma))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); ", 3})); p_eff__Console->live = 0; r_; })); (void)((f_Emit__kills(v_trans_9, v_ends_4) ? ({ (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_recv)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->live = 0; ", 12})); p_eff__Console->live = 0; r_; }); res_; }) : ((int64_t)0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"r_; })", 6})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"g_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_pn_0)); (void)(f_Emit__suffix(p_eff__Console, v_targs_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_op)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__args(p_r, p_eff__Console, p_cx, p_fi, p_env, p_args, (&N_Emit__First))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); } -static int64_t f_Emit__opTys(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_ps) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, f_Ty__term(p_r, v_t_2, (&N_Coll__Nil__Ty__Bind)))); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_ps = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__op(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Sym__Sym* p_recv, struct E_K__Term* p_ty, struct E_Sym__Sym* p_op, struct E_Coll__List__El__Expr* p_args) { return ({ __auto_type s0 = p_ty; s0->tag == 1 ? ({ __auto_type v_pn_0 = s0->u.C_K__Con.f_f; __auto_type v_targs_1 = s0->u.C_K__Con.f_args; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_ps_2 = s2->u.C_Emit__Cx.f_protos; ({ __auto_type res_ = ({ __auto_type s3 = f_Coll__sLookup__Ast__Proto(p_eff__Region, v_ps_2, v_pn_0); s3->tag == 1 ? ({ __auto_type v_p_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_p_3; ({ __auto_type v_ends_4 = s4->u.C_Ast__Proto.f_ends; __auto_type v_ops_5 = s4->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = ({ __auto_type s6 = f_Ty__opIn(p_eff__Region, v_ops_5, p_op); s6->tag == 1 ? ({ __auto_type v_o_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_o_6; ({ __auto_type v_ops2_7 = s7->u.C_Ast__Op.f_params; __auto_type v_oret_8 = s7->u.C_Ast__Op.f_ret; __auto_type v_trans_9 = s7->u.C_Ast__Op.f_trans; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ __auto_type r_ = ((", 22})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, f_Ty__term(p_eff__Region, v_oret_8, (&N_Coll__Nil__Ty__Bind)))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(*)(void*", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__opTys(p_eff__Region, p_eff__Console, p_cx, v_ops2_7)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"))(", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_recv)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->vt[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIn(v_ops_5, p_op, ((int64_t)0))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]))(", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_recv)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->self", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__args(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_args, (&N_Emit__Comma))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); ", 3})); p_eff__Console->live = 0; r_; })); (void)((f_Emit__kills(v_trans_9, v_ends_4) ? ({ (void)(f_Emit__local(p_eff__Console, f_Emit__vs(p_env), p_recv)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->live = 0; ", 12})); p_eff__Console->live = 0; r_; }); res_; }) : ((int64_t)0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"r_; })", 6})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"g_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_pn_0)); (void)(f_Emit__suffix(p_eff__Console, v_targs_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_op)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__args(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_args, (&N_Emit__First))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }); }); } +static int64_t f_Emit__opTys(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_ps) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, f_Ty__term(p_eff__Region, v_t_2, (&N_Coll__Nil__Ty__Bind)))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_ps = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } static bool f_Emit__kills(struct E_Coll__List__Ast__Trans* p_ts, struct E_Coll__List__Sym__Sym* p_ends) { return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ false; }) : ({ f_Emit__allEnd(p_ts, p_ends); }); }); } static bool f_Emit__allEnd(struct E_Coll__List__Ast__Trans* p_ts, struct E_Coll__List__Sym__Sym* p_ends) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_to_2 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = (f_Ty__memberSym(v_to_2, p_ends) ? ({ struct E_Coll__List__Ast__Trans* t0 = v_rest_1; struct E_Coll__List__Sym__Sym* t1 = p_ends; p_ts = t0; p_ends = t1; goto srs_tail; (bool){0}; }) : false); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__arms(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_El__Arm.f_p; __auto_type v_b_3 = s2->u.C_El__Arm.f_body; ({ int64_t v_n_4 = f_Emit__envN(p_env); (void)(({ __auto_type s5 = v_p_2; s5->tag == 1 ? ({ ({ (void)(f_Emit__test(p_eff__Console, v_rest_1, v_n_4, (&N_Emit__Always))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_b_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_c_5 = s5->u.C_Ast__PCase.f_c; __auto_type v_binds_6 = s5->u.C_Ast__PCase.f_binds; ({ __auto_type s7 = f_Emit__caseAt(p_r, p_cx, v_c_5); s7->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_ca_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_ca_7; ({ __auto_type v_tag_8 = s8->u.C_Emit__CaseAt.f_tag; __auto_type v_cs_9 = s8->u.C_Emit__CaseAt.f_c; ({ __auto_type res_ = ({ __auto_type s10 = v_cs_9; ({ __auto_type v_fields_10 = s10->u.C_Ast__Case.f_fields; ({ (void)(f_Emit__test(p_eff__Console, v_rest_1, v_n_4, ({ struct E_Emit__Guard* o11 = (struct E_Emit__Guard*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Guard, u) + sizeof(((struct E_Emit__Guard*)0)->u.C_Emit__Tag))); o11->tag = 1; o11->u.C_Emit__Tag.f_tag = v_tag_8; o11; }))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, f_Emit__binds(p_r, p_eff__Console, p_env, v_n_4, v_c_5, v_binds_6, v_fields_10), p_pos, v_b_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); })); __auto_type res_ = ({ __auto_type s5 = v_rest_1; s5->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" : ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Arm* t6 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_as = t6; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__arms(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_El__Arm.f_p; __auto_type v_b_3 = s2->u.C_El__Arm.f_body; ({ int64_t v_n_4 = f_Emit__envN(p_env); (void)(({ __auto_type s5 = v_p_2; s5->tag == 1 ? ({ ({ (void)(f_Emit__test(p_eff__Console, v_rest_1, v_n_4, (&N_Emit__Always))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, p_pos, v_b_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_c_5 = s5->u.C_Ast__PCase.f_c; __auto_type v_binds_6 = s5->u.C_Ast__PCase.f_binds; ({ __auto_type s7 = f_Emit__caseAt(p_eff__Region, p_cx, v_c_5); s7->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"0", 1})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_ca_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_ca_7; ({ __auto_type v_tag_8 = s8->u.C_Emit__CaseAt.f_tag; __auto_type v_cs_9 = s8->u.C_Emit__CaseAt.f_c; ({ __auto_type res_ = ({ __auto_type s10 = v_cs_9; ({ __auto_type v_fields_10 = s10->u.C_Ast__Case.f_fields; ({ (void)(f_Emit__test(p_eff__Console, v_rest_1, v_n_4, ({ struct E_Emit__Guard* o11 = (struct E_Emit__Guard*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Guard, u) + sizeof(((struct E_Emit__Guard*)0)->u.C_Emit__Tag))); o11->tag = 1; o11->u.C_Emit__Tag.f_tag = v_tag_8; o11; }))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"({ ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, f_Emit__binds(p_eff__Console, p_eff__Region, p_env, v_n_4, v_c_5, v_binds_6, v_fields_10), p_pos, v_b_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; })", 4})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); })); __auto_type res_ = ({ __auto_type s5 = v_rest_1; s5->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" : ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Arm* t6 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_as = t6; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } static int64_t f_Emit__test(srs_cap* p_eff__Console, struct E_Coll__List__El__Arm* p_rest, int64_t p_n, struct E_Emit__Guard* p_g) { return ({ __auto_type s0 = p_rest; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ __auto_type s0 = p_g; s0->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"1 ? ", 4})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_tag_0 = s0->u.C_Emit__Tag.f_tag; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"s", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_n); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->tag == ", 9})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_tag_0); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ? ", 3})); p_eff__Console->live = 0; r_; }); res_; }); }); }); }); }); } -static struct E_Emit__Env* f_Emit__binds(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_env; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_fs; s2->tag == 0 ? ({ p_env; }) : ({ __auto_type v_f_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_frest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = (Str__eq(f_Sym__str(v_x_0), ((srs_str){(const uint8_t*)"_", 1})) ? ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Env* t2 = p_env; int64_t t3 = p_n; struct E_Sym__Sym* t4 = p_c; struct E_Coll__List__Sym__Sym* t5 = v_rest_1; struct E_Coll__List__Ast__Binder* t6 = v_frest_3; p_r = t0; p_eff__Console = t1; p_env = t2; p_n = t3; p_c = t4; p_xs = t5; p_fs = t6; goto srs_tail; (struct E_Emit__Env*){0}; }) : ({ __auto_type res_ = ({ __auto_type s4 = v_f_2; ({ __auto_type v_fx_4 = s4->u.C_Ast__Binder.f_x; ({ struct E_Emit__Env* v_env2_5 = f_Emit__bind(p_r, p_env, v_x_0); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"__auto_type ", 12})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, ({ struct E_Emit__Name* o6 = (struct E_Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o6->tag = 1; o6->u.C_Emit__L.f_x = v_x_0; o6->u.C_Emit__L.f_n = f_Emit__envN(p_env); o6; }))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = s", 4})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_n); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->u.C_", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_c)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".f_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_fx_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Env* t2 = v_env2_5; int64_t t3 = p_n; struct E_Sym__Sym* t4 = p_c; struct E_Coll__List__Sym__Sym* t5 = v_rest_1; struct E_Coll__List__Ast__Binder* t6 = v_frest_3; p_r = t0; p_eff__Console = t1; p_env = t2; p_n = t3; p_c = t4; p_xs = t5; p_fs = t6; goto srs_tail; (struct E_Emit__Env*){0}; }); res_; }); }); }); res_; })); res_; }); }); }); }); }); } -static int64_t f_Emit__block(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Stmt* p_ss, struct E_El__Expr* p_last, struct E_Coll__List__Emit__Drop* p_drops) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"__auto_type res_ = ", 19})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, f_Emit__lastPos(p_drops, p_pos), p_last)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__drops(p_r, p_eff__Console, p_cx, p_drops)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"res_; })", 8})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_El__Val.f_x; __auto_type v_ty_3 = s2->u.C_El__Val.f_ty; __auto_type v_e_4 = s2->u.C_El__Val.f_e; ({ (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, f_Emit__gr(p_r, p_cx, p_fi, v_ty_3))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, ({ struct E_Emit__Name* o5 = (struct E_Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o5->tag = 1; o5->u.C_Emit__L.f_x = v_x_2; o5->u.C_Emit__L.f_n = f_Emit__envN(p_env); o5; }))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_e_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = f_Emit__bind(p_r, p_env, v_x_2); struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Stmt* t6 = v_rest_1; struct E_El__Expr* t7 = p_last; struct E_Coll__List__Emit__Drop* t8 = p_drops; p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_ss = t6; p_last = t7; p_drops = t8; goto srs_tail; (int64_t){0}; }); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_El__Handle.f_x; __auto_type v_h_3 = s2->u.C_El__Handle.f_h; __auto_type v_caps_4 = s2->u.C_El__Handle.f_caps; __auto_type v_args_5 = s2->u.C_El__Handle.f_args; ({ struct E_Emit__Name* v_v_6 = ({ struct E_Emit__Name* o6 = (struct E_Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o6->tag = 1; o6->u.C_Emit__L.f_x = v_x_2; o6->u.C_Emit__L.f_n = f_Emit__envN(p_env); o6; }); (void)(f_Emit__handleEnv(p_r, p_eff__Console, p_cx, p_fi, p_env, v_v_6, v_h_3, v_caps_4, v_args_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap ", 8})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_v = { ", 7})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s7 = v_caps_4; s7->tag == 0 ? ({ f_Emit__initCall(p_r, p_eff__Console, p_cx, p_fi, p_env, v_h_3, v_caps_4, v_args_5); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"&", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_e", 2})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", vt_", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_h_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", 1 }; srs_cap* ", 16})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = &", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_v; ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = f_Emit__bind(p_r, p_env, v_x_2); struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Stmt* t6 = v_rest_1; struct E_El__Expr* t7 = p_last; struct E_Coll__List__Emit__Drop* t8 = ({ struct E_Coll__List__Emit__Drop* o7 = (struct E_Coll__List__Emit__Drop*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Emit__Drop, u) + sizeof(((struct E_Coll__List__Emit__Drop*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Emit__Drop* o7 = (struct E_Emit__Drop*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Drop, u) + sizeof(((struct E_Emit__Drop*)0)->u.C_Emit__Drop))); o7->tag = 0; o7->u.C_Emit__Drop.f_c = v_v_6; o7->u.C_Emit__Drop.f_proto = f_Emit__protoOfH(p_r, p_cx, v_h_3); o7; }); o7->u.C_Coll__Cons.f_t = p_drops; o7; }); p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_ss = t6; p_last = t7; p_drops = t8; goto srs_tail; (int64_t){0}; }); res_; }); }) : ({ __auto_type v_e_2 = s2->u.C_El__Do.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(void)(", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_e_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Stmt* t6 = v_rest_1; struct E_El__Expr* t7 = p_last; struct E_Coll__List__Emit__Drop* t8 = p_drops; p_r = t0; p_eff__Console = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_ss = t6; p_last = t7; p_drops = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); }); }); } +static struct E_Emit__Env* f_Emit__binds(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Env* p_env, int64_t p_n, struct E_Sym__Sym* p_c, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_env; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_fs; s2->tag == 0 ? ({ p_env; }) : ({ __auto_type v_f_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_frest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = (Str__eq(f_Sym__str(v_x_0), ((srs_str){(const uint8_t*)"_", 1})) ? ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Env* t2 = p_env; int64_t t3 = p_n; struct E_Sym__Sym* t4 = p_c; struct E_Coll__List__Sym__Sym* t5 = v_rest_1; struct E_Coll__List__Ast__Binder* t6 = v_frest_3; p_eff__Console = t0; p_eff__Region = t1; p_env = t2; p_n = t3; p_c = t4; p_xs = t5; p_fs = t6; goto srs_tail; (struct E_Emit__Env*){0}; }) : ({ __auto_type res_ = ({ __auto_type s4 = v_f_2; ({ __auto_type v_fx_4 = s4->u.C_Ast__Binder.f_x; ({ struct E_Emit__Env* v_env2_5 = f_Emit__bind(p_eff__Region, p_env, v_x_0); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"__auto_type ", 12})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, ({ struct E_Emit__Name* o6 = (struct E_Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o6->tag = 1; o6->u.C_Emit__L.f_x = v_x_0; o6->u.C_Emit__L.f_n = f_Emit__envN(p_env); o6; }))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = s", 4})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_n); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->u.C_", 6})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_c)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".f_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_fx_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Env* t2 = v_env2_5; int64_t t3 = p_n; struct E_Sym__Sym* t4 = p_c; struct E_Coll__List__Sym__Sym* t5 = v_rest_1; struct E_Coll__List__Ast__Binder* t6 = v_frest_3; p_eff__Console = t0; p_eff__Region = t1; p_env = t2; p_n = t3; p_c = t4; p_xs = t5; p_fs = t6; goto srs_tail; (struct E_Emit__Env*){0}; }); res_; }); }); }); res_; })); res_; }); }); }); }); }); } +static int64_t f_Emit__block(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Env* p_env, struct E_Emit__Pos* p_pos, struct E_Coll__List__El__Stmt* p_ss, struct E_El__Expr* p_last, struct E_Coll__List__Emit__Drop* p_drops) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"__auto_type res_ = ", 19})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, f_Emit__lastPos(p_drops, p_pos), p_last)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__drops(p_eff__Region, p_eff__Console, p_cx, p_drops)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"res_; })", 8})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_El__Val.f_x; __auto_type v_ty_3 = s2->u.C_El__Val.f_ty; __auto_type v_e_4 = s2->u.C_El__Val.f_e; ({ (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, f_Emit__gr(p_eff__Region, p_cx, p_fi, v_ty_3))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, ({ struct E_Emit__Name* o5 = (struct E_Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o5->tag = 1; o5->u.C_Emit__L.f_x = v_x_2; o5->u.C_Emit__L.f_n = f_Emit__envN(p_env); o5; }))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = ", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_e_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; ", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = f_Emit__bind(p_eff__Region, p_env, v_x_2); struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Stmt* t6 = v_rest_1; struct E_El__Expr* t7 = p_last; struct E_Coll__List__Emit__Drop* t8 = p_drops; p_eff__Console = t0; p_eff__Region = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_ss = t6; p_last = t7; p_drops = t8; goto srs_tail; (int64_t){0}; }); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_El__Handle.f_x; __auto_type v_h_3 = s2->u.C_El__Handle.f_h; __auto_type v_caps_4 = s2->u.C_El__Handle.f_caps; __auto_type v_args_5 = s2->u.C_El__Handle.f_args; ({ struct E_Emit__Name* v_v_6 = ({ struct E_Emit__Name* o6 = (struct E_Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__L))); o6->tag = 1; o6->u.C_Emit__L.f_x = v_x_2; o6->u.C_Emit__L.f_n = f_Emit__envN(p_env); o6; }); (void)(f_Emit__handleEnv(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_v_6, v_h_3, v_caps_4, v_args_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap ", 8})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_v = { ", 7})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s7 = v_caps_4; s7->tag == 0 ? ({ f_Emit__initCall(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, v_h_3, v_caps_4, v_args_5); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"&", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_e", 2})); p_eff__Console->live = 0; r_; }); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", vt_", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_h_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", 1 }; srs_cap* ", 16})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = &", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_6)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_v; ", 4})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = f_Emit__bind(p_eff__Region, p_env, v_x_2); struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Stmt* t6 = v_rest_1; struct E_El__Expr* t7 = p_last; struct E_Coll__List__Emit__Drop* t8 = ({ struct E_Coll__List__Emit__Drop* o7 = (struct E_Coll__List__Emit__Drop*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Emit__Drop, u) + sizeof(((struct E_Coll__List__Emit__Drop*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Emit__Drop* o7 = (struct E_Emit__Drop*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Drop, u) + sizeof(((struct E_Emit__Drop*)0)->u.C_Emit__Drop))); o7->tag = 0; o7->u.C_Emit__Drop.f_c = v_v_6; o7->u.C_Emit__Drop.f_proto = f_Emit__protoOfH(p_eff__Region, p_cx, v_h_3); o7; }); o7->u.C_Coll__Cons.f_t = p_drops; o7; }); p_eff__Console = t0; p_eff__Region = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_ss = t6; p_last = t7; p_drops = t8; goto srs_tail; (int64_t){0}; }); res_; }); }) : ({ __auto_type v_e_2 = s2->u.C_El__Do.f_e; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(void)(", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, p_env, (&N_Emit__Inner), v_e_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Fi* t3 = p_fi; struct E_Emit__Env* t4 = p_env; struct E_Emit__Pos* t5 = p_pos; struct E_Coll__List__El__Stmt* t6 = v_rest_1; struct E_El__Expr* t7 = p_last; struct E_Coll__List__Emit__Drop* t8 = p_drops; p_eff__Console = t0; p_eff__Region = t1; p_cx = t2; p_fi = t3; p_env = t4; p_pos = t5; p_ss = t6; p_last = t7; p_drops = t8; goto srs_tail; (int64_t){0}; }); res_; }); }); }); }); }); } static struct E_Emit__Pos* f_Emit__lastPos(struct E_Coll__List__Emit__Drop* p_drops, struct E_Emit__Pos* p_pos) { return ({ __auto_type s0 = p_drops; s0->tag == 0 ? ({ p_pos; }) : ({ (&N_Emit__Inner); }); }); } -static int64_t f_Emit__drops(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Drop* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_d_0; ({ __auto_type v_v_2 = s2->u.C_Emit__Drop.f_c; __auto_type v_p_3 = s2->u.C_Emit__Drop.f_proto; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_ps_4 = s4->u.C_Emit__Cx.f_protos; ({ (void)(({ __auto_type s5 = f_Coll__sLookup__Ast__Proto(p_r, v_ps_4, v_p_3); s5->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_pr_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_pr_5; ({ __auto_type v_dop_6 = s6->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_7 = s6->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = ({ __auto_type s8 = v_dop_6; s8->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_8 = s8->u.C_Coll__Some.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"if (", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->live) ((int64_t(*)(void*))(", 29})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->vt[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIn(v_ops_7, v_o_8, ((int64_t)0))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]))(", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->self); ", 9})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Emit__Drop* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_ds = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Sym__Sym* f_Emit__protoOfH(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_h) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_hp_0 = s0->u.C_Emit__Cx.f_hprotos; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Sym__Sym(p_r, v_hp_0, p_h); s1->tag == 1 ? ({ __auto_type v_p_1 = s1->u.C_Coll__Some.f_v; v_p_1; }) : ({ p_h; }); }); res_; }); }); }); res_; }); } -static bool f_Emit__hasTail(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_El__CallFn.f_f; __auto_type v_ts_1 = s0->u.C_El__CallFn.f_targs; f_Emit__isSelf(p_fi, v_f_0, f_Emit__grAll(p_r, p_cx, p_fi, v_ts_1)); }) : s0->tag == 11 ? ({ __auto_type v_t_0 = s0->u.C_El__If.f_t; __auto_type v_x_1 = s0->u.C_El__If.f_e; (f_Emit__hasTail(p_r, p_cx, p_fi, v_t_0) || f_Emit__hasTail(p_r, p_cx, p_fi, v_x_1)); }) : s0->tag == 12 ? ({ __auto_type v_arms_0 = s0->u.C_El__Match.f_arms; f_Emit__armsTail(p_r, p_cx, p_fi, v_arms_0); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; (f_Emit__hasHandle(v_ss_0) ? false : ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_last_1; p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; goto srs_tail; (bool){0}; })); }) : ({ false; }); }); } -static bool f_Emit__armsTail(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_El__Arm.f_body; ({ __auto_type res_ = (f_Emit__hasTail(p_r, p_cx, p_fi, v_b_2) ? true : ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Arm* t3 = v_rest_1; p_r = t0; p_cx = t1; p_fi = t2; p_as = t3; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__drops(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Drop* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_d_0; ({ __auto_type v_v_2 = s2->u.C_Emit__Drop.f_c; __auto_type v_p_3 = s2->u.C_Emit__Drop.f_proto; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_ps_4 = s4->u.C_Emit__Cx.f_protos; ({ (void)(({ __auto_type s5 = f_Coll__sLookup__Ast__Proto(p_eff__Region, v_ps_4, v_p_3); s5->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_pr_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_pr_5; ({ __auto_type v_dop_6 = s6->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_7 = s6->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = ({ __auto_type s8 = v_dop_6; s8->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_8 = s8->u.C_Coll__Some.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"if (", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->live) ((int64_t(*)(void*))(", 29})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->vt[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIn(v_ops_7, v_o_8, ((int64_t)0))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]))(", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__cname(p_eff__Console, v_v_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"->self); ", 9})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Emit__Drop* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_ds = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Sym__Sym* f_Emit__protoOfH(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_h) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_hp_0 = s0->u.C_Emit__Cx.f_hprotos; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Sym__Sym(p_eff__Region, v_hp_0, p_h); s1->tag == 1 ? ({ __auto_type v_p_1 = s1->u.C_Coll__Some.f_v; v_p_1; }) : ({ p_h; }); }); res_; }); }); }); res_; }); } +static bool f_Emit__hasTail(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_El__CallFn.f_f; __auto_type v_ts_1 = s0->u.C_El__CallFn.f_targs; f_Emit__isSelf(p_fi, v_f_0, f_Emit__grAll(p_eff__Region, p_cx, p_fi, v_ts_1)); }) : s0->tag == 11 ? ({ __auto_type v_t_0 = s0->u.C_El__If.f_t; __auto_type v_x_1 = s0->u.C_El__If.f_e; (f_Emit__hasTail(p_eff__Region, p_cx, p_fi, v_t_0) || f_Emit__hasTail(p_eff__Region, p_cx, p_fi, v_x_1)); }) : s0->tag == 12 ? ({ __auto_type v_arms_0 = s0->u.C_El__Match.f_arms; f_Emit__armsTail(p_eff__Region, p_cx, p_fi, v_arms_0); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; (f_Emit__hasHandle(v_ss_0) ? false : ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_last_1; p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; goto srs_tail; (bool){0}; })); }) : ({ false; }); }); } +static bool f_Emit__armsTail(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_El__Arm.f_body; ({ __auto_type res_ = (f_Emit__hasTail(p_eff__Region, p_cx, p_fi, v_b_2) ? true : ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Arm* t3 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_fi = t2; p_as = t3; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Emit__hasHandle(struct E_Coll__List__El__Stmt* p_ss) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 1 ? ({ true; }) : ({ ({ struct E_Coll__List__El__Stmt* t0 = v_rest_1; p_ss = t0; goto srs_tail; (bool){0}; }); }); }); }); }); } -static struct E_Emit__Fi* f_Emit__fiOf(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Mono__Inst* p_i) { return ({ __auto_type res_ = ({ __auto_type s0 = p_i; ({ __auto_type v_f_0 = s0->u.C_Mono__Inst.f_f; __auto_type v_sub_1 = s0->u.C_Mono__Inst.f_sub; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_name_2 = s2->u.C_El__Fn.f_name; __auto_type v_tps_3 = s2->u.C_El__Fn.f_tparams; __auto_type v_caps_4 = s2->u.C_El__Fn.f_caps; __auto_type v_ps_5 = s2->u.C_El__Fn.f_params; __auto_type v_ret_6 = s2->u.C_El__Fn.f_ret; ({ __auto_type res_ = ({ struct E_Emit__Fi* o7 = (struct E_Emit__Fi*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Fi, u) + sizeof(((struct E_Emit__Fi*)0)->u.C_Emit__Fi))); o7->tag = 0; o7->u.C_Emit__Fi.f_self = v_name_2; o7->u.C_Emit__Fi.f_targs = f_Emit__targsOf(p_r, v_sub_1, v_tps_3, (&N_Coll__Nil__K__Term)); o7->u.C_Emit__Fi.f_sub = v_sub_1; o7->u.C_Emit__Fi.f_slots = f_Emit__slots(p_r, p_cx, v_sub_1, v_caps_4, v_ps_5); o7->u.C_Emit__Fi.f_ret = f_Mono__ground(p_r, f_Emit__subst(p_cx), v_sub_1, v_ret_6); o7; }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__K__Term* f_Emit__targsOf(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Ty__lookup(p_r, p_sub, v_x_0); s2->tag == 1 ? ({ __auto_type v_t_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Bind* t1 = p_sub; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_sub = t1; p_tps = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Bind* t1 = p_sub; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_x_0; o2->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_sub = t1; p_tps = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } -static struct E_Coll__List__K__Term* f_Coll__rev__K__Term(srs_cap* p_r, struct E_Coll__List__K__Term* p_xs) { return f_Coll__revOnto__K__Term(p_r, p_xs, (&N_Coll__Nil__K__Term)); } -static struct E_Coll__List__K__Term* f_Coll__revOnto__K__Term(srs_cap* p_r, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Term* t1 = v_t_1; struct E_Coll__List__K__Term* t2 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } -static struct E_Coll__List__Emit__Slot* f_Emit__slots(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Param* p_ps) { return ({ __auto_type s0 = p_caps; s0->tag == 1 ? ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Emit__Slot* o2 = (struct E_Coll__List__Emit__Slot*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Emit__Slot, u) + sizeof(((struct E_Coll__List__Emit__Slot*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Emit__Slot* o2 = (struct E_Emit__Slot*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Slot, u) + sizeof(((struct E_Emit__Slot*)0)->u.C_Emit__SCap))); o2->tag = 0; o2->u.C_Emit__SCap.f_x = v_c_0; o2; }); o2->u.C_Coll__Cons.f_t = f_Emit__slots(p_r, p_cx, p_sub, v_rest_1, p_ps); o2; }); }) : ({ f_Emit__valSlots(p_r, p_cx, p_sub, p_ps, (&N_Coll__Nil__Emit__Slot)); }); }); } -static struct E_Coll__List__Emit__Slot* f_Emit__valSlots(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Param* p_ps, struct E_Coll__List__Emit__Slot* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ f_Coll__rev__Emit__Slot(p_r, p_acc); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_x_2 = s2->u.C_El__Param.f_x; __auto_type v_t_3 = s2->u.C_El__Param.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Param* t3 = v_rest_1; struct E_Coll__List__Emit__Slot* t4 = ({ struct E_Coll__List__Emit__Slot* o4 = (struct E_Coll__List__Emit__Slot*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Emit__Slot, u) + sizeof(((struct E_Coll__List__Emit__Slot*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Emit__Slot* o4 = (struct E_Emit__Slot*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Slot, u) + sizeof(((struct E_Emit__Slot*)0)->u.C_Emit__SVal))); o4->tag = 1; o4->u.C_Emit__SVal.f_x = v_x_2; o4->u.C_Emit__SVal.f_t = f_Mono__ground(p_r, f_Emit__subst(p_cx), p_sub, v_t_3); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_cx = t1; p_sub = t2; p_ps = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Emit__Slot*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Emit__Slot* f_Coll__rev__Emit__Slot(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_xs) { return f_Coll__revOnto__Emit__Slot(p_r, p_xs, (&N_Coll__Nil__Emit__Slot)); } -static struct E_Coll__List__Emit__Slot* f_Coll__revOnto__Emit__Slot(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_xs, struct E_Coll__List__Emit__Slot* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Emit__Slot* t1 = v_t_1; struct E_Coll__List__Emit__Slot* t2 = ({ struct E_Coll__List__Emit__Slot* o2 = (struct E_Coll__List__Emit__Slot*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Emit__Slot, u) + sizeof(((struct E_Coll__List__Emit__Slot*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Emit__Slot*){0}; }); }); }); } +static struct E_Emit__Fi* f_Emit__fiOf(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Mono__Inst* p_i) { return ({ __auto_type res_ = ({ __auto_type s0 = p_i; ({ __auto_type v_f_0 = s0->u.C_Mono__Inst.f_f; __auto_type v_sub_1 = s0->u.C_Mono__Inst.f_sub; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_name_2 = s2->u.C_El__Fn.f_name; __auto_type v_tps_3 = s2->u.C_El__Fn.f_tparams; __auto_type v_caps_4 = s2->u.C_El__Fn.f_caps; __auto_type v_ps_5 = s2->u.C_El__Fn.f_params; __auto_type v_ret_6 = s2->u.C_El__Fn.f_ret; ({ __auto_type res_ = ({ struct E_Emit__Fi* o7 = (struct E_Emit__Fi*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Fi, u) + sizeof(((struct E_Emit__Fi*)0)->u.C_Emit__Fi))); o7->tag = 0; o7->u.C_Emit__Fi.f_self = v_name_2; o7->u.C_Emit__Fi.f_targs = f_Emit__targsOf(p_eff__Region, v_sub_1, v_tps_3, (&N_Coll__Nil__K__Term)); o7->u.C_Emit__Fi.f_sub = v_sub_1; o7->u.C_Emit__Fi.f_slots = f_Emit__slots(p_eff__Region, p_cx, v_sub_1, v_caps_4, v_ps_5); o7->u.C_Emit__Fi.f_ret = f_Mono__ground(p_eff__Region, f_Emit__subst(p_cx), v_sub_1, v_ret_6); o7; }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__Term* f_Emit__targsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Ty__lookup(p_eff__Region, p_sub, v_x_0); s2->tag == 1 ? ({ __auto_type v_t_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Bind* t1 = p_sub; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_sub = t1; p_tps = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Bind* t1 = p_sub; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_x_0; o2->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_sub = t1; p_tps = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } +static struct E_Coll__List__K__Term* f_Coll__rev__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_xs) { return f_Coll__revOnto__K__Term(p_eff__Region, p_xs, (&N_Coll__Nil__K__Term)); } +static struct E_Coll__List__K__Term* f_Coll__revOnto__K__Term(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Term* t1 = v_t_1; struct E_Coll__List__K__Term* t2 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_Coll__List__Emit__Slot* f_Emit__slots(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Sym__Sym* p_caps, struct E_Coll__List__El__Param* p_ps) { return ({ __auto_type s0 = p_caps; s0->tag == 1 ? ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Emit__Slot* o2 = (struct E_Coll__List__Emit__Slot*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Emit__Slot, u) + sizeof(((struct E_Coll__List__Emit__Slot*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Emit__Slot* o2 = (struct E_Emit__Slot*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Slot, u) + sizeof(((struct E_Emit__Slot*)0)->u.C_Emit__SCap))); o2->tag = 0; o2->u.C_Emit__SCap.f_x = v_c_0; o2; }); o2->u.C_Coll__Cons.f_t = f_Emit__slots(p_eff__Region, p_cx, p_sub, v_rest_1, p_ps); o2; }); }) : ({ f_Emit__valSlots(p_eff__Region, p_cx, p_sub, p_ps, (&N_Coll__Nil__Emit__Slot)); }); }); } +static struct E_Coll__List__Emit__Slot* f_Emit__valSlots(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Param* p_ps, struct E_Coll__List__Emit__Slot* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ f_Coll__rev__Emit__Slot(p_eff__Region, p_acc); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_x_2 = s2->u.C_El__Param.f_x; __auto_type v_t_3 = s2->u.C_El__Param.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Param* t3 = v_rest_1; struct E_Coll__List__Emit__Slot* t4 = ({ struct E_Coll__List__Emit__Slot* o4 = (struct E_Coll__List__Emit__Slot*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Emit__Slot, u) + sizeof(((struct E_Coll__List__Emit__Slot*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Emit__Slot* o4 = (struct E_Emit__Slot*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Slot, u) + sizeof(((struct E_Emit__Slot*)0)->u.C_Emit__SVal))); o4->tag = 1; o4->u.C_Emit__SVal.f_x = v_x_2; o4->u.C_Emit__SVal.f_t = f_Mono__ground(p_eff__Region, f_Emit__subst(p_cx), p_sub, v_t_3); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_cx = t1; p_sub = t2; p_ps = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Emit__Slot*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Emit__Slot* f_Coll__rev__Emit__Slot(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_xs) { return f_Coll__revOnto__Emit__Slot(p_eff__Region, p_xs, (&N_Coll__Nil__Emit__Slot)); } +static struct E_Coll__List__Emit__Slot* f_Coll__revOnto__Emit__Slot(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_xs, struct E_Coll__List__Emit__Slot* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Emit__Slot* t1 = v_t_1; struct E_Coll__List__Emit__Slot* t2 = ({ struct E_Coll__List__Emit__Slot* o2 = (struct E_Coll__List__Emit__Slot*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Emit__Slot, u) + sizeof(((struct E_Coll__List__Emit__Slot*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Emit__Slot*){0}; }); }); }); } static bool f_Emit__isDef(struct E_Mono__Inst* p_i) { return ({ __auto_type res_ = ({ __auto_type s0 = p_i; ({ __auto_type v_f_0 = s0->u.C_Mono__Inst.f_f; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_body_1 = s1->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s2 = v_body_1; s2->tag == 0 ? ({ true; }) : ({ false; }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static int64_t f_Emit__sig(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_self_0 = s0->u.C_Emit__Fi.f_self; __auto_type v_targs_1 = s0->u.C_Emit__Fi.f_targs; __auto_type v_slots_2 = s0->u.C_Emit__Fi.f_slots; __auto_type v_ret_3 = s0->u.C_Emit__Fi.f_ret; ({ (void)(({ __auto_type s4 = p_k; s4->tag == 1 ? ({ ((int64_t)0); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static ", 7})); p_eff__Console->live = 0; r_; }); }); })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, v_ret_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s4 = p_k; s4->tag == 0 ? ({ f_Emit__defName(p_eff__Console, v_self_0, v_targs_1); }) : s4->tag == 1 ? ({ f_Emit__id(p_eff__Console, v_self_0); }) : s4->tag == 2 ? ({ __auto_type v_h_4 = s4->u.C_Emit__KHandler.f_h; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"h_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_h_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__id(p_eff__Console, v_self_0); res_; }); }) : ({ __auto_type v_head_4 = s4->u.C_Emit__KGiven.f_head; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"g_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__termName(p_eff__Console, v_head_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__id(p_eff__Console, v_self_0); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s4 = v_slots_2; s4->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"void", 4})); p_eff__Console->live = 0; r_; }); }) : ({ f_Emit__params(p_r, p_eff__Console, p_cx, v_slots_2, (&N_Emit__First)); }); })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } -static int64_t f_Emit__params(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Slot* p_slots, struct E_Emit__Sep* p_s) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__sep(p_eff__Console, p_s)); (void)(({ __auto_type s2 = v_sl_0; s2->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap*", 8})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_t_2 = s2->u.C_Emit__SVal.f_t; f_Emit__ctype(p_r, p_eff__Console, p_cx, v_t_2); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" p_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, f_Emit__slotName(v_sl_0))); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Emit__Slot* t3 = v_rest_1; struct E_Emit__Sep* t4 = (&N_Emit__Comma); p_r = t0; p_eff__Console = t1; p_cx = t2; p_slots = t3; p_s = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static struct E_Emit__Env* f_Emit__paramEnv(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Emit__Name* p_acc) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ({ struct E_Emit__Env* o0 = (struct E_Emit__Env*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Env, u) + sizeof(((struct E_Emit__Env*)0)->u.C_Emit__Env))); o0->tag = 0; o0->u.C_Emit__Env.f_vs = p_acc; o0->u.C_Emit__Env.f_n = ((int64_t)0); o0; }); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; struct E_Coll__List__Emit__Name* t2 = ({ struct E_Coll__List__Emit__Name* o2 = (struct E_Coll__List__Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Emit__Name, u) + sizeof(((struct E_Coll__List__Emit__Name*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Emit__Name* o2 = (struct E_Emit__Name*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__P))); o2->tag = 0; o2->u.C_Emit__P.f_x = f_Emit__slotName(v_sl_0); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_slots = t1; p_acc = t2; goto srs_tail; (struct E_Emit__Env*){0}; }); }); }); } -static int64_t f_Emit__body(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k, struct E_El__Expr* p_e) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_slots_0 = s0->u.C_Emit__Fi.f_slots; ({ (void)(f_Emit__sig(p_r, p_eff__Console, p_cx, p_fi, p_k)); struct E_Emit__Pos* v_pos_1 = ({ __auto_type s1 = p_k; s1->tag == 0 ? ({ (f_Emit__hasTail(p_r, p_cx, p_fi, p_e) ? (&N_Emit__Tail) : (&N_Emit__Inner)); }) : ({ (&N_Emit__Inner); }); }); (void)(({ __auto_type s2 = v_pos_1; s2->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" { srs_tail: return ", 20})); p_eff__Console->live = 0; r_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" { return ", 10})); p_eff__Console->live = 0; r_; }); }); })); (void)(f_Emit__ex(p_r, p_eff__Console, p_cx, p_fi, f_Emit__paramEnv(p_r, v_slots_0, (&N_Coll__Nil__Emit__Name)), v_pos_1, p_e)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; }\n", 4})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } -static struct E_Coll__List__K__Term* f_Emit__instTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_f_2 = s2->u.C_Mono__Inst.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ __auto_type v_e_4 = s4->u.C_El__Def.f_e; ({ struct E_Emit__Fi* v_fi_5 = f_Emit__fiOf(p_r, p_cx, v_i_0); __auto_type res_ = ({ __auto_type s6 = v_fi_5; ({ __auto_type v_slots_6 = s6->u.C_Emit__Fi.f_slots; __auto_type v_ret_7 = s6->u.C_Emit__Fi.f_ret; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__Mono__Inst* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = f_Emit__exTys(p_r, p_cx, v_fi_5, v_e_4, f_Emit__slotTys(p_r, v_slots_6, ({ struct E_Coll__List__K__Term* o8 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_ret_7; o8->u.C_Coll__Cons.f_t = p_acc; o8; }))); p_r = t0; p_cx = t1; p_is = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__Mono__Inst* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = p_acc; p_r = t0; p_cx = t1; p_is = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__K__Term* f_Emit__slotTys(srs_cap* p_r, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_sl_0; s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; struct E_Coll__List__K__Term* t2 = p_acc; p_r = t0; p_slots = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ __auto_type v_t_2 = s2->u.C_Emit__SVal.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; struct E_Coll__List__K__Term* t2 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_slots = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } -static struct E_Coll__List__K__Term* f_Emit__exTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_args_0 = s0->u.C_El__CallFn.f_args; f_Emit__exsTys(p_r, p_cx, p_fi, v_args_0, p_acc); }) : s0->tag == 6 ? ({ __auto_type v_en_0 = s0->u.C_El__New.f_en; __auto_type v_ts_1 = s0->u.C_El__New.f_targs; __auto_type v_args_2 = s0->u.C_El__New.f_args; f_Emit__exsTys(p_r, p_cx, p_fi, v_args_2, ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_K__Term* o3 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o3->tag = 1; o3->u.C_K__Con.f_f = v_en_0; o3->u.C_K__Con.f_args = f_Emit__grAll(p_r, p_cx, p_fi, v_ts_1); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; })); }) : s0->tag == 7 ? ({ __auto_type v_en_0 = s0->u.C_El__Nullary.f_en; __auto_type v_ts_1 = s0->u.C_El__Nullary.f_targs; ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_en_0; o2->u.C_K__Con.f_args = f_Emit__grAll(p_r, p_cx, p_fi, v_ts_1); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); }) : s0->tag == 8 ? ({ __auto_type v_args_0 = s0->u.C_El__Op.f_args; f_Emit__exsTys(p_r, p_cx, p_fi, v_args_0, p_acc); }) : s0->tag == 9 ? ({ __auto_type v_l_0 = s0->u.C_El__Bin.f_l; __auto_type v_x_1 = s0->u.C_El__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_l_0, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_x_0 = s0->u.C_El__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__K__Term* t4 = p_acc; p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 11 ? ({ __auto_type v_c_0 = s0->u.C_El__If.f_c; __auto_type v_t_1 = s0->u.C_El__If.f_t; __auto_type v_x_2 = s0->u.C_El__If.f_e; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_2; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_t_1, f_Emit__exTys(p_r, p_cx, p_fi, v_c_0, p_acc)); p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_x_0 = s0->u.C_El__Match.f_s; __auto_type v_en_1 = s0->u.C_El__Match.f_en; __auto_type v_arms_2 = s0->u.C_El__Match.f_arms; f_Emit__armsTys(p_r, p_cx, p_fi, v_arms_2, f_Emit__exTys(p_r, p_cx, p_fi, v_x_0, ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Emit__gr(p_r, p_cx, p_fi, v_en_1); o3->u.C_Coll__Cons.f_t = p_acc; o3; }))); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_last_1; struct E_Coll__List__K__Term* t4 = f_Emit__stmtsTys(p_r, p_cx, p_fi, v_ss_0, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_c_0 = s0->u.C_El__While.f_c; __auto_type v_b_1 = s0->u.C_El__While.f_body; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_b_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_c_0, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 15 ? ({ __auto_type v_x_0 = s0->u.C_El__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__K__Term* t4 = p_acc; p_r = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ p_acc; }); }); } -static struct E_Coll__List__K__Term* f_Emit__exsTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Expr* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_x_0, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } -static struct E_Coll__List__K__Term* f_Emit__armsTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_El__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Arm* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_b_2, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_as = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__K__Term* f_Emit__stmtsTys(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Stmt* p_ss, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_ty_2 = s2->u.C_El__Val.f_ty; __auto_type v_e_3 = s2->u.C_El__Val.f_e; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_e_3, ({ struct E_Coll__List__K__Term* o4 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Emit__gr(p_r, p_cx, p_fi, v_ty_2); o4->u.C_Coll__Cons.f_t = p_acc; o4; })); p_r = t0; p_cx = t1; p_fi = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_args_2 = s2->u.C_El__Handle.f_args; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exsTys(p_r, p_cx, p_fi, v_args_2, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_El__Do.f_e; ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_r, p_cx, p_fi, v_e_2, p_acc); p_r = t0; p_cx = t1; p_fi = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } -static struct E_Coll__List__K__Term* f_Emit__closeEnums(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_todo, struct E_Coll__BTree__Coll__List_1_K__Term* p_seen, struct E_Coll__List__K__Term* p_out) { srs_tail: return ({ __auto_type s0 = p_todo; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_out); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_n_2 = s2->u.C_K__Con.f_f; __auto_type v_args_3 = s2->u.C_K__Con.f_args; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_es_4 = s4->u.C_Emit__Cx.f_enums; ({ int64_t v_h_5 = f_Mono__thash(v_t_0, ((int64_t)0)); __auto_type res_ = ({ __auto_type s6 = f_Coll__sLookup__Ast__Enum(p_r, v_es_4, v_n_2); s6->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__BTree__Coll__List_1_K__Term* t3 = p_seen; struct E_Coll__List__K__Term* t4 = p_out; p_r = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ __auto_type v_e_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = (f_Emit__inTerms(f_Coll__bTGetOr__Coll__List_1_K__Term(p_seen, v_h_5, (&N_Coll__Nil__K__Term)), v_t_0) ? ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__BTree__Coll__List_1_K__Term* t3 = p_seen; struct E_Coll__List__K__Term* t4 = p_out; p_r = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = f_Emit__fieldTys(p_r, v_e_6, v_args_3, v_rest_1); struct E_Coll__BTree__Coll__List_1_K__Term* t3 = f_Coll__bPushT__K__Term(p_r, p_seen, v_h_5, v_t_0); struct E_Coll__List__K__Term* t4 = ({ struct E_Coll__List__K__Term* o7 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_t_0; o7->u.C_Coll__Cons.f_t = p_out; o7; }); p_r = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__BTree__Coll__List_1_K__Term* t3 = p_seen; struct E_Coll__List__K__Term* t4 = p_out; p_r = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } -static struct E_Coll__Option__Ast__Enum* f_Coll__sLookup__Ast__Enum(srs_cap* p_r, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__Enum(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum)), p_s); }); }); } -static struct E_Coll__Option__Ast__Enum* f_Coll__sFind__Ast__Enum(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Enum); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__Enum* o4 = (struct E_Coll__Option__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Enum, u) + sizeof(((struct E_Coll__Option__Ast__Enum*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Ast__Enum* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__Enum*){0}; })); }); }); }); }); } +static int64_t f_Emit__sig(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_self_0 = s0->u.C_Emit__Fi.f_self; __auto_type v_targs_1 = s0->u.C_Emit__Fi.f_targs; __auto_type v_slots_2 = s0->u.C_Emit__Fi.f_slots; __auto_type v_ret_3 = s0->u.C_Emit__Fi.f_ret; ({ (void)(({ __auto_type s4 = p_k; s4->tag == 1 ? ({ ((int64_t)0); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static ", 7})); p_eff__Console->live = 0; r_; }); }); })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, v_ret_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s4 = p_k; s4->tag == 0 ? ({ f_Emit__defName(p_eff__Console, v_self_0, v_targs_1); }) : s4->tag == 1 ? ({ f_Emit__id(p_eff__Console, v_self_0); }) : s4->tag == 2 ? ({ __auto_type v_h_4 = s4->u.C_Emit__KHandler.f_h; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"h_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_h_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__id(p_eff__Console, v_self_0); res_; }); }) : ({ __auto_type v_head_4 = s4->u.C_Emit__KGiven.f_head; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"g_", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__termName(p_eff__Console, v_head_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_Emit__id(p_eff__Console, v_self_0); res_; }); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s4 = v_slots_2; s4->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"void", 4})); p_eff__Console->live = 0; r_; }); }) : ({ f_Emit__params(p_eff__Region, p_eff__Console, p_cx, v_slots_2, (&N_Emit__First)); }); })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } +static int64_t f_Emit__params(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Emit__Slot* p_slots, struct E_Emit__Sep* p_s) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__sep(p_eff__Console, p_s)); (void)(({ __auto_type s2 = v_sl_0; s2->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs_cap*", 8})); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_t_2 = s2->u.C_Emit__SVal.f_t; f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, v_t_2); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" p_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, f_Emit__slotName(v_sl_0))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Emit__Slot* t3 = v_rest_1; struct E_Emit__Sep* t4 = (&N_Emit__Comma); p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_slots = t3; p_s = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static struct E_Emit__Env* f_Emit__paramEnv(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__Emit__Name* p_acc) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ({ struct E_Emit__Env* o0 = (struct E_Emit__Env*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Env, u) + sizeof(((struct E_Emit__Env*)0)->u.C_Emit__Env))); o0->tag = 0; o0->u.C_Emit__Env.f_vs = p_acc; o0->u.C_Emit__Env.f_n = ((int64_t)0); o0; }); }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; struct E_Coll__List__Emit__Name* t2 = ({ struct E_Coll__List__Emit__Name* o2 = (struct E_Coll__List__Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Emit__Name, u) + sizeof(((struct E_Coll__List__Emit__Name*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Emit__Name* o2 = (struct E_Emit__Name*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Name, u) + sizeof(((struct E_Emit__Name*)0)->u.C_Emit__P))); o2->tag = 0; o2->u.C_Emit__P.f_x = f_Emit__slotName(v_sl_0); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_slots = t1; p_acc = t2; goto srs_tail; (struct E_Emit__Env*){0}; }); }); }); } +static int64_t f_Emit__body(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Emit__Kind* p_k, struct E_El__Expr* p_e) { return ({ __auto_type res_ = ({ __auto_type s0 = p_fi; ({ __auto_type v_slots_0 = s0->u.C_Emit__Fi.f_slots; ({ (void)(f_Emit__sig(p_eff__Region, p_eff__Console, p_cx, p_fi, p_k)); struct E_Emit__Pos* v_pos_1 = ({ __auto_type s1 = p_k; s1->tag == 0 ? ({ (f_Emit__hasTail(p_eff__Region, p_cx, p_fi, p_e) ? (&N_Emit__Tail) : (&N_Emit__Inner)); }) : ({ (&N_Emit__Inner); }); }); (void)(({ __auto_type s2 = v_pos_1; s2->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" { srs_tail: return ", 20})); p_eff__Console->live = 0; r_; }); }) : ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" { return ", 10})); p_eff__Console->live = 0; r_; }); }); })); (void)(f_Emit__ex(p_eff__Region, p_eff__Console, p_cx, p_fi, f_Emit__paramEnv(p_eff__Region, v_slots_0, (&N_Coll__Nil__Emit__Name)), v_pos_1, p_e)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"; }\n", 4})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__Term* f_Emit__instTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_f_2 = s2->u.C_Mono__Inst.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ __auto_type v_e_4 = s4->u.C_El__Def.f_e; ({ struct E_Emit__Fi* v_fi_5 = f_Emit__fiOf(p_eff__Region, p_cx, v_i_0); __auto_type res_ = ({ __auto_type s6 = v_fi_5; ({ __auto_type v_slots_6 = s6->u.C_Emit__Fi.f_slots; __auto_type v_ret_7 = s6->u.C_Emit__Fi.f_ret; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__Mono__Inst* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = f_Emit__exTys(p_eff__Region, p_cx, v_fi_5, v_e_4, f_Emit__slotTys(p_eff__Region, v_slots_6, ({ struct E_Coll__List__K__Term* o8 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_ret_7; o8->u.C_Coll__Cons.f_t = p_acc; o8; }))); p_eff__Region = t0; p_cx = t1; p_is = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__Mono__Inst* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_is = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__slotTys(srs_cap* p_eff__Region, struct E_Coll__List__Emit__Slot* p_slots, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_sl_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_sl_0; s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; struct E_Coll__List__K__Term* t2 = p_acc; p_eff__Region = t0; p_slots = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ __auto_type v_t_2 = s2->u.C_Emit__SVal.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; struct E_Coll__List__K__Term* t2 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_slots = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__exTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_El__Expr* p_e, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_args_0 = s0->u.C_El__CallFn.f_args; f_Emit__exsTys(p_eff__Region, p_cx, p_fi, v_args_0, p_acc); }) : s0->tag == 6 ? ({ __auto_type v_en_0 = s0->u.C_El__New.f_en; __auto_type v_ts_1 = s0->u.C_El__New.f_targs; __auto_type v_args_2 = s0->u.C_El__New.f_args; f_Emit__exsTys(p_eff__Region, p_cx, p_fi, v_args_2, ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_K__Term* o3 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o3->tag = 1; o3->u.C_K__Con.f_f = v_en_0; o3->u.C_K__Con.f_args = f_Emit__grAll(p_eff__Region, p_cx, p_fi, v_ts_1); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; })); }) : s0->tag == 7 ? ({ __auto_type v_en_0 = s0->u.C_El__Nullary.f_en; __auto_type v_ts_1 = s0->u.C_El__Nullary.f_targs; ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_en_0; o2->u.C_K__Con.f_args = f_Emit__grAll(p_eff__Region, p_cx, p_fi, v_ts_1); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); }) : s0->tag == 8 ? ({ __auto_type v_args_0 = s0->u.C_El__Op.f_args; f_Emit__exsTys(p_eff__Region, p_cx, p_fi, v_args_0, p_acc); }) : s0->tag == 9 ? ({ __auto_type v_l_0 = s0->u.C_El__Bin.f_l; __auto_type v_x_1 = s0->u.C_El__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_l_0, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_x_0 = s0->u.C_El__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__K__Term* t4 = p_acc; p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 11 ? ({ __auto_type v_c_0 = s0->u.C_El__If.f_c; __auto_type v_t_1 = s0->u.C_El__If.f_t; __auto_type v_x_2 = s0->u.C_El__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_2; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_t_1, f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_c_0, p_acc)); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_x_0 = s0->u.C_El__Match.f_s; __auto_type v_en_1 = s0->u.C_El__Match.f_en; __auto_type v_arms_2 = s0->u.C_El__Match.f_arms; f_Emit__armsTys(p_eff__Region, p_cx, p_fi, v_arms_2, f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_x_0, ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Emit__gr(p_eff__Region, p_cx, p_fi, v_en_1); o3->u.C_Coll__Cons.f_t = p_acc; o3; }))); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_last_1; struct E_Coll__List__K__Term* t4 = f_Emit__stmtsTys(p_eff__Region, p_cx, p_fi, v_ss_0, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_c_0 = s0->u.C_El__While.f_c; __auto_type v_b_1 = s0->u.C_El__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_b_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_c_0, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s0->tag == 15 ? ({ __auto_type v_x_0 = s0->u.C_El__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__K__Term* t4 = p_acc; p_eff__Region = t0; p_cx = t1; p_fi = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ p_acc; }); }); } +static struct E_Coll__List__K__Term* f_Emit__exsTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Expr* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_x_0, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__armsTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Arm* p_as, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_El__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Arm* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_b_2, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_as = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__stmtsTys(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Emit__Fi* p_fi, struct E_Coll__List__El__Stmt* p_ss, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_ty_2 = s2->u.C_El__Val.f_ty; __auto_type v_e_3 = s2->u.C_El__Val.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_e_3, ({ struct E_Coll__List__K__Term* o4 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Emit__gr(p_eff__Region, p_cx, p_fi, v_ty_2); o4->u.C_Coll__Cons.f_t = p_acc; o4; })); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_args_2 = s2->u.C_El__Handle.f_args; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exsTys(p_eff__Region, p_cx, p_fi, v_args_2, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_El__Do.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Emit__Fi* t2 = p_fi; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = f_Emit__exTys(p_eff__Region, p_cx, p_fi, v_e_2, p_acc); p_eff__Region = t0; p_cx = t1; p_fi = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__closeEnums(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_todo, struct E_Coll__BTree__Coll__List_1_K__Term* p_seen, struct E_Coll__List__K__Term* p_out) { srs_tail: return ({ __auto_type s0 = p_todo; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_out); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_n_2 = s2->u.C_K__Con.f_f; __auto_type v_args_3 = s2->u.C_K__Con.f_args; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_es_4 = s4->u.C_Emit__Cx.f_enums; ({ int64_t v_h_5 = f_Mono__thash(v_t_0, ((int64_t)0)); __auto_type res_ = ({ __auto_type s6 = f_Coll__sLookup__Ast__Enum(p_eff__Region, v_es_4, v_n_2); s6->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__BTree__Coll__List_1_K__Term* t3 = p_seen; struct E_Coll__List__K__Term* t4 = p_out; p_eff__Region = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }) : ({ __auto_type v_e_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = (f_Emit__inTerms(f_Coll__bTGetOr__Coll__List_1_K__Term(p_seen, v_h_5, (&N_Coll__Nil__K__Term)), v_t_0) ? ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__BTree__Coll__List_1_K__Term* t3 = p_seen; struct E_Coll__List__K__Term* t4 = p_out; p_eff__Region = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = f_Emit__fieldTys(p_eff__Region, v_e_6, v_args_3, v_rest_1); struct E_Coll__BTree__Coll__List_1_K__Term* t3 = f_Coll__bPushT__K__Term(p_eff__Region, p_seen, v_h_5, v_t_0); struct E_Coll__List__K__Term* t4 = ({ struct E_Coll__List__K__Term* o7 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_t_0; o7->u.C_Coll__Cons.f_t = p_out; o7; }); p_eff__Region = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Emit__Cx* t1 = p_cx; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__BTree__Coll__List_1_K__Term* t3 = p_seen; struct E_Coll__List__K__Term* t4 = p_out; p_eff__Region = t0; p_cx = t1; p_todo = t2; p_seen = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); }); }); } +static struct E_Coll__Option__Ast__Enum* f_Coll__sLookup__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Enum* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__Enum(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__Enum)), p_s); }); }); } +static struct E_Coll__Option__Ast__Enum* f_Coll__sFind__Ast__Enum(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Enum); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__Enum* o4 = (struct E_Coll__Option__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Enum, u) + sizeof(((struct E_Coll__Option__Ast__Enum*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Ast__Enum* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__Enum*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__Enum* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Enum* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Enum* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Enum(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Enum(p_t, p_k), p_k, p_d); } static struct E_Coll__List__K__Term* f_Coll__bTGetOr__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_d) { return f_Coll__bValOr__Coll__List_1_K__Term(f_Coll__bFind__Coll__List_1_K__Term(p_t, p_k), p_k, p_d); } static struct E_Coll__List__K__Term* f_Coll__bValOr__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_n, int64_t p_k, struct E_Coll__List__K__Term* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bFind__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_K__Term* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_K__Term*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bPushT__K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_K__Term* p_x) { return ({ struct E_Coll__BTree__Coll__List_1_K__Term* v_n_0 = f_Coll__bFind__Coll__List_1_K__Term(p_t, p_k); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_K__Term(v_n_0) ? f_Coll__bRep__Coll__List_1_K__Term(p_r, p_t, p_k, ({ struct E_Coll__List__K__Term* o1 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = f_Coll__bValOr__Coll__List_1_K__Term(v_n_0, p_k, (&N_Coll__Nil__K__Term)); o1; })) : f_Coll__bIns__Coll__List_1_K__Term(p_r, p_t, p_k, ({ struct E_Coll__List__K__Term* o1 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o1; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bPushT__K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_K__Term* p_x) { return ({ struct E_Coll__BTree__Coll__List_1_K__Term* v_n_0 = f_Coll__bFind__Coll__List_1_K__Term(p_t, p_k); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_K__Term(v_n_0) ? f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, p_t, p_k, ({ struct E_Coll__List__K__Term* o1 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = f_Coll__bValOr__Coll__List_1_K__Term(v_n_0, p_k, (&N_Coll__Nil__K__Term)); o1; })) : f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_t, p_k, ({ struct E_Coll__List__K__Term* o1 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o1; }))); res_; }); } static bool f_Coll__bIsNode__Coll__List_1_K__Term(struct E_Coll__BTree__Coll__List_1_K__Term* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRep__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_K__Term(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bIns__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_K__Term(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2L__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_K__Term(p_r, f_Coll__bSplitIns__Coll__List_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2L__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_K__Term* f_Coll__bSplitIns__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_K__Term(p_r, ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_K__Term(p_r, ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2R__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_K__Term(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2R__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3A__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_K__Term(p_r, f_Coll__bSplitIns__Coll__List_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3A__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3B__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_K__Term(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3B__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3C__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_K__Term(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_K__Term(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_K__Term(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3C__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__Split__Coll__List_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRootIns__Coll__List_1_K__Term(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_K__Term(p_r, ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRep__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_K__Term* o10 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_K__Term(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bIns__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_t, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_K__Term* o7 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_K__Term(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2L__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_K__Term(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2L__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_K__Term* f_Coll__bSplitIns__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_K__Term* o0 = (struct E_Coll__Split__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__Split__Coll__List_1_K__Term*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto2R__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_K__Term(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift2R__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3A__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_K__Term(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3A__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3B__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_K__Term(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3B__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__Split__Coll__List_1_K__Term* p_s, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bInto3C__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_K__Term); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_K__Term); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_K__Term(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_K__Term(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bLift3C__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__Split__Coll__List_1_K__Term* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_K__Term* o4 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_K__Term* f_Coll__bRootIns__Coll__List_1_K__Term(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_K__Term* p_a, int64_t p_k1, struct E_Coll__List__K__Term* p_v1, struct E_Coll__BTree__Coll__List_1_K__Term* p_b, int64_t p_k2, struct E_Coll__List__K__Term* p_v2, struct E_Coll__BTree__Coll__List_1_K__Term* p_c, int64_t p_k3, struct E_Coll__List__K__Term* p_v3, struct E_Coll__BTree__Coll__List_1_K__Term* p_d, int64_t p_k, struct E_Coll__List__K__Term* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_K__Term(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_K__Term* o0 = (struct E_Coll__BTree__Coll__List_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_K__Term, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_K__Term*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } static bool f_Emit__inTerms(struct E_Coll__List__K__Term* p_ts, struct E_K__Term* p_t) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Mono__termEq(v_x_0, p_t) ? true : ({ struct E_Coll__List__K__Term* t0 = v_rest_1; struct E_K__Term* t1 = p_t; p_ts = t0; p_t = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__List__K__Term* f_Emit__fieldTys(srs_cap* p_r, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_args, struct E_Coll__List__K__Term* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_gs_0 = s0->u.C_Ast__Enum.f_groups; __auto_type v_cases_1 = s0->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Emit__casesTys(p_r, v_cases_1, f_Ty__zipBind(p_r, f_Ty__tparams(p_r, v_gs_0, (&N_Coll__Nil__Sym__Sym)), p_args, (&N_Coll__Nil__Ty__Bind)), p_acc); res_; }); }); }); res_; }); } -static struct E_Coll__List__K__Term* f_Emit__casesTys(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_fs_2 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = f_Emit__bindersTys(p_r, v_fs_2, p_tv, p_acc); p_r = t0; p_cs = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__K__Term* f_Emit__bindersTys(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Ty__term(p_r, v_t_2, p_tv); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_fs = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__fieldTys(srs_cap* p_eff__Region, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_args, struct E_Coll__List__K__Term* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_gs_0 = s0->u.C_Ast__Enum.f_groups; __auto_type v_cases_1 = s0->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Emit__casesTys(p_eff__Region, v_cases_1, f_Ty__zipBind(p_eff__Region, f_Ty__tparams(p_eff__Region, v_gs_0, (&N_Coll__Nil__Sym__Sym)), p_args, (&N_Coll__Nil__Ty__Bind)), p_acc); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__Term* f_Emit__casesTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_fs_2 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = f_Emit__bindersTys(p_eff__Region, v_fs_2, p_tv, p_acc); p_eff__Region = t0; p_cs = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Term* f_Emit__bindersTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Ty__term(p_eff__Region, v_t_2, p_tv); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_fs = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } static int64_t f_Emit__fwds(srs_cap* p_eff__Console, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct E_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__termName(p_eff__Console, v_t_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__K__Term* t1 = v_rest_1; p_eff__Console = t0; p_ts = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static int64_t f_Emit__termName(srs_cap* p_eff__Console, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; f_Emit__enumName(p_eff__Console, v_n_0, v_args_1); }) : ({ f_Emit__mangle(p_eff__Console, p_t); }); }); } -static int64_t f_Emit__structs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__withEnum(p_r, p_eff__Console, p_cx, v_t_0, (&N_Emit__Layout))); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__K__Term* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_ts = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Emit__statics(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__withEnum(p_r, p_eff__Console, p_cx, v_t_0, (&N_Emit__Code))); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__K__Term* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_ts = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Emit__withEnum(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t, struct E_Emit__Part* p_what) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_es_2 = s2->u.C_Emit__Cx.f_enums; ({ __auto_type res_ = ({ __auto_type s3 = f_Coll__sLookup__Ast__Enum(p_r, v_es_2, v_n_0); s3->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_e_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_e_3; ({ __auto_type v_gs_4 = s4->u.C_Ast__Enum.f_groups; __auto_type v_cases_5 = s4->u.C_Ast__Enum.f_cases; ({ struct E_Coll__List__Ty__Bind* v_tv_6 = f_Ty__zipBind(p_r, f_Ty__tparams(p_r, v_gs_4, (&N_Coll__Nil__Sym__Sym)), v_args_1, (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = ({ __auto_type s7 = p_what; s7->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct E_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, v_n_0, v_args_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" { int64_t tag; union {", 23})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__caseStructs(p_r, p_eff__Console, p_cx, v_cases_5, v_tv_6)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" int64_t none_; } u; };\n", 24})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ f_Emit__nullaries(p_eff__Console, v_n_0, v_args_1, v_cases_5, ((int64_t)0)); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ((int64_t)0); }); }); } -static int64_t f_Emit__caseStructs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_cn_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ (void)(({ __auto_type s4 = v_fs_3; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" struct {", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__fieldDecls(p_r, p_eff__Console, p_cx, v_fs_3, p_tv)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" } C_", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_cn_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Ast__Case* t3 = v_rest_1; struct E_Coll__List__Ty__Bind* t4 = p_tv; p_r = t0; p_eff__Console = t1; p_cx = t2; p_cs = t3; p_tv = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__fieldDecls(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, f_Ty__term(p_r, v_t_3, p_tv))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" f_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_x_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Ty__Bind* t4 = p_tv; p_r = t0; p_eff__Console = t1; p_cx = t2; p_fs = t3; p_tv = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__structs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__withEnum(p_eff__Region, p_eff__Console, p_cx, v_t_0, (&N_Emit__Layout))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__K__Term* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_ts = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Emit__statics(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(f_Emit__withEnum(p_eff__Region, p_eff__Console, p_cx, v_t_0, (&N_Emit__Code))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__K__Term* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_ts = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Emit__withEnum(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_K__Term* p_t, struct E_Emit__Part* p_what) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_es_2 = s2->u.C_Emit__Cx.f_enums; ({ __auto_type res_ = ({ __auto_type s3 = f_Coll__sLookup__Ast__Enum(p_eff__Region, v_es_2, v_n_0); s3->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_e_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_e_3; ({ __auto_type v_gs_4 = s4->u.C_Ast__Enum.f_groups; __auto_type v_cases_5 = s4->u.C_Ast__Enum.f_cases; ({ struct E_Coll__List__Ty__Bind* v_tv_6 = f_Ty__zipBind(p_eff__Region, f_Ty__tparams(p_eff__Region, v_gs_4, (&N_Coll__Nil__Sym__Sym)), v_args_1, (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = ({ __auto_type s7 = p_what; s7->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"struct E_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, v_n_0, v_args_1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" { int64_t tag; union {", 23})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__caseStructs(p_eff__Region, p_eff__Console, p_cx, v_cases_5, v_tv_6)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" int64_t none_; } u; };\n", 24})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ f_Emit__nullaries(p_eff__Console, v_n_0, v_args_1, v_cases_5, ((int64_t)0)); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ((int64_t)0); }); }); } +static int64_t f_Emit__caseStructs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ty__Bind* p_tv) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_cn_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ (void)(({ __auto_type s4 = v_fs_3; s4->tag == 0 ? ({ ((int64_t)0); }) : ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" struct {", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__fieldDecls(p_eff__Region, p_eff__Console, p_cx, v_fs_3, p_tv)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" } C_", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_cn_2)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Ast__Case* t3 = v_rest_1; struct E_Coll__List__Ty__Bind* t4 = p_tv; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_cs = t3; p_tv = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__fieldDecls(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, f_Ty__term(p_eff__Region, v_t_3, p_tv))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" f_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_x_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Ty__Bind* t4 = p_tv; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_fs = t3; p_tv = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } static int64_t f_Emit__nullaries(srs_cap* p_eff__Console, struct E_Sym__Sym* p_n, struct E_Coll__List__K__Term* p_args, struct E_Coll__List__Ast__Case* p_cs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_cn_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ (void)(({ __auto_type s4 = v_fs_3; s4->tag == 0 ? ({ ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static struct E_", 16})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__enumName(p_eff__Console, p_n, p_args)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" N_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_cn_2)); (void)(f_Emit__suffix(p_eff__Console, p_args)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = { ", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", { 0 } };\n", 11})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Sym__Sym* t1 = p_n; struct E_Coll__List__K__Term* t2 = p_args; struct E_Coll__List__Ast__Case* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); p_eff__Console = t0; p_n = t1; p_args = t2; p_cs = t3; p_i = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__externs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_tps_2 = s2->u.C_El__Fn.f_tparams; __auto_type v_body_3 = s2->u.C_El__Fn.f_body; ({ (void)(({ __auto_type s4 = v_body_3; s4->tag == 1 ? ({ ({ (void)(f_Emit__sig(p_r, p_eff__Console, p_cx, f_Emit__fiOf(p_r, p_cx, ({ struct E_Mono__Inst* o4 = (struct E_Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o4->tag = 0; o4->u.C_Mono__Inst.f_f = v_f_0; o4->u.C_Mono__Inst.f_sub = f_Emit__ptrs(p_r, v_tps_2, (&N_Coll__Nil__Ty__Bind)); o4->u.C_Mono__Inst.f_site = (&N_Mono__Top); o4; })), (&N_Emit__KExtern))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__El__Fn* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_fs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ty__Bind* f_Emit__ptrs(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = ({ struct E_Coll__List__Ty__Bind* o2 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o2 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o2->tag = 0; o2->u.C_Ty__Bind.f_x = v_x_0; o2->u.C_Ty__Bind.f_t = f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Ptr", 3})); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_tps = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); }); }); } -static struct E_Coll__Option__K__Term* f_Emit__externCast(srs_cap* p_r, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_gts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Emit__Cx.f_fns; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__El__Fn(p_r, v_fns_0, p_f); s1->tag == 1 ? ({ __auto_type v_g_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_g_1; ({ __auto_type v_tps_2 = s2->u.C_El__Fn.f_tparams; __auto_type v_ret_3 = s2->u.C_El__Fn.f_ret; __auto_type v_body_4 = s2->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s5 = v_body_4; s5->tag == 1 ? ({ ({ __auto_type s5 = v_ret_3; s5->tag == 1 ? ({ __auto_type v_n_5 = s5->u.C_K__Con.f_f; __auto_type v_xs_6 = s5->u.C_K__Con.f_args; ((f_Coll__length__K__Term(v_xs_6) == ((int64_t)0)) ? f_Ty__lookup(p_r, f_Ty__zipBind(p_r, v_tps_2, p_gts, (&N_Coll__Nil__Ty__Bind)), v_n_5) : (&N_Coll__None__K__Term)); }) : ({ (&N_Coll__None__K__Term); }); }); }) : ({ (&N_Coll__None__K__Term); }); }); res_; }); }); }); res_; }); }) : ({ (&N_Coll__None__K__Term); }); }); res_; }); }); }); res_; }); } -static int64_t f_Emit__protos(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)((f_Emit__isDef(v_i_0) ? ({ (void)(f_Emit__sig(p_r, p_eff__Console, p_cx, f_Emit__fiOf(p_r, p_cx, v_i_0), f_Emit__kindOf(p_r, v_i_0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; }); res_; }) : ((int64_t)0))); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Mono__Inst* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_is = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_Emit__bodies(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_f_2 = s2->u.C_Mono__Inst.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_El__Fn.f_body; ({ (void)(({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ __auto_type v_e_4 = s4->u.C_El__Def.f_e; f_Emit__body(p_r, p_eff__Console, p_cx, f_Emit__fiOf(p_r, p_cx, v_i_0), f_Emit__kindOf(p_r, v_i_0), v_e_4); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Mono__Inst* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_is = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__handlers(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs, struct E_Emit__Part* p_what) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_hn_2 = s2->u.C_El__Handler.f_name; __auto_type v_fs_3 = s2->u.C_El__Handler.f_fns; ({ (void)(f_Emit__implFns(p_r, p_eff__Console, p_cx, ({ struct E_Emit__Kind* o4 = (struct E_Emit__Kind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Kind, u) + sizeof(((struct E_Emit__Kind*)0)->u.C_Emit__KHandler))); o4->tag = 2; o4->u.C_Emit__KHandler.f_h = v_hn_2; o4; }), v_fs_3, p_what)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__El__Handler* t3 = v_rest_1; struct E_Emit__Part* t4 = p_what; p_r = t0; p_eff__Console = t1; p_cx = t2; p_hs = t3; p_what = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__implFns(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Kind* p_k, struct E_Coll__List__El__Fn* p_fs, struct E_Emit__Part* p_what) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_body_2 = s2->u.C_El__Fn.f_body; ({ struct E_Emit__Fi* v_fi_3 = f_Emit__fiOf(p_r, p_cx, ({ struct E_Mono__Inst* o3 = (struct E_Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o3->tag = 0; o3->u.C_Mono__Inst.f_f = v_f_0; o3->u.C_Mono__Inst.f_sub = (&N_Coll__Nil__Ty__Bind); o3->u.C_Mono__Inst.f_site = (&N_Mono__Top); o3; })); (void)(({ __auto_type s4 = p_what; s4->tag == 0 ? ({ ({ (void)(f_Emit__sig(p_r, p_eff__Console, p_cx, v_fi_3, p_k)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ __auto_type s4 = v_body_2; s4->tag == 0 ? ({ __auto_type v_e_4 = s4->u.C_El__Def.f_e; f_Emit__body(p_r, p_eff__Console, p_cx, v_fi_3, p_k, v_e_4); }) : ({ ((int64_t)0); }); }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Kind* t3 = p_k; struct E_Coll__List__El__Fn* t4 = v_rest_1; struct E_Emit__Part* t5 = p_what; p_r = t0; p_eff__Console = t1; p_cx = t2; p_k = t3; p_fs = t4; p_what = t5; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__vtables(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_hn_2 = s2->u.C_El__Handler.f_name; __auto_type v_p_3 = s2->u.C_El__Handler.f_proto; __auto_type v_fs_4 = s2->u.C_El__Handler.f_fns; ({ __auto_type res_ = ({ __auto_type s5 = p_cx; ({ __auto_type v_ps_5 = s5->u.C_Emit__Cx.f_protos; ({ srs_str v_pre_6 = (f_Emit__hasRow(v_fs_4) ? ((srs_str){(const uint8_t*)"w_", 2}) : ((srs_str){(const uint8_t*)"h_", 2})); (void)(f_Emit__wrappers(p_r, p_eff__Console, p_cx, v_hn_2, v_fs_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static void* const vt_", 22})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_hn_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[] = {", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s7 = f_Coll__sLookup__Ast__Proto(p_r, v_ps_5, v_p_3); s7->tag == 1 ? ({ __auto_type v_pr_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_pr_7; ({ __auto_type v_ops_8 = s8->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = f_Emit__vtOps(p_eff__Console, v_pre_6, v_hn_2, v_ops_8); res_; }); }); }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" 0 };\n", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__El__Handler* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_hs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__externs(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_tps_2 = s2->u.C_El__Fn.f_tparams; __auto_type v_body_3 = s2->u.C_El__Fn.f_body; ({ (void)(({ __auto_type s4 = v_body_3; s4->tag == 1 ? ({ ({ (void)(f_Emit__sig(p_eff__Region, p_eff__Console, p_cx, f_Emit__fiOf(p_eff__Region, p_cx, ({ struct E_Mono__Inst* o4 = (struct E_Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o4->tag = 0; o4->u.C_Mono__Inst.f_f = v_f_0; o4->u.C_Mono__Inst.f_sub = f_Emit__ptrs(p_eff__Region, v_tps_2, (&N_Coll__Nil__Ty__Bind)); o4->u.C_Mono__Inst.f_site = (&N_Mono__Top); o4; })), (&N_Emit__KExtern))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__El__Fn* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_fs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ty__Bind* f_Emit__ptrs(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = ({ struct E_Coll__List__Ty__Bind* o2 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o2 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o2->tag = 0; o2->u.C_Ty__Bind.f_x = v_x_0; o2->u.C_Ty__Bind.f_t = f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Ptr", 3})); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_tps = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); }); }); } +static struct E_Coll__Option__K__Term* f_Emit__externCast(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__K__Term* p_gts) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Emit__Cx.f_fns; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__El__Fn(p_eff__Region, v_fns_0, p_f); s1->tag == 1 ? ({ __auto_type v_g_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_g_1; ({ __auto_type v_tps_2 = s2->u.C_El__Fn.f_tparams; __auto_type v_ret_3 = s2->u.C_El__Fn.f_ret; __auto_type v_body_4 = s2->u.C_El__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s5 = v_body_4; s5->tag == 1 ? ({ ({ __auto_type s5 = v_ret_3; s5->tag == 1 ? ({ __auto_type v_n_5 = s5->u.C_K__Con.f_f; __auto_type v_xs_6 = s5->u.C_K__Con.f_args; ((f_Coll__length__K__Term(v_xs_6) == ((int64_t)0)) ? f_Ty__lookup(p_eff__Region, f_Ty__zipBind(p_eff__Region, v_tps_2, p_gts, (&N_Coll__Nil__Ty__Bind)), v_n_5) : (&N_Coll__None__K__Term)); }) : ({ (&N_Coll__None__K__Term); }); }); }) : ({ (&N_Coll__None__K__Term); }); }); res_; }); }); }); res_; }); }) : ({ (&N_Coll__None__K__Term); }); }); res_; }); }); }); res_; }); } +static int64_t f_Emit__protos(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)((f_Emit__isDef(v_i_0) ? ({ (void)(f_Emit__sig(p_eff__Region, p_eff__Console, p_cx, f_Emit__fiOf(p_eff__Region, p_cx, v_i_0), f_Emit__kindOf(p_eff__Region, v_i_0))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; }); res_; }) : ((int64_t)0))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Mono__Inst* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_is = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_Emit__bodies(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_is) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_f_2 = s2->u.C_Mono__Inst.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_El__Fn.f_body; ({ (void)(({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ __auto_type v_e_4 = s4->u.C_El__Def.f_e; f_Emit__body(p_eff__Region, p_eff__Console, p_cx, f_Emit__fiOf(p_eff__Region, p_cx, v_i_0), f_Emit__kindOf(p_eff__Region, v_i_0), v_e_4); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__Mono__Inst* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_is = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__handlers(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs, struct E_Emit__Part* p_what) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_hn_2 = s2->u.C_El__Handler.f_name; __auto_type v_fs_3 = s2->u.C_El__Handler.f_fns; ({ (void)(f_Emit__implFns(p_eff__Region, p_eff__Console, p_cx, ({ struct E_Emit__Kind* o4 = (struct E_Emit__Kind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Kind, u) + sizeof(((struct E_Emit__Kind*)0)->u.C_Emit__KHandler))); o4->tag = 2; o4->u.C_Emit__KHandler.f_h = v_hn_2; o4; }), v_fs_3, p_what)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__El__Handler* t3 = v_rest_1; struct E_Emit__Part* t4 = p_what; p_eff__Console = t0; p_eff__Region = t1; p_cx = t2; p_hs = t3; p_what = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__implFns(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Emit__Kind* p_k, struct E_Coll__List__El__Fn* p_fs, struct E_Emit__Part* p_what) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_body_2 = s2->u.C_El__Fn.f_body; ({ struct E_Emit__Fi* v_fi_3 = f_Emit__fiOf(p_eff__Region, p_cx, ({ struct E_Mono__Inst* o3 = (struct E_Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o3->tag = 0; o3->u.C_Mono__Inst.f_f = v_f_0; o3->u.C_Mono__Inst.f_sub = (&N_Coll__Nil__Ty__Bind); o3->u.C_Mono__Inst.f_site = (&N_Mono__Top); o3; })); (void)(({ __auto_type s4 = p_what; s4->tag == 0 ? ({ ({ (void)(f_Emit__sig(p_eff__Region, p_eff__Console, p_cx, v_fi_3, p_k)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)";\n", 2})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ({ __auto_type s4 = v_body_2; s4->tag == 0 ? ({ __auto_type v_e_4 = s4->u.C_El__Def.f_e; f_Emit__body(p_eff__Region, p_eff__Console, p_cx, v_fi_3, p_k, v_e_4); }) : ({ ((int64_t)0); }); }); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Emit__Kind* t3 = p_k; struct E_Coll__List__El__Fn* t4 = v_rest_1; struct E_Emit__Part* t5 = p_what; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_k = t3; p_fs = t4; p_what = t5; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__vtables(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Coll__List__El__Handler* p_hs) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_hn_2 = s2->u.C_El__Handler.f_name; __auto_type v_p_3 = s2->u.C_El__Handler.f_proto; __auto_type v_fs_4 = s2->u.C_El__Handler.f_fns; ({ __auto_type res_ = ({ __auto_type s5 = p_cx; ({ __auto_type v_ps_5 = s5->u.C_Emit__Cx.f_protos; ({ srs_str v_pre_6 = (f_Emit__hasRow(v_fs_4) ? ((srs_str){(const uint8_t*)"w_", 2}) : ((srs_str){(const uint8_t*)"h_", 2})); (void)(f_Emit__wrappers(p_eff__Region, p_eff__Console, p_cx, v_hn_2, v_fs_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static void* const vt_", 22})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_hn_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[] = {", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s7 = f_Coll__sLookup__Ast__Proto(p_eff__Region, v_ps_5, v_p_3); s7->tag == 1 ? ({ __auto_type v_pr_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_pr_7; ({ __auto_type v_ops_8 = s8->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = f_Emit__vtOps(p_eff__Console, v_pre_6, v_hn_2, v_ops_8); res_; }); }); }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" 0 };\n", 6})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Coll__List__El__Handler* t3 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_hs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } static bool f_Emit__hasRow(struct E_Coll__List__El__Fn* p_fs) { return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_caps_1 = s1->u.C_El__Fn.f_caps; ({ __auto_type res_ = (f_Coll__length__Sym__Sym(v_caps_1) > ((int64_t)0)); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__wrappers(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_hn, struct E_Coll__List__El__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_name_2 = s2->u.C_El__Fn.f_name; __auto_type v_caps_3 = s2->u.C_El__Fn.f_caps; ({ (void)((((f_Coll__length__Sym__Sym(v_caps_3) > ((int64_t)0)) && (!Str__eq(f_Sym__str(v_name_2), ((srs_str){(const uint8_t*)"init", 4})))) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Emit__fiOf(p_r, p_cx, ({ struct E_Mono__Inst* o4 = (struct E_Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o4->tag = 0; o4->u.C_Mono__Inst.f_f = v_f_0; o4->u.C_Mono__Inst.f_sub = (&N_Coll__Nil__Ty__Bind); o4->u.C_Mono__Inst.f_site = (&N_Mono__Top); o4; })); ({ __auto_type v_slots_4 = s4->u.C_Emit__Fi.f_slots; __auto_type v_ret_5 = s4->u.C_Emit__Fi.f_ret; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static ", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_r, p_eff__Console, p_cx, v_ret_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" w_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_hn)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(void* e_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__params(p_r, p_eff__Console, p_cx, f_Emit__opSlots(v_slots_4), (&N_Emit__Comma))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)") { srs_env* e = (srs_env*)e_; return h_", 40})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_hn)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__envCaps(p_eff__Console, ((int64_t)0), f_Coll__length__Sym__Sym(v_caps_3))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"e->st", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__slotArgs(p_eff__Console, f_Emit__opSlots(v_slots_4))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); }\n", 5})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }) : ((int64_t)0))); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Sym__Sym* t3 = p_hn; struct E_Coll__List__El__Fn* t4 = v_rest_1; p_r = t0; p_eff__Console = t1; p_cx = t2; p_hn = t3; p_fs = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } +static int64_t f_Emit__wrappers(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx, struct E_Sym__Sym* p_hn, struct E_Coll__List__El__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_name_2 = s2->u.C_El__Fn.f_name; __auto_type v_caps_3 = s2->u.C_El__Fn.f_caps; ({ (void)((((f_Coll__length__Sym__Sym(v_caps_3) > ((int64_t)0)) && (!Str__eq(f_Sym__str(v_name_2), ((srs_str){(const uint8_t*)"init", 4})))) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Emit__fiOf(p_eff__Region, p_cx, ({ struct E_Mono__Inst* o4 = (struct E_Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o4->tag = 0; o4->u.C_Mono__Inst.f_f = v_f_0; o4->u.C_Mono__Inst.f_sub = (&N_Coll__Nil__Ty__Bind); o4->u.C_Mono__Inst.f_site = (&N_Mono__Top); o4; })); ({ __auto_type v_slots_4 = s4->u.C_Emit__Fi.f_slots; __auto_type v_ret_5 = s4->u.C_Emit__Fi.f_ret; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static ", 7})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__ctype(p_eff__Region, p_eff__Console, p_cx, v_ret_5)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" w_", 3})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_hn)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(void* e_", 9})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__params(p_eff__Region, p_eff__Console, p_cx, f_Emit__opSlots(v_slots_4), (&N_Emit__Comma))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)") { srs_env* e = (srs_env*)e_; return h_", 40})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_hn)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_name_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__envCaps(p_eff__Console, ((int64_t)0), f_Coll__length__Sym__Sym(v_caps_3))); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"e->st", 5})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__slotArgs(p_eff__Console, f_Emit__opSlots(v_slots_4))); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"); }\n", 5})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }) : ((int64_t)0))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_cap* t1 = p_eff__Console; struct E_Emit__Cx* t2 = p_cx; struct E_Sym__Sym* t3 = p_hn; struct E_Coll__List__El__Fn* t4 = v_rest_1; p_eff__Region = t0; p_eff__Console = t1; p_cx = t2; p_hn = t3; p_fs = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } static struct E_Coll__List__Emit__Slot* f_Emit__opSlots(struct E_Coll__List__Emit__Slot* p_slots) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ (&N_Coll__Nil__Emit__Slot); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ ({ struct E_Coll__List__Emit__Slot* t0 = v_rest_1; p_slots = t0; goto srs_tail; (struct E_Coll__List__Emit__Slot*){0}; }); }) : ({ v_rest_1; }); }); }); }); } static int64_t f_Emit__envCaps(srs_cap* p_eff__Console, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = ((p_i < p_n) ? ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"e->c[", 5})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, p_i); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"], ", 3})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; int64_t t1 = (p_i + ((int64_t)1)); int64_t t2 = p_n; p_eff__Console = t0; p_i = t1; p_n = t2; goto srs_tail; (int64_t){0}; }); res_; }) : ((int64_t)0)); res_; }); } static int64_t f_Emit__slotArgs(srs_cap* p_eff__Console, struct E_Coll__List__Emit__Slot* p_slots) { srs_tail: return ({ __auto_type s0 = p_slots; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", p_", 4})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, f_Emit__slotName(v_s_0))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Emit__Slot* t1 = v_rest_1; p_eff__Console = t0; p_slots = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static int64_t f_Emit__vtOps(srs_cap* p_eff__Console, srs_str p_pre, struct E_Sym__Sym* p_hn, struct E_Coll__List__Ast__Op* p_ops) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Op.f_name; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" (void*)", 8})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, p_pre); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, p_hn)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"_", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__id(p_eff__Console, v_n_2)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)",", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_str t1 = p_pre; struct E_Sym__Sym* t2 = p_hn; struct E_Coll__List__Ast__Op* t3 = v_rest_1; p_eff__Console = t0; p_pre = t1; p_hn = t2; p_ops = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static int64_t f_Emit__allocFast(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct srs_chunk { struct srs_chunk* next; size_t used, cap; } srs_chunk;\n", 82})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static inline void* srs_alloc(srs_cap* c, int64_t size) {\n", 58})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" if (c->vt == vt_Srs__Arena) {\n", 32})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" srs_chunk* h = *(srs_chunk**)c->self;\n", 42})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" size_t n = ((size_t)size + 15) & ~(size_t)15;\n", 50})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" if (h && h->used + n <= h->cap) { void* p = (char*)(h + 1) + h->used; h->used += n; return p; }\n", 100})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" return rt_arena_alloc(c->self, size);\n", 42})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" }\n", 4})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" return ((void*(*)(void*, int64_t))c->vt[", 42})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIndex(p_r, p_cx, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6})), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"alloc", 5})))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"])(c->self, size);\n", 19})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"}\n", 2})); p_eff__Console->live = 0; r_; }); res_; }); } -static bool f_Emit__hasMain(srs_cap* p_r, struct E_Emit__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Emit__Cx.f_fns; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__El__Fn(p_r, v_fns_0, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"main", 4}))); s1->tag == 1 ? ({ true; }) : ({ false; }); }); res_; }); }); }); res_; }); } -static int64_t f_Emit__program(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ty__Result* p_res) { return ({ __auto_type res_ = ({ __auto_type s0 = p_res; ({ __auto_type v_s_0 = s0->u.C_Ty__Result.f_s; __auto_type v_fs_1 = s0->u.C_Ty__Result.f_fns; __auto_type v_hs_2 = s0->u.C_Ty__Result.f_hs; ({ struct E_Emit__Cx* v_cx_3 = f_Emit__cxOf(p_r, p_ds, v_s_0, v_fs_1); struct E_Coll__List__Mono__Inst* v_is_4 = f_Mono__run(p_r, p_res); struct E_Coll__List__K__Term* v_ens_5 = f_Emit__closeEnums(p_r, v_cx_3, f_Emit__instTys(p_r, v_cx_3, v_is_4, (&N_Coll__Nil__K__Term)), (&N_Coll__BTip__Coll__List_1_K__Term), (&N_Coll__Nil__K__Term)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"// DO-NOT-EDIT. Generated by srs (s2/emit.srs).\n", 48})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"#include \n#include \n#include \n", 61})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct { const uint8_t* p; int64_t n; } srs_str;\n", 57})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct { void* self; void* const* vt; int64_t live; } srs_cap;\n", 71})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct { void* st; srs_cap* c[]; } srs_env;\n", 52})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"void rt_init(int argc, char** argv);\n", 37})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__fwds(p_eff__Console, v_ens_5)); (void)(f_Emit__structs(p_r, p_eff__Console, v_cx_3, v_ens_5)); (void)(f_Emit__statics(p_r, p_eff__Console, v_cx_3, v_ens_5)); (void)(f_Emit__externs(p_r, p_eff__Console, v_cx_3, v_fs_1)); (void)(f_Emit__protos(p_r, p_eff__Console, v_cx_3, v_is_4)); (void)(f_Emit__handlers(p_r, p_eff__Console, v_cx_3, v_hs_2, (&N_Emit__Layout))); (void)(f_Emit__vtables(p_r, p_eff__Console, v_cx_3, v_hs_2)); __auto_type res_ = ({ __auto_type s6 = v_cx_3; ({ __auto_type v_al_6 = s6->u.C_Emit__Cx.f_alloc; ({ (void)(({ __auto_type s7 = v_al_6; s7->tag == 0 ? ({ f_Emit__allocFast(p_r, p_eff__Console, v_cx_3); }) : ({ ((int64_t)0); }); })); (void)(f_Emit__bodies(p_r, p_eff__Console, v_cx_3, v_is_4)); (void)(f_Emit__handlers(p_r, p_eff__Console, v_cx_3, v_hs_2, (&N_Emit__Code))); __auto_type res_ = (f_Emit__hasMain(p_r, v_cx_3) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"int main(int argc, char** argv) { rt_init(argc, argv); return (int)f_main(); }\n", 79})); p_eff__Console->live = 0; r_; }) : ((int64_t)0)); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Emit__Kind* f_Emit__kindOf(srs_cap* p_r, struct E_Mono__Inst* p_i) { return ({ __auto_type res_ = ({ __auto_type s0 = p_i; ({ __auto_type v_site_0 = s0->u.C_Mono__Inst.f_site; ({ __auto_type res_ = ({ __auto_type s1 = v_site_0; s1->tag == 0 ? ({ (&N_Emit__KDef); }) : ({ __auto_type v_goal_1 = s1->u.C_Mono__Impl.f_goal; ({ struct E_Emit__Kind* o2 = (struct E_Emit__Kind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Emit__Kind, u) + sizeof(((struct E_Emit__Kind*)0)->u.C_Emit__KGiven))); o2->tag = 3; o2->u.C_Emit__KGiven.f_head = v_goal_1; o2; }); }); }); res_; }); }); }); res_; }); } +static int64_t f_Emit__allocFast(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Emit__Cx* p_cx) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct srs_chunk { struct srs_chunk* next; size_t used, cap; } srs_chunk;\n", 82})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"static inline void* srs_alloc(srs_cap* c, int64_t size) {\n", 58})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" if (c->vt == vt_Srs__Arena) {\n", 32})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" srs_chunk* h = *(srs_chunk**)c->self;\n", 42})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" size_t n = ((size_t)size + 15) & ~(size_t)15;\n", 50})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" if (h && h->used + n <= h->cap) { void* p = (char*)(h + 1) + h->used; h->used += n; return p; }\n", 100})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" return rt_arena_alloc(c->self, size);\n", 42})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" }\n", 4})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" return ((void*(*)(void*, int64_t))c->vt[", 42})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, f_Emit__opIndex(p_eff__Region, p_cx, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6})), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"alloc", 5})))); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"])(c->self, size);\n", 19})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"}\n", 2})); p_eff__Console->live = 0; r_; }); res_; }); } +static bool f_Emit__hasMain(srs_cap* p_eff__Region, struct E_Emit__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Emit__Cx.f_fns; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__El__Fn(p_eff__Region, v_fns_0, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"main", 4}))); s1->tag == 1 ? ({ true; }) : ({ false; }); }); res_; }); }); }); res_; }); } +static int64_t f_Emit__program(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ty__Result* p_res) { return ({ __auto_type res_ = ({ __auto_type s0 = p_res; ({ __auto_type v_s_0 = s0->u.C_Ty__Result.f_s; __auto_type v_fs_1 = s0->u.C_Ty__Result.f_fns; __auto_type v_hs_2 = s0->u.C_Ty__Result.f_hs; ({ struct E_Emit__Cx* v_cx_3 = f_Emit__cxOf(p_eff__Region, p_ds, v_s_0, v_fs_1); struct E_Coll__List__Mono__Inst* v_is_4 = f_Mono__run(p_eff__Region, p_res); struct E_Coll__List__K__Term* v_ens_5 = f_Emit__closeEnums(p_eff__Region, v_cx_3, f_Emit__instTys(p_eff__Region, v_cx_3, v_is_4, (&N_Coll__Nil__K__Term)), (&N_Coll__BTip__Coll__List_1_K__Term), (&N_Coll__Nil__K__Term)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"// DO-NOT-EDIT. Generated by srs (s2/emit.srs).\n", 48})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"#include \n#include \n#include \n", 61})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct { const uint8_t* p; int64_t n; } srs_str;\n", 57})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct { void* self; void* const* vt; int64_t live; } srs_cap;\n", 71})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"typedef struct { void* st; srs_cap* c[]; } srs_env;\n", 52})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"void rt_init(int argc, char** argv);\n", 37})); p_eff__Console->live = 0; r_; })); (void)(f_Emit__fwds(p_eff__Console, v_ens_5)); (void)(f_Emit__structs(p_eff__Region, p_eff__Console, v_cx_3, v_ens_5)); (void)(f_Emit__statics(p_eff__Region, p_eff__Console, v_cx_3, v_ens_5)); (void)(f_Emit__externs(p_eff__Region, p_eff__Console, v_cx_3, v_fs_1)); (void)(f_Emit__protos(p_eff__Region, p_eff__Console, v_cx_3, v_is_4)); (void)(f_Emit__handlers(p_eff__Console, p_eff__Region, v_cx_3, v_hs_2, (&N_Emit__Layout))); (void)(f_Emit__vtables(p_eff__Region, p_eff__Console, v_cx_3, v_hs_2)); __auto_type res_ = ({ __auto_type s6 = v_cx_3; ({ __auto_type v_al_6 = s6->u.C_Emit__Cx.f_alloc; ({ (void)(({ __auto_type s7 = v_al_6; s7->tag == 0 ? ({ f_Emit__allocFast(p_eff__Region, p_eff__Console, v_cx_3); }) : ({ ((int64_t)0); }); })); (void)(f_Emit__bodies(p_eff__Region, p_eff__Console, v_cx_3, v_is_4)); (void)(f_Emit__handlers(p_eff__Console, p_eff__Region, v_cx_3, v_hs_2, (&N_Emit__Code))); __auto_type res_ = (f_Emit__hasMain(p_eff__Region, v_cx_3) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"int main(int argc, char** argv) { rt_init(argc, argv); return (int)f_main(); }\n", 79})); p_eff__Console->live = 0; r_; }) : ((int64_t)0)); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Emit__Kind* f_Emit__kindOf(srs_cap* p_eff__Region, struct E_Mono__Inst* p_i) { return ({ __auto_type res_ = ({ __auto_type s0 = p_i; ({ __auto_type v_site_0 = s0->u.C_Mono__Inst.f_site; ({ __auto_type res_ = ({ __auto_type s1 = v_site_0; s1->tag == 0 ? ({ (&N_Emit__KDef); }) : ({ __auto_type v_goal_1 = s1->u.C_Mono__Impl.f_goal; ({ struct E_Emit__Kind* o2 = (struct E_Emit__Kind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Emit__Kind, u) + sizeof(((struct E_Emit__Kind*)0)->u.C_Emit__KGiven))); o2->tag = 3; o2->u.C_Emit__KGiven.f_head = v_goal_1; o2; }); }); }); res_; }); }); }); res_; }); } static int64_t f_Ev__fuel(void) { return ((int64_t)1000000); } -static struct E_Ev__Cx* f_Ev__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp) { return f_Ev__cxDecls(p_r, p_ds, ({ struct E_Ev__Cx* o0 = (struct E_Ev__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Cx, u) + sizeof(((struct E_Ev__Cx*)0)->u.C_Ev__Cx))); o0->tag = 0; o0->u.C_Ev__Cx.f_fns = f_Coll__sEmpty__Ast__Fn(p_r); o0->u.C_Ev__Cx.f_cases = f_Coll__sEmpty__I64(p_r); o0->u.C_Ev__Cx.f_impure = p_imp; o0; })); } -static struct E_Coll__SMap__Ast__Fn* f_Coll__sEmpty__Ast__Fn(srs_cap* p_r) { return ({ struct E_Coll__SMap__Ast__Fn* o0 = (struct E_Coll__SMap__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Fn, u) + sizeof(((struct E_Coll__SMap__Ast__Fn*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); } -static struct E_Coll__SMap__I64* f_Coll__sEmpty__I64(srs_cap* p_r) { return ({ struct E_Coll__SMap__I64* o0 = (struct E_Coll__SMap__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__I64, u) + sizeof(((struct E_Coll__SMap__I64*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); } -static struct E_Ev__Cx* f_Ev__cxDecls(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ev__Cx* p_cx) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_cx; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_fs_2 = s2->u.C_Ev__Cx.f_fns; __auto_type v_cs_3 = s2->u.C_Ev__Cx.f_cases; __auto_type v_imp_4 = s2->u.C_Ev__Cx.f_impure; ({ __auto_type res_ = ({ __auto_type s5 = v_d_0; s5->tag == 0 ? ({ __auto_type v_f_5 = s5->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s6 = v_f_5; ({ __auto_type v_n_6 = s6->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Ev__Cx* t2 = ({ struct E_Ev__Cx* o7 = (struct E_Ev__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Cx, u) + sizeof(((struct E_Ev__Cx*)0)->u.C_Ev__Cx))); o7->tag = 0; o7->u.C_Ev__Cx.f_fns = f_Coll__sInsert__Ast__Fn(p_r, v_fs_2, v_n_6, v_f_5); o7->u.C_Ev__Cx.f_cases = v_cs_3; o7->u.C_Ev__Cx.f_impure = v_imp_4; o7; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Ev__Cx*){0}; }); res_; }); }); }); res_; }); }) : s5->tag == 1 ? ({ __auto_type v_e_5 = s5->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s6 = v_e_5; ({ __auto_type v_cases_6 = s6->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Ev__Cx* t2 = ({ struct E_Ev__Cx* o7 = (struct E_Ev__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Cx, u) + sizeof(((struct E_Ev__Cx*)0)->u.C_Ev__Cx))); o7->tag = 0; o7->u.C_Ev__Cx.f_fns = v_fs_2; o7->u.C_Ev__Cx.f_cases = f_Ev__caseMap(p_r, v_cases_6, v_cs_3); o7->u.C_Ev__Cx.f_impure = v_imp_4; o7; }); p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Ev__Cx*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Ev__Cx* t2 = p_cx; p_r = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Ev__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Ast__Fn* f_Coll__sInsert__Ast__Fn(srs_cap* p_r, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_n_2) ? ({ struct E_Coll__SMap__Ast__Fn* o3 = (struct E_Coll__SMap__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Fn, u) + sizeof(((struct E_Coll__SMap__Ast__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_t_0, v_h_1, f_Coll__sSet__Ast__Fn(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__Fn* o3 = (struct E_Coll__SMap__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Fn, u) + sizeof(((struct E_Coll__SMap__Ast__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Fn* o3 = (struct E_Coll__SEntry__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Fn, u) + sizeof(((struct E_Coll__SEntry__Ast__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn); o3; })); o3; })); res_; }); }); }); } +static struct E_Ev__Cx* f_Ev__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp) { return f_Ev__cxDecls(p_eff__Region, p_ds, ({ struct E_Ev__Cx* o0 = (struct E_Ev__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Cx, u) + sizeof(((struct E_Ev__Cx*)0)->u.C_Ev__Cx))); o0->tag = 0; o0->u.C_Ev__Cx.f_fns = f_Coll__sEmpty__Ast__Fn(p_eff__Region); o0->u.C_Ev__Cx.f_cases = f_Coll__sEmpty__I64(p_eff__Region); o0->u.C_Ev__Cx.f_impure = p_imp; o0; })); } +static struct E_Coll__SMap__Ast__Fn* f_Coll__sEmpty__Ast__Fn(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Ast__Fn* o0 = (struct E_Coll__SMap__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Fn, u) + sizeof(((struct E_Coll__SMap__Ast__Fn*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); } +static struct E_Coll__SMap__I64* f_Coll__sEmpty__I64(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__I64* o0 = (struct E_Coll__SMap__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__I64, u) + sizeof(((struct E_Coll__SMap__I64*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); } +static struct E_Ev__Cx* f_Ev__cxDecls(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Ev__Cx* p_cx) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_cx; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_fs_2 = s2->u.C_Ev__Cx.f_fns; __auto_type v_cs_3 = s2->u.C_Ev__Cx.f_cases; __auto_type v_imp_4 = s2->u.C_Ev__Cx.f_impure; ({ __auto_type res_ = ({ __auto_type s5 = v_d_0; s5->tag == 0 ? ({ __auto_type v_f_5 = s5->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s6 = v_f_5; ({ __auto_type v_n_6 = s6->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Ev__Cx* t2 = ({ struct E_Ev__Cx* o7 = (struct E_Ev__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Cx, u) + sizeof(((struct E_Ev__Cx*)0)->u.C_Ev__Cx))); o7->tag = 0; o7->u.C_Ev__Cx.f_fns = f_Coll__sInsert__Ast__Fn(p_eff__Region, v_fs_2, v_n_6, v_f_5); o7->u.C_Ev__Cx.f_cases = v_cs_3; o7->u.C_Ev__Cx.f_impure = v_imp_4; o7; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Ev__Cx*){0}; }); res_; }); }); }); res_; }); }) : s5->tag == 1 ? ({ __auto_type v_e_5 = s5->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s6 = v_e_5; ({ __auto_type v_cases_6 = s6->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Ev__Cx* t2 = ({ struct E_Ev__Cx* o7 = (struct E_Ev__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Cx, u) + sizeof(((struct E_Ev__Cx*)0)->u.C_Ev__Cx))); o7->tag = 0; o7->u.C_Ev__Cx.f_fns = v_fs_2; o7->u.C_Ev__Cx.f_cases = f_Ev__caseMap(p_eff__Region, v_cases_6, v_cs_3); o7->u.C_Ev__Cx.f_impure = v_imp_4; o7; }); p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Ev__Cx*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Ev__Cx* t2 = p_cx; p_eff__Region = t0; p_ds = t1; p_cx = t2; goto srs_tail; (struct E_Ev__Cx*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Ast__Fn* f_Coll__sInsert__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_n_2) ? ({ struct E_Coll__SMap__Ast__Fn* o3 = (struct E_Coll__SMap__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Fn, u) + sizeof(((struct E_Coll__SMap__Ast__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Ast__Fn(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__Fn* o3 = (struct E_Coll__SMap__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__Fn, u) + sizeof(((struct E_Coll__SMap__Ast__Fn*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Fn* o3 = (struct E_Coll__SEntry__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Fn, u) + sizeof(((struct E_Coll__SEntry__Ast__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__sSet__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Fn* o0 = (struct E_Coll__SEntry__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Fn, u) + sizeof(((struct E_Coll__SEntry__Ast__Fn*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Fn* o3 = (struct E_Coll__SEntry__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Fn, u) + sizeof(((struct E_Coll__SEntry__Ast__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__Fn(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__sSet__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__Fn* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Fn* o0 = (struct E_Coll__SEntry__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Fn, u) + sizeof(((struct E_Coll__SEntry__Ast__Fn*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__Fn* o3 = (struct E_Coll__SEntry__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__Fn, u) + sizeof(((struct E_Coll__SEntry__Ast__Fn*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__Fn* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__Fn(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__I64* f_Ev__caseMap(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__I64* p_m) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__SMap__I64* t2 = f_Coll__sInsert__I64(p_r, p_m, v_n_2, f_Coll__length__Ast__Binder(v_fs_3)); p_r = t0; p_cs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__I64*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__I64* f_Coll__sInsert__I64(srs_cap* p_r, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s, int64_t p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_I64(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_I64(v_n_2) ? ({ struct E_Coll__SMap__I64* o3 = (struct E_Coll__SMap__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__I64, u) + sizeof(((struct E_Coll__SMap__I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_t_0, v_h_1, f_Coll__sSet__I64(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_I64(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_I64)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__I64* o3 = (struct E_Coll__SMap__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__I64, u) + sizeof(((struct E_Coll__SMap__I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__I64* o3 = (struct E_Coll__SEntry__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__I64, u) + sizeof(((struct E_Coll__SEntry__I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_I64); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__Fn); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__I64* f_Ev__caseMap(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__SMap__I64* p_m) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_3 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__SMap__I64* t2 = f_Coll__sInsert__I64(p_eff__Region, p_m, v_n_2, f_Coll__length__Ast__Binder(v_fs_3)); p_eff__Region = t0; p_cs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__I64*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__I64* f_Coll__sInsert__I64(srs_cap* p_eff__Region, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s, int64_t p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_I64(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_I64(v_n_2) ? ({ struct E_Coll__SMap__I64* o3 = (struct E_Coll__SMap__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__I64, u) + sizeof(((struct E_Coll__SMap__I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__I64(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_I64(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_I64)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__I64* o3 = (struct E_Coll__SMap__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__I64, u) + sizeof(((struct E_Coll__SMap__I64*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__I64* o3 = (struct E_Coll__SEntry__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__I64, u) + sizeof(((struct E_Coll__SEntry__I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_I64); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__sSet__I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s, int64_t p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_I64* o0 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__I64* o0 = (struct E_Coll__SEntry__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__I64, u) + sizeof(((struct E_Coll__SEntry__I64*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_I64); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__I64* o3 = (struct E_Coll__SEntry__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__I64, u) + sizeof(((struct E_Coll__SEntry__I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__I64(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__sSet__I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s, int64_t p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_I64* o0 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__I64* o0 = (struct E_Coll__SEntry__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__I64, u) + sizeof(((struct E_Coll__SEntry__I64*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_I64); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__I64* o3 = (struct E_Coll__SEntry__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__I64, u) + sizeof(((struct E_Coll__SEntry__I64*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_I64* o3 = (struct E_Coll__List__Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__I64(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_I64(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_I64(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_I64(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_I64); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_I64* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_I64(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_I64* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_I64* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_I64* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_I64(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } static int64_t f_Coll__length__Ast__Binder(struct E_Coll__List__Ast__Binder* p_xs) { return f_Coll__lengthFrom__Ast__Binder(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Binder(struct E_Coll__List__Ast__Binder* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Binder* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Coll__Option__Ev__V* f_Ev__get(srs_cap* p_r, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_env; s0->tag == 0 ? ({ (&N_Coll__None__Ev__V); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ev__Bind.f_x; __auto_type v_v_3 = s2->u.C_Ev__Bind.f_v; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Ev__V* o4 = (struct E_Coll__Option__Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ev__V, u) + sizeof(((struct E_Coll__Option__Ev__V*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ev__Bind* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_r = t0; p_env = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Ev__V*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ev__Bind* f_Ev__set(srs_cap* p_r, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x, struct E_Ev__V* p_v) { return ({ __auto_type s0 = p_env; s0->tag == 0 ? ({ (&N_Coll__Nil__Ev__Bind); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ev__Bind.f_x; __auto_type v_w_3 = s2->u.C_Ev__Bind.f_v; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__List__Ev__Bind* o4 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o4 = (struct E_Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o4->tag = 0; o4->u.C_Ev__Bind.f_x = v_y_2; o4->u.C_Ev__Bind.f_v = p_v; o4; }); o4->u.C_Coll__Cons.f_t = v_rest_1; o4; }) : ({ struct E_Coll__List__Ev__Bind* o4 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_b_0; o4->u.C_Coll__Cons.f_t = f_Ev__set(p_r, v_rest_1, p_x, p_v); o4; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ev__Bind* f_Ev__drop(srs_cap* p_r, struct E_Coll__List__Ev__Bind* p_env, int64_t p_k) { srs_tail: return ((p_k <= ((int64_t)0)) ? p_env : ({ __auto_type s0 = p_env; s0->tag == 0 ? ({ (&N_Coll__Nil__Ev__Bind); }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ev__Bind* t1 = v_rest_0; int64_t t2 = (p_k - ((int64_t)1)); p_r = t0; p_env = t1; p_k = t2; goto srs_tail; (struct E_Coll__List__Ev__Bind*){0}; }); }); })); } -static struct E_Ev__R* f_Ev__expr(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Ast__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o1->tag = 1; o1->u.C_Ev__VInt.f_v = v_v_0; o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o1->tag = 2; o1->u.C_Ev__VBool.f_b = v_v_0; o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VStr))); o1->tag = 3; o1->u.C_Ev__VStr.f_s = v_s_0; o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : s0->tag == 3 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = (&N_Ev__VUnit); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; ({ __auto_type s2 = f_Ev__get(p_r, p_env, v_x_1); s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_Coll__Some.f_v; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o3->tag = 0; o3->u.C_Ev__Ok.f_v = v_v_2; o3->u.C_Ev__Ok.f_env = p_env; o3->u.C_Ev__Ok.f_fuel = p_fuel; o3; }); }) : ({ f_Ev__call(p_r, p_cx, p_f, p_env, p_fuel, v_line_0, v_x_1, (&N_Coll__Nil__Ast__Expr)); }); }); }) : s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_g_1 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_2 = s0->u.C_Ast__Call.f_args; f_Ev__call(p_r, p_cx, p_f, p_env, p_fuel, v_line_0, v_g_1, v_xs_2); }) : s0->tag == 7 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bin.f_line; __auto_type v_op_1 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_2 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_3 = s0->u.C_Ast__Bin.f_rhs; f_Ev__bin(p_r, p_cx, p_f, p_env, p_fuel, v_line_0, v_op_1, v_l_2, v_x_3); }) : s0->tag == 8 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Un.f_line; __auto_type v_op_1 = s0->u.C_Ast__Un.f_op; __auto_type v_x_2 = s0->u.C_Ast__Un.f_e; ({ __auto_type s3 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_x_2); s3->tag == 0 ? ({ __auto_type v_v_3 = s3->u.C_Ev__Ok.f_v; __auto_type v_env2_4 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel2_5 = s3->u.C_Ev__Ok.f_fuel; f_Ev__un(p_r, p_f, v_line_0, v_op_1, v_v_3, v_env2_4, v_fuel2_5); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type s4 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_c_1); s4->tag == 0 ? ({ __auto_type v_v_4 = s4->u.C_Ev__Ok.f_v; __auto_type v_env2_5 = s4->u.C_Ev__Ok.f_env; __auto_type v_fuel2_6 = s4->u.C_Ev__Ok.f_fuel; ({ __auto_type s7 = v_v_4; s7->tag == 2 ? ({ __auto_type v_b_7 = s7->u.C_Ev__VBool.f_b; (v_b_7 ? ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_5; int64_t t4 = v_fuel2_6; struct E_Ast__Expr* t5 = v_t_2; p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_e = t5; goto srs_tail; (struct E_Ev__R*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_5; int64_t t4 = v_fuel2_6; struct E_Ast__Expr* t5 = v_x_3; p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_e = t5; goto srs_tail; (struct E_Ev__R*){0}; })); }) : ({ ({ struct E_Ev__R* o7 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o7->tag = 1; o7->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o7 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o7->tag = 2; o7->u.C_Ev__NoValue.f_line = v_line_0; o7->u.C_Ev__NoValue.f_f = p_f; o7; }); o7; }); }); }); }) : ({ __auto_type v_x_4 = s4->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o5->tag = 1; o5->u.C_Ev__Err.f_e = v_x_4; o5; }); }); }); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type s3 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_s_1); s3->tag == 0 ? ({ __auto_type v_v_3 = s3->u.C_Ev__Ok.f_v; __auto_type v_env2_4 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel2_5 = s3->u.C_Ev__Ok.f_fuel; f_Ev__arms(p_r, p_cx, p_f, v_env2_4, v_fuel2_5, v_line_0, v_v_3, v_arms_2); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Ev__block(p_r, p_cx, p_f, p_env, p_fuel, v_ss_0, v_last_1, ((int64_t)0)); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; f_Ev__loop(p_r, p_cx, p_f, p_env, p_fuel, v_line_0, v_c_1, v_b_2); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; ({ __auto_type s2 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_v_1); s2->tag == 0 ? ({ __auto_type v_w_2 = s2->u.C_Ev__Ok.f_v; __auto_type v_env2_3 = s2->u.C_Ev__Ok.f_env; __auto_type v_fuel2_4 = s2->u.C_Ev__Ok.f_fuel; ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o5->tag = 0; o5->u.C_Ev__Ok.f_v = (&N_Ev__VUnit); o5->u.C_Ev__Ok.f_env = f_Ev__set(p_r, v_env2_3, v_x_0, v_w_2); o5->u.C_Ev__Ok.f_fuel = v_fuel2_4; o5; }); }) : ({ __auto_type v_x_2 = s2->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = v_x_2; o3; }); }); }); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = v_line_0; o1->u.C_Ev__NoValue.f_f = p_f; o1; }); o1; }); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Quant.f_line; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = v_line_0; o1->u.C_Ev__NoValue.f_f = p_f; o1; }); o1; }); }); }); } -static struct E_Ev__Rs* f_Ev__args(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ev__V* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Ev__Rs* o0 = (struct E_Ev__Rs*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Rs, u) + sizeof(((struct E_Ev__Rs*)0)->u.C_Ev__Vals))); o0->tag = 0; o0->u.C_Ev__Vals.f_vs = f_Coll__rev__Ev__V(p_r, p_acc); o0->u.C_Ev__Vals.f_env = p_env; o0->u.C_Ev__Vals.f_fuel = p_fuel; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_x_0); s2->tag == 0 ? ({ __auto_type v_v_2 = s2->u.C_Ev__Ok.f_v; __auto_type v_env2_3 = s2->u.C_Ev__Ok.f_env; __auto_type v_fuel2_4 = s2->u.C_Ev__Ok.f_fuel; ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_3; int64_t t4 = v_fuel2_4; struct E_Coll__List__Ast__Expr* t5 = v_rest_1; struct E_Coll__List__Ev__V* t6 = ({ struct E_Coll__List__Ev__V* o5 = (struct E_Coll__List__Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__V, u) + sizeof(((struct E_Coll__List__Ev__V*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_v_2; o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_xs = t5; p_acc = t6; goto srs_tail; (struct E_Ev__Rs*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ev__Err.f_e; ({ struct E_Ev__Rs* o3 = (struct E_Ev__Rs*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Rs, u) + sizeof(((struct E_Ev__Rs*)0)->u.C_Ev__Errs))); o3->tag = 1; o3->u.C_Ev__Errs.f_e = v_e_2; o3; }); }); }); }); }); } -static struct E_Coll__List__Ev__V* f_Coll__rev__Ev__V(srs_cap* p_r, struct E_Coll__List__Ev__V* p_xs) { return f_Coll__revOnto__Ev__V(p_r, p_xs, (&N_Coll__Nil__Ev__V)); } -static struct E_Coll__List__Ev__V* f_Coll__revOnto__Ev__V(srs_cap* p_r, struct E_Coll__List__Ev__V* p_xs, struct E_Coll__List__Ev__V* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ev__V* t1 = v_t_1; struct E_Coll__List__Ev__V* t2 = ({ struct E_Coll__List__Ev__V* o2 = (struct E_Coll__List__Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__V, u) + sizeof(((struct E_Coll__List__Ev__V*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ev__V*){0}; }); }); }); } -static struct E_Ev__R* f_Ev__call(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ast__Expr* p_xs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ev__Cx.f_fns; __auto_type v_cases_1 = s0->u.C_Ev__Cx.f_cases; __auto_type v_imp_2 = s0->u.C_Ev__Cx.f_impure; ({ __auto_type res_ = ({ __auto_type s3 = f_Ev__args(p_r, p_cx, p_f, p_env, p_fuel, p_xs, (&N_Coll__Nil__Ev__V)); s3->tag == 1 ? ({ __auto_type v_e_3 = s3->u.C_Ev__Errs.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_e_3; o4; }); }) : ({ __auto_type v_vs_3 = s3->u.C_Ev__Vals.f_vs; __auto_type v_env2_4 = s3->u.C_Ev__Vals.f_env; __auto_type v_fuel2_5 = s3->u.C_Ev__Vals.f_fuel; ({ __auto_type s6 = f_Coll__sLookup__I64(p_r, v_cases_1, p_g); s6->tag == 1 ? ({ ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o6->tag = 0; o6->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o6 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VData))); o6->tag = 4; o6->u.C_Ev__VData.f_c = p_g; o6->u.C_Ev__VData.f_fs = v_vs_3; o6; }); o6->u.C_Ev__Ok.f_env = v_env2_4; o6->u.C_Ev__Ok.f_fuel = v_fuel2_5; o6; }); }) : ({ ({ __auto_type res_ = ((v_fuel2_5 <= ((int64_t)0)) ? ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__Fuel))); o6->tag = 0; o6->u.C_Ev__Fuel.f_line = p_line; o6->u.C_Ev__Fuel.f_f = p_f; o6; }); o6; }) : (f_Pure__has(p_r, v_imp_2, p_g) ? ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o6->tag = 2; o6->u.C_Ev__NoValue.f_line = p_line; o6->u.C_Ev__NoValue.f_f = p_g; o6; }); o6; }) : ({ __auto_type s6 = f_Coll__sLookup__Ast__Fn(p_r, v_fns_0, p_g); s6->tag == 0 ? ({ ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o6->tag = 2; o6->u.C_Ev__NoValue.f_line = p_line; o6->u.C_Ev__NoValue.f_f = p_g; o6; }); o6; }); }) : ({ __auto_type v_fd_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_fd_6; ({ __auto_type v_ps_7 = s7->u.C_Ast__Fn.f_params; __auto_type v_body_8 = s7->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Ev__Bind* v_env3_9 = f_Ev__bindAll(p_r, v_ps_7, v_vs_3, (&N_Coll__Nil__Ev__Bind)); __auto_type res_ = ({ __auto_type s10 = v_body_8; s10->tag == 0 ? ({ __auto_type v_b_10 = s10->u.C_Ast__Def.f_e; f_Ev__result(p_r, f_Ev__expr(p_r, p_cx, p_g, v_env3_9, (v_fuel2_5 - ((int64_t)1)), v_b_10), v_env2_4); }) : s10->tag == 2 ? ({ __auto_type v_b_10 = s10->u.C_Ast__Spec.f_e; f_Ev__result(p_r, f_Ev__expr(p_r, p_cx, p_g, v_env3_9, (v_fuel2_5 - ((int64_t)1)), v_b_10), v_env2_4); }) : ({ f_Ev__extern(p_r, p_line, p_g, v_vs_3, v_env2_4, v_fuel2_5); }); }); res_; }); }); }); res_; }); }); }))); res_; }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__I64* f_Coll__sLookup__I64(srs_cap* p_r, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__I64(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_I64(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_I64)), p_s); }); }); } -static struct E_Coll__Option__I64* f_Coll__sFind__I64(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__I64* o4 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_I64* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); }); }); } +static struct E_Coll__Option__Ev__V* f_Ev__get(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_env; s0->tag == 0 ? ({ (&N_Coll__None__Ev__V); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ev__Bind.f_x; __auto_type v_v_3 = s2->u.C_Ev__Bind.f_v; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Ev__V* o4 = (struct E_Coll__Option__Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ev__V, u) + sizeof(((struct E_Coll__Option__Ev__V*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ev__Bind* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_eff__Region = t0; p_env = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Ev__V*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ev__Bind* f_Ev__set(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Bind* p_env, struct E_Sym__Sym* p_x, struct E_Ev__V* p_v) { return ({ __auto_type s0 = p_env; s0->tag == 0 ? ({ (&N_Coll__Nil__Ev__Bind); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ev__Bind.f_x; __auto_type v_w_3 = s2->u.C_Ev__Bind.f_v; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__List__Ev__Bind* o4 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o4 = (struct E_Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o4->tag = 0; o4->u.C_Ev__Bind.f_x = v_y_2; o4->u.C_Ev__Bind.f_v = p_v; o4; }); o4->u.C_Coll__Cons.f_t = v_rest_1; o4; }) : ({ struct E_Coll__List__Ev__Bind* o4 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_b_0; o4->u.C_Coll__Cons.f_t = f_Ev__set(p_eff__Region, v_rest_1, p_x, p_v); o4; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ev__Bind* f_Ev__drop(struct E_Coll__List__Ev__Bind* p_env, int64_t p_k) { srs_tail: return ((p_k <= ((int64_t)0)) ? p_env : ({ __auto_type s0 = p_env; s0->tag == 0 ? ({ (&N_Coll__Nil__Ev__Bind); }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ev__Bind* t0 = v_rest_0; int64_t t1 = (p_k - ((int64_t)1)); p_env = t0; p_k = t1; goto srs_tail; (struct E_Coll__List__Ev__Bind*){0}; }); }); })); } +static struct E_Ev__R* f_Ev__expr(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Ast__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o1->tag = 1; o1->u.C_Ev__VInt.f_v = v_v_0; o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o1->tag = 2; o1->u.C_Ev__VBool.f_b = v_v_0; o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VStr))); o1->tag = 3; o1->u.C_Ev__VStr.f_s = v_s_0; o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : s0->tag == 3 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = (&N_Ev__VUnit); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; ({ __auto_type s2 = f_Ev__get(p_eff__Region, p_env, v_x_1); s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_Coll__Some.f_v; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o3->tag = 0; o3->u.C_Ev__Ok.f_v = v_v_2; o3->u.C_Ev__Ok.f_env = p_env; o3->u.C_Ev__Ok.f_fuel = p_fuel; o3; }); }) : ({ f_Ev__call(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_line_0, v_x_1, (&N_Coll__Nil__Ast__Expr)); }); }); }) : s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_g_1 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_2 = s0->u.C_Ast__Call.f_args; f_Ev__call(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_line_0, v_g_1, v_xs_2); }) : s0->tag == 7 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bin.f_line; __auto_type v_op_1 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_2 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_3 = s0->u.C_Ast__Bin.f_rhs; f_Ev__bin(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_line_0, v_op_1, v_l_2, v_x_3); }) : s0->tag == 8 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Un.f_line; __auto_type v_op_1 = s0->u.C_Ast__Un.f_op; __auto_type v_x_2 = s0->u.C_Ast__Un.f_e; ({ __auto_type s3 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_x_2); s3->tag == 0 ? ({ __auto_type v_v_3 = s3->u.C_Ev__Ok.f_v; __auto_type v_env2_4 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel2_5 = s3->u.C_Ev__Ok.f_fuel; f_Ev__un(p_eff__Region, p_f, v_line_0, v_op_1, v_v_3, v_env2_4, v_fuel2_5); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type s4 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_c_1); s4->tag == 0 ? ({ __auto_type v_v_4 = s4->u.C_Ev__Ok.f_v; __auto_type v_env2_5 = s4->u.C_Ev__Ok.f_env; __auto_type v_fuel2_6 = s4->u.C_Ev__Ok.f_fuel; ({ __auto_type s7 = v_v_4; s7->tag == 2 ? ({ __auto_type v_b_7 = s7->u.C_Ev__VBool.f_b; (v_b_7 ? ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_5; int64_t t4 = v_fuel2_6; struct E_Ast__Expr* t5 = v_t_2; p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_e = t5; goto srs_tail; (struct E_Ev__R*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_5; int64_t t4 = v_fuel2_6; struct E_Ast__Expr* t5 = v_x_3; p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_e = t5; goto srs_tail; (struct E_Ev__R*){0}; })); }) : ({ ({ struct E_Ev__R* o7 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o7->tag = 1; o7->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o7 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o7->tag = 2; o7->u.C_Ev__NoValue.f_line = v_line_0; o7->u.C_Ev__NoValue.f_f = p_f; o7; }); o7; }); }); }); }) : ({ __auto_type v_x_4 = s4->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o5->tag = 1; o5->u.C_Ev__Err.f_e = v_x_4; o5; }); }); }); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type s3 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_s_1); s3->tag == 0 ? ({ __auto_type v_v_3 = s3->u.C_Ev__Ok.f_v; __auto_type v_env2_4 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel2_5 = s3->u.C_Ev__Ok.f_fuel; f_Ev__arms(p_eff__Region, p_cx, p_f, v_env2_4, v_fuel2_5, v_line_0, v_v_3, v_arms_2); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Ev__block(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_ss_0, v_last_1, ((int64_t)0)); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; f_Ev__loop(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_line_0, v_c_1, v_b_2); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; ({ __auto_type s2 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_v_1); s2->tag == 0 ? ({ __auto_type v_w_2 = s2->u.C_Ev__Ok.f_v; __auto_type v_env2_3 = s2->u.C_Ev__Ok.f_env; __auto_type v_fuel2_4 = s2->u.C_Ev__Ok.f_fuel; ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o5->tag = 0; o5->u.C_Ev__Ok.f_v = (&N_Ev__VUnit); o5->u.C_Ev__Ok.f_env = f_Ev__set(p_eff__Region, v_env2_3, v_x_0, v_w_2); o5->u.C_Ev__Ok.f_fuel = v_fuel2_4; o5; }); }) : ({ __auto_type v_x_2 = s2->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = v_x_2; o3; }); }); }); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = v_line_0; o1->u.C_Ev__NoValue.f_f = p_f; o1; }); o1; }); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Quant.f_line; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = v_line_0; o1->u.C_Ev__NoValue.f_f = p_f; o1; }); o1; }); }); }); } +static struct E_Ev__Rs* f_Ev__args(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ev__V* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Ev__Rs* o0 = (struct E_Ev__Rs*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Rs, u) + sizeof(((struct E_Ev__Rs*)0)->u.C_Ev__Vals))); o0->tag = 0; o0->u.C_Ev__Vals.f_vs = f_Coll__rev__Ev__V(p_eff__Region, p_acc); o0->u.C_Ev__Vals.f_env = p_env; o0->u.C_Ev__Vals.f_fuel = p_fuel; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_x_0); s2->tag == 0 ? ({ __auto_type v_v_2 = s2->u.C_Ev__Ok.f_v; __auto_type v_env2_3 = s2->u.C_Ev__Ok.f_env; __auto_type v_fuel2_4 = s2->u.C_Ev__Ok.f_fuel; ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_3; int64_t t4 = v_fuel2_4; struct E_Coll__List__Ast__Expr* t5 = v_rest_1; struct E_Coll__List__Ev__V* t6 = ({ struct E_Coll__List__Ev__V* o5 = (struct E_Coll__List__Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__V, u) + sizeof(((struct E_Coll__List__Ev__V*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_v_2; o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_xs = t5; p_acc = t6; goto srs_tail; (struct E_Ev__Rs*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ev__Err.f_e; ({ struct E_Ev__Rs* o3 = (struct E_Ev__Rs*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Rs, u) + sizeof(((struct E_Ev__Rs*)0)->u.C_Ev__Errs))); o3->tag = 1; o3->u.C_Ev__Errs.f_e = v_e_2; o3; }); }); }); }); }); } +static struct E_Coll__List__Ev__V* f_Coll__rev__Ev__V(srs_cap* p_eff__Region, struct E_Coll__List__Ev__V* p_xs) { return f_Coll__revOnto__Ev__V(p_eff__Region, p_xs, (&N_Coll__Nil__Ev__V)); } +static struct E_Coll__List__Ev__V* f_Coll__revOnto__Ev__V(srs_cap* p_eff__Region, struct E_Coll__List__Ev__V* p_xs, struct E_Coll__List__Ev__V* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ev__V* t1 = v_t_1; struct E_Coll__List__Ev__V* t2 = ({ struct E_Coll__List__Ev__V* o2 = (struct E_Coll__List__Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__V, u) + sizeof(((struct E_Coll__List__Ev__V*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ev__V*){0}; }); }); }); } +static struct E_Ev__R* f_Ev__call(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ast__Expr* p_xs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ev__Cx.f_fns; __auto_type v_cases_1 = s0->u.C_Ev__Cx.f_cases; __auto_type v_imp_2 = s0->u.C_Ev__Cx.f_impure; ({ __auto_type res_ = ({ __auto_type s3 = f_Ev__args(p_eff__Region, p_cx, p_f, p_env, p_fuel, p_xs, (&N_Coll__Nil__Ev__V)); s3->tag == 1 ? ({ __auto_type v_e_3 = s3->u.C_Ev__Errs.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_e_3; o4; }); }) : ({ __auto_type v_vs_3 = s3->u.C_Ev__Vals.f_vs; __auto_type v_env2_4 = s3->u.C_Ev__Vals.f_env; __auto_type v_fuel2_5 = s3->u.C_Ev__Vals.f_fuel; ({ __auto_type s6 = f_Coll__sLookup__I64(p_eff__Region, v_cases_1, p_g); s6->tag == 1 ? ({ ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o6->tag = 0; o6->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o6 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VData))); o6->tag = 4; o6->u.C_Ev__VData.f_c = p_g; o6->u.C_Ev__VData.f_fs = v_vs_3; o6; }); o6->u.C_Ev__Ok.f_env = v_env2_4; o6->u.C_Ev__Ok.f_fuel = v_fuel2_5; o6; }); }) : ({ ({ __auto_type res_ = ((v_fuel2_5 <= ((int64_t)0)) ? ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__Fuel))); o6->tag = 0; o6->u.C_Ev__Fuel.f_line = p_line; o6->u.C_Ev__Fuel.f_f = p_f; o6; }); o6; }) : (f_Pure__has(p_eff__Region, v_imp_2, p_g) ? ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o6->tag = 2; o6->u.C_Ev__NoValue.f_line = p_line; o6->u.C_Ev__NoValue.f_f = p_g; o6; }); o6; }) : ({ __auto_type s6 = f_Coll__sLookup__Ast__Fn(p_eff__Region, v_fns_0, p_g); s6->tag == 0 ? ({ ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o6->tag = 2; o6->u.C_Ev__NoValue.f_line = p_line; o6->u.C_Ev__NoValue.f_f = p_g; o6; }); o6; }); }) : ({ __auto_type v_fd_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_fd_6; ({ __auto_type v_ps_7 = s7->u.C_Ast__Fn.f_params; __auto_type v_body_8 = s7->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Ev__Bind* v_env3_9 = f_Ev__bindAll(p_eff__Region, v_ps_7, v_vs_3, (&N_Coll__Nil__Ev__Bind)); __auto_type res_ = ({ __auto_type s10 = v_body_8; s10->tag == 0 ? ({ __auto_type v_b_10 = s10->u.C_Ast__Def.f_e; f_Ev__result(p_eff__Region, f_Ev__expr(p_eff__Region, p_cx, p_g, v_env3_9, (v_fuel2_5 - ((int64_t)1)), v_b_10), v_env2_4); }) : s10->tag == 2 ? ({ __auto_type v_b_10 = s10->u.C_Ast__Spec.f_e; f_Ev__result(p_eff__Region, f_Ev__expr(p_eff__Region, p_cx, p_g, v_env3_9, (v_fuel2_5 - ((int64_t)1)), v_b_10), v_env2_4); }) : ({ f_Ev__extern(p_eff__Region, p_line, p_g, v_vs_3, v_env2_4, v_fuel2_5); }); }); res_; }); }); }); res_; }); }); }))); res_; }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__I64* f_Coll__sLookup__I64(srs_cap* p_eff__Region, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__I64(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_I64(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_I64)), p_s); }); }); } +static struct E_Coll__Option__I64* f_Coll__sFind__I64(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_I64* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__I64* o4 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_I64* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_I64* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_I64(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_I64* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_I64* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_I64(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_I64(p_t, p_k), p_k, p_d); } -static struct E_Coll__Option__Ast__Fn* f_Coll__sLookup__Ast__Fn(srs_cap* p_r, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__Fn(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn)), p_s); }); }); } -static struct E_Coll__Option__Ast__Fn* f_Coll__sFind__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Fn); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__Fn* o4 = (struct E_Coll__Option__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Fn, u) + sizeof(((struct E_Coll__Option__Ast__Fn*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Ast__Fn* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__Fn*){0}; })); }); }); }); }); } +static struct E_Coll__Option__Ast__Fn* f_Coll__sLookup__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__Fn* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__Fn(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__Fn)), p_s); }); }); } +static struct E_Coll__Option__Ast__Fn* f_Coll__sFind__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Fn); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__Fn* o4 = (struct E_Coll__Option__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Fn, u) + sizeof(((struct E_Coll__Option__Ast__Fn*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Ast__Fn* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__Fn*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__Fn* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__Fn* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__Fn* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__Fn(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__Fn(p_t, p_k), p_k, p_d); } -static struct E_Ev__R* f_Ev__result(srs_cap* p_r, struct E_Ev__R* p_res, struct E_Coll__List__Ev__Bind* p_env) { return ({ __auto_type s0 = p_res; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_fuel_1 = s0->u.C_Ev__Ok.f_fuel; ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o2->tag = 0; o2->u.C_Ev__Ok.f_v = v_v_0; o2->u.C_Ev__Ok.f_env = p_env; o2->u.C_Ev__Ok.f_fuel = v_fuel_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); } -static struct E_Coll__List__Ev__Bind* f_Ev__bindAll(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_vs; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_vrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_p_0; ({ __auto_type v_x_4 = s4->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ev__V* t2 = v_vrest_3; struct E_Coll__List__Ev__Bind* t3 = ({ struct E_Coll__List__Ev__Bind* o5 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o5 = (struct E_Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o5->tag = 0; o5->u.C_Ev__Bind.f_x = v_x_4; o5->u.C_Ev__Bind.f_v = v_v_2; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_ps = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ev__Bind*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Ev__R* f_Ev__extern(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = f_Pure__prim(p_r, p_g); s0->tag == 1 ? ({ __auto_type v_p_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = v_p_0; s1->tag == 0 ? ({ f_Ev__str1(p_r, p_line, p_g, p_vs, p_env, p_fuel); }) : ({ f_Ev__str2(p_r, p_line, p_g, v_p_0, p_vs, p_env, p_fuel); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__str1(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_vs; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; ({ __auto_type s1 = v_a_0; s1->tag == 3 ? ({ __auto_type v_s_1 = s1->u.C_Ev__VStr.f_s; ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o2->tag = 0; o2->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o2 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o2->tag = 1; o2->u.C_Ev__VInt.f_v = Str__len(v_s_1); o2; }); o2->u.C_Ev__Ok.f_env = p_env; o2->u.C_Ev__Ok.f_fuel = p_fuel; o2; }); }) : ({ ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = p_line; o1->u.C_Ev__NoValue.f_f = p_g; o1; }); o1; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__str2(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Pure__Prim* p_p, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_vs; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_rest_1; s2->tag == 1 ? ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_a_0; s4->tag == 3 ? ({ __auto_type v_s_4 = s4->u.C_Ev__VStr.f_s; ({ __auto_type s5 = p_p; s5->tag == 3 ? ({ f_Ev__strEq(p_r, p_line, p_g, v_s_4, v_b_2, p_env, p_fuel); }) : s5->tag == 1 ? ({ f_Ev__strAt(p_r, p_line, p_g, v_s_4, v_b_2, p_env, p_fuel); }) : s5->tag == 2 ? ({ f_Ev__strSlice(p_r, p_line, p_g, v_s_4, v_b_2, v_more_3, p_env, p_fuel); }) : ({ ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o5->tag = 1; o5->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o5 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o5->tag = 2; o5->u.C_Ev__NoValue.f_line = p_line; o5->u.C_Ev__NoValue.f_f = p_g; o5; }); o5; }); }); }); }) : ({ ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o4 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o4->tag = 2; o4->u.C_Ev__NoValue.f_line = p_line; o4->u.C_Ev__NoValue.f_f = p_g; o4; }); o4; }); }); }); }) : ({ ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o2->tag = 1; o2->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o2 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o2->tag = 2; o2->u.C_Ev__NoValue.f_line = p_line; o2->u.C_Ev__NoValue.f_f = p_g; o2; }); o2; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__strEq(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_b; s0->tag == 3 ? ({ __auto_type v_t_0 = s0->u.C_Ev__VStr.f_s; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o1->tag = 2; o1->u.C_Ev__VBool.f_b = Str__eq(p_s, v_t_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__strAt(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_b; s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Ev__VInt.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o1->tag = 1; o1->u.C_Ev__VInt.f_v = Str__at(p_s, v_i_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__strSlice(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__V* p_more, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_b; s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Ev__VInt.f_v; ({ __auto_type s1 = p_more; s1->tag == 1 ? ({ __auto_type v_c_1 = s1->u.C_Coll__Cons.f_h; ({ __auto_type s2 = v_c_1; s2->tag == 1 ? ({ __auto_type v_j_2 = s2->u.C_Ev__VInt.f_v; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o3->tag = 0; o3->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o3 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VStr))); o3->tag = 3; o3->u.C_Ev__VStr.f_s = Str__slice(p_s, v_i_0, v_j_2); o3; }); o3->u.C_Ev__Ok.f_env = p_env; o3->u.C_Ev__Ok.f_fuel = p_fuel; o3; }); }) : ({ ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o2->tag = 1; o2->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o2 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o2->tag = 2; o2->u.C_Ev__NoValue.f_line = p_line; o2->u.C_Ev__NoValue.f_f = p_g; o2; }); o2; }); }); }); }) : ({ ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = p_line; o1->u.C_Ev__NoValue.f_f = p_g; o1; }); o1; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__bin(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_x) { return ({ __auto_type s0 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, p_l); s0->tag == 0 ? ({ __auto_type v_a_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; ({ __auto_type s3 = p_op; s3->tag == 11 ? ({ ({ __auto_type s3 = v_a_0; s3->tag == 2 ? ({ __auto_type v_b_3 = s3->u.C_Ev__VBool.f_b; (v_b_3 ? f_Ev__expr(p_r, p_cx, p_f, v_env2_1, v_fuel2_2, p_x) : ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o4->tag = 0; o4->u.C_Ev__Ok.f_v = v_a_0; o4->u.C_Ev__Ok.f_env = v_env2_1; o4->u.C_Ev__Ok.f_fuel = v_fuel2_2; o4; })); }) : ({ ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = p_line; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }) : s3->tag == 12 ? ({ ({ __auto_type s3 = v_a_0; s3->tag == 2 ? ({ __auto_type v_b_3 = s3->u.C_Ev__VBool.f_b; (v_b_3 ? ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o4->tag = 0; o4->u.C_Ev__Ok.f_v = v_a_0; o4->u.C_Ev__Ok.f_env = v_env2_1; o4->u.C_Ev__Ok.f_fuel = v_fuel2_2; o4; }) : f_Ev__expr(p_r, p_cx, p_f, v_env2_1, v_fuel2_2, p_x)); }) : ({ ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = p_line; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }) : ({ ({ __auto_type s3 = f_Ev__expr(p_r, p_cx, p_f, v_env2_1, v_fuel2_2, p_x); s3->tag == 0 ? ({ __auto_type v_b_3 = s3->u.C_Ev__Ok.f_v; __auto_type v_env3_4 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel3_5 = s3->u.C_Ev__Ok.f_fuel; f_Ev__binV(p_r, p_f, p_line, p_op, v_a_0, v_b_3, v_env3_4, v_fuel3_5); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); } -static struct E_Ev__R* f_Ev__binV(srs_cap* p_r, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ev__V* p_a, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_op; s0->tag == 9 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = f_Ev__eq(p_a, p_b); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 10 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (!f_Ev__eq(p_a, p_b)); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : ({ ({ __auto_type s0 = p_a; s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VInt.f_v; ({ __auto_type s1 = p_b; s1->tag == 1 ? ({ __auto_type v_y_1 = s1->u.C_Ev__VInt.f_v; f_Ev__binI(p_r, p_f, p_line, p_op, v_x_0, v_y_1, p_env, p_fuel); }) : ({ ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = p_line; o1->u.C_Ev__NoValue.f_f = p_f; o1; }); o1; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); }); }); } -static struct E_Ev__R* f_Ev__binI(srs_cap* p_r, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x + p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x - p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x * p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 3 ? ({ ((p_y == ((int64_t)0)) ? ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__DivZero))); o0->tag = 1; o0->u.C_Ev__DivZero.f_line = p_line; o0->u.C_Ev__DivZero.f_f = p_f; o0; }); o0; }) : ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x / p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; })); }) : s0->tag == 4 ? ({ ((p_y == ((int64_t)0)) ? ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__DivZero))); o0->tag = 1; o0->u.C_Ev__DivZero.f_line = p_line; o0->u.C_Ev__DivZero.f_f = p_f; o0; }); o0; }) : ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x % p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; })); }) : s0->tag == 5 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x < p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x <= p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x > p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 8 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x >= p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); } -static struct E_Ev__R* f_Ev__un(srs_cap* p_r, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Ev__V* p_v, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ({ __auto_type s0 = p_v; s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VInt.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o1->tag = 1; o1->u.C_Ev__VInt.f_v = (((int64_t)0) - v_x_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); }) : ({ ({ __auto_type s0 = p_v; s0->tag == 2 ? ({ __auto_type v_b_0 = s0->u.C_Ev__VBool.f_b; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o1->tag = 2; o1->u.C_Ev__VBool.f_b = (!v_b_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); }); }); } +static struct E_Ev__R* f_Ev__result(srs_cap* p_eff__Region, struct E_Ev__R* p_res, struct E_Coll__List__Ev__Bind* p_env) { return ({ __auto_type s0 = p_res; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_fuel_1 = s0->u.C_Ev__Ok.f_fuel; ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o2->tag = 0; o2->u.C_Ev__Ok.f_v = v_v_0; o2->u.C_Ev__Ok.f_env = p_env; o2->u.C_Ev__Ok.f_fuel = v_fuel_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); } +static struct E_Coll__List__Ev__Bind* f_Ev__bindAll(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_vs; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_vrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_p_0; ({ __auto_type v_x_4 = s4->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ev__V* t2 = v_vrest_3; struct E_Coll__List__Ev__Bind* t3 = ({ struct E_Coll__List__Ev__Bind* o5 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o5 = (struct E_Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o5->tag = 0; o5->u.C_Ev__Bind.f_x = v_x_4; o5->u.C_Ev__Bind.f_v = v_v_2; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_ps = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ev__Bind*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Ev__R* f_Ev__extern(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = f_Pure__prim(p_eff__Region, p_g); s0->tag == 1 ? ({ __auto_type v_p_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = v_p_0; s1->tag == 0 ? ({ f_Ev__str1(p_eff__Region, p_line, p_g, p_vs, p_env, p_fuel); }) : ({ f_Ev__str2(p_eff__Region, p_line, p_g, v_p_0, p_vs, p_env, p_fuel); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__str1(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_vs; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; ({ __auto_type s1 = v_a_0; s1->tag == 3 ? ({ __auto_type v_s_1 = s1->u.C_Ev__VStr.f_s; ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o2->tag = 0; o2->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o2 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o2->tag = 1; o2->u.C_Ev__VInt.f_v = Str__len(v_s_1); o2; }); o2->u.C_Ev__Ok.f_env = p_env; o2->u.C_Ev__Ok.f_fuel = p_fuel; o2; }); }) : ({ ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = p_line; o1->u.C_Ev__NoValue.f_f = p_g; o1; }); o1; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__str2(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, struct E_Pure__Prim* p_p, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_vs; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_rest_1; s2->tag == 1 ? ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_a_0; s4->tag == 3 ? ({ __auto_type v_s_4 = s4->u.C_Ev__VStr.f_s; ({ __auto_type s5 = p_p; s5->tag == 3 ? ({ f_Ev__strEq(p_eff__Region, p_line, p_g, v_s_4, v_b_2, p_env, p_fuel); }) : s5->tag == 1 ? ({ f_Ev__strAt(p_eff__Region, p_line, p_g, v_s_4, v_b_2, p_env, p_fuel); }) : s5->tag == 2 ? ({ f_Ev__strSlice(p_eff__Region, p_line, p_g, v_s_4, v_b_2, v_more_3, p_env, p_fuel); }) : ({ ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o5->tag = 1; o5->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o5 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o5->tag = 2; o5->u.C_Ev__NoValue.f_line = p_line; o5->u.C_Ev__NoValue.f_f = p_g; o5; }); o5; }); }); }); }) : ({ ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o4 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o4->tag = 2; o4->u.C_Ev__NoValue.f_line = p_line; o4->u.C_Ev__NoValue.f_f = p_g; o4; }); o4; }); }); }); }) : ({ ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o2->tag = 1; o2->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o2 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o2->tag = 2; o2->u.C_Ev__NoValue.f_line = p_line; o2->u.C_Ev__NoValue.f_f = p_g; o2; }); o2; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__strEq(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_b; s0->tag == 3 ? ({ __auto_type v_t_0 = s0->u.C_Ev__VStr.f_s; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o1->tag = 2; o1->u.C_Ev__VBool.f_b = Str__eq(p_s, v_t_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__strAt(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_b; s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Ev__VInt.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o1->tag = 1; o1->u.C_Ev__VInt.f_v = Str__at(p_s, v_i_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__strSlice(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_g, srs_str p_s, struct E_Ev__V* p_b, struct E_Coll__List__Ev__V* p_more, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_b; s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Ev__VInt.f_v; ({ __auto_type s1 = p_more; s1->tag == 1 ? ({ __auto_type v_c_1 = s1->u.C_Coll__Cons.f_h; ({ __auto_type s2 = v_c_1; s2->tag == 1 ? ({ __auto_type v_j_2 = s2->u.C_Ev__VInt.f_v; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o3->tag = 0; o3->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o3 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VStr))); o3->tag = 3; o3->u.C_Ev__VStr.f_s = Str__slice(p_s, v_i_0, v_j_2); o3; }); o3->u.C_Ev__Ok.f_env = p_env; o3->u.C_Ev__Ok.f_fuel = p_fuel; o3; }); }) : ({ ({ struct E_Ev__R* o2 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o2->tag = 1; o2->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o2 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o2->tag = 2; o2->u.C_Ev__NoValue.f_line = p_line; o2->u.C_Ev__NoValue.f_f = p_g; o2; }); o2; }); }); }); }) : ({ ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = p_line; o1->u.C_Ev__NoValue.f_f = p_g; o1; }); o1; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_g; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__bin(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_x) { return ({ __auto_type s0 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, p_l); s0->tag == 0 ? ({ __auto_type v_a_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; ({ __auto_type s3 = p_op; s3->tag == 11 ? ({ ({ __auto_type s3 = v_a_0; s3->tag == 2 ? ({ __auto_type v_b_3 = s3->u.C_Ev__VBool.f_b; (v_b_3 ? f_Ev__expr(p_eff__Region, p_cx, p_f, v_env2_1, v_fuel2_2, p_x) : ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o4->tag = 0; o4->u.C_Ev__Ok.f_v = v_a_0; o4->u.C_Ev__Ok.f_env = v_env2_1; o4->u.C_Ev__Ok.f_fuel = v_fuel2_2; o4; })); }) : ({ ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = p_line; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }) : s3->tag == 12 ? ({ ({ __auto_type s3 = v_a_0; s3->tag == 2 ? ({ __auto_type v_b_3 = s3->u.C_Ev__VBool.f_b; (v_b_3 ? ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o4->tag = 0; o4->u.C_Ev__Ok.f_v = v_a_0; o4->u.C_Ev__Ok.f_env = v_env2_1; o4->u.C_Ev__Ok.f_fuel = v_fuel2_2; o4; }) : f_Ev__expr(p_eff__Region, p_cx, p_f, v_env2_1, v_fuel2_2, p_x)); }) : ({ ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = p_line; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }) : ({ ({ __auto_type s3 = f_Ev__expr(p_eff__Region, p_cx, p_f, v_env2_1, v_fuel2_2, p_x); s3->tag == 0 ? ({ __auto_type v_b_3 = s3->u.C_Ev__Ok.f_v; __auto_type v_env3_4 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel3_5 = s3->u.C_Ev__Ok.f_fuel; f_Ev__binV(p_eff__Region, p_f, p_line, p_op, v_a_0, v_b_3, v_env3_4, v_fuel3_5); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); } +static struct E_Ev__R* f_Ev__binV(srs_cap* p_eff__Region, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ev__V* p_a, struct E_Ev__V* p_b, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_op; s0->tag == 9 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = f_Ev__eq(p_a, p_b); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 10 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (!f_Ev__eq(p_a, p_b)); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : ({ ({ __auto_type s0 = p_a; s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VInt.f_v; ({ __auto_type s1 = p_b; s1->tag == 1 ? ({ __auto_type v_y_1 = s1->u.C_Ev__VInt.f_v; f_Ev__binI(p_eff__Region, p_f, p_line, p_op, v_x_0, v_y_1, p_env, p_fuel); }) : ({ ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o1 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o1->tag = 2; o1->u.C_Ev__NoValue.f_line = p_line; o1->u.C_Ev__NoValue.f_f = p_f; o1; }); o1; }); }); }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); }); }); } +static struct E_Ev__R* f_Ev__binI(srs_cap* p_eff__Region, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x + p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x - p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x * p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 3 ? ({ ((p_y == ((int64_t)0)) ? ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__DivZero))); o0->tag = 1; o0->u.C_Ev__DivZero.f_line = p_line; o0->u.C_Ev__DivZero.f_f = p_f; o0; }); o0; }) : ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x / p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; })); }) : s0->tag == 4 ? ({ ((p_y == ((int64_t)0)) ? ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__DivZero))); o0->tag = 1; o0->u.C_Ev__DivZero.f_line = p_line; o0->u.C_Ev__DivZero.f_f = p_f; o0; }); o0; }) : ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o0->tag = 1; o0->u.C_Ev__VInt.f_v = (p_x % p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; })); }) : s0->tag == 5 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x < p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x <= p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x > p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : s0->tag == 8 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o0->tag = 0; o0->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o0 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o0->tag = 2; o0->u.C_Ev__VBool.f_b = (p_x >= p_y); o0; }); o0->u.C_Ev__Ok.f_env = p_env; o0->u.C_Ev__Ok.f_fuel = p_fuel; o0; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); } +static struct E_Ev__R* f_Ev__un(srs_cap* p_eff__Region, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Ev__V* p_v, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ({ __auto_type s0 = p_v; s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VInt.f_v; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VInt))); o1->tag = 1; o1->u.C_Ev__VInt.f_v = (((int64_t)0) - v_x_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); }) : ({ ({ __auto_type s0 = p_v; s0->tag == 2 ? ({ __auto_type v_b_0 = s0->u.C_Ev__VBool.f_b; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o1->tag = 0; o1->u.C_Ev__Ok.f_v = ({ struct E_Ev__V* o1 = (struct E_Ev__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__V, u) + sizeof(((struct E_Ev__V*)0)->u.C_Ev__VBool))); o1->tag = 2; o1->u.C_Ev__VBool.f_b = (!v_b_0); o1; }); o1->u.C_Ev__Ok.f_env = p_env; o1->u.C_Ev__Ok.f_fuel = p_fuel; o1; }); }) : ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }); }); }); }); } static bool f_Ev__eq(struct E_Ev__V* p_a, struct E_Ev__V* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ true; }) : ({ false; }); }); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VInt.f_v; ({ __auto_type s1 = p_b; s1->tag == 1 ? ({ __auto_type v_y_1 = s1->u.C_Ev__VInt.f_v; (v_x_0 == v_y_1); }) : ({ false; }); }); }) : s0->tag == 2 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VBool.f_b; ({ __auto_type s1 = p_b; s1->tag == 2 ? ({ __auto_type v_y_1 = s1->u.C_Ev__VBool.f_b; (v_x_0 == v_y_1); }) : ({ false; }); }); }) : s0->tag == 3 ? ({ __auto_type v_x_0 = s0->u.C_Ev__VStr.f_s; ({ __auto_type s1 = p_b; s1->tag == 3 ? ({ __auto_type v_y_1 = s1->u.C_Ev__VStr.f_s; Str__eq(v_x_0, v_y_1); }) : ({ false; }); }); }) : ({ __auto_type v_c_0 = s0->u.C_Ev__VData.f_c; __auto_type v_fs_1 = s0->u.C_Ev__VData.f_fs; ({ __auto_type s2 = p_b; s2->tag == 4 ? ({ __auto_type v_d_2 = s2->u.C_Ev__VData.f_c; __auto_type v_gs_3 = s2->u.C_Ev__VData.f_fs; (f_Sym__eq(v_c_0, v_d_2) && f_Ev__eqAll(v_fs_1, v_gs_3)); }) : ({ false; }); }); }); }); } static bool f_Ev__eqAll(struct E_Coll__List__Ev__V* p_xs, struct E_Coll__List__Ev__V* p_ys) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ true; }) : ({ false; }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_xt_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ false; }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; (f_Ev__eq(v_x_0, v_y_2) ? ({ struct E_Coll__List__Ev__V* t0 = v_xt_1; struct E_Coll__List__Ev__V* t1 = v_yt_3; p_xs = t0; p_ys = t1; goto srs_tail; (bool){0}; }) : false); }); }); }); }); } -static struct E_Ev__R* f_Ev__arms(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ev__V* p_v, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_p_2; s4->tag == 1 ? ({ f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_b_3); }) : ({ __auto_type v_c_4 = s4->u.C_Ast__PCase.f_c; __auto_type v_binds_5 = s4->u.C_Ast__PCase.f_binds; ({ __auto_type s6 = p_v; s6->tag == 4 ? ({ __auto_type v_d_6 = s6->u.C_Ev__VData.f_c; __auto_type v_fs_7 = s6->u.C_Ev__VData.f_fs; ({ __auto_type res_ = (f_Sym__eq(v_c_4, v_d_6) ? ({ struct E_Coll__List__Ev__Bind* v_env2_8 = f_Ev__bindPat(p_r, v_binds_5, v_fs_7, p_env); __auto_type res_ = f_Ev__result(p_r, f_Ev__expr(p_r, p_cx, p_f, v_env2_8, p_fuel, v_b_3), p_env); res_; }) : ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = p_env; int64_t t4 = p_fuel; int64_t t5 = p_line; struct E_Ev__V* t6 = p_v; struct E_Coll__List__Ast__Arm* t7 = v_rest_1; p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_line = t5; p_v = t6; p_as = t7; goto srs_tail; (struct E_Ev__R*){0}; })); res_; }); }) : ({ ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o6->tag = 2; o6->u.C_Ev__NoValue.f_line = p_line; o6->u.C_Ev__NoValue.f_f = p_f; o6; }); o6; }); }); }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ev__Bind* f_Ev__bindPat(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_env; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_vs; s2->tag == 0 ? ({ p_env; }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_vrest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ev__V* t2 = v_vrest_3; struct E_Coll__List__Ev__Bind* t3 = (Str__eq(f_Sym__str(v_x_0), ((srs_str){(const uint8_t*)"_", 1})) ? p_env : ({ struct E_Coll__List__Ev__Bind* o4 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o4 = (struct E_Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o4->tag = 0; o4->u.C_Ev__Bind.f_x = v_x_0; o4->u.C_Ev__Bind.f_v = v_v_2; o4; }); o4->u.C_Coll__Cons.f_t = p_env; o4; })); p_r = t0; p_xs = t1; p_vs = t2; p_env = t3; goto srs_tail; (struct E_Coll__List__Ev__Bind*){0}; }); }); }); }); }); } -static struct E_Ev__R* f_Ev__block(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ __auto_type s0 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, p_last); s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o3->tag = 0; o3->u.C_Ev__Ok.f_v = v_v_0; o3->u.C_Ev__Ok.f_env = f_Ev__drop(p_r, v_env2_1, p_k); o3->u.C_Ev__Ok.f_fuel = v_fuel2_2; o3; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; f_Ev__bindStmt(p_r, p_cx, p_f, p_env, p_fuel, v_x_2, v_e_3, v_rest_1, p_last, p_k); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Var.f_x; __auto_type v_e_3 = s2->u.C_Ast__Var.f_e; f_Ev__bindStmt(p_r, p_cx, p_f, p_env, p_fuel, v_x_2, v_e_3, v_rest_1, p_last, p_k); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ __auto_type s3 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, v_e_2); s3->tag == 0 ? ({ __auto_type v_env2_3 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel2_4 = s3->u.C_Ev__Ok.f_fuel; ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_3; int64_t t4 = v_fuel2_4; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; int64_t t7 = p_k; p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_ss = t5; p_last = t6; p_k = t7; goto srs_tail; (struct E_Ev__R*){0}; }); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }) : s2->tag == 4 ? ({ ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = p_env; int64_t t4 = p_fuel; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; int64_t t7 = p_k; p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_ss = t5; p_last = t6; p_k = t7; goto srs_tail; (struct E_Ev__R*){0}; }); }) : ({ __auto_type v_line_2 = s2->u.C_Ast__Handle.f_line; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = v_line_2; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }); }); } -static struct E_Ev__R* f_Ev__bindStmt(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_e, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, int64_t p_k) { return ({ __auto_type s0 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, p_e); s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; f_Ev__block(p_r, p_cx, p_f, ({ struct E_Coll__List__Ev__Bind* o3 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o3 = (struct E_Ev__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o3->tag = 0; o3->u.C_Ev__Bind.f_x = p_x; o3->u.C_Ev__Bind.f_v = v_v_0; o3; }); o3->u.C_Coll__Cons.f_t = v_env2_1; o3; }), v_fuel2_2, p_rest, p_last, (p_k + ((int64_t)1))); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); } -static struct E_Ev__R* f_Ev__loop(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__Expr* p_c, struct E_Ast__Expr* p_b) { srs_tail: return ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__Fuel))); o0->tag = 0; o0->u.C_Ev__Fuel.f_line = p_line; o0->u.C_Ev__Fuel.f_f = p_f; o0; }); o0; }) : ({ __auto_type s0 = f_Ev__expr(p_r, p_cx, p_f, p_env, p_fuel, p_c); s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; ({ __auto_type s3 = v_v_0; s3->tag == 2 ? ({ __auto_type v_go_3 = s3->u.C_Ev__VBool.f_b; ({ __auto_type res_ = (v_go_3 ? ({ __auto_type s4 = f_Ev__expr(p_r, p_cx, p_f, v_env2_1, v_fuel2_2, p_b); s4->tag == 0 ? ({ __auto_type v_env3_4 = s4->u.C_Ev__Ok.f_env; __auto_type v_fuel3_5 = s4->u.C_Ev__Ok.f_fuel; ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env3_4; int64_t t4 = (v_fuel3_5 - ((int64_t)1)); int64_t t5 = p_line; struct E_Ast__Expr* t6 = p_c; struct E_Ast__Expr* t7 = p_b; p_r = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_line = t5; p_c = t6; p_b = t7; goto srs_tail; (struct E_Ev__R*){0}; }); }) : ({ __auto_type v_x_4 = s4->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o5->tag = 1; o5->u.C_Ev__Err.f_e = v_x_4; o5; }); }); }) : ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o4->tag = 0; o4->u.C_Ev__Ok.f_v = (&N_Ev__VUnit); o4->u.C_Ev__Ok.f_env = v_env2_1; o4->u.C_Ev__Ok.f_fuel = v_fuel2_2; o4; })); res_; }); }) : ({ ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = p_line; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); })); res_; }); } -static struct E_Ev__Out* f_Ev__all(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp) { return f_Ev__run(p_r, f_Ev__cxOf(p_r, p_ds, p_imp), p_ds, (&N_Coll__Nil__Ev__Line)); } -static struct E_Ev__Out* f_Ev__run(srs_cap* p_r, struct E_Ev__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ev__Line* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Ev__Out* o0 = (struct E_Ev__Out*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Out, u) + sizeof(((struct E_Ev__Out*)0)->u.C_Ev__Lines))); o0->tag = 0; o0->u.C_Ev__Lines.f_ls = f_Coll__rev__Ev__Line(p_r, p_acc); o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; __auto_type v_gs_4 = s3->u.C_Ast__Fn.f_groups; __auto_type v_ps_5 = s3->u.C_Ast__Fn.f_params; __auto_type v_body_6 = s3->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s7 = p_cx; ({ __auto_type v_imp_7 = s7->u.C_Ev__Cx.f_impure; ({ bool v_nullary_8 = ((((f_Coll__length__Ast__Binder(v_ps_5) == ((int64_t)0)) && (f_Coll__length__Ast__Group(v_gs_4) == ((int64_t)0))) && (!Str__eq(f_Sym__str(v_n_3), ((srs_str){(const uint8_t*)"main", 4})))) && (!f_Pure__has(p_r, v_imp_7, v_n_3))); struct E_Coll__Option__Ast__Expr* v_be_9 = ({ __auto_type s9 = v_body_6; s9->tag == 0 ? ({ __auto_type v_e_9 = s9->u.C_Ast__Def.f_e; ({ struct E_Coll__Option__Ast__Expr* o10 = (struct E_Coll__Option__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Expr, u) + sizeof(((struct E_Coll__Option__Ast__Expr*)0)->u.C_Coll__Some))); o10->tag = 1; o10->u.C_Coll__Some.f_v = v_e_9; o10; }); }) : s9->tag == 2 ? ({ __auto_type v_e_9 = s9->u.C_Ast__Spec.f_e; ({ struct E_Coll__Option__Ast__Expr* o10 = (struct E_Coll__Option__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Expr, u) + sizeof(((struct E_Coll__Option__Ast__Expr*)0)->u.C_Coll__Some))); o10->tag = 1; o10->u.C_Coll__Some.f_v = v_e_9; o10; }); }) : ({ (&N_Coll__None__Ast__Expr); }); }); __auto_type res_ = ({ __auto_type s10 = v_be_9; s10->tag == 1 ? ({ __auto_type v_e_10 = s10->u.C_Coll__Some.f_v; ({ __auto_type res_ = (v_nullary_8 ? ({ __auto_type s11 = f_Ev__expr(p_r, p_cx, v_n_3, (&N_Coll__Nil__Ev__Bind), f_Ev__fuel(), v_e_10); s11->tag == 0 ? ({ __auto_type v_v_11 = s11->u.C_Ev__Ok.f_v; ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = ({ struct E_Coll__List__Ev__Line* o12 = (struct E_Coll__List__Ev__Line*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Line, u) + sizeof(((struct E_Coll__List__Ev__Line*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = ({ struct E_Ev__Line* o12 = (struct E_Ev__Line*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Line, u) + sizeof(((struct E_Ev__Line*)0)->u.C_Ev__Shown))); o12->tag = 0; o12->u.C_Ev__Shown.f_name = v_n_3; o12->u.C_Ev__Shown.f_v = v_v_11; o12; }); o12->u.C_Coll__Cons.f_t = p_acc; o12; }); p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; }); }) : ({ __auto_type v_err_11 = s11->u.C_Ev__Err.f_e; ({ struct E_Ev__Out* o12 = (struct E_Ev__Out*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ev__Out, u) + sizeof(((struct E_Ev__Out*)0)->u.C_Ev__Failed))); o12->tag = 1; o12->u.C_Ev__Failed.f_e = v_err_11; o12; }); }); }) : ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; })); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; }); }); }); }); }); } -static struct E_Coll__List__Ev__Line* f_Coll__rev__Ev__Line(srs_cap* p_r, struct E_Coll__List__Ev__Line* p_xs) { return f_Coll__revOnto__Ev__Line(p_r, p_xs, (&N_Coll__Nil__Ev__Line)); } -static struct E_Coll__List__Ev__Line* f_Coll__revOnto__Ev__Line(srs_cap* p_r, struct E_Coll__List__Ev__Line* p_xs, struct E_Coll__List__Ev__Line* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ev__Line* t1 = v_t_1; struct E_Coll__List__Ev__Line* t2 = ({ struct E_Coll__List__Ev__Line* o2 = (struct E_Coll__List__Ev__Line*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ev__Line, u) + sizeof(((struct E_Coll__List__Ev__Line*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ev__Line*){0}; }); }); }); } +static struct E_Ev__R* f_Ev__arms(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ev__V* p_v, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o0->tag = 2; o0->u.C_Ev__NoValue.f_line = p_line; o0->u.C_Ev__NoValue.f_f = p_f; o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_p_2; s4->tag == 1 ? ({ f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_b_3); }) : ({ __auto_type v_c_4 = s4->u.C_Ast__PCase.f_c; __auto_type v_binds_5 = s4->u.C_Ast__PCase.f_binds; ({ __auto_type s6 = p_v; s6->tag == 4 ? ({ __auto_type v_d_6 = s6->u.C_Ev__VData.f_c; __auto_type v_fs_7 = s6->u.C_Ev__VData.f_fs; ({ __auto_type res_ = (f_Sym__eq(v_c_4, v_d_6) ? ({ struct E_Coll__List__Ev__Bind* v_env2_8 = f_Ev__bindPat(p_eff__Region, v_binds_5, v_fs_7, p_env); __auto_type res_ = f_Ev__result(p_eff__Region, f_Ev__expr(p_eff__Region, p_cx, p_f, v_env2_8, p_fuel, v_b_3), p_env); res_; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = p_env; int64_t t4 = p_fuel; int64_t t5 = p_line; struct E_Ev__V* t6 = p_v; struct E_Coll__List__Ast__Arm* t7 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_line = t5; p_v = t6; p_as = t7; goto srs_tail; (struct E_Ev__R*){0}; })); res_; }); }) : ({ ({ struct E_Ev__R* o6 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o6->tag = 1; o6->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o6 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o6->tag = 2; o6->u.C_Ev__NoValue.f_line = p_line; o6->u.C_Ev__NoValue.f_f = p_f; o6; }); o6; }); }); }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ev__Bind* f_Ev__bindPat(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ev__V* p_vs, struct E_Coll__List__Ev__Bind* p_env) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_env; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_vs; s2->tag == 0 ? ({ p_env; }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_vrest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ev__V* t2 = v_vrest_3; struct E_Coll__List__Ev__Bind* t3 = (Str__eq(f_Sym__str(v_x_0), ((srs_str){(const uint8_t*)"_", 1})) ? p_env : ({ struct E_Coll__List__Ev__Bind* o4 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o4 = (struct E_Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o4->tag = 0; o4->u.C_Ev__Bind.f_x = v_x_0; o4->u.C_Ev__Bind.f_v = v_v_2; o4; }); o4->u.C_Coll__Cons.f_t = p_env; o4; })); p_eff__Region = t0; p_xs = t1; p_vs = t2; p_env = t3; goto srs_tail; (struct E_Coll__List__Ev__Bind*){0}; }); }); }); }); }); } +static struct E_Ev__R* f_Ev__block(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ __auto_type s0 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, p_last); s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o3->tag = 0; o3->u.C_Ev__Ok.f_v = v_v_0; o3->u.C_Ev__Ok.f_env = f_Ev__drop(v_env2_1, p_k); o3->u.C_Ev__Ok.f_fuel = v_fuel2_2; o3; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; f_Ev__bindStmt(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_x_2, v_e_3, v_rest_1, p_last, p_k); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Var.f_x; __auto_type v_e_3 = s2->u.C_Ast__Var.f_e; f_Ev__bindStmt(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_x_2, v_e_3, v_rest_1, p_last, p_k); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ __auto_type s3 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, v_e_2); s3->tag == 0 ? ({ __auto_type v_env2_3 = s3->u.C_Ev__Ok.f_env; __auto_type v_fuel2_4 = s3->u.C_Ev__Ok.f_fuel; ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env2_3; int64_t t4 = v_fuel2_4; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; int64_t t7 = p_k; p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_ss = t5; p_last = t6; p_k = t7; goto srs_tail; (struct E_Ev__R*){0}; }); }) : ({ __auto_type v_x_3 = s3->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o4->tag = 1; o4->u.C_Ev__Err.f_e = v_x_3; o4; }); }); }); }) : s2->tag == 4 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = p_env; int64_t t4 = p_fuel; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; int64_t t7 = p_k; p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_ss = t5; p_last = t6; p_k = t7; goto srs_tail; (struct E_Ev__R*){0}; }); }) : ({ __auto_type v_line_2 = s2->u.C_Ast__Handle.f_line; ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = v_line_2; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }); }); } +static struct E_Ev__R* f_Ev__bindStmt(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_e, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, int64_t p_k) { return ({ __auto_type s0 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, p_e); s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; f_Ev__block(p_eff__Region, p_cx, p_f, ({ struct E_Coll__List__Ev__Bind* o3 = (struct E_Coll__List__Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Bind, u) + sizeof(((struct E_Coll__List__Ev__Bind*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Ev__Bind* o3 = (struct E_Ev__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Bind, u) + sizeof(((struct E_Ev__Bind*)0)->u.C_Ev__Bind))); o3->tag = 0; o3->u.C_Ev__Bind.f_x = p_x; o3->u.C_Ev__Bind.f_v = v_v_0; o3; }); o3->u.C_Coll__Cons.f_t = v_env2_1; o3; }), v_fuel2_2, p_rest, p_last, (p_k + ((int64_t)1))); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); }); } +static struct E_Ev__R* f_Ev__loop(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ev__Bind* p_env, int64_t p_fuel, int64_t p_line, struct E_Ast__Expr* p_c, struct E_Ast__Expr* p_b) { srs_tail: return ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? ({ struct E_Ev__R* o0 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o0->tag = 1; o0->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o0 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__Fuel))); o0->tag = 0; o0->u.C_Ev__Fuel.f_line = p_line; o0->u.C_Ev__Fuel.f_f = p_f; o0; }); o0; }) : ({ __auto_type s0 = f_Ev__expr(p_eff__Region, p_cx, p_f, p_env, p_fuel, p_c); s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ev__Ok.f_v; __auto_type v_env2_1 = s0->u.C_Ev__Ok.f_env; __auto_type v_fuel2_2 = s0->u.C_Ev__Ok.f_fuel; ({ __auto_type s3 = v_v_0; s3->tag == 2 ? ({ __auto_type v_go_3 = s3->u.C_Ev__VBool.f_b; ({ __auto_type res_ = (v_go_3 ? ({ __auto_type s4 = f_Ev__expr(p_eff__Region, p_cx, p_f, v_env2_1, v_fuel2_2, p_b); s4->tag == 0 ? ({ __auto_type v_env3_4 = s4->u.C_Ev__Ok.f_env; __auto_type v_fuel3_5 = s4->u.C_Ev__Ok.f_fuel; ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ev__Bind* t3 = v_env3_4; int64_t t4 = (v_fuel3_5 - ((int64_t)1)); int64_t t5 = p_line; struct E_Ast__Expr* t6 = p_c; struct E_Ast__Expr* t7 = p_b; p_eff__Region = t0; p_cx = t1; p_f = t2; p_env = t3; p_fuel = t4; p_line = t5; p_c = t6; p_b = t7; goto srs_tail; (struct E_Ev__R*){0}; }); }) : ({ __auto_type v_x_4 = s4->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o5 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o5->tag = 1; o5->u.C_Ev__Err.f_e = v_x_4; o5; }); }); }) : ({ struct E_Ev__R* o4 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Ok))); o4->tag = 0; o4->u.C_Ev__Ok.f_v = (&N_Ev__VUnit); o4->u.C_Ev__Ok.f_env = v_env2_1; o4->u.C_Ev__Ok.f_fuel = v_fuel2_2; o4; })); res_; }); }) : ({ ({ struct E_Ev__R* o3 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o3->tag = 1; o3->u.C_Ev__Err.f_e = ({ struct E_Ev__Fail* o3 = (struct E_Ev__Fail*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Fail, u) + sizeof(((struct E_Ev__Fail*)0)->u.C_Ev__NoValue))); o3->tag = 2; o3->u.C_Ev__NoValue.f_line = p_line; o3->u.C_Ev__NoValue.f_f = p_f; o3; }); o3; }); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Ev__Err.f_e; ({ struct E_Ev__R* o1 = (struct E_Ev__R*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__R, u) + sizeof(((struct E_Ev__R*)0)->u.C_Ev__Err))); o1->tag = 1; o1->u.C_Ev__Err.f_e = v_x_0; o1; }); }); })); res_; }); } +static struct E_Ev__Out* f_Ev__all(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Bool* p_imp) { return f_Ev__run(p_eff__Region, f_Ev__cxOf(p_eff__Region, p_ds, p_imp), p_ds, (&N_Coll__Nil__Ev__Line)); } +static struct E_Ev__Out* f_Ev__run(srs_cap* p_eff__Region, struct E_Ev__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ev__Line* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Ev__Out* o0 = (struct E_Ev__Out*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Out, u) + sizeof(((struct E_Ev__Out*)0)->u.C_Ev__Lines))); o0->tag = 0; o0->u.C_Ev__Lines.f_ls = f_Coll__rev__Ev__Line(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; __auto_type v_gs_4 = s3->u.C_Ast__Fn.f_groups; __auto_type v_ps_5 = s3->u.C_Ast__Fn.f_params; __auto_type v_body_6 = s3->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s7 = p_cx; ({ __auto_type v_imp_7 = s7->u.C_Ev__Cx.f_impure; ({ bool v_nullary_8 = ((((f_Coll__length__Ast__Binder(v_ps_5) == ((int64_t)0)) && (f_Coll__length__Ast__Group(v_gs_4) == ((int64_t)0))) && (!Str__eq(f_Sym__str(v_n_3), ((srs_str){(const uint8_t*)"main", 4})))) && (!f_Pure__has(p_eff__Region, v_imp_7, v_n_3))); struct E_Coll__Option__Ast__Expr* v_be_9 = ({ __auto_type s9 = v_body_6; s9->tag == 0 ? ({ __auto_type v_e_9 = s9->u.C_Ast__Def.f_e; ({ struct E_Coll__Option__Ast__Expr* o10 = (struct E_Coll__Option__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Expr, u) + sizeof(((struct E_Coll__Option__Ast__Expr*)0)->u.C_Coll__Some))); o10->tag = 1; o10->u.C_Coll__Some.f_v = v_e_9; o10; }); }) : s9->tag == 2 ? ({ __auto_type v_e_9 = s9->u.C_Ast__Spec.f_e; ({ struct E_Coll__Option__Ast__Expr* o10 = (struct E_Coll__Option__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Expr, u) + sizeof(((struct E_Coll__Option__Ast__Expr*)0)->u.C_Coll__Some))); o10->tag = 1; o10->u.C_Coll__Some.f_v = v_e_9; o10; }); }) : ({ (&N_Coll__None__Ast__Expr); }); }); __auto_type res_ = ({ __auto_type s10 = v_be_9; s10->tag == 1 ? ({ __auto_type v_e_10 = s10->u.C_Coll__Some.f_v; ({ __auto_type res_ = (v_nullary_8 ? ({ __auto_type s11 = f_Ev__expr(p_eff__Region, p_cx, v_n_3, (&N_Coll__Nil__Ev__Bind), f_Ev__fuel(), v_e_10); s11->tag == 0 ? ({ __auto_type v_v_11 = s11->u.C_Ev__Ok.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = ({ struct E_Coll__List__Ev__Line* o12 = (struct E_Coll__List__Ev__Line*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Line, u) + sizeof(((struct E_Coll__List__Ev__Line*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = ({ struct E_Ev__Line* o12 = (struct E_Ev__Line*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Line, u) + sizeof(((struct E_Ev__Line*)0)->u.C_Ev__Shown))); o12->tag = 0; o12->u.C_Ev__Shown.f_name = v_n_3; o12->u.C_Ev__Shown.f_v = v_v_11; o12; }); o12->u.C_Coll__Cons.f_t = p_acc; o12; }); p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; }); }) : ({ __auto_type v_err_11 = s11->u.C_Ev__Err.f_e; ({ struct E_Ev__Out* o12 = (struct E_Ev__Out*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ev__Out, u) + sizeof(((struct E_Ev__Out*)0)->u.C_Ev__Failed))); o12->tag = 1; o12->u.C_Ev__Failed.f_e = v_err_11; o12; }); }); }) : ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; })); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Ev__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ev__Line* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Ev__Out*){0}; }); }); }); }); }); } +static struct E_Coll__List__Ev__Line* f_Coll__rev__Ev__Line(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Line* p_xs) { return f_Coll__revOnto__Ev__Line(p_eff__Region, p_xs, (&N_Coll__Nil__Ev__Line)); } +static struct E_Coll__List__Ev__Line* f_Coll__revOnto__Ev__Line(srs_cap* p_eff__Region, struct E_Coll__List__Ev__Line* p_xs, struct E_Coll__List__Ev__Line* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ev__Line* t1 = v_t_1; struct E_Coll__List__Ev__Line* t2 = ({ struct E_Coll__List__Ev__Line* o2 = (struct E_Coll__List__Ev__Line*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ev__Line, u) + sizeof(((struct E_Coll__List__Ev__Line*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ev__Line*){0}; }); }); }); } static int64_t f_Coll__length__Ast__Group(struct E_Coll__List__Ast__Group* p_xs) { return f_Coll__lengthFrom__Ast__Group(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Group(struct E_Coll__List__Ast__Group* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Group* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } static int64_t f_Ev__show(srs_cap* p_eff__Console, struct E_Ev__V* p_v) { return ({ __auto_type s0 = p_v; s0->tag == 0 ? ({ ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"()", 2})); p_eff__Console->live = 0; r_; }); }) : s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_Ev__VInt.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_n_0); p_eff__Console->live = 0; r_; }); }) : s0->tag == 2 ? ({ __auto_type v_b_0 = s0->u.C_Ev__VBool.f_b; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, (v_b_0 ? ((srs_str){(const uint8_t*)"true", 4}) : ((srs_str){(const uint8_t*)"false", 5}))); p_eff__Console->live = 0; r_; }); }) : s0->tag == 3 ? ({ __auto_type v_s_0 = s0->u.C_Ev__VStr.f_s; ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, v_s_0); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_c_0 = s0->u.C_Ev__VData.f_c; __auto_type v_fs_1 = s0->u.C_Ev__VData.f_fs; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Sym__str(v_c_0)); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s2 = v_fs_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_t_3 = s2->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"(", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ev__show(p_eff__Console, v_h_2)); (void)(f_Ev__showRest(p_eff__Console, v_t_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)")", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }); }); } static int64_t f_Ev__showRest(srs_cap* p_eff__Console, struct E_Coll__List__Ev__V* p_fs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_Ev__show(p_eff__Console, v_h_0)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Ev__V* t1 = v_t_1; p_eff__Console = t0; p_fs = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static struct E_Sym__Sym* f_Fx__relSym(srs_cap* p_r, struct E_Fx__Rel* p_rel) { return ({ __auto_type s0 = p_rel; s0->tag == 0 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxCap", 5})); }) : s0->tag == 1 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxState", 7})); }) : s0->tag == 2 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxOpOf", 6})); }) : s0->tag == 3 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRuleRel", 9})); }) : s0->tag == 4 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxSameN", 7})); }) : s0->tag == 5 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxUseAt", 7})); }) : s0->tag == 6 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxAtState", 9})); }) : s0->tag == 7 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxAtId", 6})); }) : s0->tag == 8 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxAtLine", 8})); }) : s0->tag == 9 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxSameId", 8})); }) : s0->tag == 10 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxUseNext", 9})); }) : s0->tag == 11 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxUseRel", 8})); }) : s0->tag == 12 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxExitOther", 11})); }) : s0->tag == 13 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxVarIn", 7})); }) : s0->tag == 14 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxParam", 7})); }) : s0->tag == 15 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxBodyVar", 9})); }) : s0->tag == 16 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRUse", 6})); }) : s0->tag == 17 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRNext", 7})); }) : s0->tag == 18 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxReserved", 10})); }) : s0->tag == 19 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxIsCap", 7})); }) : s0->tag == 20 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxDefOp", 7})); }) : s0->tag == 21 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxDefRel", 8})); }) : s0->tag == 22 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxDefRelN", 9})); }) : s0->tag == 23 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxVar0", 6})); }) : s0->tag == 24 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRRel", 6})); }) : s0->tag == 25 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxNotCapAt", 10})); }) : s0->tag == 26 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxBadStateAt", 12})); }) : s0->tag == 27 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxTwiceAt", 9})); }) : s0->tag == 28 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxNotOpAt", 9})); }) : s0->tag == 29 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxUnknownRelAt", 14})); }) : s0->tag == 30 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRelArityAt", 12})); }) : s0->tag == 31 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxUnboundAt", 11})); }) : s0->tag == 32 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxExitOtherAt", 13})); }) : s0->tag == 33 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxReservedAt", 12})); }) : s0->tag == 34 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxClauseArityAt", 15})); }) : s0->tag == 35 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxUnsafeAt", 10})); }) : s0->tag == 36 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRuleUnknownAt", 15})); }) : ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fxRuleOpAt", 10})); }); }); } -static struct E_D__Arg* f_Fx__v(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o0->tag = 0; o0->u.C_D__AVar.f_n = p_n; o0; }); } -static struct E_D__Arg* f_Fx__c(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); o0; }); } -static struct E_D__Atom* f_Fx__at(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Fx__relSym(p_r, p_rel); o0->u.C_D__Atom.f_args = p_xs; o0; }); } -static struct E_D__Lit* f_Fx__p(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Fx__at(p_r, p_rel, p_xs); o0; }); } -static struct E_D__Lit* f_Fx__n(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o0->tag = 1; o0->u.C_D__Neg.f_a = f_Fx__at(p_r, p_rel, p_xs); o0; }); } -static struct E_Coll__List__D__Arg* f_Fx__vs(srs_cap* p_r, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Fx__v(p_r, v_x_0); o2->u.C_Coll__Cons.f_t = f_Fx__vs(p_r, v_rest_1); o2; }); }); }); } -static struct E_D__Rule* f_Fx__rule(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__I64* p_hs, struct E_Coll__List__D__Lit* p_body) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Fx__at(p_r, p_rel, f_Fx__vs(p_r, p_hs)); o0->u.C_D__Rule.f_body = p_body; o0; }); } -static struct E_Coll__List__D__Rule* f_Fx__rules(srs_cap* p_r) { return ({ struct E_D__Rule* v_isCap_0 = f_Fx__rule(p_r, (&N_Fx__RIsCap), f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)), f_Fx__l1__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RCap), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))))); struct E_D__Rule* v_defOp_1 = f_Fx__rule(p_r, (&N_Fx__RDefOp), f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)3)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RCap), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__p(p_r, (&N_Fx__ROpOf), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)2), ((int64_t)3)))))); struct E_D__Rule* v_defRel_2 = f_Fx__rule(p_r, (&N_Fx__RDefRel), f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)3)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RCap), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__p(p_r, (&N_Fx__RRuleRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)2), ((int64_t)3), ((int64_t)4), ((int64_t)5)))))); struct E_D__Rule* v_defRelN_3 = f_Fx__rule(p_r, (&N_Fx__RDefRelN), f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)3), ((int64_t)4)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RCap), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__p(p_r, (&N_Fx__RRuleRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)2), ((int64_t)3), ((int64_t)4), ((int64_t)5)))))); struct E_D__Rule* v_var0_4 = f_Fx__rule(p_r, (&N_Fx__RVar0), f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)2)), f_Fx__l1__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RVarIn), f_Fx__l4__D__Arg(p_r, f_Fx__v(p_r, ((int64_t)0)), f_Fx__c(p_r, ((int64_t)0)), f_Fx__v(p_r, ((int64_t)2)), f_Fx__v(p_r, ((int64_t)3)))))); struct E_D__Rule* v_rrel_5 = f_Fx__rule(p_r, (&N_Fx__RRRel), f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)), f_Fx__l1__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RRuleRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))))); struct E_D__Rule* v_notCap_6 = f_Fx__rule(p_r, (&N_Fx__RNotCapAt), f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)2)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RUseAt), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__n(p_r, (&N_Fx__RIsCap), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)2)))))); struct E_D__Rule* v_badState_7 = f_Fx__rule(p_r, (&N_Fx__RBadStateAt), f_Fx__l2__I64(p_r, ((int64_t)4), ((int64_t)3)), f_Fx__l3__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RAtState), f_Fx__vs(p_r, f_Fx__l5__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)))), f_Fx__p(p_r, (&N_Fx__RCap), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)5)))), f_Fx__n(p_r, (&N_Fx__RState), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)5), ((int64_t)3)))))); struct E_D__Rule* v_twice_8 = f_Fx__rule(p_r, (&N_Fx__RTwiceAt), f_Fx__l2__I64(p_r, ((int64_t)5), ((int64_t)2)), f_Fx__l4__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RAtId), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__p(p_r, (&N_Fx__RAtId), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)4)))), f_Fx__n(p_r, (&N_Fx__RSameId), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)4)))), f_Fx__p(p_r, (&N_Fx__RAtLine), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)5)))))); struct E_D__Rule* v_notOp_9 = f_Fx__rule(p_r, (&N_Fx__RNotOpAt), f_Fx__l2__I64(p_r, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RUseNext), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_r, (&N_Fx__RDefOp), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_unknownRel_10 = f_Fx__rule(p_r, (&N_Fx__RUnknownRelAt), f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)1)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RUseRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__n(p_r, (&N_Fx__RDefRel), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_relArity_11 = f_Fx__rule(p_r, (&N_Fx__RRelArityAt), f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)1)), f_Fx__l3__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RUseRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__p(p_r, (&N_Fx__RDefRel), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))), f_Fx__n(p_r, (&N_Fx__RDefRelN), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))))); struct E_D__Rule* v_unbound_12 = f_Fx__rule(p_r, (&N_Fx__RUnboundAt), f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)2)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RVarIn), f_Fx__l4__D__Arg(p_r, f_Fx__v(p_r, ((int64_t)0)), f_Fx__c(p_r, ((int64_t)1)), f_Fx__v(p_r, ((int64_t)2)), f_Fx__v(p_r, ((int64_t)3)))), f_Fx__n(p_r, (&N_Fx__RVar0), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)2)))))); struct E_D__Rule* v_exitOther_13 = f_Fx__rule(p_r, (&N_Fx__RExitOtherAt), f_Fx__l2__I64(p_r, ((int64_t)1), ((int64_t)0)), f_Fx__l1__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RExitOther), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_reserved_14 = f_Fx__rule(p_r, (&N_Fx__RReservedAt), f_Fx__l2__I64(p_r, ((int64_t)1), ((int64_t)0)), f_Fx__l1__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RReserved), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_clauseArity_15 = f_Fx__rule(p_r, (&N_Fx__RClauseArityAt), f_Fx__l2__I64(p_r, ((int64_t)3), ((int64_t)1)), f_Fx__l3__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RRuleRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__p(p_r, (&N_Fx__RRuleRel), f_Fx__vs(p_r, f_Fx__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)4), ((int64_t)5)))), f_Fx__n(p_r, (&N_Fx__RSameN), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)2), ((int64_t)4)))))); struct E_D__Rule* v_unsafe_16 = f_Fx__rule(p_r, (&N_Fx__RUnsafeAt), f_Fx__l2__I64(p_r, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RParam), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_r, (&N_Fx__RBodyVar), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_ruleUnknown_17 = f_Fx__rule(p_r, (&N_Fx__RRuleUnknownAt), f_Fx__l2__I64(p_r, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RRUse), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_r, (&N_Fx__RRRel), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_ruleOp_18 = f_Fx__rule(p_r, (&N_Fx__RRuleOpAt), f_Fx__l2__I64(p_r, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_r, f_Fx__p(p_r, (&N_Fx__RRNext), f_Fx__vs(p_r, f_Fx__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_r, (&N_Fx__ROpOf), f_Fx__vs(p_r, f_Fx__l2__I64(p_r, ((int64_t)0), ((int64_t)1)))))); struct E_Coll__List__D__Rule* v_a_19 = f_Fx__l5__D__Rule(p_r, v_isCap_0, v_defOp_1, v_defRel_2, v_defRelN_3, v_var0_4); struct E_Coll__List__D__Rule* v_b_20 = f_Fx__l5__D__Rule(p_r, v_rrel_5, v_notCap_6, v_badState_7, v_twice_8, v_notOp_9); struct E_Coll__List__D__Rule* v_c_21 = f_Fx__l5__D__Rule(p_r, v_unknownRel_10, v_relArity_11, v_unbound_12, v_exitOther_13, v_reserved_14); struct E_Coll__List__D__Rule* v_d_22 = f_Fx__l4__D__Rule(p_r, v_clauseArity_15, v_unsafe_16, v_ruleUnknown_17, v_ruleOp_18); __auto_type res_ = f_Coll__revOnto__D__Rule(p_r, f_Coll__rev__D__Rule(p_r, v_a_19), f_Coll__revOnto__D__Rule(p_r, f_Coll__rev__D__Rule(p_r, v_b_20), f_Coll__revOnto__D__Rule(p_r, f_Coll__rev__D__Rule(p_r, v_c_21), v_d_22))); res_; }); } -static struct E_Coll__List__I64* f_Fx__l5__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__I64(p_r, p_b, p_c, p_d, p_e); o0; }); } -static struct E_Coll__List__D__Lit* f_Fx__l4__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Lit(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__D__Arg* f_Fx__l4__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c, struct E_D__Arg* p_d) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Arg(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__D__Arg* f_Fx__l3__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Arg(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__D__Arg* f_Fx__l2__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Arg(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Arg* f_Fx__l1__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Arg); o0; }); } -static struct E_Coll__List__D__Lit* f_Fx__l1__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); } -static struct E_Coll__List__D__Lit* f_Fx__l3__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Lit(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__I64* f_Fx__l4__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__I64(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__D__Lit* f_Fx__l2__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Lit(p_r, p_b); o0; }); } -static struct E_Coll__List__I64* f_Fx__l3__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__I64(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__I64* f_Fx__l2__I64(srs_cap* p_r, int64_t p_a, int64_t p_b) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__I64(p_r, p_b); o0; }); } -static struct E_Coll__List__I64* f_Fx__l1__I64(srs_cap* p_r, int64_t p_a) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } -static struct E_Coll__List__D__Rule* f_Fx__l5__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d, struct E_D__Rule* p_e) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__D__Rule(p_r, p_b, p_c, p_d, p_e); o0; }); } -static struct E_Coll__List__D__Rule* f_Fx__l4__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Rule(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__D__Rule* f_Fx__l3__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Rule(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__D__Rule* f_Fx__l2__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a, struct E_D__Rule* p_b) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Rule(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Rule* f_Fx__l1__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o0; }); } -static struct E_Coll__List__D__Rule* f_Coll__revOnto__D__Rule(srs_cap* p_r, struct E_Coll__List__D__Rule* p_xs, struct E_Coll__List__D__Rule* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Rule* t1 = v_t_1; struct E_Coll__List__D__Rule* t2 = ({ struct E_Coll__List__D__Rule* o2 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Rule*){0}; }); }); }); } -static struct E_Coll__List__D__Rule* f_Coll__rev__D__Rule(srs_cap* p_r, struct E_Coll__List__D__Rule* p_xs) { return f_Coll__revOnto__D__Rule(p_r, p_xs, (&N_Coll__Nil__D__Rule)); } -static struct E_D__Val* f_Fx__s(srs_cap* p_r, struct E_Sym__Sym* p_x) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); } -static struct E_D__Val* f_Fx__i(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); } -static struct E_D__Fact* f_Fx__fact(srs_cap* p_r, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Val* p_vs) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Fx__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = p_vs; o0; }); } -static struct E_Fx__St* f_Fx__add(srs_cap* p_r, struct E_Fx__St* p_st, struct E_D__Fact* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Fx__St.f_next; __auto_type v_fs_1 = s0->u.C_Fx__St.f_facts; ({ __auto_type res_ = ({ struct E_Fx__St* o2 = (struct E_Fx__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__St, u) + sizeof(((struct E_Fx__St*)0)->u.C_Fx__St))); o2->tag = 0; o2->u.C_Fx__St.f_next = v_n_0; o2->u.C_Fx__St.f_facts = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = p_f; o2->u.C_Coll__Cons.f_t = v_fs_1; o2; }); o2; }); res_; }); }); }); res_; }); } +static struct E_Sym__Sym* f_Fx__relSym(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel) { return ({ __auto_type s0 = p_rel; s0->tag == 0 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxCap", 5})); }) : s0->tag == 1 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxState", 7})); }) : s0->tag == 2 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxOpOf", 6})); }) : s0->tag == 3 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRuleRel", 9})); }) : s0->tag == 4 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxSameN", 7})); }) : s0->tag == 5 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxUseAt", 7})); }) : s0->tag == 6 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxAtState", 9})); }) : s0->tag == 7 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxAtId", 6})); }) : s0->tag == 8 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxAtLine", 8})); }) : s0->tag == 9 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxSameId", 8})); }) : s0->tag == 10 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxUseNext", 9})); }) : s0->tag == 11 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxUseRel", 8})); }) : s0->tag == 12 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxExitOther", 11})); }) : s0->tag == 13 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxVarIn", 7})); }) : s0->tag == 14 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxParam", 7})); }) : s0->tag == 15 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxBodyVar", 9})); }) : s0->tag == 16 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRUse", 6})); }) : s0->tag == 17 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRNext", 7})); }) : s0->tag == 18 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxReserved", 10})); }) : s0->tag == 19 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxIsCap", 7})); }) : s0->tag == 20 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxDefOp", 7})); }) : s0->tag == 21 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxDefRel", 8})); }) : s0->tag == 22 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxDefRelN", 9})); }) : s0->tag == 23 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxVar0", 6})); }) : s0->tag == 24 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRRel", 6})); }) : s0->tag == 25 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxNotCapAt", 10})); }) : s0->tag == 26 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxBadStateAt", 12})); }) : s0->tag == 27 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxTwiceAt", 9})); }) : s0->tag == 28 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxNotOpAt", 9})); }) : s0->tag == 29 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxUnknownRelAt", 14})); }) : s0->tag == 30 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRelArityAt", 12})); }) : s0->tag == 31 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxUnboundAt", 11})); }) : s0->tag == 32 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxExitOtherAt", 13})); }) : s0->tag == 33 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxReservedAt", 12})); }) : s0->tag == 34 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxClauseArityAt", 15})); }) : s0->tag == 35 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxUnsafeAt", 10})); }) : s0->tag == 36 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRuleUnknownAt", 15})); }) : ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fxRuleOpAt", 10})); }); }); } +static struct E_D__Arg* f_Fx__v(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o0->tag = 0; o0->u.C_D__AVar.f_n = p_n; o0; }); } +static struct E_D__Arg* f_Fx__c(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); o0; }); } +static struct E_D__Atom* f_Fx__at(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Fx__relSym(p_eff__Region, p_rel); o0->u.C_D__Atom.f_args = p_xs; o0; }); } +static struct E_D__Lit* f_Fx__p(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Fx__at(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_D__Lit* f_Fx__n(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Arg* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o0->tag = 1; o0->u.C_D__Neg.f_a = f_Fx__at(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_Coll__List__D__Arg* f_Fx__vs(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Fx__v(p_eff__Region, v_x_0); o2->u.C_Coll__Cons.f_t = f_Fx__vs(p_eff__Region, v_rest_1); o2; }); }); }); } +static struct E_D__Rule* f_Fx__rule(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__I64* p_hs, struct E_Coll__List__D__Lit* p_body) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Fx__at(p_eff__Region, p_rel, f_Fx__vs(p_eff__Region, p_hs)); o0->u.C_D__Rule.f_body = p_body; o0; }); } +static struct E_Coll__List__D__Rule* f_Fx__rules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_isCap_0 = f_Fx__rule(p_eff__Region, (&N_Fx__RIsCap), f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)), f_Fx__l1__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RCap), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))))); struct E_D__Rule* v_defOp_1 = f_Fx__rule(p_eff__Region, (&N_Fx__RDefOp), f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RCap), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__p(p_eff__Region, (&N_Fx__ROpOf), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)3)))))); struct E_D__Rule* v_defRel_2 = f_Fx__rule(p_eff__Region, (&N_Fx__RDefRel), f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RCap), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__p(p_eff__Region, (&N_Fx__RRuleRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)2), ((int64_t)3), ((int64_t)4), ((int64_t)5)))))); struct E_D__Rule* v_defRelN_3 = f_Fx__rule(p_eff__Region, (&N_Fx__RDefRelN), f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)3), ((int64_t)4)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RCap), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__p(p_eff__Region, (&N_Fx__RRuleRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)2), ((int64_t)3), ((int64_t)4), ((int64_t)5)))))); struct E_D__Rule* v_var0_4 = f_Fx__rule(p_eff__Region, (&N_Fx__RVar0), f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)), f_Fx__l1__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RVarIn), f_Fx__l4__D__Arg(p_eff__Region, f_Fx__v(p_eff__Region, ((int64_t)0)), f_Fx__c(p_eff__Region, ((int64_t)0)), f_Fx__v(p_eff__Region, ((int64_t)2)), f_Fx__v(p_eff__Region, ((int64_t)3)))))); struct E_D__Rule* v_rrel_5 = f_Fx__rule(p_eff__Region, (&N_Fx__RRRel), f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)), f_Fx__l1__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RRuleRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))))); struct E_D__Rule* v_notCap_6 = f_Fx__rule(p_eff__Region, (&N_Fx__RNotCapAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)2)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RUseAt), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__n(p_eff__Region, (&N_Fx__RIsCap), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)))))); struct E_D__Rule* v_badState_7 = f_Fx__rule(p_eff__Region, (&N_Fx__RBadStateAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)3)), f_Fx__l3__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RAtState), f_Fx__vs(p_eff__Region, f_Fx__l5__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)))), f_Fx__p(p_eff__Region, (&N_Fx__RCap), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)5)))), f_Fx__n(p_eff__Region, (&N_Fx__RState), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)3)))))); struct E_D__Rule* v_twice_8 = f_Fx__rule(p_eff__Region, (&N_Fx__RTwiceAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)2)), f_Fx__l4__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RAtId), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__p(p_eff__Region, (&N_Fx__RAtId), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)4)))), f_Fx__n(p_eff__Region, (&N_Fx__RSameId), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)4)))), f_Fx__p(p_eff__Region, (&N_Fx__RAtLine), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)5)))))); struct E_D__Rule* v_notOp_9 = f_Fx__rule(p_eff__Region, (&N_Fx__RNotOpAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RUseNext), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_eff__Region, (&N_Fx__RDefOp), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_unknownRel_10 = f_Fx__rule(p_eff__Region, (&N_Fx__RUnknownRelAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)1)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RUseRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__n(p_eff__Region, (&N_Fx__RDefRel), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_relArity_11 = f_Fx__rule(p_eff__Region, (&N_Fx__RRelArityAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)1)), f_Fx__l3__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RUseRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__p(p_eff__Region, (&N_Fx__RDefRel), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))), f_Fx__n(p_eff__Region, (&N_Fx__RDefRelN), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))))); struct E_D__Rule* v_unbound_12 = f_Fx__rule(p_eff__Region, (&N_Fx__RUnboundAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)2)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RVarIn), f_Fx__l4__D__Arg(p_eff__Region, f_Fx__v(p_eff__Region, ((int64_t)0)), f_Fx__c(p_eff__Region, ((int64_t)1)), f_Fx__v(p_eff__Region, ((int64_t)2)), f_Fx__v(p_eff__Region, ((int64_t)3)))), f_Fx__n(p_eff__Region, (&N_Fx__RVar0), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)))))); struct E_D__Rule* v_exitOther_13 = f_Fx__rule(p_eff__Region, (&N_Fx__RExitOtherAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)1), ((int64_t)0)), f_Fx__l1__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RExitOther), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_reserved_14 = f_Fx__rule(p_eff__Region, (&N_Fx__RReservedAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)1), ((int64_t)0)), f_Fx__l1__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RReserved), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_clauseArity_15 = f_Fx__rule(p_eff__Region, (&N_Fx__RClauseArityAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)1)), f_Fx__l3__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RRuleRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2), ((int64_t)3)))), f_Fx__p(p_eff__Region, (&N_Fx__RRuleRel), f_Fx__vs(p_eff__Region, f_Fx__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)4), ((int64_t)5)))), f_Fx__n(p_eff__Region, (&N_Fx__RSameN), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)4)))))); struct E_D__Rule* v_unsafe_16 = f_Fx__rule(p_eff__Region, (&N_Fx__RUnsafeAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RParam), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_eff__Region, (&N_Fx__RBodyVar), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_ruleUnknown_17 = f_Fx__rule(p_eff__Region, (&N_Fx__RRuleUnknownAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RRUse), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_eff__Region, (&N_Fx__RRRel), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_D__Rule* v_ruleOp_18 = f_Fx__rule(p_eff__Region, (&N_Fx__RRuleOpAt), f_Fx__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)1)), f_Fx__l2__D__Lit(p_eff__Region, f_Fx__p(p_eff__Region, (&N_Fx__RRNext), f_Fx__vs(p_eff__Region, f_Fx__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2)))), f_Fx__n(p_eff__Region, (&N_Fx__ROpOf), f_Fx__vs(p_eff__Region, f_Fx__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)))))); struct E_Coll__List__D__Rule* v_a_19 = f_Fx__l5__D__Rule(p_eff__Region, v_isCap_0, v_defOp_1, v_defRel_2, v_defRelN_3, v_var0_4); struct E_Coll__List__D__Rule* v_b_20 = f_Fx__l5__D__Rule(p_eff__Region, v_rrel_5, v_notCap_6, v_badState_7, v_twice_8, v_notOp_9); struct E_Coll__List__D__Rule* v_c_21 = f_Fx__l5__D__Rule(p_eff__Region, v_unknownRel_10, v_relArity_11, v_unbound_12, v_exitOther_13, v_reserved_14); struct E_Coll__List__D__Rule* v_d_22 = f_Fx__l4__D__Rule(p_eff__Region, v_clauseArity_15, v_unsafe_16, v_ruleUnknown_17, v_ruleOp_18); __auto_type res_ = f_Coll__revOnto__D__Rule(p_eff__Region, f_Coll__rev__D__Rule(p_eff__Region, v_a_19), f_Coll__revOnto__D__Rule(p_eff__Region, f_Coll__rev__D__Rule(p_eff__Region, v_b_20), f_Coll__revOnto__D__Rule(p_eff__Region, f_Coll__rev__D__Rule(p_eff__Region, v_c_21), v_d_22))); res_; }); } +static struct E_Coll__List__I64* f_Fx__l5__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__I64(p_eff__Region, p_b, p_c, p_d, p_e); o0; }); } +static struct E_Coll__List__D__Lit* f_Fx__l4__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Lit(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__D__Arg* f_Fx__l4__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c, struct E_D__Arg* p_d) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Arg(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__D__Arg* f_Fx__l3__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b, struct E_D__Arg* p_c) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Arg(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__D__Arg* f_Fx__l2__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Arg(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Arg* f_Fx__l1__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Arg); o0; }); } +static struct E_Coll__List__D__Lit* f_Fx__l1__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); } +static struct E_Coll__List__D__Lit* f_Fx__l3__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Lit(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__I64* f_Fx__l4__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__I64(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__D__Lit* f_Fx__l2__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Lit(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__I64* f_Fx__l3__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__I64(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__I64* f_Fx__l2__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__I64(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__I64* f_Fx__l1__I64(srs_cap* p_eff__Region, int64_t p_a) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } +static struct E_Coll__List__D__Rule* f_Fx__l5__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d, struct E_D__Rule* p_e) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__D__Rule(p_eff__Region, p_b, p_c, p_d, p_e); o0; }); } +static struct E_Coll__List__D__Rule* f_Fx__l4__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c, struct E_D__Rule* p_d) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Rule(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__D__Rule* f_Fx__l3__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b, struct E_D__Rule* p_c) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Rule(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__D__Rule* f_Fx__l2__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a, struct E_D__Rule* p_b) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Rule(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Rule* f_Fx__l1__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o0; }); } +static struct E_Coll__List__D__Rule* f_Coll__revOnto__D__Rule(srs_cap* p_eff__Region, struct E_Coll__List__D__Rule* p_xs, struct E_Coll__List__D__Rule* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Rule* t1 = v_t_1; struct E_Coll__List__D__Rule* t2 = ({ struct E_Coll__List__D__Rule* o2 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Rule*){0}; }); }); }); } +static struct E_Coll__List__D__Rule* f_Coll__rev__D__Rule(srs_cap* p_eff__Region, struct E_Coll__List__D__Rule* p_xs) { return f_Coll__revOnto__D__Rule(p_eff__Region, p_xs, (&N_Coll__Nil__D__Rule)); } +static struct E_D__Val* f_Fx__s(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); } +static struct E_D__Val* f_Fx__i(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); } +static struct E_D__Fact* f_Fx__fact(srs_cap* p_eff__Region, struct E_Fx__Rel* p_rel, struct E_Coll__List__D__Val* p_vs) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Fx__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = p_vs; o0; }); } +static struct E_Fx__St* f_Fx__add(srs_cap* p_eff__Region, struct E_Fx__St* p_st, struct E_D__Fact* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Fx__St.f_next; __auto_type v_fs_1 = s0->u.C_Fx__St.f_facts; ({ __auto_type res_ = ({ struct E_Fx__St* o2 = (struct E_Fx__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__St, u) + sizeof(((struct E_Fx__St*)0)->u.C_Fx__St))); o2->tag = 0; o2->u.C_Fx__St.f_next = v_n_0; o2->u.C_Fx__St.f_facts = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = p_f; o2->u.C_Coll__Cons.f_t = v_fs_1; o2; }); o2; }); res_; }); }); }); res_; }); } static int64_t f_Fx__fresh(struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Fx__St.f_next; ({ __auto_type res_ = v_n_0; res_; }); }); }); res_; }); } -static struct E_Fx__St* f_Fx__bump(srs_cap* p_r, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Fx__St.f_next; __auto_type v_fs_1 = s0->u.C_Fx__St.f_facts; ({ __auto_type res_ = ({ struct E_Fx__St* o2 = (struct E_Fx__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__St, u) + sizeof(((struct E_Fx__St*)0)->u.C_Fx__St))); o2->tag = 0; o2->u.C_Fx__St.f_next = (v_n_0 + ((int64_t)1)); o2->u.C_Fx__St.f_facts = v_fs_1; o2; }); res_; }); }); }); res_; }); } +static struct E_Fx__St* f_Fx__bump(srs_cap* p_eff__Region, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Fx__St.f_next; __auto_type v_fs_1 = s0->u.C_Fx__St.f_facts; ({ __auto_type res_ = ({ struct E_Fx__St* o2 = (struct E_Fx__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__St, u) + sizeof(((struct E_Fx__St*)0)->u.C_Fx__St))); o2->tag = 0; o2->u.C_Fx__St.f_next = (v_n_0 + ((int64_t)1)); o2->u.C_Fx__St.f_facts = v_fs_1; o2; }); res_; }); }); }); res_; }); } static bool f_Fx__isConst(struct E_Sym__Sym* p_x) { return ({ int64_t v_c_0 = Str__at(f_Sym__str(p_x), ((int64_t)0)); __auto_type res_ = ((v_c_0 >= ((int64_t)65)) && (v_c_0 <= ((int64_t)90))); res_; }); } -static struct E_Fx__St* f_Fx__sameNs(srs_cap* p_r, int64_t p_n, struct E_Fx__St* p_st) { srs_tail: return ((p_n < ((int64_t)0)) ? p_st : ({ srs_cap* t0 = p_r; int64_t t1 = (p_n - ((int64_t)1)); struct E_Fx__St* t2 = f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RSameN), f_Fx__l2__D__Val(p_r, f_Fx__i(p_r, p_n), f_Fx__i(p_r, p_n)))); p_r = t0; p_n = t1; p_st = t2; goto srs_tail; (struct E_Fx__St*){0}; })); } -static struct E_Coll__List__D__Val* f_Fx__l2__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Val(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Val* f_Fx__l1__D__Val(srs_cap* p_r, struct E_D__Val* p_a) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); } -static struct E_Coll__List__D__Fact* f_Fx__facts(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Coll__List__Sym__Sym* v_ps_0 = f_Pure__protos(p_r, p_ds, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ({ __auto_type s1 = f_Fx__decls(p_r, v_ps_0, p_ds, f_Fx__sameNs(p_r, ((int64_t)16), ({ struct E_Fx__St* o1 = (struct E_Fx__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__St, u) + sizeof(((struct E_Fx__St*)0)->u.C_Fx__St))); o1->tag = 0; o1->u.C_Fx__St.f_next = ((int64_t)0); o1->u.C_Fx__St.f_facts = (&N_Coll__Nil__D__Fact); o1; }))); ({ __auto_type v_fs_1 = s1->u.C_Fx__St.f_facts; ({ __auto_type res_ = v_fs_1; res_; }); }); }); res_; }); } -static struct E_Fx__St* f_Fx__decls(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__proto(p_r, v_p_2, p_st); p_r = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__fn(p_r, p_ps, v_f_2, p_st); p_r = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s3 = v_td_2; ({ __auto_type v_n_3 = s3->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_4 = s3->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__groups(p_r, v_n_3, v_gs_4, f_Fx__caps(p_r, p_ps, v_n_3, f_Ty__evidence(p_r, v_gs_4, (&N_Coll__Nil__Ast__Binder)), p_st)); p_r = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = p_st; p_r = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); }); }); } -static struct E_Fx__St* f_Fx__proto(srs_cap* p_r, struct E_Ast__Proto* p_p, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_n_0 = s0->u.C_Ast__Proto.f_name; __auto_type v_states_1 = s0->u.C_Ast__Proto.f_states; __auto_type v_ops_2 = s0->u.C_Ast__Proto.f_ops; __auto_type v_rules_3 = s0->u.C_Ast__Proto.f_rules; ({ __auto_type res_ = f_Fx__ruleDefs(p_r, v_n_0, v_rules_3, f_Fx__opsF(p_r, v_n_0, v_ops_2, f_Fx__statesF(p_r, v_n_0, v_states_1, p_st))); res_; }); }); }); res_; }); } -static struct E_Fx__St* f_Fx__statesF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RState), f_Fx__l2__D__Val(p_r, f_Fx__s(p_r, p_p), f_Fx__s(p_r, v_s_0)))); p_r = t0; p_p = t1; p_ss = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); } -static struct E_Fx__St* f_Fx__opsF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Op.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Ast__Op* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__ROpOf), f_Fx__l2__D__Val(p_r, f_Fx__s(p_r, p_p), f_Fx__s(p_r, v_n_2)))); p_r = t0; p_p = t1; p_os = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Fx__St* f_Fx__ruleDefs(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_rd_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rd_0; ({ __auto_type v_line_2 = s2->u.C_Ast__RuleDef.f_line; __auto_type v_n_3 = s2->u.C_Ast__RuleDef.f_name; __auto_type v_params_4 = s2->u.C_Ast__RuleDef.f_params; __auto_type v_body_5 = s2->u.C_Ast__RuleDef.f_body; ({ int64_t v_rid_6 = f_Fx__fresh(p_st); struct E_Fx__St* v_st1_7 = f_Fx__add(p_r, f_Fx__bump(p_r, p_st), f_Fx__fact(p_r, (&N_Fx__RRuleRel), f_Fx__l4__D__Val(p_r, f_Fx__s(p_r, p_p), f_Fx__s(p_r, v_n_3), f_Fx__i(p_r, f_Coll__length__Sym__Sym(v_params_4)), f_Fx__i(p_r, v_line_2)))); struct E_Fx__St* v_st2_8 = (f_Fx__builtinRel(v_n_3) ? f_Fx__add(p_r, v_st1_7, f_Fx__fact(p_r, (&N_Fx__RReserved), f_Fx__l2__D__Val(p_r, f_Fx__s(p_r, v_n_3), f_Fx__i(p_r, v_line_2)))) : v_st1_7); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Ast__RuleDef* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__bodyAtoms(p_r, p_p, v_rid_6, v_body_5, f_Fx__params(p_r, v_rid_6, v_line_2, v_params_4, v_st2_8)); p_r = t0; p_p = t1; p_rs = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Val* f_Fx__l4__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Val(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__D__Val* f_Fx__l3__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Val(p_r, p_b, p_c); o0; }); } +static struct E_Fx__St* f_Fx__sameNs(srs_cap* p_eff__Region, int64_t p_n, struct E_Fx__St* p_st) { srs_tail: return ((p_n < ((int64_t)0)) ? p_st : ({ srs_cap* t0 = p_eff__Region; int64_t t1 = (p_n - ((int64_t)1)); struct E_Fx__St* t2 = f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RSameN), f_Fx__l2__D__Val(p_eff__Region, f_Fx__i(p_eff__Region, p_n), f_Fx__i(p_eff__Region, p_n)))); p_eff__Region = t0; p_n = t1; p_st = t2; goto srs_tail; (struct E_Fx__St*){0}; })); } +static struct E_Coll__List__D__Val* f_Fx__l2__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__D__Val(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Val* f_Fx__l1__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); } +static struct E_Coll__List__D__Fact* f_Fx__facts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Coll__List__Sym__Sym* v_ps_0 = f_Pure__protos(p_eff__Region, p_ds, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ({ __auto_type s1 = f_Fx__decls(p_eff__Region, v_ps_0, p_ds, f_Fx__sameNs(p_eff__Region, ((int64_t)16), ({ struct E_Fx__St* o1 = (struct E_Fx__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__St, u) + sizeof(((struct E_Fx__St*)0)->u.C_Fx__St))); o1->tag = 0; o1->u.C_Fx__St.f_next = ((int64_t)0); o1->u.C_Fx__St.f_facts = (&N_Coll__Nil__D__Fact); o1; }))); ({ __auto_type v_fs_1 = s1->u.C_Fx__St.f_facts; ({ __auto_type res_ = v_fs_1; res_; }); }); }); res_; }); } +static struct E_Fx__St* f_Fx__decls(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__proto(p_eff__Region, v_p_2, p_st); p_eff__Region = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__fn(p_eff__Region, p_ps, v_f_2, p_st); p_eff__Region = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s3 = v_td_2; ({ __auto_type v_n_3 = s3->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_4 = s3->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__groups(p_eff__Region, v_n_3, v_gs_4, f_Fx__caps(p_eff__Region, p_ps, v_n_3, f_Ty__evidence(p_eff__Region, v_gs_4, (&N_Coll__Nil__Ast__Binder)), p_st)); p_eff__Region = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Fx__St* t3 = p_st; p_eff__Region = t0; p_ps = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); }); }); } +static struct E_Fx__St* f_Fx__proto(srs_cap* p_eff__Region, struct E_Ast__Proto* p_p, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_n_0 = s0->u.C_Ast__Proto.f_name; __auto_type v_states_1 = s0->u.C_Ast__Proto.f_states; __auto_type v_ops_2 = s0->u.C_Ast__Proto.f_ops; __auto_type v_rules_3 = s0->u.C_Ast__Proto.f_rules; ({ __auto_type res_ = f_Fx__ruleDefs(p_eff__Region, v_n_0, v_rules_3, f_Fx__opsF(p_eff__Region, v_n_0, v_ops_2, f_Fx__statesF(p_eff__Region, v_n_0, v_states_1, p_st))); res_; }); }); }); res_; }); } +static struct E_Fx__St* f_Fx__statesF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RState), f_Fx__l2__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_p), f_Fx__s(p_eff__Region, v_s_0)))); p_eff__Region = t0; p_p = t1; p_ss = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); } +static struct E_Fx__St* f_Fx__opsF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Op.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Ast__Op* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__ROpOf), f_Fx__l2__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_p), f_Fx__s(p_eff__Region, v_n_2)))); p_eff__Region = t0; p_p = t1; p_os = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Fx__St* f_Fx__ruleDefs(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_rd_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rd_0; ({ __auto_type v_line_2 = s2->u.C_Ast__RuleDef.f_line; __auto_type v_n_3 = s2->u.C_Ast__RuleDef.f_name; __auto_type v_params_4 = s2->u.C_Ast__RuleDef.f_params; __auto_type v_body_5 = s2->u.C_Ast__RuleDef.f_body; ({ int64_t v_rid_6 = f_Fx__fresh(p_st); struct E_Fx__St* v_st1_7 = f_Fx__add(p_eff__Region, f_Fx__bump(p_eff__Region, p_st), f_Fx__fact(p_eff__Region, (&N_Fx__RRuleRel), f_Fx__l4__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_p), f_Fx__s(p_eff__Region, v_n_3), f_Fx__i(p_eff__Region, f_Coll__length__Sym__Sym(v_params_4)), f_Fx__i(p_eff__Region, v_line_2)))); struct E_Fx__St* v_st2_8 = (f_Fx__builtinRel(v_n_3) ? f_Fx__add(p_eff__Region, v_st1_7, f_Fx__fact(p_eff__Region, (&N_Fx__RReserved), f_Fx__l2__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, v_n_3), f_Fx__i(p_eff__Region, v_line_2)))) : v_st1_7); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Ast__RuleDef* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__bodyAtoms(p_eff__Region, p_p, v_rid_6, v_body_5, f_Fx__params(p_eff__Region, v_rid_6, v_line_2, v_params_4, v_st2_8)); p_eff__Region = t0; p_p = t1; p_rs = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Val* f_Fx__l4__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__D__Val(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__D__Val* f_Fx__l3__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__D__Val(p_eff__Region, p_b, p_c); o0; }); } static bool f_Fx__builtinRel(struct E_Sym__Sym* p_n) { return (Str__eq(f_Sym__str(p_n), ((srs_str){(const uint8_t*)"at", 2})) || Str__eq(f_Sym__str(p_n), ((srs_str){(const uint8_t*)"next", 4}))); } -static struct E_Fx__St* f_Fx__params(srs_cap* p_r, int64_t p_rid, int64_t p_line, struct E_Coll__List__Sym__Sym* p_xs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; int64_t t1 = p_rid; int64_t t2 = p_line; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Fx__St* t4 = f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RParam), f_Fx__l3__D__Val(p_r, f_Fx__i(p_r, p_rid), f_Fx__s(p_r, v_x_0), f_Fx__i(p_r, p_line)))); p_r = t0; p_rid = t1; p_line = t2; p_xs = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); } -static struct E_Fx__St* f_Fx__bodyAtoms(srs_cap* p_r, struct E_Sym__Sym* p_p, int64_t p_rid, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Atom.f_line; __auto_type v_rel_3 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_4 = s2->u.C_Ast__Atom.f_args; ({ struct E_Fx__St* v_st1_5 = f_Fx__bodyNames(p_r, p_rid, v_args_4, p_st); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_p; int64_t t2 = p_rid; struct E_Coll__List__Ast__Atom* t3 = v_rest_1; struct E_Fx__St* t4 = f_Fx__bodyRel(p_r, p_p, v_line_2, v_rel_3, v_args_4, v_st1_5); p_r = t0; p_p = t1; p_rid = t2; p_as = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Fx__St* f_Fx__bodyRel(srs_cap* p_r, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Sym__Sym* p_rel, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st) { return ({ __auto_type res_ = (Str__eq(f_Sym__str(p_rel), ((srs_str){(const uint8_t*)"next", 4})) ? f_Fx__ruleNext(p_r, p_p, p_line, p_args, p_st) : (Str__eq(f_Sym__str(p_rel), ((srs_str){(const uint8_t*)"at", 2})) ? p_st : f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RRUse), f_Fx__l3__D__Val(p_r, f_Fx__s(p_r, p_p), f_Fx__s(p_r, p_rel), f_Fx__i(p_r, p_line)))))); res_; }); } -static struct E_Fx__St* f_Fx__bodyNames(srs_cap* p_r, int64_t p_rid, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; ({ srs_cap* t0 = p_r; int64_t t1 = p_rid; struct E_Coll__List__Ast__Term* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RBodyVar), f_Fx__l2__D__Val(p_r, f_Fx__i(p_r, p_rid), f_Fx__s(p_r, v_x_2)))); p_r = t0; p_rid = t1; p_ts = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; int64_t t1 = p_rid; struct E_Coll__List__Ast__Term* t2 = v_rest_1; struct E_Fx__St* t3 = p_st; p_r = t0; p_rid = t1; p_ts = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); }); }); } -static struct E_Fx__St* f_Fx__ruleNext(srs_cap* p_r, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st) { return ({ __auto_type s0 = f_Fx__nth(p_r, p_ts, ((int64_t)1)); s0->tag == 1 ? ({ __auto_type v_op_0 = s0->u.C_Coll__Some.f_v; f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RRNext), f_Fx__l3__D__Val(p_r, f_Fx__s(p_r, p_p), f_Fx__s(p_r, v_op_0), f_Fx__i(p_r, p_line)))); }) : ({ p_st; }); }); } -static struct E_Coll__Option__Sym__Sym* f_Fx__nth(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ((p_i == ((int64_t)0)) ? ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; ({ struct E_Coll__Option__Sym__Sym* o3 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_x_2; o3; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; int64_t t2 = (p_i - ((int64_t)1)); p_r = t0; p_ts = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); } -static struct E_Fx__St* f_Fx__fn(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Ast__Fn* p_f, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_d_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_exit_2 = s0->u.C_Ast__Fn.f_exit; ({ struct E_Fx__St* v_st1_3 = f_Fx__caps(p_r, p_ps, v_d_0, f_Ty__evidence(p_r, v_gs_1, (&N_Coll__Nil__Ast__Binder)), p_st); __auto_type res_ = f_Fx__atoms(p_r, v_d_0, ((int64_t)1), v_exit_2, f_Fx__groups(p_r, v_d_0, v_gs_1, v_st1_3)); res_; }); }); }); res_; }); } -static struct E_Fx__St* f_Fx__caps(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Binder* p_bs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_n_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Sym__Sym* t2 = p_d; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Fx__St* t4 = (f_Ty__memberSym(v_n_4, p_ps) ? f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RCap), f_Fx__l3__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__s(p_r, v_x_2), f_Fx__s(p_r, v_n_4)))) : p_st); p_r = t0; p_ps = t1; p_d = t2; p_bs = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Fx__St* f_Fx__groups(srs_cap* p_r, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Group* p_gs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 2 ? ({ __auto_type v_as_2 = s2->u.C_Ast__Facts.f_atoms; ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_d; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__atoms(p_r, p_d, ((int64_t)0), v_as_2, p_st); p_r = t0; p_d = t1; p_gs = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_d; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Fx__St* t3 = p_st; p_r = t0; p_d = t1; p_gs = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); }); }); } -static struct E_Fx__St* f_Fx__atoms(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; struct E_Coll__List__Ast__Atom* t3 = v_rest_1; struct E_Fx__St* t4 = f_Fx__atom(p_r, p_d, p_g, v_a_0, p_st); p_r = t0; p_d = t1; p_g = t2; p_as = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); } -static struct E_Fx__St* f_Fx__atom(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Ast__Atom* p_a, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_line_0 = s0->u.C_Ast__Atom.f_line; __auto_type v_rel_1 = s0->u.C_Ast__Atom.f_rel; __auto_type v_args_2 = s0->u.C_Ast__Atom.f_args; ({ srs_str v_rn_3 = f_Sym__str(v_rel_1); __auto_type res_ = (Str__eq(v_rn_3, ((srs_str){(const uint8_t*)"at", 2})) ? f_Fx__atAtom(p_r, p_d, p_g, v_line_0, v_args_2, p_st) : ({ struct E_Fx__St* v_st1_4 = f_Fx__varsFrom(p_r, p_d, p_g, v_line_0, v_args_2, ((int64_t)0), f_Fx__opPos(p_r, v_rel_1), p_st); __auto_type res_ = (Str__eq(v_rn_3, ((srs_str){(const uint8_t*)"next", 4})) ? ({ __auto_type s5 = f_Fx__nth(p_r, v_args_2, ((int64_t)1)); s5->tag == 1 ? ({ __auto_type v_op_5 = s5->u.C_Coll__Some.f_v; f_Fx__add(p_r, v_st1_4, f_Fx__fact(p_r, (&N_Fx__RUseNext), f_Fx__l3__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__s(p_r, v_op_5), f_Fx__i(p_r, v_line_0)))); }) : ({ v_st1_4; }); }) : ({ struct E_Fx__St* v_st2_5 = f_Fx__add(p_r, v_st1_4, f_Fx__fact(p_r, (&N_Fx__RUseRel), f_Fx__l4__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__s(p_r, v_rel_1), f_Fx__i(p_r, f_Coll__length__Ast__Term(v_args_2)), f_Fx__i(p_r, v_line_0)))); __auto_type res_ = ((p_g == ((int64_t)1)) ? f_Fx__add(p_r, v_st2_5, f_Fx__fact(p_r, (&N_Fx__RExitOther), f_Fx__l2__D__Val(p_r, f_Fx__s(p_r, v_rel_1), f_Fx__i(p_r, v_line_0)))) : v_st2_5); res_; })); res_; })); res_; }); }); }); res_; }); } +static struct E_Fx__St* f_Fx__params(srs_cap* p_eff__Region, int64_t p_rid, int64_t p_line, struct E_Coll__List__Sym__Sym* p_xs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_rid; int64_t t2 = p_line; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Fx__St* t4 = f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RParam), f_Fx__l3__D__Val(p_eff__Region, f_Fx__i(p_eff__Region, p_rid), f_Fx__s(p_eff__Region, v_x_0), f_Fx__i(p_eff__Region, p_line)))); p_eff__Region = t0; p_rid = t1; p_line = t2; p_xs = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); } +static struct E_Fx__St* f_Fx__bodyAtoms(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, int64_t p_rid, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Atom.f_line; __auto_type v_rel_3 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_4 = s2->u.C_Ast__Atom.f_args; ({ struct E_Fx__St* v_st1_5 = f_Fx__bodyNames(p_eff__Region, p_rid, v_args_4, p_st); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_p; int64_t t2 = p_rid; struct E_Coll__List__Ast__Atom* t3 = v_rest_1; struct E_Fx__St* t4 = f_Fx__bodyRel(p_eff__Region, p_p, v_line_2, v_rel_3, v_args_4, v_st1_5); p_eff__Region = t0; p_p = t1; p_rid = t2; p_as = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Fx__St* f_Fx__bodyRel(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Sym__Sym* p_rel, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st) { return ({ __auto_type res_ = (Str__eq(f_Sym__str(p_rel), ((srs_str){(const uint8_t*)"next", 4})) ? f_Fx__ruleNext(p_eff__Region, p_p, p_line, p_args, p_st) : (Str__eq(f_Sym__str(p_rel), ((srs_str){(const uint8_t*)"at", 2})) ? p_st : f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RRUse), f_Fx__l3__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_p), f_Fx__s(p_eff__Region, p_rel), f_Fx__i(p_eff__Region, p_line)))))); res_; }); } +static struct E_Fx__St* f_Fx__bodyNames(srs_cap* p_eff__Region, int64_t p_rid, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_rid; struct E_Coll__List__Ast__Term* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RBodyVar), f_Fx__l2__D__Val(p_eff__Region, f_Fx__i(p_eff__Region, p_rid), f_Fx__s(p_eff__Region, v_x_2)))); p_eff__Region = t0; p_rid = t1; p_ts = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_rid; struct E_Coll__List__Ast__Term* t2 = v_rest_1; struct E_Fx__St* t3 = p_st; p_eff__Region = t0; p_rid = t1; p_ts = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); }); }); } +static struct E_Fx__St* f_Fx__ruleNext(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, struct E_Fx__St* p_st) { return ({ __auto_type s0 = f_Fx__nth(p_eff__Region, p_ts, ((int64_t)1)); s0->tag == 1 ? ({ __auto_type v_op_0 = s0->u.C_Coll__Some.f_v; f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RRNext), f_Fx__l3__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_p), f_Fx__s(p_eff__Region, v_op_0), f_Fx__i(p_eff__Region, p_line)))); }) : ({ p_st; }); }); } +static struct E_Coll__Option__Sym__Sym* f_Fx__nth(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ((p_i == ((int64_t)0)) ? ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; ({ struct E_Coll__Option__Sym__Sym* o3 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_x_2; o3; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; int64_t t2 = (p_i - ((int64_t)1)); p_eff__Region = t0; p_ts = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); } +static struct E_Fx__St* f_Fx__fn(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Ast__Fn* p_f, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_d_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_exit_2 = s0->u.C_Ast__Fn.f_exit; ({ struct E_Fx__St* v_st1_3 = f_Fx__caps(p_eff__Region, p_ps, v_d_0, f_Ty__evidence(p_eff__Region, v_gs_1, (&N_Coll__Nil__Ast__Binder)), p_st); __auto_type res_ = f_Fx__atoms(p_eff__Region, v_d_0, ((int64_t)1), v_exit_2, f_Fx__groups(p_eff__Region, v_d_0, v_gs_1, v_st1_3)); res_; }); }); }); res_; }); } +static struct E_Fx__St* f_Fx__caps(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Binder* p_bs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_n_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Sym__Sym* t2 = p_d; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Fx__St* t4 = (f_Ty__memberSym(v_n_4, p_ps) ? f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RCap), f_Fx__l3__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__s(p_eff__Region, v_x_2), f_Fx__s(p_eff__Region, v_n_4)))) : p_st); p_eff__Region = t0; p_ps = t1; p_d = t2; p_bs = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Fx__St* f_Fx__groups(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, struct E_Coll__List__Ast__Group* p_gs, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 2 ? ({ __auto_type v_as_2 = s2->u.C_Ast__Facts.f_atoms; ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_d; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Fx__St* t3 = f_Fx__atoms(p_eff__Region, p_d, ((int64_t)0), v_as_2, p_st); p_eff__Region = t0; p_d = t1; p_gs = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_d; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Fx__St* t3 = p_st; p_eff__Region = t0; p_d = t1; p_gs = t2; p_st = t3; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); }); }); } +static struct E_Fx__St* f_Fx__atoms(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Coll__List__Ast__Atom* p_as, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; struct E_Coll__List__Ast__Atom* t3 = v_rest_1; struct E_Fx__St* t4 = f_Fx__atom(p_eff__Region, p_d, p_g, v_a_0, p_st); p_eff__Region = t0; p_d = t1; p_g = t2; p_as = t3; p_st = t4; goto srs_tail; (struct E_Fx__St*){0}; }); }); }); } +static struct E_Fx__St* f_Fx__atom(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, struct E_Ast__Atom* p_a, struct E_Fx__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_line_0 = s0->u.C_Ast__Atom.f_line; __auto_type v_rel_1 = s0->u.C_Ast__Atom.f_rel; __auto_type v_args_2 = s0->u.C_Ast__Atom.f_args; ({ srs_str v_rn_3 = f_Sym__str(v_rel_1); __auto_type res_ = (Str__eq(v_rn_3, ((srs_str){(const uint8_t*)"at", 2})) ? f_Fx__atAtom(p_eff__Region, p_d, p_g, v_line_0, v_args_2, p_st) : ({ struct E_Fx__St* v_st1_4 = f_Fx__varsFrom(p_eff__Region, p_d, p_g, v_line_0, v_args_2, ((int64_t)0), f_Fx__opPos(p_eff__Region, v_rel_1), p_st); __auto_type res_ = (Str__eq(v_rn_3, ((srs_str){(const uint8_t*)"next", 4})) ? ({ __auto_type s5 = f_Fx__nth(p_eff__Region, v_args_2, ((int64_t)1)); s5->tag == 1 ? ({ __auto_type v_op_5 = s5->u.C_Coll__Some.f_v; f_Fx__add(p_eff__Region, v_st1_4, f_Fx__fact(p_eff__Region, (&N_Fx__RUseNext), f_Fx__l3__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__s(p_eff__Region, v_op_5), f_Fx__i(p_eff__Region, v_line_0)))); }) : ({ v_st1_4; }); }) : ({ struct E_Fx__St* v_st2_5 = f_Fx__add(p_eff__Region, v_st1_4, f_Fx__fact(p_eff__Region, (&N_Fx__RUseRel), f_Fx__l4__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__s(p_eff__Region, v_rel_1), f_Fx__i(p_eff__Region, f_Coll__length__Ast__Term(v_args_2)), f_Fx__i(p_eff__Region, v_line_0)))); __auto_type res_ = ((p_g == ((int64_t)1)) ? f_Fx__add(p_eff__Region, v_st2_5, f_Fx__fact(p_eff__Region, (&N_Fx__RExitOther), f_Fx__l2__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, v_rel_1), f_Fx__i(p_eff__Region, v_line_0)))) : v_st2_5); res_; })); res_; })); res_; }); }); }); res_; }); } static int64_t f_Coll__length__Ast__Term(struct E_Coll__List__Ast__Term* p_xs) { return f_Coll__lengthFrom__Ast__Term(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Term(struct E_Coll__List__Ast__Term* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Term* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Fx__St* f_Fx__atAtom(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st) { return ({ __auto_type s0 = f_Fx__nth(p_r, p_args, ((int64_t)0)); s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ int64_t v_id_1 = f_Fx__fresh(p_st); struct E_Fx__St* v_st1_2 = f_Fx__add(p_r, f_Fx__add(p_r, f_Fx__add(p_r, f_Fx__add(p_r, f_Fx__bump(p_r, p_st), f_Fx__fact(p_r, (&N_Fx__RUseAt), f_Fx__l4__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__i(p_r, p_g), f_Fx__s(p_r, v_x_0), f_Fx__i(p_r, p_line)))), f_Fx__fact(p_r, (&N_Fx__RAtId), f_Fx__l4__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__i(p_r, p_g), f_Fx__s(p_r, v_x_0), f_Fx__i(p_r, v_id_1)))), f_Fx__fact(p_r, (&N_Fx__RAtLine), f_Fx__l2__D__Val(p_r, f_Fx__i(p_r, v_id_1), f_Fx__i(p_r, p_line)))), f_Fx__fact(p_r, (&N_Fx__RSameId), f_Fx__l2__D__Val(p_r, f_Fx__i(p_r, v_id_1), f_Fx__i(p_r, v_id_1)))); __auto_type res_ = ({ __auto_type s3 = f_Fx__nth(p_r, p_args, ((int64_t)1)); s3->tag == 0 ? ({ v_st1_2; }) : ({ __auto_type v_s_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = (f_Fx__isConst(v_s_3) ? f_Fx__add(p_r, v_st1_2, f_Fx__fact(p_r, (&N_Fx__RAtState), f_Fx__l5__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__i(p_r, p_g), f_Fx__s(p_r, v_x_0), f_Fx__s(p_r, v_s_3), f_Fx__i(p_r, p_line)))) : f_Fx__add(p_r, v_st1_2, f_Fx__fact(p_r, (&N_Fx__RVarIn), f_Fx__l4__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__i(p_r, p_g), f_Fx__s(p_r, v_s_3), f_Fx__i(p_r, p_line))))); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Val* f_Fx__l5__D__Val(srs_cap* p_r, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__D__Val(p_r, p_b, p_c, p_d, p_e); o0; }); } -static struct E_Fx__St* f_Fx__varsFrom(srs_cap* p_r, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i, struct E_Coll__Option__I64* p_op, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; int64_t t3 = p_line; struct E_Coll__List__Ast__Term* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); struct E_Coll__Option__I64* t6 = p_op; struct E_Fx__St* t7 = p_st; p_r = t0; p_d = t1; p_g = t2; p_line = t3; p_ts = t4; p_i = t5; p_op = t6; p_st = t7; goto srs_tail; (struct E_Fx__St*){0}; }); }) : ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; ({ __auto_type res_ = ((f_Fx__isConst(v_x_2) || f_Fx__isPos(p_op, p_i)) ? ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; int64_t t3 = p_line; struct E_Coll__List__Ast__Term* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); struct E_Coll__Option__I64* t6 = p_op; struct E_Fx__St* t7 = p_st; p_r = t0; p_d = t1; p_g = t2; p_line = t3; p_ts = t4; p_i = t5; p_op = t6; p_st = t7; goto srs_tail; (struct E_Fx__St*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; int64_t t3 = p_line; struct E_Coll__List__Ast__Term* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); struct E_Coll__Option__I64* t6 = p_op; struct E_Fx__St* t7 = f_Fx__add(p_r, p_st, f_Fx__fact(p_r, (&N_Fx__RVarIn), f_Fx__l4__D__Val(p_r, f_Fx__s(p_r, p_d), f_Fx__i(p_r, p_g), f_Fx__s(p_r, v_x_2), f_Fx__i(p_r, p_line)))); p_r = t0; p_d = t1; p_g = t2; p_line = t3; p_ts = t4; p_i = t5; p_op = t6; p_st = t7; goto srs_tail; (struct E_Fx__St*){0}; })); res_; }); }); }); }); }); } -static struct E_Fx__Verdict* f_Fx__check(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_D__solve(p_r, f_Fx__rules(p_r), f_Fx__facts(p_r, p_ds)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; f_Fx__readAll(p_r, v_m_0, f_Fx__kinds(p_r), (&N_Coll__Nil__Fx__Clash)); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Fx__Verdict* o1 = (struct E_Fx__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__RulesBad))); o1->tag = 2; o1->u.C_Fx__RulesBad.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Fx__Verdict* o1 = (struct E_Fx__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__RulesBad))); o1->tag = 2; o1->u.C_Fx__RulesBad.f_rel = v_rel_0; o1; }); }); }); } -static struct E_Coll__List__Fx__Rel* f_Fx__kinds(srs_cap* p_r) { return ({ struct E_Coll__List__Fx__Rel* v_a_0 = f_Fx__l5__Fx__Rel(p_r, (&N_Fx__RNotCapAt), (&N_Fx__RBadStateAt), (&N_Fx__RTwiceAt), (&N_Fx__RNotOpAt), (&N_Fx__RUnknownRelAt)); struct E_Coll__List__Fx__Rel* v_b_1 = f_Fx__l4__Fx__Rel(p_r, (&N_Fx__RRelArityAt), (&N_Fx__RUnboundAt), (&N_Fx__RExitOtherAt), (&N_Fx__RReservedAt)); struct E_Coll__List__Fx__Rel* v_c_2 = f_Fx__l4__Fx__Rel(p_r, (&N_Fx__RClauseArityAt), (&N_Fx__RUnsafeAt), (&N_Fx__RRuleUnknownAt), (&N_Fx__RRuleOpAt)); __auto_type res_ = f_Coll__revOnto__Fx__Rel(p_r, f_Coll__rev__Fx__Rel(p_r, v_a_0), f_Coll__revOnto__Fx__Rel(p_r, f_Coll__rev__Fx__Rel(p_r, v_b_1), v_c_2)); res_; }); } -static struct E_Coll__List__Fx__Rel* f_Fx__l5__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d, struct E_Fx__Rel* p_e) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__Fx__Rel(p_r, p_b, p_c, p_d, p_e); o0; }); } -static struct E_Coll__List__Fx__Rel* f_Fx__l4__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__Fx__Rel(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__Fx__Rel* f_Fx__l3__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__Fx__Rel(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__Fx__Rel* f_Fx__l2__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__Fx__Rel(p_r, p_b); o0; }); } -static struct E_Coll__List__Fx__Rel* f_Fx__l1__Fx__Rel(srs_cap* p_r, struct E_Fx__Rel* p_a) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Fx__Rel); o0; }); } -static struct E_Coll__List__Fx__Rel* f_Coll__revOnto__Fx__Rel(srs_cap* p_r, struct E_Coll__List__Fx__Rel* p_xs, struct E_Coll__List__Fx__Rel* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Fx__Rel* t1 = v_t_1; struct E_Coll__List__Fx__Rel* t2 = ({ struct E_Coll__List__Fx__Rel* o2 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Fx__Rel*){0}; }); }); }); } -static struct E_Coll__List__Fx__Rel* f_Coll__rev__Fx__Rel(srs_cap* p_r, struct E_Coll__List__Fx__Rel* p_xs) { return f_Coll__revOnto__Fx__Rel(p_r, p_xs, (&N_Coll__Nil__Fx__Rel)); } -static struct E_Fx__Verdict* f_Fx__readAll(srs_cap* p_r, struct E_D__Model* p_m, struct E_Coll__List__Fx__Rel* p_ks, struct E_Coll__List__Fx__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ks; s0->tag == 0 ? ({ ({ __auto_type s0 = p_acc; s0->tag == 0 ? ({ (&N_Fx__Ok); }) : ({ ({ struct E_Fx__Verdict* o0 = (struct E_Fx__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__Bad))); o0->tag = 1; o0->u.C_Fx__Bad.f_cs = f_Coll__rev__Fx__Clash(p_r, p_acc); o0; }); }); }); }) : ({ __auto_type v_k_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Fx__rows(p_r, v_k_0, f_D__tuples(p_r, p_m, f_Fx__relSym(p_r, v_k_0)), p_acc); s2->tag == 1 ? ({ __auto_type v_acc2_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_D__Model* t1 = p_m; struct E_Coll__List__Fx__Rel* t2 = v_rest_1; struct E_Coll__List__Fx__Clash* t3 = v_acc2_2; p_r = t0; p_m = t1; p_ks = t2; p_acc = t3; goto srs_tail; (struct E_Fx__Verdict*){0}; }); }) : ({ ({ struct E_Fx__Verdict* o2 = (struct E_Fx__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__RulesBad))); o2->tag = 2; o2->u.C_Fx__RulesBad.f_rel = f_Fx__relSym(p_r, v_k_0); o2; }); }); }); }); }); } -static struct E_Coll__List__Fx__Clash* f_Coll__rev__Fx__Clash(srs_cap* p_r, struct E_Coll__List__Fx__Clash* p_xs) { return f_Coll__revOnto__Fx__Clash(p_r, p_xs, (&N_Coll__Nil__Fx__Clash)); } -static struct E_Coll__List__Fx__Clash* f_Coll__revOnto__Fx__Clash(srs_cap* p_r, struct E_Coll__List__Fx__Clash* p_xs, struct E_Coll__List__Fx__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Fx__Clash* t1 = v_t_1; struct E_Coll__List__Fx__Clash* t2 = ({ struct E_Coll__List__Fx__Clash* o2 = (struct E_Coll__List__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Clash, u) + sizeof(((struct E_Coll__List__Fx__Clash*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Fx__Clash*){0}; }); }); }); } -static struct E_Coll__Option__Coll__List_1_Fx__Clash* f_Fx__rows(srs_cap* p_r, struct E_Fx__Rel* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Fx__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_Fx__Clash* o0 = (struct E_Coll__Option__Coll__List_1_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Fx__Clash, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_acc; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_a_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 1 ? ({ __auto_type v_b_4 = s4->u.C_Coll__Cons.f_h; ({ __auto_type s5 = v_a_2; s5->tag == 1 ? ({ __auto_type v_line_5 = s5->u.C_D__VInt.f_v; ({ __auto_type s6 = v_b_4; s6->tag == 0 ? ({ __auto_type v_n_6 = s6->u.C_D__VSym.f_s; ({ __auto_type s7 = f_Fx__make(p_r, p_k, v_line_5, v_n_6); s7->tag == 1 ? ({ __auto_type v_c_7 = s7->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Fx__Rel* t1 = p_k; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__List__Fx__Clash* t3 = ({ struct E_Coll__List__Fx__Clash* o8 = (struct E_Coll__List__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Fx__Clash, u) + sizeof(((struct E_Coll__List__Fx__Clash*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_c_7; o8->u.C_Coll__Cons.f_t = p_acc; o8; }); p_r = t0; p_k = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Fx__Clash*){0}; }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }); }); } -static struct E_Coll__Option__Fx__Clash* f_Fx__make(srs_cap* p_r, struct E_Fx__Rel* p_k, int64_t p_line, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = p_k; s0->tag == 25 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__NotCap))); o0->tag = 0; o0->u.C_Fx__NotCap.f_line = p_line; o0->u.C_Fx__NotCap.f_x = p_n; o0; }); o0; }); }) : s0->tag == 26 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__BadState))); o0->tag = 1; o0->u.C_Fx__BadState.f_line = p_line; o0->u.C_Fx__BadState.f_s = p_n; o0; }); o0; }); }) : s0->tag == 27 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Twice))); o0->tag = 2; o0->u.C_Fx__Twice.f_line = p_line; o0->u.C_Fx__Twice.f_x = p_n; o0; }); o0; }); }) : s0->tag == 28 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__NotOp))); o0->tag = 3; o0->u.C_Fx__NotOp.f_line = p_line; o0->u.C_Fx__NotOp.f_op = p_n; o0; }); o0; }); }) : s0->tag == 29 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__UnknownRel))); o0->tag = 4; o0->u.C_Fx__UnknownRel.f_line = p_line; o0->u.C_Fx__UnknownRel.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 30 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__RelArity))); o0->tag = 5; o0->u.C_Fx__RelArity.f_line = p_line; o0->u.C_Fx__RelArity.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 31 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Unbound))); o0->tag = 6; o0->u.C_Fx__Unbound.f_line = p_line; o0->u.C_Fx__Unbound.f_v = p_n; o0; }); o0; }); }) : s0->tag == 32 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__ExitOther))); o0->tag = 7; o0->u.C_Fx__ExitOther.f_line = p_line; o0->u.C_Fx__ExitOther.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 33 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Reserved))); o0->tag = 8; o0->u.C_Fx__Reserved.f_line = p_line; o0->u.C_Fx__Reserved.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 34 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__ClauseArity))); o0->tag = 9; o0->u.C_Fx__ClauseArity.f_line = p_line; o0->u.C_Fx__ClauseArity.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 35 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Unsafe))); o0->tag = 10; o0->u.C_Fx__Unsafe.f_line = p_line; o0->u.C_Fx__Unsafe.f_x = p_n; o0; }); o0; }); }) : s0->tag == 36 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__RuleUnknown))); o0->tag = 11; o0->u.C_Fx__RuleUnknown.f_line = p_line; o0->u.C_Fx__RuleUnknown.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 37 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__RuleOp))); o0->tag = 12; o0->u.C_Fx__RuleOp.f_line = p_line; o0->u.C_Fx__RuleOp.f_op = p_n; o0; }); o0; }); }) : ({ (&N_Coll__None__Fx__Clash); }); }); } -static struct E_Coll__Option__I64* f_Fx__opPos(srs_cap* p_r, struct E_Sym__Sym* p_rel) { return (Str__eq(f_Sym__str(p_rel), ((srs_str){(const uint8_t*)"next", 4})) ? ({ struct E_Coll__Option__I64* o0 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ((int64_t)1); o0; }) : (&N_Coll__None__I64)); } +static struct E_Fx__St* f_Fx__atAtom(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_args, struct E_Fx__St* p_st) { return ({ __auto_type s0 = f_Fx__nth(p_eff__Region, p_args, ((int64_t)0)); s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ int64_t v_id_1 = f_Fx__fresh(p_st); struct E_Fx__St* v_st1_2 = f_Fx__add(p_eff__Region, f_Fx__add(p_eff__Region, f_Fx__add(p_eff__Region, f_Fx__add(p_eff__Region, f_Fx__bump(p_eff__Region, p_st), f_Fx__fact(p_eff__Region, (&N_Fx__RUseAt), f_Fx__l4__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__i(p_eff__Region, p_g), f_Fx__s(p_eff__Region, v_x_0), f_Fx__i(p_eff__Region, p_line)))), f_Fx__fact(p_eff__Region, (&N_Fx__RAtId), f_Fx__l4__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__i(p_eff__Region, p_g), f_Fx__s(p_eff__Region, v_x_0), f_Fx__i(p_eff__Region, v_id_1)))), f_Fx__fact(p_eff__Region, (&N_Fx__RAtLine), f_Fx__l2__D__Val(p_eff__Region, f_Fx__i(p_eff__Region, v_id_1), f_Fx__i(p_eff__Region, p_line)))), f_Fx__fact(p_eff__Region, (&N_Fx__RSameId), f_Fx__l2__D__Val(p_eff__Region, f_Fx__i(p_eff__Region, v_id_1), f_Fx__i(p_eff__Region, v_id_1)))); __auto_type res_ = ({ __auto_type s3 = f_Fx__nth(p_eff__Region, p_args, ((int64_t)1)); s3->tag == 0 ? ({ v_st1_2; }) : ({ __auto_type v_s_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = (f_Fx__isConst(v_s_3) ? f_Fx__add(p_eff__Region, v_st1_2, f_Fx__fact(p_eff__Region, (&N_Fx__RAtState), f_Fx__l5__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__i(p_eff__Region, p_g), f_Fx__s(p_eff__Region, v_x_0), f_Fx__s(p_eff__Region, v_s_3), f_Fx__i(p_eff__Region, p_line)))) : f_Fx__add(p_eff__Region, v_st1_2, f_Fx__fact(p_eff__Region, (&N_Fx__RVarIn), f_Fx__l4__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__i(p_eff__Region, p_g), f_Fx__s(p_eff__Region, v_s_3), f_Fx__i(p_eff__Region, p_line))))); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Val* f_Fx__l5__D__Val(srs_cap* p_eff__Region, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e) { return ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__D__Val(p_eff__Region, p_b, p_c, p_d, p_e); o0; }); } +static struct E_Fx__St* f_Fx__varsFrom(srs_cap* p_eff__Region, struct E_Sym__Sym* p_d, int64_t p_g, int64_t p_line, struct E_Coll__List__Ast__Term* p_ts, int64_t p_i, struct E_Coll__Option__I64* p_op, struct E_Fx__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; int64_t t3 = p_line; struct E_Coll__List__Ast__Term* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); struct E_Coll__Option__I64* t6 = p_op; struct E_Fx__St* t7 = p_st; p_eff__Region = t0; p_d = t1; p_g = t2; p_line = t3; p_ts = t4; p_i = t5; p_op = t6; p_st = t7; goto srs_tail; (struct E_Fx__St*){0}; }); }) : ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; ({ __auto_type res_ = ((f_Fx__isConst(v_x_2) || f_Fx__isPos(p_op, p_i)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; int64_t t3 = p_line; struct E_Coll__List__Ast__Term* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); struct E_Coll__Option__I64* t6 = p_op; struct E_Fx__St* t7 = p_st; p_eff__Region = t0; p_d = t1; p_g = t2; p_line = t3; p_ts = t4; p_i = t5; p_op = t6; p_st = t7; goto srs_tail; (struct E_Fx__St*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_d; int64_t t2 = p_g; int64_t t3 = p_line; struct E_Coll__List__Ast__Term* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); struct E_Coll__Option__I64* t6 = p_op; struct E_Fx__St* t7 = f_Fx__add(p_eff__Region, p_st, f_Fx__fact(p_eff__Region, (&N_Fx__RVarIn), f_Fx__l4__D__Val(p_eff__Region, f_Fx__s(p_eff__Region, p_d), f_Fx__i(p_eff__Region, p_g), f_Fx__s(p_eff__Region, v_x_2), f_Fx__i(p_eff__Region, p_line)))); p_eff__Region = t0; p_d = t1; p_g = t2; p_line = t3; p_ts = t4; p_i = t5; p_op = t6; p_st = t7; goto srs_tail; (struct E_Fx__St*){0}; })); res_; }); }); }); }); }); } +static struct E_Fx__Verdict* f_Fx__check(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_D__solve(p_eff__Region, f_Fx__rules(p_eff__Region), f_Fx__facts(p_eff__Region, p_ds)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; f_Fx__readAll(p_eff__Region, v_m_0, f_Fx__kinds(p_eff__Region), (&N_Coll__Nil__Fx__Clash)); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Fx__Verdict* o1 = (struct E_Fx__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__RulesBad))); o1->tag = 2; o1->u.C_Fx__RulesBad.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Fx__Verdict* o1 = (struct E_Fx__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__RulesBad))); o1->tag = 2; o1->u.C_Fx__RulesBad.f_rel = v_rel_0; o1; }); }); }); } +static struct E_Coll__List__Fx__Rel* f_Fx__kinds(srs_cap* p_eff__Region) { return ({ struct E_Coll__List__Fx__Rel* v_a_0 = f_Fx__l5__Fx__Rel(p_eff__Region, (&N_Fx__RNotCapAt), (&N_Fx__RBadStateAt), (&N_Fx__RTwiceAt), (&N_Fx__RNotOpAt), (&N_Fx__RUnknownRelAt)); struct E_Coll__List__Fx__Rel* v_b_1 = f_Fx__l4__Fx__Rel(p_eff__Region, (&N_Fx__RRelArityAt), (&N_Fx__RUnboundAt), (&N_Fx__RExitOtherAt), (&N_Fx__RReservedAt)); struct E_Coll__List__Fx__Rel* v_c_2 = f_Fx__l4__Fx__Rel(p_eff__Region, (&N_Fx__RClauseArityAt), (&N_Fx__RUnsafeAt), (&N_Fx__RRuleUnknownAt), (&N_Fx__RRuleOpAt)); __auto_type res_ = f_Coll__revOnto__Fx__Rel(p_eff__Region, f_Coll__rev__Fx__Rel(p_eff__Region, v_a_0), f_Coll__revOnto__Fx__Rel(p_eff__Region, f_Coll__rev__Fx__Rel(p_eff__Region, v_b_1), v_c_2)); res_; }); } +static struct E_Coll__List__Fx__Rel* f_Fx__l5__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d, struct E_Fx__Rel* p_e) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l4__Fx__Rel(p_eff__Region, p_b, p_c, p_d, p_e); o0; }); } +static struct E_Coll__List__Fx__Rel* f_Fx__l4__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c, struct E_Fx__Rel* p_d) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l3__Fx__Rel(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__Fx__Rel* f_Fx__l3__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b, struct E_Fx__Rel* p_c) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l2__Fx__Rel(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__Fx__Rel* f_Fx__l2__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a, struct E_Fx__Rel* p_b) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Fx__l1__Fx__Rel(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__Fx__Rel* f_Fx__l1__Fx__Rel(srs_cap* p_eff__Region, struct E_Fx__Rel* p_a) { return ({ struct E_Coll__List__Fx__Rel* o0 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Fx__Rel); o0; }); } +static struct E_Coll__List__Fx__Rel* f_Coll__revOnto__Fx__Rel(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Rel* p_xs, struct E_Coll__List__Fx__Rel* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Fx__Rel* t1 = v_t_1; struct E_Coll__List__Fx__Rel* t2 = ({ struct E_Coll__List__Fx__Rel* o2 = (struct E_Coll__List__Fx__Rel*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Rel, u) + sizeof(((struct E_Coll__List__Fx__Rel*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Fx__Rel*){0}; }); }); }); } +static struct E_Coll__List__Fx__Rel* f_Coll__rev__Fx__Rel(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Rel* p_xs) { return f_Coll__revOnto__Fx__Rel(p_eff__Region, p_xs, (&N_Coll__Nil__Fx__Rel)); } +static struct E_Fx__Verdict* f_Fx__readAll(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Coll__List__Fx__Rel* p_ks, struct E_Coll__List__Fx__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ks; s0->tag == 0 ? ({ ({ __auto_type s0 = p_acc; s0->tag == 0 ? ({ (&N_Fx__Ok); }) : ({ ({ struct E_Fx__Verdict* o0 = (struct E_Fx__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__Bad))); o0->tag = 1; o0->u.C_Fx__Bad.f_cs = f_Coll__rev__Fx__Clash(p_eff__Region, p_acc); o0; }); }); }); }) : ({ __auto_type v_k_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Fx__rows(p_eff__Region, v_k_0, f_D__tuples(p_eff__Region, p_m, f_Fx__relSym(p_eff__Region, v_k_0)), p_acc); s2->tag == 1 ? ({ __auto_type v_acc2_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_D__Model* t1 = p_m; struct E_Coll__List__Fx__Rel* t2 = v_rest_1; struct E_Coll__List__Fx__Clash* t3 = v_acc2_2; p_eff__Region = t0; p_m = t1; p_ks = t2; p_acc = t3; goto srs_tail; (struct E_Fx__Verdict*){0}; }); }) : ({ ({ struct E_Fx__Verdict* o2 = (struct E_Fx__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Verdict, u) + sizeof(((struct E_Fx__Verdict*)0)->u.C_Fx__RulesBad))); o2->tag = 2; o2->u.C_Fx__RulesBad.f_rel = f_Fx__relSym(p_eff__Region, v_k_0); o2; }); }); }); }); }); } +static struct E_Coll__List__Fx__Clash* f_Coll__rev__Fx__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Clash* p_xs) { return f_Coll__revOnto__Fx__Clash(p_eff__Region, p_xs, (&N_Coll__Nil__Fx__Clash)); } +static struct E_Coll__List__Fx__Clash* f_Coll__revOnto__Fx__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Fx__Clash* p_xs, struct E_Coll__List__Fx__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Fx__Clash* t1 = v_t_1; struct E_Coll__List__Fx__Clash* t2 = ({ struct E_Coll__List__Fx__Clash* o2 = (struct E_Coll__List__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Clash, u) + sizeof(((struct E_Coll__List__Fx__Clash*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Fx__Clash*){0}; }); }); }); } +static struct E_Coll__Option__Coll__List_1_Fx__Clash* f_Fx__rows(srs_cap* p_eff__Region, struct E_Fx__Rel* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Fx__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_Fx__Clash* o0 = (struct E_Coll__Option__Coll__List_1_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Fx__Clash, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_acc; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_a_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 1 ? ({ __auto_type v_b_4 = s4->u.C_Coll__Cons.f_h; ({ __auto_type s5 = v_a_2; s5->tag == 1 ? ({ __auto_type v_line_5 = s5->u.C_D__VInt.f_v; ({ __auto_type s6 = v_b_4; s6->tag == 0 ? ({ __auto_type v_n_6 = s6->u.C_D__VSym.f_s; ({ __auto_type s7 = f_Fx__make(p_eff__Region, p_k, v_line_5, v_n_6); s7->tag == 1 ? ({ __auto_type v_c_7 = s7->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Fx__Rel* t1 = p_k; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__List__Fx__Clash* t3 = ({ struct E_Coll__List__Fx__Clash* o8 = (struct E_Coll__List__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Fx__Clash, u) + sizeof(((struct E_Coll__List__Fx__Clash*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_c_7; o8->u.C_Coll__Cons.f_t = p_acc; o8; }); p_eff__Region = t0; p_k = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Fx__Clash*){0}; }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }) : ({ (&N_Coll__None__Coll__List_1_Fx__Clash); }); }); }); }); } +static struct E_Coll__Option__Fx__Clash* f_Fx__make(srs_cap* p_eff__Region, struct E_Fx__Rel* p_k, int64_t p_line, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = p_k; s0->tag == 25 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__NotCap))); o0->tag = 0; o0->u.C_Fx__NotCap.f_line = p_line; o0->u.C_Fx__NotCap.f_x = p_n; o0; }); o0; }); }) : s0->tag == 26 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__BadState))); o0->tag = 1; o0->u.C_Fx__BadState.f_line = p_line; o0->u.C_Fx__BadState.f_s = p_n; o0; }); o0; }); }) : s0->tag == 27 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Twice))); o0->tag = 2; o0->u.C_Fx__Twice.f_line = p_line; o0->u.C_Fx__Twice.f_x = p_n; o0; }); o0; }); }) : s0->tag == 28 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__NotOp))); o0->tag = 3; o0->u.C_Fx__NotOp.f_line = p_line; o0->u.C_Fx__NotOp.f_op = p_n; o0; }); o0; }); }) : s0->tag == 29 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__UnknownRel))); o0->tag = 4; o0->u.C_Fx__UnknownRel.f_line = p_line; o0->u.C_Fx__UnknownRel.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 30 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__RelArity))); o0->tag = 5; o0->u.C_Fx__RelArity.f_line = p_line; o0->u.C_Fx__RelArity.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 31 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Unbound))); o0->tag = 6; o0->u.C_Fx__Unbound.f_line = p_line; o0->u.C_Fx__Unbound.f_v = p_n; o0; }); o0; }); }) : s0->tag == 32 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__ExitOther))); o0->tag = 7; o0->u.C_Fx__ExitOther.f_line = p_line; o0->u.C_Fx__ExitOther.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 33 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Reserved))); o0->tag = 8; o0->u.C_Fx__Reserved.f_line = p_line; o0->u.C_Fx__Reserved.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 34 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__ClauseArity))); o0->tag = 9; o0->u.C_Fx__ClauseArity.f_line = p_line; o0->u.C_Fx__ClauseArity.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 35 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__Unsafe))); o0->tag = 10; o0->u.C_Fx__Unsafe.f_line = p_line; o0->u.C_Fx__Unsafe.f_x = p_n; o0; }); o0; }); }) : s0->tag == 36 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__RuleUnknown))); o0->tag = 11; o0->u.C_Fx__RuleUnknown.f_line = p_line; o0->u.C_Fx__RuleUnknown.f_rel = p_n; o0; }); o0; }); }) : s0->tag == 37 ? ({ ({ struct E_Coll__Option__Fx__Clash* o0 = (struct E_Coll__Option__Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Fx__Clash, u) + sizeof(((struct E_Coll__Option__Fx__Clash*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Fx__Clash* o0 = (struct E_Fx__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Fx__Clash, u) + sizeof(((struct E_Fx__Clash*)0)->u.C_Fx__RuleOp))); o0->tag = 12; o0->u.C_Fx__RuleOp.f_line = p_line; o0->u.C_Fx__RuleOp.f_op = p_n; o0; }); o0; }); }) : ({ (&N_Coll__None__Fx__Clash); }); }); } +static struct E_Coll__Option__I64* f_Fx__opPos(srs_cap* p_eff__Region, struct E_Sym__Sym* p_rel) { return (Str__eq(f_Sym__str(p_rel), ((srs_str){(const uint8_t*)"next", 4})) ? ({ struct E_Coll__Option__I64* o0 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ((int64_t)1); o0; }) : (&N_Coll__None__I64)); } static bool f_Fx__isPos(struct E_Coll__Option__I64* p_op, int64_t p_i) { return ({ __auto_type s0 = p_op; s0->tag == 1 ? ({ __auto_type v_j_0 = s0->u.C_Coll__Some.f_v; (p_i == v_j_0); }) : ({ false; }); }); } static struct E_Coll__List__Ast__Handler* f_Flow__cxHs(struct E_Flow__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_hs_0 = s0->u.C_Flow__Cx.f_hs; ({ __auto_type res_ = v_hs_0; res_; }); }); }); res_; }); } -static struct E_Sym__Sym* f_Flow__relSym(srs_cap* p_r, struct E_Flow__Rel* p_x) { return ({ __auto_type s0 = p_x; s0->tag == 0 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"flow", 4})); }) : s0->tag == 1 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"step", 4})); }) : s0->tag == 2 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"at", 2})); }) : s0->tag == 3 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"capOf", 5})); }) : s0->tag == 4 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"capName", 7})); }) : s0->tag == 5 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"capLine", 7})); }) : s0->tag == 6 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"handle", 6})); }) : s0->tag == 7 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"close", 5})); }) : s0->tag == 8 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"merge", 5})); }) : s0->tag == 9 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"line", 4})); }) : s0->tag == 10 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"tr", 2})); }) : s0->tag == 11 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"start", 5})); }) : s0->tag == 12 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"endOk", 5})); }) : s0->tag == 13 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"same", 4})); }) : s0->tag == 14 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"world", 5})); }) : s0->tag == 15 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"touch", 5})); }) : s0->tag == 16 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"moved", 5})); }) : s0->tag == 17 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"seen", 4})); }) : s0->tag == 18 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"stuck", 5})); }) : s0->tag == 19 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"split", 5})); }) : s0->tag == 20 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"splitAt", 7})); }) : s0->tag == 21 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"unended", 7})); }) : s0->tag == 22 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"unendedAt", 9})); }) : s0->tag == 23 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"cstep", 5})); }) : s0->tag == 24 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"bind", 4})); }) : s0->tag == 25 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"pre", 3})); }) : s0->tag == 26 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"post", 4})); }) : s0->tag == 27 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"firstParam", 10})); }) : s0->tag == 28 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"nextParam", 9})); }) : s0->tag == 29 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"lastParam", 9})); }) : s0->tag == 30 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"ok", 2})); }) : s0->tag == 31 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fits", 4})); }) : s0->tag == 32 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"callee", 6})); }) : s0->tag == 33 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"cseen", 5})); }) : s0->tag == 34 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"ambig", 5})); }) : s0->tag == 35 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"ambigAt", 7})); }) : s0->tag == 36 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"enter", 5})); }) : s0->tag == 37 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"want", 4})); }) : s0->tag == 38 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"exitBad", 7})); }) : s0->tag == 39 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"nosol", 5})); }) : s0->tag == 40 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"noSolAt", 7})); }) : s0->tag == 41 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"readAt", 6})); }) : s0->tag == 42 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"assign", 6})); }) : s0->tag == 43 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"assignFrom", 10})); }) : s0->tag == 44 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"assigns", 7})); }) : s0->tag == 45 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"holds", 5})); }) : s0->tag == 46 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"edge", 4})); }) : s0->tag == 47 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"fin", 3})); }) : s0->tag == 48 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"dead", 4})); }) : s0->tag == 49 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"escCap", 6})); }) : s0->tag == 50 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"escVar", 6})); }) : s0->tag == 51 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"escape", 6})); }) : s0->tag == 52 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"need", 4})); }) : s0->tag == 53 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"sameS", 5})); }) : ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"stale", 5})); }); }); } +static struct E_Sym__Sym* f_Flow__relSym(srs_cap* p_eff__Region, struct E_Flow__Rel* p_x) { return ({ __auto_type s0 = p_x; s0->tag == 0 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"flow", 4})); }) : s0->tag == 1 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"step", 4})); }) : s0->tag == 2 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"at", 2})); }) : s0->tag == 3 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"capOf", 5})); }) : s0->tag == 4 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"capName", 7})); }) : s0->tag == 5 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"capLine", 7})); }) : s0->tag == 6 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"handle", 6})); }) : s0->tag == 7 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"close", 5})); }) : s0->tag == 8 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"merge", 5})); }) : s0->tag == 9 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"line", 4})); }) : s0->tag == 10 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"tr", 2})); }) : s0->tag == 11 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"start", 5})); }) : s0->tag == 12 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"endOk", 5})); }) : s0->tag == 13 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"same", 4})); }) : s0->tag == 14 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"world", 5})); }) : s0->tag == 15 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"touch", 5})); }) : s0->tag == 16 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"moved", 5})); }) : s0->tag == 17 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"seen", 4})); }) : s0->tag == 18 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"stuck", 5})); }) : s0->tag == 19 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"split", 5})); }) : s0->tag == 20 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"splitAt", 7})); }) : s0->tag == 21 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"unended", 7})); }) : s0->tag == 22 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"unendedAt", 9})); }) : s0->tag == 23 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"cstep", 5})); }) : s0->tag == 24 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"bind", 4})); }) : s0->tag == 25 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"pre", 3})); }) : s0->tag == 26 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"post", 4})); }) : s0->tag == 27 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"firstParam", 10})); }) : s0->tag == 28 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"nextParam", 9})); }) : s0->tag == 29 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"lastParam", 9})); }) : s0->tag == 30 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"ok", 2})); }) : s0->tag == 31 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fits", 4})); }) : s0->tag == 32 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"callee", 6})); }) : s0->tag == 33 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"cseen", 5})); }) : s0->tag == 34 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"ambig", 5})); }) : s0->tag == 35 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"ambigAt", 7})); }) : s0->tag == 36 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"enter", 5})); }) : s0->tag == 37 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"want", 4})); }) : s0->tag == 38 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"exitBad", 7})); }) : s0->tag == 39 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"nosol", 5})); }) : s0->tag == 40 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"noSolAt", 7})); }) : s0->tag == 41 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"readAt", 6})); }) : s0->tag == 42 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"assign", 6})); }) : s0->tag == 43 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"assignFrom", 10})); }) : s0->tag == 44 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"assigns", 7})); }) : s0->tag == 45 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"holds", 5})); }) : s0->tag == 46 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"edge", 4})); }) : s0->tag == 47 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"fin", 3})); }) : s0->tag == 48 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"dead", 4})); }) : s0->tag == 49 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"escCap", 6})); }) : s0->tag == 50 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"escVar", 6})); }) : s0->tag == 51 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"escape", 6})); }) : s0->tag == 52 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"need", 4})); }) : s0->tag == 53 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"sameS", 5})); }) : ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"stale", 5})); }); }); } static struct E_Flow__Rel* f_Flow__relOf(struct E_Flow__Kind* p_k) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ (&N_Flow__RStuck); }) : s0->tag == 1 ? ({ (&N_Flow__RSplitAt); }) : s0->tag == 2 ? ({ (&N_Flow__RUnendedAt); }) : s0->tag == 3 ? ({ (&N_Flow__RAmbigAt); }) : s0->tag == 4 ? ({ (&N_Flow__RExitBad); }) : s0->tag == 5 ? ({ (&N_Flow__RNoSolAt); }) : s0->tag == 6 ? ({ (&N_Flow__RDead); }) : s0->tag == 7 ? ({ (&N_Flow__REscape); }) : ({ (&N_Flow__RStale); }); }); } -static struct E_D__Val* f_Flow__i(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); } -static struct E_D__Val* f_Flow__s(srs_cap* p_r, struct E_Sym__Sym* p_x) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); } -static struct E_D__Fact* f_Flow__fact1(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } -static struct E_D__Fact* f_Flow__fact2(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Flow__fact4(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_d; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Flow__fFlow(srs_cap* p_r, int64_t p_p, int64_t p_q) { return f_Flow__fact2(p_r, (&N_Flow__RFlow), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_q)); } -static struct E_D__Fact* f_Flow__fStep(srs_cap* p_r, int64_t p_p, int64_t p_q, int64_t p_cap, struct E_Sym__Sym* p_op) { return f_Flow__fact4(p_r, (&N_Flow__RStep), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_q), f_Flow__i(p_r, p_cap), f_Flow__s(p_r, p_op)); } -static struct E_D__Fact* f_Flow__fLine(srs_cap* p_r, int64_t p_p, int64_t p_line) { return f_Flow__fact2(p_r, (&N_Flow__RLine), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_line)); } -static struct E_D__Fact* f_Flow__fMerge(srs_cap* p_r, int64_t p_m) { return f_Flow__fact1(p_r, (&N_Flow__RMerge), f_Flow__i(p_r, p_m)); } -static struct E_D__Fact* f_Flow__fClose(srs_cap* p_r, int64_t p_e, int64_t p_cap) { return f_Flow__fact2(p_r, (&N_Flow__RClose), f_Flow__i(p_r, p_e), f_Flow__i(p_r, p_cap)); } -static struct E_D__Fact* f_Flow__fCapOf(srs_cap* p_r, int64_t p_cap, struct E_Sym__Sym* p_proto) { return f_Flow__fact2(p_r, (&N_Flow__RCapOf), f_Flow__i(p_r, p_cap), f_Flow__s(p_r, p_proto)); } -static struct E_D__Fact* f_Flow__fCapName(srs_cap* p_r, int64_t p_cap, struct E_Sym__Sym* p_name) { return f_Flow__fact2(p_r, (&N_Flow__RCapName), f_Flow__i(p_r, p_cap), f_Flow__s(p_r, p_name)); } -static struct E_D__Fact* f_Flow__fCapLine(srs_cap* p_r, int64_t p_cap, int64_t p_line) { return f_Flow__fact2(p_r, (&N_Flow__RCapLine), f_Flow__i(p_r, p_cap), f_Flow__i(p_r, p_line)); } -static struct E_D__Fact* f_Flow__fHandle(srs_cap* p_r, int64_t p_p, int64_t p_cap) { return f_Flow__fact2(p_r, (&N_Flow__RHandle), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_cap)); } -static struct E_D__Fact* f_Flow__fTr(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return f_Flow__fact4(p_r, (&N_Flow__RTr), f_Flow__s(p_r, p_proto), f_Flow__s(p_r, p_op), f_Flow__s(p_r, p_a), f_Flow__s(p_r, p_b)); } -static struct E_D__Fact* f_Flow__fStart(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s) { return f_Flow__fact2(p_r, (&N_Flow__RStart), f_Flow__s(p_r, p_proto), f_Flow__s(p_r, p_s)); } -static struct E_D__Fact* f_Flow__fSame(srs_cap* p_r, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return f_Flow__fact2(p_r, (&N_Flow__RSame), f_Flow__s(p_r, p_a), f_Flow__s(p_r, p_b)); } -static struct E_D__Fact* f_Flow__fEndOk(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s) { return f_Flow__fact2(p_r, (&N_Flow__REndOk), f_Flow__s(p_r, p_proto), f_Flow__s(p_r, p_s)); } -static struct E_D__Fact* f_Flow__fWorld(srs_cap* p_r, int64_t p_w) { return f_Flow__fact1(p_r, (&N_Flow__RWorld), f_Flow__i(p_r, p_w)); } -static struct E_D__Fact* f_Flow__fact3(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Flow__fCStep(srs_cap* p_r, int64_t p_p, int64_t p_q) { return f_Flow__fact2(p_r, (&N_Flow__RCStep), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_q)); } -static struct E_D__Fact* f_Flow__fCallee(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_f) { return f_Flow__fact2(p_r, (&N_Flow__RCallee), f_Flow__i(p_r, p_p), f_Flow__s(p_r, p_f)); } -static struct E_D__Fact* f_Flow__fBind(srs_cap* p_r, int64_t p_p, int64_t p_m, int64_t p_cap) { return f_Flow__fact3(p_r, (&N_Flow__RBind), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_m), f_Flow__i(p_r, p_cap)); } -static struct E_D__Fact* f_Flow__fFirst(srs_cap* p_r, int64_t p_p, int64_t p_m) { return f_Flow__fact2(p_r, (&N_Flow__RFirst), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_m)); } -static struct E_D__Fact* f_Flow__fNext(srs_cap* p_r, int64_t p_p, int64_t p_m, int64_t p_n) { return f_Flow__fact3(p_r, (&N_Flow__RNext), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_m), f_Flow__i(p_r, p_n)); } -static struct E_D__Fact* f_Flow__fLast(srs_cap* p_r, int64_t p_p, int64_t p_m) { return f_Flow__fact2(p_r, (&N_Flow__RLast), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_m)); } -static struct E_D__Fact* f_Flow__fPre(srs_cap* p_r, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_r, (&N_Flow__RPre), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_j), f_Flow__i(p_r, p_m), f_Flow__s(p_r, p_s)); } -static struct E_D__Fact* f_Flow__fPost(srs_cap* p_r, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_r, (&N_Flow__RPost), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_j), f_Flow__i(p_r, p_m), f_Flow__s(p_r, p_s)); } -static struct E_D__Fact* f_Flow__fSameI(srs_cap* p_r, int64_t p_j) { return f_Flow__fact2(p_r, (&N_Flow__RSame), f_Flow__i(p_r, p_j), f_Flow__i(p_r, p_j)); } -static struct E_D__Fact* f_Flow__fEnter(srs_cap* p_r, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_r, (&N_Flow__REnter), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_w), f_Flow__i(p_r, p_cap), f_Flow__s(p_r, p_s)); } -static struct E_D__Fact* f_Flow__fWant(srs_cap* p_r, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_r, (&N_Flow__RWant), f_Flow__i(p_r, p_p), f_Flow__i(p_r, p_w), f_Flow__i(p_r, p_cap), f_Flow__s(p_r, p_s)); } -static struct E_D__Fact* f_Flow__fNoSol(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_f) { return f_Flow__fact2(p_r, (&N_Flow__RNoSol), f_Flow__i(p_r, p_line), f_Flow__s(p_r, p_f)); } -static struct E_D__Fact* f_Flow__fReadAt(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_line) { return f_Flow__fact3(p_r, (&N_Flow__RReadAt), f_Flow__i(p_r, p_p), f_Flow__s(p_r, p_x), f_Flow__i(p_r, p_line)); } -static struct E_D__Fact* f_Flow__fAssign(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_cap) { return f_Flow__fact3(p_r, (&N_Flow__RAssign), f_Flow__i(p_r, p_p), f_Flow__s(p_r, p_x), f_Flow__i(p_r, p_cap)); } -static struct E_D__Fact* f_Flow__fAssignFrom(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_y) { return f_Flow__fact3(p_r, (&N_Flow__RAssignFrom), f_Flow__i(p_r, p_p), f_Flow__s(p_r, p_x), f_Flow__s(p_r, p_y)); } -static struct E_D__Fact* f_Flow__fAssigns(srs_cap* p_r, int64_t p_p, struct E_Sym__Sym* p_x) { return f_Flow__fact2(p_r, (&N_Flow__RAssigns), f_Flow__i(p_r, p_p), f_Flow__s(p_r, p_x)); } -static struct E_D__Fact* f_Flow__fEscCap(srs_cap* p_r, int64_t p_e, int64_t p_cap, int64_t p_line) { return f_Flow__fact3(p_r, (&N_Flow__REscCap), f_Flow__i(p_r, p_e), f_Flow__i(p_r, p_cap), f_Flow__i(p_r, p_line)); } -static struct E_D__Fact* f_Flow__fEscVar(srs_cap* p_r, int64_t p_e, struct E_Sym__Sym* p_y, int64_t p_line) { return f_Flow__fact3(p_r, (&N_Flow__REscVar), f_Flow__i(p_r, p_e), f_Flow__s(p_r, p_y), f_Flow__i(p_r, p_line)); } -static struct E_D__Fact* f_Flow__fFin(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s) { return f_Flow__fact2(p_r, (&N_Flow__RFin), f_Flow__s(p_r, p_proto), f_Flow__s(p_r, p_s)); } -static struct E_Flow__St* f_Flow__add(srs_cap* p_r, struct E_Flow__St* p_st, struct E_D__Fact* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Flow__St.f_next; __auto_type v_fs_1 = s0->u.C_Flow__St.f_facts; __auto_type v_cs_2 = s0->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ struct E_Flow__St* o3 = (struct E_Flow__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o3->tag = 0; o3->u.C_Flow__St.f_next = v_n_0; o3->u.C_Flow__St.f_facts = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = p_f; o3->u.C_Coll__Cons.f_t = v_fs_1; o3; }); o3->u.C_Flow__St.f_caps = v_cs_2; o3; }); res_; }); }); }); res_; }); } -static struct E_Flow__At* f_Flow__fresh(srs_cap* p_r, struct E_Flow__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Flow__St.f_next; __auto_type v_fs_1 = s0->u.C_Flow__St.f_facts; __auto_type v_cs_2 = s0->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ struct E_Flow__At* o3 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o3->tag = 0; o3->u.C_Flow__At.f_st = ({ struct E_Flow__St* o3 = (struct E_Flow__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o3->tag = 0; o3->u.C_Flow__St.f_next = (v_n_0 + ((int64_t)1)); o3->u.C_Flow__St.f_facts = v_fs_1; o3->u.C_Flow__St.f_caps = v_cs_2; o3; }); o3->u.C_Flow__At.f_p = v_n_0; o3; }); res_; }); }); }); res_; }); } -static struct E_Flow__St* f_Flow__edge(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, int64_t p_q) { return f_Flow__add(p_r, p_st, f_Flow__fFlow(p_r, p_p, p_q)); } -static struct E_Flow__At* f_Flow__next(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Flow__fresh(p_r, p_st); ({ __auto_type v_st2_0 = s0->u.C_Flow__At.f_st; __auto_type v_q_1 = s0->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ struct E_Flow__At* o2 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o2->tag = 0; o2->u.C_Flow__At.f_st = f_Flow__edge(p_r, v_st2_0, p_p, v_q_1); o2->u.C_Flow__At.f_p = v_q_1; o2; }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Flow__Cap* f_Flow__capNamed(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Flow__Cap); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Flow__Cap.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_x) ? ({ struct E_Coll__Option__Flow__Cap* o3 = (struct E_Coll__Option__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Flow__Cap, u) + sizeof(((struct E_Coll__Option__Flow__Cap*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_c_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_r = t0; p_cs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__protoOf(srs_cap* p_r, struct E_Coll__List__Ast__Handler* p_hs, struct E_Sym__Sym* p_h) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Handler.f_name; __auto_type v_p_3 = s2->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_h) ? ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_p_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Handler* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_h; p_r = t0; p_hs = t1; p_h = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__At* f_Flow__expr(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_chosen_2 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__exprs(p_r, p_cx, p_st, p_p, v_xs_3); ({ __auto_type v_st2_4 = s4->u.C_Flow__At.f_st; __auto_type v_pa_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_ps_6 = s6->u.C_Flow__Cx.f_ps; __auto_type v_fns_7 = s6->u.C_Flow__Cx.f_fns; __auto_type v_es_8 = s6->u.C_Flow__Cx.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Flow__fnNamed(p_r, v_fns_7, v_f_1); s9->tag == 1 ? ({ __auto_type v_g_9 = s9->u.C_Coll__Some.f_v; f_Flow__call(p_r, v_ps_6, v_st2_4, v_pa_5, v_g_9, v_chosen_2, v_line_0); }) : ({ (f_Flow__isCtor(p_r, v_es_8, v_f_1) ? f_Flow__alloc(p_r, v_st2_4, v_pa_5, v_line_0) : f_Flow__request(p_r, v_st2_4, v_pa_5, f_Eff__reqOf(p_r, v_ps_6, v_f_1), v_line_0)); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; __auto_type v_recv_1 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_2 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_3 = s0->u.C_Ast__Method.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__exprs(p_r, p_cx, p_st, p_p, v_xs_3); ({ __auto_type v_st2_4 = s4->u.C_Flow__At.f_st; __auto_type v_pa_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = v_st2_4; ({ __auto_type v_cs_6 = s6->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__capNamed(p_r, v_cs_6, v_recv_1); s7->tag == 0 ? ({ ({ struct E_Flow__At* o7 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o7->tag = 0; o7->u.C_Flow__At.f_st = v_st2_4; o7->u.C_Flow__At.f_p = v_pa_5; o7; }); }) : ({ __auto_type v_c_7 = s7->u.C_Coll__Some.f_v; f_Flow__step(p_r, v_st2_4, v_pa_5, v_c_7, v_op_2, v_line_0); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_1 = s0->u.C_Ast__Bin.f_rhs; ({ __auto_type res_ = ({ __auto_type s2 = f_Flow__expr(p_r, p_cx, p_st, p_p, v_l_0); ({ __auto_type v_st2_2 = s2->u.C_Flow__At.f_st; __auto_type v_p2_3 = s2->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = v_st2_2; int64_t t3 = v_p2_3; struct E_Ast__Expr* t4 = v_rhs_1; p_r = t0; p_cx = t1; p_st = t2; p_p = t3; p_e = t4; goto srs_tail; (struct E_Flow__At*){0}; }); res_; }); }); }); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = p_st; int64_t t3 = p_p; struct E_Ast__Expr* t4 = v_x_0; p_r = t0; p_cx = t1; p_st = t2; p_p = t3; p_e = t4; goto srs_tail; (struct E_Flow__At*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__expr(p_r, p_cx, p_st, p_p, v_c_1); ({ __auto_type v_st1_4 = s4->u.C_Flow__At.f_st; __auto_type v_pc_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = f_Flow__next(p_r, v_st1_4, v_pc_5); ({ __auto_type v_st2_6 = s6->u.C_Flow__At.f_st; __auto_type v_t0_7 = s6->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s8 = f_Flow__expr(p_r, p_cx, v_st2_6, v_t0_7, v_t_2); ({ __auto_type v_st3_8 = s8->u.C_Flow__At.f_st; __auto_type v_pt_9 = s8->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s10 = f_Flow__next(p_r, v_st3_8, v_pc_5); ({ __auto_type v_st4_10 = s10->u.C_Flow__At.f_st; __auto_type v_e0_11 = s10->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s12 = f_Flow__expr(p_r, p_cx, v_st4_10, v_e0_11, v_x_3); ({ __auto_type v_st5_12 = s12->u.C_Flow__At.f_st; __auto_type v_pe_13 = s12->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s14 = f_Flow__next(p_r, v_st5_12, v_pt_9); ({ __auto_type v_st6_14 = s14->u.C_Flow__At.f_st; __auto_type v_m_15 = s14->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ struct E_Flow__At* o16 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o16->tag = 0; o16->u.C_Flow__At.f_st = f_Flow__merge(p_r, f_Flow__edge(p_r, v_st6_14, v_pe_13, v_m_15), v_m_15, v_line_0); o16->u.C_Flow__At.f_p = v_m_15; o16; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__next(p_r, p_st, p_p); ({ __auto_type v_st1_3 = s3->u.C_Flow__At.f_st; __auto_type v_h_4 = s3->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__expr(p_r, p_cx, v_st1_3, v_h_4, v_c_1); ({ __auto_type v_st2_5 = s5->u.C_Flow__At.f_st; __auto_type v_pc_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__next(p_r, v_st2_5, v_pc_6); ({ __auto_type v_st3_7 = s7->u.C_Flow__At.f_st; __auto_type v_b0_8 = s7->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s9 = f_Flow__expr(p_r, p_cx, v_st3_7, v_b0_8, v_b_2); ({ __auto_type v_st4_9 = s9->u.C_Flow__At.f_st; __auto_type v_pb_10 = s9->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s11 = f_Flow__next(p_r, f_Flow__merge(p_r, f_Flow__edge(p_r, v_st4_9, v_pb_10, v_h_4), v_h_4, v_line_0), v_pc_6); ({ __auto_type v_st5_11 = s11->u.C_Flow__At.f_st; __auto_type v_x_12 = s11->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ struct E_Flow__At* o13 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o13->tag = 0; o13->u.C_Flow__At.f_st = v_st5_11; o13->u.C_Flow__At.f_p = v_x_12; o13; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Block.f_line; __auto_type v_ss_1 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_2 = s0->u.C_Ast__Block.f_last; f_Flow__block(p_r, p_cx, p_st, p_p, v_ss_1, v_last_2, v_line_0); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; f_Flow__bindVal(p_r, p_cx, p_st, p_p, v_x_0, v_v_1); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__expr(p_r, p_cx, p_st, p_p, v_s_1); ({ __auto_type v_st1_3 = s3->u.C_Flow__At.f_st; __auto_type v_ps_4 = s3->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__fresh(p_r, v_st1_3); ({ __auto_type v_st2_5 = s5->u.C_Flow__At.f_st; __auto_type v_m_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = v_st2_5; ({ __auto_type v_cs_7 = s7->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ struct E_Flow__At* o8 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o8->tag = 0; o8->u.C_Flow__At.f_st = f_Flow__merge(p_r, f_Flow__arms(p_r, p_cx, v_st2_5, v_ps_4, v_m_6, f_Flow__srcs(p_r, p_cx, v_cs_7, v_s_1, (&N_Coll__Nil__Flow__Src)), v_arms_2), v_m_6, v_line_0); o8->u.C_Flow__At.f_p = v_m_6; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; ({ struct E_Flow__At* o2 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o2->tag = 0; o2->u.C_Flow__At.f_st = f_Flow__add(p_r, p_st, f_Flow__fReadAt(p_r, p_p, v_x_1, v_line_0)); o2->u.C_Flow__At.f_p = p_p; o2; }); }) : ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }); }); } -static struct E_Flow__St* f_Flow__arms(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_ps, int64_t p_m, struct E_Coll__List__Flow__Src* p_sv, struct E_Coll__List__Ast__Arm* p_arms) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_pat_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ struct E_Coll__List__Sym__Sym* v_binds_4 = f_Flow__patBinds(p_r, v_pat_2); __auto_type res_ = ({ __auto_type s5 = f_Flow__next(p_r, p_st, p_ps); ({ __auto_type v_st1_5 = s5->u.C_Flow__At.f_st; __auto_type v_a0_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__assignAll(p_r, v_st1_5, v_a0_6, v_binds_4, p_sv); ({ __auto_type v_st2_7 = s7->u.C_Flow__At.f_st; __auto_type v_a1_8 = s7->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s9 = f_Flow__expr(p_r, p_cx, v_st2_7, v_a1_8, v_b_3); ({ __auto_type v_st3_9 = s9->u.C_Flow__At.f_st; __auto_type v_pa_10 = s9->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = f_Flow__edge(p_r, v_st3_9, v_pa_10, p_m); int64_t t3 = p_ps; int64_t t4 = p_m; struct E_Coll__List__Flow__Src* t5 = p_sv; struct E_Coll__List__Ast__Arm* t6 = v_rest_1; p_r = t0; p_cx = t1; p_st = t2; p_ps = t3; p_m = t4; p_sv = t5; p_arms = t6; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Flow__patBinds(srs_cap* p_r, struct E_Ast__Pat* p_p) { return ({ __auto_type s0 = p_p; s0->tag == 0 ? ({ __auto_type v_binds_0 = s0->u.C_Ast__PCase.f_binds; v_binds_0; }) : ({ (&N_Coll__Nil__Sym__Sym); }); }); } -static struct E_Coll__List__Flow__Src* f_Flow__srcs(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Ast__Expr* p_e, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ struct E_Coll__List__Flow__Src* o1 = (struct E_Coll__List__Flow__Src*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Src, u) + sizeof(((struct E_Coll__List__Flow__Src*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Flow__Src* o1 = (struct E_Flow__Src*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Src, u) + sizeof(((struct E_Flow__Src*)0)->u.C_Flow__SVar))); o1->tag = 1; o1->u.C_Flow__SVar.f_x = v_x_0; o1; }); o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_chosen_1 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_2 = s0->u.C_Ast__Call.f_args; ({ __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_ps_3 = s3->u.C_Flow__Cx.f_ps; __auto_type v_fns_4 = s3->u.C_Flow__Cx.f_fns; __auto_type v_es_5 = s3->u.C_Flow__Cx.f_es; __auto_type v_rows_6 = s3->u.C_Flow__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__fnNamed(p_r, v_fns_4, v_f_0); s7->tag == 1 ? ({ __auto_type v_g_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_g_7; ({ __auto_type v_gs_8 = s8->u.C_Ast__Fn.f_groups; __auto_type v_ret_9 = s8->u.C_Ast__Fn.f_ret; ({ __auto_type res_ = ({ __auto_type s10 = v_ret_9; ({ __auto_type v_rn_10 = s10->u.C_Ast__Ty.f_name; ({ bool v_data_11 = (f_Flow__isEnumName(v_es_5, v_rn_10) || f_Ty__memberSym(v_rn_10, f_Ty__tparams(p_r, v_gs_8, (&N_Coll__Nil__Sym__Sym)))); struct E_Coll__List__Flow__Src* v_acc2_12 = (f_Eff__has(p_r, v_rows_6, v_f_0, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6}))) ? f_Flow__inRegion(p_r, p_cs, p_acc) : p_acc); __auto_type res_ = (v_data_11 ? f_Flow__srcsAll(p_r, p_cx, p_cs, v_xs_2, f_Flow__regionSrcs(p_r, p_cs, v_chosen_1, f_Flow__regionBs(p_r, f_Flow__capBs(p_r, v_ps_3, v_gs_8, ((int64_t)0), (&N_Coll__Nil__Flow__CapB)), (&N_Coll__Nil__Flow__CapB)), v_acc2_12)) : p_acc); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ (f_Flow__isCtor(p_r, v_es_5, v_f_0) ? f_Flow__srcsAll(p_r, p_cx, p_cs, v_xs_2, f_Flow__inRegion(p_r, p_cs, p_acc)) : p_acc); }); }); res_; }); }); }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_t_0 = s0->u.C_Ast__If.f_t; __auto_type v_x_1 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Ast__Expr* t3 = v_x_1; struct E_Coll__List__Flow__Src* t4 = f_Flow__srcs(p_r, p_cx, p_cs, v_t_0, p_acc); p_r = t0; p_cx = t1; p_cs = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }) : s0->tag == 11 ? ({ __auto_type v_last_0 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Ast__Expr* t3 = v_last_0; struct E_Coll__List__Flow__Src* t4 = p_acc; p_r = t0; p_cx = t1; p_cs = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_arms_0 = s0->u.C_Ast__Match.f_arms; f_Flow__srcsArms(p_r, p_cx, p_cs, v_arms_0, p_acc); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Flow__srcsAll(p_r, p_cx, p_cs, v_xs_0, p_acc); }) : ({ p_acc; }); }); } -static struct E_Coll__List__Flow__Src* f_Flow__srcsAll(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Coll__List__Ast__Expr* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = f_Flow__srcs(p_r, p_cx, p_cs, v_x_0, p_acc); p_r = t0; p_cx = t1; p_cs = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }); }); } -static struct E_Coll__List__Flow__Src* f_Flow__srcsArms(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Arm* p_arms, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Coll__List__Ast__Arm* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = f_Flow__srcs(p_r, p_cx, p_cs, v_b_2, p_acc); p_r = t0; p_cx = t1; p_cs = t2; p_arms = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_D__Val* f_Flow__i(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); } +static struct E_D__Val* f_Flow__s(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); } +static struct E_D__Fact* f_Flow__fact1(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } +static struct E_D__Fact* f_Flow__fact2(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Flow__fact4(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_d; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Flow__fFlow(srs_cap* p_eff__Region, int64_t p_p, int64_t p_q) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RFlow), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_q)); } +static struct E_D__Fact* f_Flow__fStep(srs_cap* p_eff__Region, int64_t p_p, int64_t p_q, int64_t p_cap, struct E_Sym__Sym* p_op) { return f_Flow__fact4(p_eff__Region, (&N_Flow__RStep), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_q), f_Flow__i(p_eff__Region, p_cap), f_Flow__s(p_eff__Region, p_op)); } +static struct E_D__Fact* f_Flow__fLine(srs_cap* p_eff__Region, int64_t p_p, int64_t p_line) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RLine), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Flow__fMerge(srs_cap* p_eff__Region, int64_t p_m) { return f_Flow__fact1(p_eff__Region, (&N_Flow__RMerge), f_Flow__i(p_eff__Region, p_m)); } +static struct E_D__Fact* f_Flow__fClose(srs_cap* p_eff__Region, int64_t p_e, int64_t p_cap) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RClose), f_Flow__i(p_eff__Region, p_e), f_Flow__i(p_eff__Region, p_cap)); } +static struct E_D__Fact* f_Flow__fCapOf(srs_cap* p_eff__Region, int64_t p_cap, struct E_Sym__Sym* p_proto) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RCapOf), f_Flow__i(p_eff__Region, p_cap), f_Flow__s(p_eff__Region, p_proto)); } +static struct E_D__Fact* f_Flow__fCapName(srs_cap* p_eff__Region, int64_t p_cap, struct E_Sym__Sym* p_name) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RCapName), f_Flow__i(p_eff__Region, p_cap), f_Flow__s(p_eff__Region, p_name)); } +static struct E_D__Fact* f_Flow__fCapLine(srs_cap* p_eff__Region, int64_t p_cap, int64_t p_line) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RCapLine), f_Flow__i(p_eff__Region, p_cap), f_Flow__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Flow__fHandle(srs_cap* p_eff__Region, int64_t p_p, int64_t p_cap) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RHandle), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_cap)); } +static struct E_D__Fact* f_Flow__fTr(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return f_Flow__fact4(p_eff__Region, (&N_Flow__RTr), f_Flow__s(p_eff__Region, p_proto), f_Flow__s(p_eff__Region, p_op), f_Flow__s(p_eff__Region, p_a), f_Flow__s(p_eff__Region, p_b)); } +static struct E_D__Fact* f_Flow__fStart(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RStart), f_Flow__s(p_eff__Region, p_proto), f_Flow__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Flow__fSame(srs_cap* p_eff__Region, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RSame), f_Flow__s(p_eff__Region, p_a), f_Flow__s(p_eff__Region, p_b)); } +static struct E_D__Fact* f_Flow__fEndOk(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s) { return f_Flow__fact2(p_eff__Region, (&N_Flow__REndOk), f_Flow__s(p_eff__Region, p_proto), f_Flow__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Flow__fWorld(srs_cap* p_eff__Region, int64_t p_w) { return f_Flow__fact1(p_eff__Region, (&N_Flow__RWorld), f_Flow__i(p_eff__Region, p_w)); } +static struct E_D__Fact* f_Flow__fact3(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Flow__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Flow__fCStep(srs_cap* p_eff__Region, int64_t p_p, int64_t p_q) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RCStep), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_q)); } +static struct E_D__Fact* f_Flow__fCallee(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_f) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RCallee), f_Flow__i(p_eff__Region, p_p), f_Flow__s(p_eff__Region, p_f)); } +static struct E_D__Fact* f_Flow__fBind(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m, int64_t p_cap) { return f_Flow__fact3(p_eff__Region, (&N_Flow__RBind), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_m), f_Flow__i(p_eff__Region, p_cap)); } +static struct E_D__Fact* f_Flow__fFirst(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RFirst), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_m)); } +static struct E_D__Fact* f_Flow__fNext(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m, int64_t p_n) { return f_Flow__fact3(p_eff__Region, (&N_Flow__RNext), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_m), f_Flow__i(p_eff__Region, p_n)); } +static struct E_D__Fact* f_Flow__fLast(srs_cap* p_eff__Region, int64_t p_p, int64_t p_m) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RLast), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_m)); } +static struct E_D__Fact* f_Flow__fPre(srs_cap* p_eff__Region, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_eff__Region, (&N_Flow__RPre), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_j), f_Flow__i(p_eff__Region, p_m), f_Flow__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Flow__fPost(srs_cap* p_eff__Region, int64_t p_p, int64_t p_j, int64_t p_m, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_eff__Region, (&N_Flow__RPost), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_j), f_Flow__i(p_eff__Region, p_m), f_Flow__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Flow__fSameI(srs_cap* p_eff__Region, int64_t p_j) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RSame), f_Flow__i(p_eff__Region, p_j), f_Flow__i(p_eff__Region, p_j)); } +static struct E_D__Fact* f_Flow__fEnter(srs_cap* p_eff__Region, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_eff__Region, (&N_Flow__REnter), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_w), f_Flow__i(p_eff__Region, p_cap), f_Flow__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Flow__fWant(srs_cap* p_eff__Region, int64_t p_p, int64_t p_w, int64_t p_cap, struct E_Sym__Sym* p_s) { return f_Flow__fact4(p_eff__Region, (&N_Flow__RWant), f_Flow__i(p_eff__Region, p_p), f_Flow__i(p_eff__Region, p_w), f_Flow__i(p_eff__Region, p_cap), f_Flow__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Flow__fNoSol(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_f) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RNoSol), f_Flow__i(p_eff__Region, p_line), f_Flow__s(p_eff__Region, p_f)); } +static struct E_D__Fact* f_Flow__fReadAt(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_line) { return f_Flow__fact3(p_eff__Region, (&N_Flow__RReadAt), f_Flow__i(p_eff__Region, p_p), f_Flow__s(p_eff__Region, p_x), f_Flow__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Flow__fAssign(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x, int64_t p_cap) { return f_Flow__fact3(p_eff__Region, (&N_Flow__RAssign), f_Flow__i(p_eff__Region, p_p), f_Flow__s(p_eff__Region, p_x), f_Flow__i(p_eff__Region, p_cap)); } +static struct E_D__Fact* f_Flow__fAssignFrom(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_y) { return f_Flow__fact3(p_eff__Region, (&N_Flow__RAssignFrom), f_Flow__i(p_eff__Region, p_p), f_Flow__s(p_eff__Region, p_x), f_Flow__s(p_eff__Region, p_y)); } +static struct E_D__Fact* f_Flow__fAssigns(srs_cap* p_eff__Region, int64_t p_p, struct E_Sym__Sym* p_x) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RAssigns), f_Flow__i(p_eff__Region, p_p), f_Flow__s(p_eff__Region, p_x)); } +static struct E_D__Fact* f_Flow__fEscCap(srs_cap* p_eff__Region, int64_t p_e, int64_t p_cap, int64_t p_line) { return f_Flow__fact3(p_eff__Region, (&N_Flow__REscCap), f_Flow__i(p_eff__Region, p_e), f_Flow__i(p_eff__Region, p_cap), f_Flow__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Flow__fEscVar(srs_cap* p_eff__Region, int64_t p_e, struct E_Sym__Sym* p_y, int64_t p_line) { return f_Flow__fact3(p_eff__Region, (&N_Flow__REscVar), f_Flow__i(p_eff__Region, p_e), f_Flow__s(p_eff__Region, p_y), f_Flow__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Flow__fFin(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_s) { return f_Flow__fact2(p_eff__Region, (&N_Flow__RFin), f_Flow__s(p_eff__Region, p_proto), f_Flow__s(p_eff__Region, p_s)); } +static struct E_Flow__St* f_Flow__add(srs_cap* p_eff__Region, struct E_Flow__St* p_st, struct E_D__Fact* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Flow__St.f_next; __auto_type v_fs_1 = s0->u.C_Flow__St.f_facts; __auto_type v_cs_2 = s0->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ struct E_Flow__St* o3 = (struct E_Flow__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o3->tag = 0; o3->u.C_Flow__St.f_next = v_n_0; o3->u.C_Flow__St.f_facts = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = p_f; o3->u.C_Coll__Cons.f_t = v_fs_1; o3; }); o3->u.C_Flow__St.f_caps = v_cs_2; o3; }); res_; }); }); }); res_; }); } +static struct E_Flow__At* f_Flow__fresh(srs_cap* p_eff__Region, struct E_Flow__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Flow__St.f_next; __auto_type v_fs_1 = s0->u.C_Flow__St.f_facts; __auto_type v_cs_2 = s0->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ struct E_Flow__At* o3 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o3->tag = 0; o3->u.C_Flow__At.f_st = ({ struct E_Flow__St* o3 = (struct E_Flow__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o3->tag = 0; o3->u.C_Flow__St.f_next = (v_n_0 + ((int64_t)1)); o3->u.C_Flow__St.f_facts = v_fs_1; o3->u.C_Flow__St.f_caps = v_cs_2; o3; }); o3->u.C_Flow__At.f_p = v_n_0; o3; }); res_; }); }); }); res_; }); } +static struct E_Flow__St* f_Flow__edge(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, int64_t p_q) { return f_Flow__add(p_eff__Region, p_st, f_Flow__fFlow(p_eff__Region, p_p, p_q)); } +static struct E_Flow__At* f_Flow__next(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Flow__fresh(p_eff__Region, p_st); ({ __auto_type v_st2_0 = s0->u.C_Flow__At.f_st; __auto_type v_q_1 = s0->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ struct E_Flow__At* o2 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o2->tag = 0; o2->u.C_Flow__At.f_st = f_Flow__edge(p_eff__Region, v_st2_0, p_p, v_q_1); o2->u.C_Flow__At.f_p = v_q_1; o2; }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Flow__Cap* f_Flow__capNamed(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Flow__Cap); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Flow__Cap.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_x) ? ({ struct E_Coll__Option__Flow__Cap* o3 = (struct E_Coll__Option__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Flow__Cap, u) + sizeof(((struct E_Coll__Option__Flow__Cap*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_c_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_eff__Region = t0; p_cs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__protoOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Handler* p_hs, struct E_Sym__Sym* p_h) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Handler.f_name; __auto_type v_p_3 = s2->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_h) ? ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_p_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Handler* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_h; p_eff__Region = t0; p_hs = t1; p_h = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__At* f_Flow__expr(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_chosen_2 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__exprs(p_eff__Region, p_cx, p_st, p_p, v_xs_3); ({ __auto_type v_st2_4 = s4->u.C_Flow__At.f_st; __auto_type v_pa_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_ps_6 = s6->u.C_Flow__Cx.f_ps; __auto_type v_fns_7 = s6->u.C_Flow__Cx.f_fns; __auto_type v_es_8 = s6->u.C_Flow__Cx.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Flow__fnNamed(p_eff__Region, v_fns_7, v_f_1); s9->tag == 1 ? ({ __auto_type v_g_9 = s9->u.C_Coll__Some.f_v; f_Flow__call(p_eff__Region, v_ps_6, v_st2_4, v_pa_5, v_g_9, v_chosen_2, v_line_0); }) : ({ (f_Flow__isCtor(v_es_8, v_f_1) ? f_Flow__alloc(p_eff__Region, v_st2_4, v_pa_5, v_line_0) : f_Flow__request(p_eff__Region, v_st2_4, v_pa_5, f_Eff__reqOf(p_eff__Region, v_ps_6, v_f_1), v_line_0)); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; __auto_type v_recv_1 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_2 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_3 = s0->u.C_Ast__Method.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__exprs(p_eff__Region, p_cx, p_st, p_p, v_xs_3); ({ __auto_type v_st2_4 = s4->u.C_Flow__At.f_st; __auto_type v_pa_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = v_st2_4; ({ __auto_type v_cs_6 = s6->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__capNamed(p_eff__Region, v_cs_6, v_recv_1); s7->tag == 0 ? ({ ({ struct E_Flow__At* o7 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o7->tag = 0; o7->u.C_Flow__At.f_st = v_st2_4; o7->u.C_Flow__At.f_p = v_pa_5; o7; }); }) : ({ __auto_type v_c_7 = s7->u.C_Coll__Some.f_v; f_Flow__step(p_eff__Region, v_st2_4, v_pa_5, v_c_7, v_op_2, v_line_0); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_1 = s0->u.C_Ast__Bin.f_rhs; ({ __auto_type res_ = ({ __auto_type s2 = f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, v_l_0); ({ __auto_type v_st2_2 = s2->u.C_Flow__At.f_st; __auto_type v_p2_3 = s2->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = v_st2_2; int64_t t3 = v_p2_3; struct E_Ast__Expr* t4 = v_rhs_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_p = t3; p_e = t4; goto srs_tail; (struct E_Flow__At*){0}; }); res_; }); }); }); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = p_st; int64_t t3 = p_p; struct E_Ast__Expr* t4 = v_x_0; p_eff__Region = t0; p_cx = t1; p_st = t2; p_p = t3; p_e = t4; goto srs_tail; (struct E_Flow__At*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, v_c_1); ({ __auto_type v_st1_4 = s4->u.C_Flow__At.f_st; __auto_type v_pc_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = f_Flow__next(p_eff__Region, v_st1_4, v_pc_5); ({ __auto_type v_st2_6 = s6->u.C_Flow__At.f_st; __auto_type v_t0_7 = s6->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s8 = f_Flow__expr(p_eff__Region, p_cx, v_st2_6, v_t0_7, v_t_2); ({ __auto_type v_st3_8 = s8->u.C_Flow__At.f_st; __auto_type v_pt_9 = s8->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s10 = f_Flow__next(p_eff__Region, v_st3_8, v_pc_5); ({ __auto_type v_st4_10 = s10->u.C_Flow__At.f_st; __auto_type v_e0_11 = s10->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s12 = f_Flow__expr(p_eff__Region, p_cx, v_st4_10, v_e0_11, v_x_3); ({ __auto_type v_st5_12 = s12->u.C_Flow__At.f_st; __auto_type v_pe_13 = s12->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s14 = f_Flow__next(p_eff__Region, v_st5_12, v_pt_9); ({ __auto_type v_st6_14 = s14->u.C_Flow__At.f_st; __auto_type v_m_15 = s14->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ struct E_Flow__At* o16 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o16->tag = 0; o16->u.C_Flow__At.f_st = f_Flow__merge(p_eff__Region, f_Flow__edge(p_eff__Region, v_st6_14, v_pe_13, v_m_15), v_m_15, v_line_0); o16->u.C_Flow__At.f_p = v_m_15; o16; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__next(p_eff__Region, p_st, p_p); ({ __auto_type v_st1_3 = s3->u.C_Flow__At.f_st; __auto_type v_h_4 = s3->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__expr(p_eff__Region, p_cx, v_st1_3, v_h_4, v_c_1); ({ __auto_type v_st2_5 = s5->u.C_Flow__At.f_st; __auto_type v_pc_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__next(p_eff__Region, v_st2_5, v_pc_6); ({ __auto_type v_st3_7 = s7->u.C_Flow__At.f_st; __auto_type v_b0_8 = s7->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s9 = f_Flow__expr(p_eff__Region, p_cx, v_st3_7, v_b0_8, v_b_2); ({ __auto_type v_st4_9 = s9->u.C_Flow__At.f_st; __auto_type v_pb_10 = s9->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s11 = f_Flow__next(p_eff__Region, f_Flow__merge(p_eff__Region, f_Flow__edge(p_eff__Region, v_st4_9, v_pb_10, v_h_4), v_h_4, v_line_0), v_pc_6); ({ __auto_type v_st5_11 = s11->u.C_Flow__At.f_st; __auto_type v_x_12 = s11->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ struct E_Flow__At* o13 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o13->tag = 0; o13->u.C_Flow__At.f_st = v_st5_11; o13->u.C_Flow__At.f_p = v_x_12; o13; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Block.f_line; __auto_type v_ss_1 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_2 = s0->u.C_Ast__Block.f_last; f_Flow__block(p_eff__Region, p_cx, p_st, p_p, v_ss_1, v_last_2, v_line_0); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; f_Flow__bindVal(p_eff__Region, p_cx, p_st, p_p, v_x_0, v_v_1); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, v_s_1); ({ __auto_type v_st1_3 = s3->u.C_Flow__At.f_st; __auto_type v_ps_4 = s3->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__fresh(p_eff__Region, v_st1_3); ({ __auto_type v_st2_5 = s5->u.C_Flow__At.f_st; __auto_type v_m_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = v_st2_5; ({ __auto_type v_cs_7 = s7->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ struct E_Flow__At* o8 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o8->tag = 0; o8->u.C_Flow__At.f_st = f_Flow__merge(p_eff__Region, f_Flow__arms(p_eff__Region, p_cx, v_st2_5, v_ps_4, v_m_6, f_Flow__srcs(p_eff__Region, p_cx, v_cs_7, v_s_1, (&N_Coll__Nil__Flow__Src)), v_arms_2), v_m_6, v_line_0); o8->u.C_Flow__At.f_p = v_m_6; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; ({ struct E_Flow__At* o2 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o2->tag = 0; o2->u.C_Flow__At.f_st = f_Flow__add(p_eff__Region, p_st, f_Flow__fReadAt(p_eff__Region, p_p, v_x_1, v_line_0)); o2->u.C_Flow__At.f_p = p_p; o2; }); }) : ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }); }); } +static struct E_Flow__St* f_Flow__arms(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_ps, int64_t p_m, struct E_Coll__List__Flow__Src* p_sv, struct E_Coll__List__Ast__Arm* p_arms) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_pat_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ struct E_Coll__List__Sym__Sym* v_binds_4 = f_Flow__patBinds(v_pat_2); __auto_type res_ = ({ __auto_type s5 = f_Flow__next(p_eff__Region, p_st, p_ps); ({ __auto_type v_st1_5 = s5->u.C_Flow__At.f_st; __auto_type v_a0_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__assignAll(p_eff__Region, v_st1_5, v_a0_6, v_binds_4, p_sv); ({ __auto_type v_st2_7 = s7->u.C_Flow__At.f_st; __auto_type v_a1_8 = s7->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s9 = f_Flow__expr(p_eff__Region, p_cx, v_st2_7, v_a1_8, v_b_3); ({ __auto_type v_st3_9 = s9->u.C_Flow__At.f_st; __auto_type v_pa_10 = s9->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = f_Flow__edge(p_eff__Region, v_st3_9, v_pa_10, p_m); int64_t t3 = p_ps; int64_t t4 = p_m; struct E_Coll__List__Flow__Src* t5 = p_sv; struct E_Coll__List__Ast__Arm* t6 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_ps = t3; p_m = t4; p_sv = t5; p_arms = t6; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Flow__patBinds(struct E_Ast__Pat* p_p) { return ({ __auto_type s0 = p_p; s0->tag == 0 ? ({ __auto_type v_binds_0 = s0->u.C_Ast__PCase.f_binds; v_binds_0; }) : ({ (&N_Coll__Nil__Sym__Sym); }); }); } +static struct E_Coll__List__Flow__Src* f_Flow__srcs(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Ast__Expr* p_e, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ struct E_Coll__List__Flow__Src* o1 = (struct E_Coll__List__Flow__Src*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Src, u) + sizeof(((struct E_Coll__List__Flow__Src*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Flow__Src* o1 = (struct E_Flow__Src*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Src, u) + sizeof(((struct E_Flow__Src*)0)->u.C_Flow__SVar))); o1->tag = 1; o1->u.C_Flow__SVar.f_x = v_x_0; o1; }); o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_chosen_1 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_2 = s0->u.C_Ast__Call.f_args; ({ __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_ps_3 = s3->u.C_Flow__Cx.f_ps; __auto_type v_fns_4 = s3->u.C_Flow__Cx.f_fns; __auto_type v_es_5 = s3->u.C_Flow__Cx.f_es; __auto_type v_rows_6 = s3->u.C_Flow__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__fnNamed(p_eff__Region, v_fns_4, v_f_0); s7->tag == 1 ? ({ __auto_type v_g_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_g_7; ({ __auto_type v_gs_8 = s8->u.C_Ast__Fn.f_groups; __auto_type v_ret_9 = s8->u.C_Ast__Fn.f_ret; ({ __auto_type res_ = ({ __auto_type s10 = v_ret_9; ({ __auto_type v_rn_10 = s10->u.C_Ast__Ty.f_name; ({ bool v_data_11 = (f_Flow__isEnumName(v_es_5, v_rn_10) || f_Ty__memberSym(v_rn_10, f_Ty__tparams(p_eff__Region, v_gs_8, (&N_Coll__Nil__Sym__Sym)))); struct E_Coll__List__Flow__Src* v_acc2_12 = (f_Eff__has(p_eff__Region, v_rows_6, v_f_0, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6}))) ? f_Flow__inRegion(p_eff__Region, p_cs, p_acc) : p_acc); __auto_type res_ = (v_data_11 ? f_Flow__srcsAll(p_eff__Region, p_cx, p_cs, v_xs_2, f_Flow__regionSrcs(p_eff__Region, p_cs, v_chosen_1, f_Flow__regionBs(p_eff__Region, f_Flow__capBs(p_eff__Region, v_ps_3, v_gs_8, ((int64_t)0), (&N_Coll__Nil__Flow__CapB)), (&N_Coll__Nil__Flow__CapB)), v_acc2_12)) : p_acc); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ (f_Flow__isCtor(v_es_5, v_f_0) ? f_Flow__srcsAll(p_eff__Region, p_cx, p_cs, v_xs_2, f_Flow__inRegion(p_eff__Region, p_cs, p_acc)) : p_acc); }); }); res_; }); }); }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_t_0 = s0->u.C_Ast__If.f_t; __auto_type v_x_1 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Ast__Expr* t3 = v_x_1; struct E_Coll__List__Flow__Src* t4 = f_Flow__srcs(p_eff__Region, p_cx, p_cs, v_t_0, p_acc); p_eff__Region = t0; p_cx = t1; p_cs = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }) : s0->tag == 11 ? ({ __auto_type v_last_0 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Ast__Expr* t3 = v_last_0; struct E_Coll__List__Flow__Src* t4 = p_acc; p_eff__Region = t0; p_cx = t1; p_cs = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_arms_0 = s0->u.C_Ast__Match.f_arms; f_Flow__srcsArms(p_eff__Region, p_cx, p_cs, v_arms_0, p_acc); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Flow__srcsAll(p_eff__Region, p_cx, p_cs, v_xs_0, p_acc); }) : ({ p_acc; }); }); } +static struct E_Coll__List__Flow__Src* f_Flow__srcsAll(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Coll__List__Ast__Expr* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = f_Flow__srcs(p_eff__Region, p_cx, p_cs, v_x_0, p_acc); p_eff__Region = t0; p_cx = t1; p_cs = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }); }); } +static struct E_Coll__List__Flow__Src* f_Flow__srcsArms(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Ast__Arm* p_arms, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Flow__Cap* t2 = p_cs; struct E_Coll__List__Ast__Arm* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = f_Flow__srcs(p_eff__Region, p_cx, p_cs, v_b_2, p_acc); p_eff__Region = t0; p_cx = t1; p_cs = t2; p_arms = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); res_; }); }); }); res_; }); }); }); } static bool f_Flow__isEnumName(struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Enum.f_name; ({ __auto_type res_ = (f_Sym__eq(v_name_2, p_n) ? true : ({ struct E_Coll__List__Ast__Enum* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_n; p_es = t0; p_n = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Flow__CapB* f_Flow__regionBs(srs_cap* p_r, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__Flow__CapB(p_r, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_proto_2, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6}))) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__CapB* t1 = v_rest_1; struct E_Coll__List__Flow__CapB* t2 = ({ struct E_Coll__List__Flow__CapB* o3 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_b_0; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__CapB* t1 = v_rest_1; struct E_Coll__List__Flow__CapB* t2 = p_acc; p_r = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Flow__CapB* f_Coll__rev__Flow__CapB(srs_cap* p_r, struct E_Coll__List__Flow__CapB* p_xs) { return f_Coll__revOnto__Flow__CapB(p_r, p_xs, (&N_Coll__Nil__Flow__CapB)); } -static struct E_Coll__List__Flow__CapB* f_Coll__revOnto__Flow__CapB(srs_cap* p_r, struct E_Coll__List__Flow__CapB* p_xs, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__CapB* t1 = v_t_1; struct E_Coll__List__Flow__CapB* t2 = ({ struct E_Coll__List__Flow__CapB* o2 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }); }); } -static struct E_Coll__List__Flow__Src* f_Flow__regionSrcs(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__capFor(p_r, p_cs, p_chosen, v_b_0); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = p_cs; struct E_Coll__List__Sym__Sym* t2 = p_chosen; struct E_Coll__List__Flow__CapB* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = p_acc; p_r = t0; p_cs = t1; p_chosen = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s3 = v_c_2; ({ __auto_type v_id_3 = s3->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = p_cs; struct E_Coll__List__Sym__Sym* t2 = p_chosen; struct E_Coll__List__Flow__CapB* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = ({ struct E_Coll__List__Flow__Src* o4 = (struct E_Coll__List__Flow__Src*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Src, u) + sizeof(((struct E_Coll__List__Flow__Src*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Flow__Src* o4 = (struct E_Flow__Src*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Src, u) + sizeof(((struct E_Flow__Src*)0)->u.C_Flow__SCap))); o4->tag = 0; o4->u.C_Flow__SCap.f_c = v_id_3; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_cs = t1; p_chosen = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Flow__At* f_Flow__bindVal(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_v) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Flow__expr(p_r, p_cx, p_st, p_p, p_v); ({ __auto_type v_st1_0 = s0->u.C_Flow__At.f_st; __auto_type v_pv_1 = s0->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s2 = v_st1_0; ({ __auto_type v_cs_2 = s2->u.C_Flow__St.f_caps; ({ __auto_type res_ = f_Flow__assignAll(p_r, v_st1_0, v_pv_1, ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = p_x; o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o3; }), f_Flow__srcs(p_r, p_cx, v_cs_2, p_v, (&N_Coll__Nil__Flow__Src))); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Flow__At* f_Flow__assignAll(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv) { return ({ __auto_type s0 = p_sv; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s0 = f_Flow__next(p_r, p_st, p_p); ({ __auto_type v_st1_0 = s0->u.C_Flow__At.f_st; __auto_type v_a_1 = s0->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st2_2 = f_Flow__assignFacts(p_r, v_st1_0, v_a_1, p_xs, p_sv); __auto_type res_ = f_Flow__next(p_r, v_st2_2, v_a_1); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Flow__St* f_Flow__assignFacts(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_a, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Flow__St* t1 = f_Flow__srcFacts(p_r, f_Flow__add(p_r, p_st, f_Flow__fAssigns(p_r, p_a, v_x_0)), p_a, v_x_0, p_sv); int64_t t2 = p_a; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = p_sv; p_r = t0; p_st = t1; p_a = t2; p_xs = t3; p_sv = t4; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); } -static struct E_Flow__St* f_Flow__srcFacts(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_a, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__Src* p_sv) { srs_tail: return ({ __auto_type s0 = p_sv; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_c_2 = s2->u.C_Flow__SCap.f_c; ({ srs_cap* t0 = p_r; struct E_Flow__St* t1 = f_Flow__add(p_r, p_st, f_Flow__fAssign(p_r, p_a, p_x, v_c_2)); int64_t t2 = p_a; struct E_Sym__Sym* t3 = p_x; struct E_Coll__List__Flow__Src* t4 = v_rest_1; p_r = t0; p_st = t1; p_a = t2; p_x = t3; p_sv = t4; goto srs_tail; (struct E_Flow__St*){0}; }); }) : ({ __auto_type v_y_2 = s2->u.C_Flow__SVar.f_x; ({ srs_cap* t0 = p_r; struct E_Flow__St* t1 = f_Flow__add(p_r, p_st, f_Flow__fAssignFrom(p_r, p_a, p_x, v_y_2)); int64_t t2 = p_a; struct E_Sym__Sym* t3 = p_x; struct E_Coll__List__Flow__Src* t4 = v_rest_1; p_r = t0; p_st = t1; p_a = t2; p_x = t3; p_sv = t4; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); }); }); } -static struct E_Flow__At* f_Flow__exprs(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Flow__expr(p_r, p_cx, p_st, p_p, v_x_0); ({ __auto_type v_st2_2 = s2->u.C_Flow__At.f_st; __auto_type v_p2_3 = s2->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = v_st2_2; int64_t t3 = v_p2_3; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; p_r = t0; p_cx = t1; p_st = t2; p_p = t3; p_xs = t4; goto srs_tail; (struct E_Flow__At*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__merge(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_m, int64_t p_line) { return ({ __auto_type res_ = f_Flow__add(p_r, f_Flow__add(p_r, p_st, f_Flow__fMerge(p_r, p_m)), f_Flow__fLine(p_r, p_m, p_line)); res_; }); } -static struct E_Flow__At* f_Flow__step(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, struct E_Flow__Cap* p_c, struct E_Sym__Sym* p_op, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_c; ({ __auto_type v_id_0 = s0->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ __auto_type s1 = f_Flow__next(p_r, p_st, p_p); ({ __auto_type v_st1_1 = s1->u.C_Flow__At.f_st; __auto_type v_s_2 = s1->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__fresh(p_r, v_st1_1); ({ __auto_type v_st2_3 = s3->u.C_Flow__At.f_st; __auto_type v_q_4 = s3->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st3_5 = f_Flow__add(p_r, v_st2_3, f_Flow__fStep(p_r, v_s_2, v_q_4, v_id_0, p_op)); __auto_type res_ = ({ struct E_Flow__At* o6 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o6->tag = 0; o6->u.C_Flow__At.f_st = f_Flow__add(p_r, v_st3_5, f_Flow__fLine(p_r, v_s_2, p_line)); o6->u.C_Flow__At.f_p = v_q_4; o6; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Flow__At* f_Flow__alloc(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, int64_t p_line) { return f_Flow__request(p_r, p_st, p_p, ({ struct E_Coll__Option__Eff__Req* o0 = (struct E_Coll__Option__Eff__Req*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Eff__Req, u) + sizeof(((struct E_Coll__Option__Eff__Req*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Eff__Req* o0 = (struct E_Eff__Req*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Eff__Req, u) + sizeof(((struct E_Eff__Req*)0)->u.C_Eff__Req))); o0->tag = 0; o0->u.C_Eff__Req.f_p = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6})); o0->u.C_Eff__Req.f_op = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"alloc", 5})); o0; }); o0; }), p_line); } -static struct E_Flow__At* f_Flow__request(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__Option__Eff__Req* p_q, int64_t p_line) { return ({ __auto_type s0 = p_q; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ __auto_type v_rq_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_rq_0; ({ __auto_type v_proto_1 = s1->u.C_Eff__Req.f_p; __auto_type v_op_2 = s1->u.C_Eff__Req.f_op; ({ __auto_type res_ = ({ __auto_type s3 = p_st; ({ __auto_type v_cs_3 = s3->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__innermost(p_r, v_cs_3, v_proto_1); s4->tag == 0 ? ({ ({ struct E_Flow__At* o4 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o4->tag = 0; o4->u.C_Flow__At.f_st = p_st; o4->u.C_Flow__At.f_p = p_p; o4; }); }) : ({ __auto_type v_c_4 = s4->u.C_Coll__Some.f_v; f_Flow__step(p_r, p_st, p_p, v_c_4, v_op_2, p_line); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Flow__Src* f_Flow__inRegion(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Flow__Src* p_acc) { return ({ __auto_type s0 = f_Flow__innermost(p_r, p_cs, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6}))); s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_c_0; ({ __auto_type v_id_1 = s1->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ struct E_Coll__List__Flow__Src* o2 = (struct E_Coll__List__Flow__Src*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Src, u) + sizeof(((struct E_Coll__List__Flow__Src*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Flow__Src* o2 = (struct E_Flow__Src*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Src, u) + sizeof(((struct E_Flow__Src*)0)->u.C_Flow__SCap))); o2->tag = 0; o2->u.C_Flow__SCap.f_c = v_id_1; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Flow__Cap* f_Flow__innermost(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Flow__Cap); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Flow__Cap.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_p_2, p_proto) ? ({ struct E_Coll__Option__Flow__Cap* o3 = (struct E_Coll__Option__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Flow__Cap, u) + sizeof(((struct E_Coll__Option__Flow__Cap*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_c_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; p_r = t0; p_cs = t1; p_proto = t2; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; })); res_; }); }); }); res_; }); }); }); } -static bool f_Flow__isCtor(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_cases_2 = s2->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = (f_Flow__caseIn(v_cases_2, p_f) ? true : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Enum* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_r = t0; p_es = t1; p_f = t2; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Flow__CapB* f_Flow__regionBs(srs_cap* p_eff__Region, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__Flow__CapB(p_eff__Region, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_proto_2, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6}))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__CapB* t1 = v_rest_1; struct E_Coll__List__Flow__CapB* t2 = ({ struct E_Coll__List__Flow__CapB* o3 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_b_0; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__CapB* t1 = v_rest_1; struct E_Coll__List__Flow__CapB* t2 = p_acc; p_eff__Region = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Flow__CapB* f_Coll__rev__Flow__CapB(srs_cap* p_eff__Region, struct E_Coll__List__Flow__CapB* p_xs) { return f_Coll__revOnto__Flow__CapB(p_eff__Region, p_xs, (&N_Coll__Nil__Flow__CapB)); } +static struct E_Coll__List__Flow__CapB* f_Coll__revOnto__Flow__CapB(srs_cap* p_eff__Region, struct E_Coll__List__Flow__CapB* p_xs, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__CapB* t1 = v_t_1; struct E_Coll__List__Flow__CapB* t2 = ({ struct E_Coll__List__Flow__CapB* o2 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }); }); } +static struct E_Coll__List__Flow__Src* f_Flow__regionSrcs(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Src* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__capFor(p_eff__Region, p_cs, p_chosen, v_b_0); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = p_cs; struct E_Coll__List__Sym__Sym* t2 = p_chosen; struct E_Coll__List__Flow__CapB* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = p_acc; p_eff__Region = t0; p_cs = t1; p_chosen = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s3 = v_c_2; ({ __auto_type v_id_3 = s3->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = p_cs; struct E_Coll__List__Sym__Sym* t2 = p_chosen; struct E_Coll__List__Flow__CapB* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = ({ struct E_Coll__List__Flow__Src* o4 = (struct E_Coll__List__Flow__Src*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Src, u) + sizeof(((struct E_Coll__List__Flow__Src*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Flow__Src* o4 = (struct E_Flow__Src*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Src, u) + sizeof(((struct E_Flow__Src*)0)->u.C_Flow__SCap))); o4->tag = 0; o4->u.C_Flow__SCap.f_c = v_id_3; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_cs = t1; p_chosen = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__Src*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Flow__At* f_Flow__bindVal(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Sym__Sym* p_x, struct E_Ast__Expr* p_v) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, p_v); ({ __auto_type v_st1_0 = s0->u.C_Flow__At.f_st; __auto_type v_pv_1 = s0->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s2 = v_st1_0; ({ __auto_type v_cs_2 = s2->u.C_Flow__St.f_caps; ({ __auto_type res_ = f_Flow__assignAll(p_eff__Region, v_st1_0, v_pv_1, ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = p_x; o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o3; }), f_Flow__srcs(p_eff__Region, p_cx, v_cs_2, p_v, (&N_Coll__Nil__Flow__Src))); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Flow__At* f_Flow__assignAll(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv) { return ({ __auto_type s0 = p_sv; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s0 = f_Flow__next(p_eff__Region, p_st, p_p); ({ __auto_type v_st1_0 = s0->u.C_Flow__At.f_st; __auto_type v_a_1 = s0->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st2_2 = f_Flow__assignFacts(p_eff__Region, v_st1_0, v_a_1, p_xs, p_sv); __auto_type res_ = f_Flow__next(p_eff__Region, v_st2_2, v_a_1); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Flow__St* f_Flow__assignFacts(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_a, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Flow__Src* p_sv) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__St* t1 = f_Flow__srcFacts(p_eff__Region, f_Flow__add(p_eff__Region, p_st, f_Flow__fAssigns(p_eff__Region, p_a, v_x_0)), p_a, v_x_0, p_sv); int64_t t2 = p_a; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Coll__List__Flow__Src* t4 = p_sv; p_eff__Region = t0; p_st = t1; p_a = t2; p_xs = t3; p_sv = t4; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); } +static struct E_Flow__St* f_Flow__srcFacts(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_a, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__Src* p_sv) { srs_tail: return ({ __auto_type s0 = p_sv; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_c_2 = s2->u.C_Flow__SCap.f_c; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__St* t1 = f_Flow__add(p_eff__Region, p_st, f_Flow__fAssign(p_eff__Region, p_a, p_x, v_c_2)); int64_t t2 = p_a; struct E_Sym__Sym* t3 = p_x; struct E_Coll__List__Flow__Src* t4 = v_rest_1; p_eff__Region = t0; p_st = t1; p_a = t2; p_x = t3; p_sv = t4; goto srs_tail; (struct E_Flow__St*){0}; }); }) : ({ __auto_type v_y_2 = s2->u.C_Flow__SVar.f_x; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__St* t1 = f_Flow__add(p_eff__Region, p_st, f_Flow__fAssignFrom(p_eff__Region, p_a, p_x, v_y_2)); int64_t t2 = p_a; struct E_Sym__Sym* t3 = p_x; struct E_Coll__List__Flow__Src* t4 = v_rest_1; p_eff__Region = t0; p_st = t1; p_a = t2; p_x = t3; p_sv = t4; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); }); }); } +static struct E_Flow__At* f_Flow__exprs(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, v_x_0); ({ __auto_type v_st2_2 = s2->u.C_Flow__At.f_st; __auto_type v_p2_3 = s2->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = v_st2_2; int64_t t3 = v_p2_3; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_p = t3; p_xs = t4; goto srs_tail; (struct E_Flow__At*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__merge(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_m, int64_t p_line) { return ({ __auto_type res_ = f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, p_st, f_Flow__fMerge(p_eff__Region, p_m)), f_Flow__fLine(p_eff__Region, p_m, p_line)); res_; }); } +static struct E_Flow__At* f_Flow__step(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, struct E_Flow__Cap* p_c, struct E_Sym__Sym* p_op, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_c; ({ __auto_type v_id_0 = s0->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ __auto_type s1 = f_Flow__next(p_eff__Region, p_st, p_p); ({ __auto_type v_st1_1 = s1->u.C_Flow__At.f_st; __auto_type v_s_2 = s1->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__fresh(p_eff__Region, v_st1_1); ({ __auto_type v_st2_3 = s3->u.C_Flow__At.f_st; __auto_type v_q_4 = s3->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st3_5 = f_Flow__add(p_eff__Region, v_st2_3, f_Flow__fStep(p_eff__Region, v_s_2, v_q_4, v_id_0, p_op)); __auto_type res_ = ({ struct E_Flow__At* o6 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o6->tag = 0; o6->u.C_Flow__At.f_st = f_Flow__add(p_eff__Region, v_st3_5, f_Flow__fLine(p_eff__Region, v_s_2, p_line)); o6->u.C_Flow__At.f_p = v_q_4; o6; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Flow__At* f_Flow__alloc(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, int64_t p_line) { return f_Flow__request(p_eff__Region, p_st, p_p, ({ struct E_Coll__Option__Eff__Req* o0 = (struct E_Coll__Option__Eff__Req*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Eff__Req, u) + sizeof(((struct E_Coll__Option__Eff__Req*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Eff__Req* o0 = (struct E_Eff__Req*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Eff__Req, u) + sizeof(((struct E_Eff__Req*)0)->u.C_Eff__Req))); o0->tag = 0; o0->u.C_Eff__Req.f_p = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6})); o0->u.C_Eff__Req.f_op = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"alloc", 5})); o0; }); o0; }), p_line); } +static struct E_Flow__At* f_Flow__request(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__Option__Eff__Req* p_q, int64_t p_line) { return ({ __auto_type s0 = p_q; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ __auto_type v_rq_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_rq_0; ({ __auto_type v_proto_1 = s1->u.C_Eff__Req.f_p; __auto_type v_op_2 = s1->u.C_Eff__Req.f_op; ({ __auto_type res_ = ({ __auto_type s3 = p_st; ({ __auto_type v_cs_3 = s3->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__innermost(p_eff__Region, v_cs_3, v_proto_1); s4->tag == 0 ? ({ ({ struct E_Flow__At* o4 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o4->tag = 0; o4->u.C_Flow__At.f_st = p_st; o4->u.C_Flow__At.f_p = p_p; o4; }); }) : ({ __auto_type v_c_4 = s4->u.C_Coll__Some.f_v; f_Flow__step(p_eff__Region, p_st, p_p, v_c_4, v_op_2, p_line); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Flow__Src* f_Flow__inRegion(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Flow__Src* p_acc) { return ({ __auto_type s0 = f_Flow__innermost(p_eff__Region, p_cs, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6}))); s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_c_0; ({ __auto_type v_id_1 = s1->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ struct E_Coll__List__Flow__Src* o2 = (struct E_Coll__List__Flow__Src*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Src, u) + sizeof(((struct E_Coll__List__Flow__Src*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Flow__Src* o2 = (struct E_Flow__Src*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Src, u) + sizeof(((struct E_Flow__Src*)0)->u.C_Flow__SCap))); o2->tag = 0; o2->u.C_Flow__SCap.f_c = v_id_1; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Flow__Cap* f_Flow__innermost(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Flow__Cap); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Flow__Cap.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_p_2, p_proto) ? ({ struct E_Coll__Option__Flow__Cap* o3 = (struct E_Coll__Option__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Flow__Cap, u) + sizeof(((struct E_Coll__Option__Flow__Cap*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_c_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; p_eff__Region = t0; p_cs = t1; p_proto = t2; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; })); res_; }); }); }); res_; }); }); }); } +static bool f_Flow__isCtor(struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_cases_2 = s2->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = (f_Flow__caseIn(v_cases_2, p_f) ? true : ({ struct E_Coll__List__Ast__Enum* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_f; p_es = t0; p_f = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Flow__caseIn(struct E_Coll__List__Ast__Case* p_cases, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_cases; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? true : ({ struct E_Coll__List__Ast__Case* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_f; p_cases = t0; p_f = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__Fn* f_Flow__fnNamed(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fns, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_fns; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Fn); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? ({ struct E_Coll__Option__Ast__Fn* o3 = (struct E_Coll__Option__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Fn, u) + sizeof(((struct E_Coll__Option__Ast__Fn*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_g_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_r = t0; p_fns = t1; p_f = t2; goto srs_tail; (struct E_Coll__Option__Ast__Fn*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__Proto* f_Flow__protoNamed(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Proto); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Proto.f_name; ({ __auto_type res_ = (f_Sym__eq(v_name_2, p_n) ? ({ struct E_Coll__Option__Ast__Proto* o3 = (struct E_Coll__Option__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Proto, u) + sizeof(((struct E_Coll__Option__Ast__Proto*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_p_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_n; p_r = t0; p_ps = t1; p_n = t2; goto srs_tail; (struct E_Coll__Option__Ast__Proto*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Flow__CapB* f_Flow__capBs(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ f_Coll__rev__Flow__CapB(p_r, p_acc); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; f_Flow__capBsOf(p_r, p_ps, v_rest_1, v_bs_2, p_i, p_acc); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = v_rest_1; int64_t t3 = p_i; struct E_Coll__List__Flow__CapB* t4 = p_acc; p_r = t0; p_ps = t1; p_gs = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = v_rest_1; int64_t t3 = p_i; struct E_Coll__List__Flow__CapB* t4 = p_acc; p_r = t0; p_ps = t1; p_gs = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }); }); }); }); } -static struct E_Coll__List__Flow__CapB* f_Flow__capBsOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_bs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Flow__capBs(p_r, p_ps, p_gs, p_i, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_ty_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_ty_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__protoNamed(p_r, p_ps, v_tn_4); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = p_gs; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); struct E_Coll__List__Flow__CapB* t5 = p_acc; p_r = t0; p_ps = t1; p_gs = t2; p_bs = t3; p_i = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = p_gs; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); struct E_Coll__List__Flow__CapB* t5 = ({ struct E_Coll__List__Flow__CapB* o5 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Flow__CapB* o5 = (struct E_Flow__CapB*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__CapB, u) + sizeof(((struct E_Flow__CapB*)0)->u.C_Flow__CapB))); o5->tag = 0; o5->u.C_Flow__CapB.f_x = v_x_2; o5->u.C_Flow__CapB.f_curly = p_i; o5->u.C_Flow__CapB.f_proto = v_tn_4; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_ps = t1; p_gs = t2; p_bs = t3; p_i = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ast__Atom* f_Flow__entryAtoms(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 2 ? ({ __auto_type v_atoms_2 = s2->u.C_Ast__Facts.f_atoms; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Atom* t2 = f_Coll__revOnto__Ast__Atom(p_r, f_Coll__rev__Ast__Atom(p_r, v_atoms_2), p_acc); p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Atom* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Atom* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }); }); }); }); } -static struct E_Coll__List__Ast__Atom* f_Coll__revOnto__Ast__Atom(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_xs, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Atom* t1 = v_t_1; struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }); }); } -static struct E_Coll__List__Ast__Atom* f_Coll__rev__Ast__Atom(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_xs) { return f_Coll__revOnto__Ast__Atom(p_r, p_xs, (&N_Coll__Nil__Ast__Atom)); } -static struct E_Coll__Option__Flow__Cap* f_Flow__capFor(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Flow__CapB* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_b; ({ __auto_type v_i_0 = s0->u.C_Flow__CapB.f_curly; __auto_type v_proto_1 = s0->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s2 = p_chosen; s2->tag == 0 ? ({ f_Flow__onlyCap(p_r, p_cs, v_proto_1, (&N_Coll__None__Flow__Cap)); }) : ({ ({ __auto_type s2 = f_Flow__nthSym(p_r, p_chosen, v_i_0); s2->tag == 0 ? ({ (&N_Coll__None__Flow__Cap); }) : ({ __auto_type v_n_2 = s2->u.C_Coll__Some.f_v; f_Flow__capOfProto(p_r, f_Flow__capNamed(p_r, p_cs, v_n_2), v_proto_1); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Flow__Cap* f_Flow__capOfProto(srs_cap* p_r, struct E_Coll__Option__Flow__Cap* p_c, struct E_Sym__Sym* p_proto) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ p_c; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_x_0; ({ __auto_type v_p_1 = s1->u.C_Flow__Cap.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_p_1, p_proto) ? p_c : (&N_Coll__None__Flow__Cap)); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__nthSym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((p_i == ((int64_t)0)) ? ({ struct E_Coll__Option__Sym__Sym* o2 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_x_0; o2; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; int64_t t2 = (p_i - ((int64_t)1)); p_r = t0; p_xs = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); }); }); } -static struct E_Coll__Option__Flow__Cap* f_Flow__onlyCap(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto, struct E_Coll__Option__Flow__Cap* p_found) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_found; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Flow__Cap.f_name; __auto_type v_p_3 = s2->u.C_Flow__Cap.f_proto; ({ __auto_type res_ = ((!f_Sym__eq(v_p_3, p_proto)) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; struct E_Coll__Option__Flow__Cap* t3 = p_found; p_r = t0; p_cs = t1; p_proto = t2; p_found = t3; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; }) : ({ __auto_type s4 = p_found; s4->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; struct E_Coll__Option__Flow__Cap* t3 = ({ struct E_Coll__Option__Flow__Cap* o4 = (struct E_Coll__Option__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Flow__Cap, u) + sizeof(((struct E_Coll__Option__Flow__Cap*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_c_0; o4; }); p_r = t0; p_cs = t1; p_proto = t2; p_found = t3; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; }); }) : ({ __auto_type v_f_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s5 = v_f_4; ({ __auto_type v_fn_5 = s5->u.C_Flow__Cap.f_name; ({ __auto_type res_ = (f_Sym__eq(v_fn_5, v_n_2) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; struct E_Coll__Option__Flow__Cap* t3 = p_found; p_r = t0; p_cs = t1; p_proto = t2; p_found = t3; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; }) : (&N_Coll__None__Flow__Cap)); res_; }); }); }); res_; }); }); })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Coll__List_1_Flow__Cap* f_Flow__capsFor(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Cap* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_Flow__Cap* o0 = (struct E_Coll__Option__Coll__List_1_Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Flow__Cap, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Flow__Cap*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__Flow__Cap(p_r, p_acc); o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__capFor(p_r, p_cs, p_chosen, v_b_0); s2->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Flow__Cap); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = p_cs; struct E_Coll__List__Sym__Sym* t2 = p_chosen; struct E_Coll__List__Flow__CapB* t3 = v_rest_1; struct E_Coll__List__Flow__Cap* t4 = ({ struct E_Coll__List__Flow__Cap* o3 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_c_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_cs = t1; p_chosen = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Flow__Cap*){0}; }); }); }); }); }); } -static struct E_Coll__List__Flow__Cap* f_Coll__rev__Flow__Cap(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_xs) { return f_Coll__revOnto__Flow__Cap(p_r, p_xs, (&N_Coll__Nil__Flow__Cap)); } -static struct E_Coll__List__Flow__Cap* f_Coll__revOnto__Flow__Cap(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_xs, struct E_Coll__List__Flow__Cap* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_t_1; struct E_Coll__List__Flow__Cap* t2 = ({ struct E_Coll__List__Flow__Cap* o2 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__Cap*){0}; }); }); }); } -static struct E_Flow__At* f_Flow__call(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Fn* p_g, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_name_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_exit_2 = s0->u.C_Ast__Fn.f_exit; ({ struct E_Coll__List__Flow__CapB* v_bs_3 = f_Flow__capBs(p_r, p_ps, v_gs_1, ((int64_t)0), (&N_Coll__Nil__Flow__CapB)); __auto_type res_ = ({ __auto_type s4 = p_st; ({ __auto_type v_cs_4 = s4->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s5 = v_bs_3; s5->tag == 0 ? ({ ({ struct E_Flow__At* o5 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o5->tag = 0; o5->u.C_Flow__At.f_st = p_st; o5->u.C_Flow__At.f_p = p_p; o5; }); }) : ({ ({ __auto_type s5 = f_Flow__capsFor(p_r, v_cs_4, p_chosen, v_bs_3, (&N_Coll__Nil__Flow__Cap)); s5->tag == 0 ? ({ ({ struct E_Flow__At* o5 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o5->tag = 0; o5->u.C_Flow__At.f_st = p_st; o5->u.C_Flow__At.f_p = p_p; o5; }); }) : ({ __auto_type v_caps_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = f_Flow__next(p_r, p_st, p_p); ({ __auto_type v_st1_6 = s6->u.C_Flow__At.f_st; __auto_type v_s_7 = s6->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s8 = f_Flow__fresh(p_r, v_st1_6); ({ __auto_type v_st2_8 = s8->u.C_Flow__At.f_st; __auto_type v_q_9 = s8->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st3_10 = f_Flow__add(p_r, f_Flow__add(p_r, f_Flow__add(p_r, v_st2_8, f_Flow__fCStep(p_r, v_s_7, v_q_9)), f_Flow__fLine(p_r, v_s_7, p_line)), f_Flow__fCallee(p_r, v_s_7, v_name_0)); struct E_Flow__St* v_st4_11 = f_Flow__binds(p_r, v_st3_10, v_s_7, v_caps_5, ((int64_t)0)); struct E_Coll__List__Ast__Atom* v_atoms_12 = f_Flow__entryAtoms(p_r, v_gs_1, (&N_Coll__Nil__Ast__Atom)); struct E_Coll__List__Sym__Sym* v_vars_13 = f_Flow__varsOf(p_r, v_atoms_12, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ({ struct E_Flow__At* o14 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o14->tag = 0; o14->u.C_Flow__At.f_st = f_Flow__sols(p_r, p_ps, v_st4_11, v_s_7, v_bs_3, v_atoms_12, v_exit_2, f_Flow__assigns(p_r, p_ps, f_Flow__ruleModels(p_r, p_ps, v_bs_3, (&N_Coll__Nil__Flow__PM)), v_bs_3, v_atoms_12, v_vars_13, (&N_Coll__Nil__Flow__VS), (&N_Coll__Nil__Coll__List_1_Flow__VS)), ((int64_t)0)); o14->u.C_Flow__At.f_p = v_q_9; o14; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Flow__St* f_Flow__binds(srs_cap* p_r, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__Cap* p_caps, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_id_2 = s2->u.C_Flow__Cap.f_id; ({ struct E_Flow__St* v_st1_3 = f_Flow__add(p_r, p_st, f_Flow__fBind(p_r, p_s, p_i, v_id_2)); struct E_Flow__St* v_st2_4 = ((p_i == ((int64_t)0)) ? f_Flow__add(p_r, v_st1_3, f_Flow__fFirst(p_r, p_s, p_i)) : f_Flow__add(p_r, v_st1_3, f_Flow__fNext(p_r, p_s, (p_i - ((int64_t)1)), p_i))); struct E_Flow__St* v_st3_5 = ({ __auto_type s5 = v_rest_1; s5->tag == 0 ? ({ f_Flow__add(p_r, v_st2_4, f_Flow__fLast(p_r, p_s, p_i)); }) : ({ v_st2_4; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__St* t1 = v_st3_5; int64_t t2 = p_s; struct E_Coll__List__Flow__Cap* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); p_r = t0; p_st = t1; p_s = t2; p_caps = t3; p_i = t4; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__Fn* f_Flow__fnNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fns, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_fns; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Fn); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? ({ struct E_Coll__Option__Ast__Fn* o3 = (struct E_Coll__Option__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Fn, u) + sizeof(((struct E_Coll__Option__Ast__Fn*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_g_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_eff__Region = t0; p_fns = t1; p_f = t2; goto srs_tail; (struct E_Coll__Option__Ast__Fn*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__Proto* f_Flow__protoNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Proto); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Proto.f_name; ({ __auto_type res_ = (f_Sym__eq(v_name_2, p_n) ? ({ struct E_Coll__Option__Ast__Proto* o3 = (struct E_Coll__Option__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Proto, u) + sizeof(((struct E_Coll__Option__Ast__Proto*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_p_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_n; p_eff__Region = t0; p_ps = t1; p_n = t2; goto srs_tail; (struct E_Coll__Option__Ast__Proto*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Flow__CapB* f_Flow__capBs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ f_Coll__rev__Flow__CapB(p_eff__Region, p_acc); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; f_Flow__capBsOf(p_eff__Region, p_ps, v_rest_1, v_bs_2, p_i, p_acc); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = v_rest_1; int64_t t3 = p_i; struct E_Coll__List__Flow__CapB* t4 = p_acc; p_eff__Region = t0; p_ps = t1; p_gs = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = v_rest_1; int64_t t3 = p_i; struct E_Coll__List__Flow__CapB* t4 = p_acc; p_eff__Region = t0; p_ps = t1; p_gs = t2; p_i = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }); }); }); }); } +static struct E_Coll__List__Flow__CapB* f_Flow__capBsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_bs, int64_t p_i, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Flow__capBs(p_eff__Region, p_ps, p_gs, p_i, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_ty_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_ty_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__protoNamed(p_eff__Region, p_ps, v_tn_4); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = p_gs; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); struct E_Coll__List__Flow__CapB* t5 = p_acc; p_eff__Region = t0; p_ps = t1; p_gs = t2; p_bs = t3; p_i = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Group* t2 = p_gs; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); struct E_Coll__List__Flow__CapB* t5 = ({ struct E_Coll__List__Flow__CapB* o5 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Flow__CapB* o5 = (struct E_Flow__CapB*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__CapB, u) + sizeof(((struct E_Flow__CapB*)0)->u.C_Flow__CapB))); o5->tag = 0; o5->u.C_Flow__CapB.f_x = v_x_2; o5->u.C_Flow__CapB.f_curly = p_i; o5->u.C_Flow__CapB.f_proto = v_tn_4; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_ps = t1; p_gs = t2; p_bs = t3; p_i = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ast__Atom* f_Flow__entryAtoms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 2 ? ({ __auto_type v_atoms_2 = s2->u.C_Ast__Facts.f_atoms; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Atom* t2 = f_Coll__revOnto__Ast__Atom(p_eff__Region, f_Coll__rev__Ast__Atom(p_eff__Region, v_atoms_2), p_acc); p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Atom* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Atom* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }); }); }); }); } +static struct E_Coll__List__Ast__Atom* f_Coll__revOnto__Ast__Atom(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_xs, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Atom* t1 = v_t_1; struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Atom*){0}; }); }); }); } +static struct E_Coll__List__Ast__Atom* f_Coll__rev__Ast__Atom(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_xs) { return f_Coll__revOnto__Ast__Atom(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Atom)); } +static struct E_Coll__Option__Flow__Cap* f_Flow__capFor(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Flow__CapB* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_b; ({ __auto_type v_i_0 = s0->u.C_Flow__CapB.f_curly; __auto_type v_proto_1 = s0->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s2 = p_chosen; s2->tag == 0 ? ({ f_Flow__onlyCap(p_eff__Region, p_cs, v_proto_1, (&N_Coll__None__Flow__Cap)); }) : ({ ({ __auto_type s2 = f_Flow__nthSym(p_eff__Region, p_chosen, v_i_0); s2->tag == 0 ? ({ (&N_Coll__None__Flow__Cap); }) : ({ __auto_type v_n_2 = s2->u.C_Coll__Some.f_v; f_Flow__capOfProto(f_Flow__capNamed(p_eff__Region, p_cs, v_n_2), v_proto_1); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Flow__Cap* f_Flow__capOfProto(struct E_Coll__Option__Flow__Cap* p_c, struct E_Sym__Sym* p_proto) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ p_c; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_x_0; ({ __auto_type v_p_1 = s1->u.C_Flow__Cap.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_p_1, p_proto) ? p_c : (&N_Coll__None__Flow__Cap)); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__nthSym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((p_i == ((int64_t)0)) ? ({ struct E_Coll__Option__Sym__Sym* o2 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_x_0; o2; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; int64_t t2 = (p_i - ((int64_t)1)); p_eff__Region = t0; p_xs = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); }); }); } +static struct E_Coll__Option__Flow__Cap* f_Flow__onlyCap(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Sym__Sym* p_proto, struct E_Coll__Option__Flow__Cap* p_found) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_found; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Flow__Cap.f_name; __auto_type v_p_3 = s2->u.C_Flow__Cap.f_proto; ({ __auto_type res_ = ((!f_Sym__eq(v_p_3, p_proto)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; struct E_Coll__Option__Flow__Cap* t3 = p_found; p_eff__Region = t0; p_cs = t1; p_proto = t2; p_found = t3; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; }) : ({ __auto_type s4 = p_found; s4->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; struct E_Coll__Option__Flow__Cap* t3 = ({ struct E_Coll__Option__Flow__Cap* o4 = (struct E_Coll__Option__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Flow__Cap, u) + sizeof(((struct E_Coll__Option__Flow__Cap*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_c_0; o4; }); p_eff__Region = t0; p_cs = t1; p_proto = t2; p_found = t3; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; }); }) : ({ __auto_type v_f_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s5 = v_f_4; ({ __auto_type v_fn_5 = s5->u.C_Flow__Cap.f_name; ({ __auto_type res_ = (f_Sym__eq(v_fn_5, v_n_2) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_proto; struct E_Coll__Option__Flow__Cap* t3 = p_found; p_eff__Region = t0; p_cs = t1; p_proto = t2; p_found = t3; goto srs_tail; (struct E_Coll__Option__Flow__Cap*){0}; }) : (&N_Coll__None__Flow__Cap)); res_; }); }); }); res_; }); }); })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Coll__List_1_Flow__Cap* f_Flow__capsFor(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__Cap* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_Flow__Cap* o0 = (struct E_Coll__Option__Coll__List_1_Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Flow__Cap, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Flow__Cap*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__Flow__Cap(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__capFor(p_eff__Region, p_cs, p_chosen, v_b_0); s2->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Flow__Cap); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = p_cs; struct E_Coll__List__Sym__Sym* t2 = p_chosen; struct E_Coll__List__Flow__CapB* t3 = v_rest_1; struct E_Coll__List__Flow__Cap* t4 = ({ struct E_Coll__List__Flow__Cap* o3 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_c_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_cs = t1; p_chosen = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Flow__Cap*){0}; }); }); }); }); }); } +static struct E_Coll__List__Flow__Cap* f_Coll__rev__Flow__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_xs) { return f_Coll__revOnto__Flow__Cap(p_eff__Region, p_xs, (&N_Coll__Nil__Flow__Cap)); } +static struct E_Coll__List__Flow__Cap* f_Coll__revOnto__Flow__Cap(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_xs, struct E_Coll__List__Flow__Cap* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_t_1; struct E_Coll__List__Flow__Cap* t2 = ({ struct E_Coll__List__Flow__Cap* o2 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__Cap*){0}; }); }); }); } +static struct E_Flow__At* f_Flow__call(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Fn* p_g, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_name_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_exit_2 = s0->u.C_Ast__Fn.f_exit; ({ struct E_Coll__List__Flow__CapB* v_bs_3 = f_Flow__capBs(p_eff__Region, p_ps, v_gs_1, ((int64_t)0), (&N_Coll__Nil__Flow__CapB)); __auto_type res_ = ({ __auto_type s4 = p_st; ({ __auto_type v_cs_4 = s4->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s5 = v_bs_3; s5->tag == 0 ? ({ ({ struct E_Flow__At* o5 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o5->tag = 0; o5->u.C_Flow__At.f_st = p_st; o5->u.C_Flow__At.f_p = p_p; o5; }); }) : ({ ({ __auto_type s5 = f_Flow__capsFor(p_eff__Region, v_cs_4, p_chosen, v_bs_3, (&N_Coll__Nil__Flow__Cap)); s5->tag == 0 ? ({ ({ struct E_Flow__At* o5 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o5->tag = 0; o5->u.C_Flow__At.f_st = p_st; o5->u.C_Flow__At.f_p = p_p; o5; }); }) : ({ __auto_type v_caps_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = f_Flow__next(p_eff__Region, p_st, p_p); ({ __auto_type v_st1_6 = s6->u.C_Flow__At.f_st; __auto_type v_s_7 = s6->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s8 = f_Flow__fresh(p_eff__Region, v_st1_6); ({ __auto_type v_st2_8 = s8->u.C_Flow__At.f_st; __auto_type v_q_9 = s8->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st3_10 = f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, v_st2_8, f_Flow__fCStep(p_eff__Region, v_s_7, v_q_9)), f_Flow__fLine(p_eff__Region, v_s_7, p_line)), f_Flow__fCallee(p_eff__Region, v_s_7, v_name_0)); struct E_Flow__St* v_st4_11 = f_Flow__binds(p_eff__Region, v_st3_10, v_s_7, v_caps_5, ((int64_t)0)); struct E_Coll__List__Ast__Atom* v_atoms_12 = f_Flow__entryAtoms(p_eff__Region, v_gs_1, (&N_Coll__Nil__Ast__Atom)); struct E_Coll__List__Sym__Sym* v_vars_13 = f_Flow__varsOf(p_eff__Region, v_atoms_12, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ({ struct E_Flow__At* o14 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o14->tag = 0; o14->u.C_Flow__At.f_st = f_Flow__sols(p_eff__Region, p_ps, v_st4_11, v_s_7, v_bs_3, v_atoms_12, v_exit_2, f_Flow__assigns(p_eff__Region, p_ps, f_Flow__ruleModels(p_eff__Region, p_ps, v_bs_3, (&N_Coll__Nil__Flow__PM)), v_bs_3, v_atoms_12, v_vars_13, (&N_Coll__Nil__Flow__VS), (&N_Coll__Nil__Coll__List_1_Flow__VS)), ((int64_t)0)); o14->u.C_Flow__At.f_p = v_q_9; o14; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Flow__St* f_Flow__binds(srs_cap* p_eff__Region, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__Cap* p_caps, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_id_2 = s2->u.C_Flow__Cap.f_id; ({ struct E_Flow__St* v_st1_3 = f_Flow__add(p_eff__Region, p_st, f_Flow__fBind(p_eff__Region, p_s, p_i, v_id_2)); struct E_Flow__St* v_st2_4 = ((p_i == ((int64_t)0)) ? f_Flow__add(p_eff__Region, v_st1_3, f_Flow__fFirst(p_eff__Region, p_s, p_i)) : f_Flow__add(p_eff__Region, v_st1_3, f_Flow__fNext(p_eff__Region, p_s, (p_i - ((int64_t)1)), p_i))); struct E_Flow__St* v_st3_5 = ({ __auto_type s5 = v_rest_1; s5->tag == 0 ? ({ f_Flow__add(p_eff__Region, v_st2_4, f_Flow__fLast(p_eff__Region, p_s, p_i)); }) : ({ v_st2_4; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__St* t1 = v_st3_5; int64_t t2 = p_s; struct E_Coll__List__Flow__Cap* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_st = t1; p_s = t2; p_caps = t3; p_i = t4; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); } static bool f_Flow__isVar(struct E_Sym__Sym* p_x) { return ({ int64_t v_c_0 = Str__at(f_Sym__str(p_x), ((int64_t)0)); __auto_type res_ = ((v_c_0 >= ((int64_t)97)) && (v_c_0 <= ((int64_t)122))); res_; }); } -static struct E_Coll__List__Ast__Term* f_Flow__statePos(srs_cap* p_r, struct E_Ast__Atom* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_rel_0 = s0->u.C_Ast__Atom.f_rel; __auto_type v_args_1 = s0->u.C_Ast__Atom.f_args; ({ __auto_type res_ = (f_Sym__eq(v_rel_0, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"at", 2}))) ? f_Flow__dropOne(p_r, v_args_1) : (f_Sym__eq(v_rel_0, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"next", 4}))) ? f_Flow__firstLast(p_r, v_args_1) : v_args_1)); res_; }); }); }); res_; }); } -static struct E_Coll__List__Ast__Term* f_Flow__dropOne(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_xs; }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; v_rest_0; }); }); } -static struct E_Coll__List__Ast__Term* f_Flow__firstLast(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_r1_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_r1_1; s2->tag == 1 ? ({ __auto_type v_r2_2 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s3 = v_r2_2; s3->tag == 1 ? ({ __auto_type v_b_3 = s3->u.C_Coll__Cons.f_h; ({ struct E_Coll__List__Ast__Term* o4 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_a_0; o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__Ast__Term* o4 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_b_3; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ast__Term); o4; }); o4; }); }) : ({ (&N_Coll__Nil__Ast__Term); }); }); }) : ({ (&N_Coll__Nil__Ast__Term); }); }); }) : ({ (&N_Coll__Nil__Ast__Term); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__termSym(srs_cap* p_r, struct E_Ast__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_Ast__TName.f_n; ({ struct E_Coll__Option__Sym__Sym* o1 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = v_n_0; o1; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }); } -static struct E_Coll__List__Sym__Sym* f_Flow__varsOf(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_r, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Atom* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Flow__varsIn(p_r, f_Flow__statePos(p_r, v_a_0), p_acc); p_r = t0; p_atoms = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Coll__rev__Sym__Sym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs) { return f_Coll__revOnto__Sym__Sym(p_r, p_xs, (&N_Coll__Nil__Sym__Sym)); } -static struct E_Coll__List__Sym__Sym* f_Flow__varsIn(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__termSym(p_r, v_t_0); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Some.f_v; ((f_Flow__isVar(v_x_2) && (!f_Flow__memberSym(v_x_2, p_acc))) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); }); }); }); }); } -static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assigns(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vars, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc) { return ({ __auto_type s0 = p_vars; s0->tag == 0 ? ({ (f_Flow__atomsHold(p_r, p_ps, p_ms, p_bs, p_atoms, p_a) ? ({ struct E_Coll__List__Coll__List_1_Flow__VS* o0 = (struct E_Coll__List__Coll__List_1_Flow__VS*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Flow__VS, u) + sizeof(((struct E_Coll__List__Coll__List_1_Flow__VS*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = p_acc; o0; }) : p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; f_Flow__assignEach(p_r, p_ps, p_ms, p_bs, p_atoms, v_x_0, v_rest_1, p_a, f_Flow__statesOf(p_r, p_ps, p_bs, (&N_Coll__Nil__Sym__Sym)), p_acc); }); }); } -static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assignEach(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_rest, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Sym__Sym* p_ss, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = p_atoms; struct E_Sym__Sym* t5 = p_x; struct E_Coll__List__Sym__Sym* t6 = p_rest; struct E_Coll__List__Flow__VS* t7 = p_a; struct E_Coll__List__Sym__Sym* t8 = v_more_1; struct E_Coll__List__Coll__List_1_Flow__VS* t9 = f_Flow__assigns(p_r, p_ps, p_ms, p_bs, p_atoms, p_rest, ({ struct E_Coll__List__Flow__VS* o2 = (struct E_Coll__List__Flow__VS*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__VS, u) + sizeof(((struct E_Coll__List__Flow__VS*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Flow__VS* o2 = (struct E_Flow__VS*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__VS, u) + sizeof(((struct E_Flow__VS*)0)->u.C_Flow__VS))); o2->tag = 0; o2->u.C_Flow__VS.f_x = p_x; o2->u.C_Flow__VS.f_s = v_s_0; o2; }); o2->u.C_Coll__Cons.f_t = p_a; o2; }), p_acc); p_r = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_x = t5; p_rest = t6; p_a = t7; p_ss = t8; p_acc = t9; goto srs_tail; (struct E_Coll__List__Coll__List_1_Flow__VS*){0}; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Flow__statesOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__protoNamed(p_r, p_ps, v_proto_2); s3->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = p_acc; p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ __auto_type v_pr_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_pr_3; ({ __auto_type v_states_4 = s4->u.C_Ast__Proto.f_states; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = f_Flow__addNew(p_r, v_states_4, p_acc); p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Flow__addNew(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Flow__memberSym(v_x_0, p_acc) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); }); }); } +static struct E_Coll__List__Ast__Term* f_Flow__statePos(srs_cap* p_eff__Region, struct E_Ast__Atom* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_rel_0 = s0->u.C_Ast__Atom.f_rel; __auto_type v_args_1 = s0->u.C_Ast__Atom.f_args; ({ __auto_type res_ = (f_Sym__eq(v_rel_0, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"at", 2}))) ? f_Flow__dropOne(v_args_1) : (f_Sym__eq(v_rel_0, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"next", 4}))) ? f_Flow__firstLast(p_eff__Region, v_args_1) : v_args_1)); res_; }); }); }); res_; }); } +static struct E_Coll__List__Ast__Term* f_Flow__dropOne(struct E_Coll__List__Ast__Term* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_xs; }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; v_rest_0; }); }); } +static struct E_Coll__List__Ast__Term* f_Flow__firstLast(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_r1_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_r1_1; s2->tag == 1 ? ({ __auto_type v_r2_2 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s3 = v_r2_2; s3->tag == 1 ? ({ __auto_type v_b_3 = s3->u.C_Coll__Cons.f_h; ({ struct E_Coll__List__Ast__Term* o4 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_a_0; o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__Ast__Term* o4 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_b_3; o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ast__Term); o4; }); o4; }); }) : ({ (&N_Coll__Nil__Ast__Term); }); }); }) : ({ (&N_Coll__Nil__Ast__Term); }); }); }) : ({ (&N_Coll__Nil__Ast__Term); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__termSym(srs_cap* p_eff__Region, struct E_Ast__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_Ast__TName.f_n; ({ struct E_Coll__Option__Sym__Sym* o1 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = v_n_0; o1; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }); } +static struct E_Coll__List__Sym__Sym* f_Flow__varsOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Atom* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Flow__varsIn(p_eff__Region, f_Flow__statePos(p_eff__Region, v_a_0), p_acc); p_eff__Region = t0; p_atoms = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Coll__rev__Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs) { return f_Coll__revOnto__Sym__Sym(p_eff__Region, p_xs, (&N_Coll__Nil__Sym__Sym)); } +static struct E_Coll__List__Sym__Sym* f_Flow__varsIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__termSym(p_eff__Region, v_t_0); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Some.f_v; ((f_Flow__isVar(v_x_2) && (!f_Flow__memberSym(v_x_2, p_acc))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); }); }); }); }); } +static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assigns(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vars, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc) { return ({ __auto_type s0 = p_vars; s0->tag == 0 ? ({ (f_Flow__atomsHold(p_eff__Region, p_ps, p_ms, p_bs, p_atoms, p_a) ? ({ struct E_Coll__List__Coll__List_1_Flow__VS* o0 = (struct E_Coll__List__Coll__List_1_Flow__VS*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Flow__VS, u) + sizeof(((struct E_Coll__List__Coll__List_1_Flow__VS*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = p_acc; o0; }) : p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; f_Flow__assignEach(p_eff__Region, p_ps, p_ms, p_bs, p_atoms, v_x_0, v_rest_1, p_a, f_Flow__statesOf(p_eff__Region, p_ps, p_bs, (&N_Coll__Nil__Sym__Sym)), p_acc); }); }); } +static struct E_Coll__List__Coll__List_1_Flow__VS* f_Flow__assignEach(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_rest, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Sym__Sym* p_ss, struct E_Coll__List__Coll__List_1_Flow__VS* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = p_atoms; struct E_Sym__Sym* t5 = p_x; struct E_Coll__List__Sym__Sym* t6 = p_rest; struct E_Coll__List__Flow__VS* t7 = p_a; struct E_Coll__List__Sym__Sym* t8 = v_more_1; struct E_Coll__List__Coll__List_1_Flow__VS* t9 = f_Flow__assigns(p_eff__Region, p_ps, p_ms, p_bs, p_atoms, p_rest, ({ struct E_Coll__List__Flow__VS* o2 = (struct E_Coll__List__Flow__VS*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__VS, u) + sizeof(((struct E_Coll__List__Flow__VS*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Flow__VS* o2 = (struct E_Flow__VS*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__VS, u) + sizeof(((struct E_Flow__VS*)0)->u.C_Flow__VS))); o2->tag = 0; o2->u.C_Flow__VS.f_x = p_x; o2->u.C_Flow__VS.f_s = v_s_0; o2; }); o2->u.C_Coll__Cons.f_t = p_a; o2; }), p_acc); p_eff__Region = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_x = t5; p_rest = t6; p_a = t7; p_ss = t8; p_acc = t9; goto srs_tail; (struct E_Coll__List__Coll__List_1_Flow__VS*){0}; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Flow__statesOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__protoNamed(p_eff__Region, p_ps, v_proto_2); s3->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = p_acc; p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ __auto_type v_pr_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_pr_3; ({ __auto_type v_states_4 = s4->u.C_Ast__Proto.f_states; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = f_Flow__addNew(p_eff__Region, v_states_4, p_acc); p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Flow__addNew(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Flow__memberSym(v_x_0, p_acc) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); }); }); } static struct E_Sym__Sym* f_Flow__resolve(struct E_Coll__List__Flow__VS* p_a, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ p_x; }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_v_0; ({ __auto_type v_y_2 = s2->u.C_Flow__VS.f_x; __auto_type v_s_3 = s2->u.C_Flow__VS.f_s; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? v_s_3 : ({ struct E_Coll__List__Flow__VS* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_x; p_a = t0; p_x = t1; goto srs_tail; (struct E_Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } -static bool f_Flow__atomsHold(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Flow__VS* p_a) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_at_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_at_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = (f_Sym__eq(v_rel_2, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"at", 2}))) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Coll__List__Flow__VS* t5 = p_a; p_r = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_a = t5; goto srs_tail; (bool){0}; }) : (f_Sym__eq(v_rel_2, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"next", 4}))) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__nextHolds(p_r, p_ps, p_bs, v_args_3, p_a); s4->tag == 0 ? ({ false; }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Coll__List__Flow__VS* t5 = p_a; p_r = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_a = t5; goto srs_tail; (bool){0}; }); }); }); res_; }) : (f_Flow__ruleHolds(p_r, p_ms, v_rel_2, f_Flow__tupleOf(p_r, v_args_3, p_a, (&N_Coll__Nil__D__Val))) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Coll__List__Flow__VS* t5 = p_a; p_r = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_a = t5; goto srs_tail; (bool){0}; }) : false))); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Val* f_Flow__tupleOf(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__D__Val(p_r, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_Ast__TName.f_n; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Flow__VS* t2 = p_a; struct E_Coll__List__D__Val* t3 = ({ struct E_Coll__List__D__Val* o3 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o3 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o3->tag = 0; o3->u.C_D__VSym.f_s = f_Flow__resolve(p_a, v_n_2); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_a = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }) : ({ __auto_type v_v_2 = s2->u.C_Ast__TNum.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Flow__VS* t2 = p_a; struct E_Coll__List__D__Val* t3 = ({ struct E_Coll__List__D__Val* o3 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o3 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o3->tag = 1; o3->u.C_D__VInt.f_v = v_v_2; o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_a = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }); }); }); }); } -static bool f_Flow__ruleHolds(srs_cap* p_r, struct E_Coll__List__Flow__PM* p_ms, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_pm_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_pm_0; ({ __auto_type v_m_2 = s2->u.C_Flow__PM.f_m; ({ __auto_type res_ = (f_Flow__inTuples(f_D__tuples(p_r, v_m_2, p_rel), p_t) ? true : ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__PM* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__D__Val* t3 = p_t; p_r = t0; p_ms = t1; p_rel = t2; p_t = t3; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } +static bool f_Flow__atomsHold(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__PM* p_ms, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Flow__VS* p_a) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_at_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_at_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = (f_Sym__eq(v_rel_2, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"at", 2}))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Coll__List__Flow__VS* t5 = p_a; p_eff__Region = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_a = t5; goto srs_tail; (bool){0}; }) : (f_Sym__eq(v_rel_2, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"next", 4}))) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__nextHolds(p_eff__Region, p_ps, p_bs, v_args_3, p_a); s4->tag == 0 ? ({ false; }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Coll__List__Flow__VS* t5 = p_a; p_eff__Region = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_a = t5; goto srs_tail; (bool){0}; }); }); }); res_; }) : (f_Flow__ruleHolds(p_eff__Region, p_ms, v_rel_2, f_Flow__tupleOf(p_eff__Region, v_args_3, p_a, (&N_Coll__Nil__D__Val))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__PM* t2 = p_ms; struct E_Coll__List__Flow__CapB* t3 = p_bs; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Coll__List__Flow__VS* t5 = p_a; p_eff__Region = t0; p_ps = t1; p_ms = t2; p_bs = t3; p_atoms = t4; p_a = t5; goto srs_tail; (bool){0}; }) : false))); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Val* f_Flow__tupleOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__D__Val* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__D__Val(p_eff__Region, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_Ast__TName.f_n; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Flow__VS* t2 = p_a; struct E_Coll__List__D__Val* t3 = ({ struct E_Coll__List__D__Val* o3 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o3 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o3->tag = 0; o3->u.C_D__VSym.f_s = f_Flow__resolve(p_a, v_n_2); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_a = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }) : ({ __auto_type v_v_2 = s2->u.C_Ast__TNum.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Flow__VS* t2 = p_a; struct E_Coll__List__D__Val* t3 = ({ struct E_Coll__List__D__Val* o3 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o3 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o3->tag = 1; o3->u.C_D__VInt.f_v = v_v_2; o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_a = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Val*){0}; }); }); }); }); }); } +static bool f_Flow__ruleHolds(srs_cap* p_eff__Region, struct E_Coll__List__Flow__PM* p_ms, struct E_Sym__Sym* p_rel, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_pm_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_pm_0; ({ __auto_type v_m_2 = s2->u.C_Flow__PM.f_m; ({ __auto_type res_ = (f_Flow__inTuples(f_D__tuples(p_eff__Region, v_m_2, p_rel), p_t) ? true : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__PM* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__D__Val* t3 = p_t; p_eff__Region = t0; p_ms = t1; p_rel = t2; p_t = t3; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Flow__inTuples(struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__D__Val* p_t) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_u_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_D__tupleEq(v_u_0, p_t) ? true : ({ struct E_Coll__List__Coll__List_1_D__Val* t0 = v_rest_1; struct E_Coll__List__D__Val* t1 = p_t; p_ts = t0; p_t = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__List__Flow__PM* f_Flow__ruleModels(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__PM* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__protoNamed(p_r, p_ps, v_proto_2); s3->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : ({ __auto_type v_pr_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_pr_3; ({ __auto_type v_ops_4 = s4->u.C_Ast__Proto.f_ops; __auto_type v_rules_5 = s4->u.C_Ast__Proto.f_rules; ({ __auto_type res_ = ({ __auto_type s6 = v_rules_5; s6->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : ({ ({ __auto_type s6 = f_D__solve(p_r, f_Flow__ruleDefs(p_r, v_rules_5, (&N_Coll__Nil__D__Rule)), f_Flow__nextFacts(p_r, v_ops_4, (&N_Coll__Nil__D__Fact))); s6->tag == 0 ? ({ __auto_type v_m_6 = s6->u.C_D__Solved.f_m; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = ({ struct E_Coll__List__Flow__PM* o7 = (struct E_Coll__List__Flow__PM*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__PM, u) + sizeof(((struct E_Coll__List__Flow__PM*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Flow__PM* o7 = (struct E_Flow__PM*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__PM, u) + sizeof(((struct E_Flow__PM*)0)->u.C_Flow__PM))); o7->tag = 0; o7->u.C_Flow__PM.f_proto = v_proto_2; o7->u.C_Flow__PM.f_m = v_m_6; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : s6->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_r = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__nextFacts(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_trs_3 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Op* t1 = v_rest_1; struct E_Coll__List__D__Fact* t2 = f_Flow__nextOf(p_r, v_name_2, v_trs_3, p_acc); p_r = t0; p_ops = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__nextOf(srs_cap* p_r, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_op; struct E_Coll__List__Ast__Trans* t2 = v_rest_1; struct E_Coll__List__D__Fact* t3 = ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o4 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o4->tag = 0; o4->u.C_D__Fact.f_rel = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"next", 4})); o4->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o4 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o4 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o4->tag = 0; o4->u.C_D__VSym.f_s = v_a_2; o4; }); o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o4 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o4 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o4->tag = 0; o4->u.C_D__VSym.f_s = p_op; o4; }); o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o4 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o4 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o4->tag = 0; o4->u.C_D__VSym.f_s = v_b_3; o4; }); o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o4; }); o4; }); o4; }); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_op = t1; p_trs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Rule* f_Flow__ruleDefs(srs_cap* p_r, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Coll__List__D__Rule* p_acc) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ f_Coll__rev__D__Rule(p_r, p_acc); }) : ({ __auto_type v_rd_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rd_0; ({ __auto_type v_name_2 = s2->u.C_Ast__RuleDef.f_name; __auto_type v_params_3 = s2->u.C_Ast__RuleDef.f_params; __auto_type v_body_4 = s2->u.C_Ast__RuleDef.f_body; ({ struct E_Coll__List__Sym__Sym* v_vs_5 = f_Flow__varsOf(p_r, v_body_4, f_Coll__rev__Sym__Sym(p_r, v_params_3)); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__RuleDef* t1 = v_rest_1; struct E_Coll__List__D__Rule* t2 = ({ struct E_Coll__List__D__Rule* o6 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_D__Rule* o6 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o6->tag = 0; o6->u.C_D__Rule.f_head = ({ struct E_D__Atom* o6 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o6->tag = 0; o6->u.C_D__Atom.f_rel = v_name_2; o6->u.C_D__Atom.f_args = f_Flow__argsOfNames(p_r, v_params_3, v_vs_5, (&N_Coll__Nil__D__Arg)); o6; }); o6->u.C_D__Rule.f_body = f_Flow__bodyLits(p_r, v_body_4, v_vs_5, (&N_Coll__Nil__D__Lit)); o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_r = t0; p_rs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Rule*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_D__Arg* f_Flow__argOf(srs_cap* p_r, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_vs) { return ({ __auto_type s0 = f_Flow__indexSym(p_r, p_vs, p_x, ((int64_t)0)); s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Coll__Some.f_v; ({ struct E_D__Arg* o1 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o1->tag = 0; o1->u.C_D__AVar.f_n = v_i_0; o1; }); }) : ({ ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); o0; }); }); }); } -static struct E_Coll__Option__I64* f_Flow__indexSym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_y_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(p_x, v_y_0) ? ({ struct E_Coll__Option__I64* o2 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_i; o2; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; int64_t t3 = (p_i + ((int64_t)1)); p_r = t0; p_xs = t1; p_x = t2; p_i = t3; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); } -static struct E_Coll__List__D__Arg* f_Flow__argsOfNames(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_Coll__rev__D__Arg(p_r, p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Arg* t3 = ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Flow__argOf(p_r, v_x_0, p_vs); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }); }); } -static struct E_Coll__List__D__Arg* f_Coll__rev__D__Arg(srs_cap* p_r, struct E_Coll__List__D__Arg* p_xs) { return f_Coll__revOnto__D__Arg(p_r, p_xs, (&N_Coll__Nil__D__Arg)); } -static struct E_Coll__List__D__Arg* f_Coll__revOnto__D__Arg(srs_cap* p_r, struct E_Coll__List__D__Arg* p_xs, struct E_Coll__List__D__Arg* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Arg* t1 = v_t_1; struct E_Coll__List__D__Arg* t2 = ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }); }); } -static struct E_Coll__List__D__Lit* f_Flow__bodyLits(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Lit* p_acc) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ f_Coll__rev__D__Lit(p_r, p_acc); }) : ({ __auto_type v_at_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_at_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Atom* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Lit* t3 = ({ struct E_Coll__List__D__Lit* o4 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o4 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o4->tag = 0; o4->u.C_D__Pos.f_a = ({ struct E_D__Atom* o4 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o4->tag = 0; o4->u.C_D__Atom.f_rel = v_rel_2; o4->u.C_D__Atom.f_args = f_Flow__termArgs(p_r, v_args_3, p_vs, (&N_Coll__Nil__D__Arg)); o4; }); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_atoms = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Lit*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Lit* f_Coll__rev__D__Lit(srs_cap* p_r, struct E_Coll__List__D__Lit* p_xs) { return f_Coll__revOnto__D__Lit(p_r, p_xs, (&N_Coll__Nil__D__Lit)); } -static struct E_Coll__List__D__Lit* f_Coll__revOnto__D__Lit(srs_cap* p_r, struct E_Coll__List__D__Lit* p_xs, struct E_Coll__List__D__Lit* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__D__Lit* t1 = v_t_1; struct E_Coll__List__D__Lit* t2 = ({ struct E_Coll__List__D__Lit* o2 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Lit*){0}; }); }); }); } -static struct E_Coll__List__D__Arg* f_Flow__termArgs(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__D__Arg(p_r, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_Ast__TNum.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Arg* t3 = ({ struct E_Coll__List__D__Arg* o3 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Arg* o3 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o3->tag = 1; o3->u.C_D__AVal.f_v = ({ struct E_D__Val* o3 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o3->tag = 1; o3->u.C_D__VInt.f_v = v_v_2; o3; }); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }) : ({ __auto_type v_n_2 = s2->u.C_Ast__TName.f_n; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Arg* t3 = ({ struct E_Coll__List__D__Arg* o3 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__argOf(p_r, v_n_2, p_vs); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }); }); }); }); } -static struct E_Coll__List__Flow__CapB* f_Flow__nextHolds(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Term* p_args, struct E_Coll__List__Flow__VS* p_a) { return ({ __auto_type s0 = p_args; s0->tag == 1 ? ({ __auto_type v_t1_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_r1_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_r1_1; s2->tag == 1 ? ({ __auto_type v_t2_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_r2_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_r2_3; s4->tag == 1 ? ({ __auto_type v_t3_4 = s4->u.C_Coll__Cons.f_h; f_Flow__nextIn(p_r, p_ps, p_bs, f_Flow__termSym(p_r, v_t1_0), f_Flow__termSym(p_r, v_t2_2), f_Flow__termSym(p_r, v_t3_4), p_a, (&N_Coll__Nil__Flow__CapB)); }) : ({ (&N_Coll__Nil__Flow__CapB); }); }); }) : ({ (&N_Coll__Nil__Flow__CapB); }); }); }) : ({ (&N_Coll__Nil__Flow__CapB); }); }); } -static struct E_Coll__List__Flow__CapB* f_Flow__nextIn(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__Option__Sym__Sym* p_s1, struct E_Coll__Option__Sym__Sym* p_op, struct E_Coll__Option__Sym__Sym* p_s2, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Flow__CapB* p_acc) { return ({ __auto_type s0 = p_s1; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x1_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = p_op; s1->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_o_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = p_s2; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x2_2 = s2->u.C_Coll__Some.f_v; f_Flow__withTrans(p_r, p_ps, p_bs, f_Flow__resolve(p_a, v_x1_0), v_o_1, f_Flow__resolve(p_a, v_x2_2), p_acc); }); }); }); }); }); }); } -static struct E_Coll__List__Flow__CapB* f_Flow__withTrans(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_b, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ bool v_ok_3 = ({ __auto_type s3 = f_Flow__protoNamed(p_r, p_ps, v_proto_2); s3->tag == 0 ? ({ false; }) : ({ __auto_type v_pr_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_pr_3; ({ __auto_type v_ops_4 = s4->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = f_Flow__opHas(v_ops_4, p_op, p_a, p_b); res_; }); }); }); res_; }); }); }); __auto_type res_ = (v_ok_3 ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_a; struct E_Sym__Sym* t4 = p_op; struct E_Sym__Sym* t5 = p_b; struct E_Coll__List__Flow__CapB* t6 = ({ struct E_Coll__List__Flow__CapB* o4 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_0; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ps = t1; p_bs = t2; p_a = t3; p_op = t4; p_b = t5; p_acc = t6; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_a; struct E_Sym__Sym* t4 = p_op; struct E_Sym__Sym* t5 = p_b; struct E_Coll__List__Flow__CapB* t6 = p_acc; p_r = t0; p_ps = t1; p_bs = t2; p_a = t3; p_op = t4; p_b = t5; p_acc = t6; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Flow__PM* f_Flow__ruleModels(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Flow__PM* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__protoNamed(p_eff__Region, p_ps, v_proto_2); s3->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : ({ __auto_type v_pr_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_pr_3; ({ __auto_type v_ops_4 = s4->u.C_Ast__Proto.f_ops; __auto_type v_rules_5 = s4->u.C_Ast__Proto.f_rules; ({ __auto_type res_ = ({ __auto_type s6 = v_rules_5; s6->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : ({ ({ __auto_type s6 = f_D__solve(p_eff__Region, f_Flow__ruleDefs(p_eff__Region, v_rules_5, (&N_Coll__Nil__D__Rule)), f_Flow__nextFacts(p_eff__Region, v_ops_4, (&N_Coll__Nil__D__Fact))); s6->tag == 0 ? ({ __auto_type v_m_6 = s6->u.C_D__Solved.f_m; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = ({ struct E_Coll__List__Flow__PM* o7 = (struct E_Coll__List__Flow__PM*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__PM, u) + sizeof(((struct E_Coll__List__Flow__PM*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Flow__PM* o7 = (struct E_Flow__PM*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__PM, u) + sizeof(((struct E_Flow__PM*)0)->u.C_Flow__PM))); o7->tag = 0; o7->u.C_Flow__PM.f_proto = v_proto_2; o7->u.C_Flow__PM.f_m = v_m_6; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : s6->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Coll__List__Flow__PM* t3 = p_acc; p_eff__Region = t0; p_ps = t1; p_bs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Flow__PM*){0}; }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__nextFacts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_trs_3 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Op* t1 = v_rest_1; struct E_Coll__List__D__Fact* t2 = f_Flow__nextOf(p_eff__Region, v_name_2, v_trs_3, p_acc); p_eff__Region = t0; p_ops = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__nextOf(srs_cap* p_eff__Region, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_op; struct E_Coll__List__Ast__Trans* t2 = v_rest_1; struct E_Coll__List__D__Fact* t3 = ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Fact* o4 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o4->tag = 0; o4->u.C_D__Fact.f_rel = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"next", 4})); o4->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o4 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o4 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o4->tag = 0; o4->u.C_D__VSym.f_s = v_a_2; o4; }); o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o4 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o4 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o4->tag = 0; o4->u.C_D__VSym.f_s = p_op; o4; }); o4->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o4 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o4 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o4->tag = 0; o4->u.C_D__VSym.f_s = v_b_3; o4; }); o4->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o4; }); o4; }); o4; }); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_op = t1; p_trs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Rule* f_Flow__ruleDefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__RuleDef* p_rs, struct E_Coll__List__D__Rule* p_acc) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ f_Coll__rev__D__Rule(p_eff__Region, p_acc); }) : ({ __auto_type v_rd_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_rd_0; ({ __auto_type v_name_2 = s2->u.C_Ast__RuleDef.f_name; __auto_type v_params_3 = s2->u.C_Ast__RuleDef.f_params; __auto_type v_body_4 = s2->u.C_Ast__RuleDef.f_body; ({ struct E_Coll__List__Sym__Sym* v_vs_5 = f_Flow__varsOf(p_eff__Region, v_body_4, f_Coll__rev__Sym__Sym(p_eff__Region, v_params_3)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__RuleDef* t1 = v_rest_1; struct E_Coll__List__D__Rule* t2 = ({ struct E_Coll__List__D__Rule* o6 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_D__Rule* o6 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o6->tag = 0; o6->u.C_D__Rule.f_head = ({ struct E_D__Atom* o6 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o6->tag = 0; o6->u.C_D__Atom.f_rel = v_name_2; o6->u.C_D__Atom.f_args = f_Flow__argsOfNames(p_eff__Region, v_params_3, v_vs_5, (&N_Coll__Nil__D__Arg)); o6; }); o6->u.C_D__Rule.f_body = f_Flow__bodyLits(p_eff__Region, v_body_4, v_vs_5, (&N_Coll__Nil__D__Lit)); o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_eff__Region = t0; p_rs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Rule*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_D__Arg* f_Flow__argOf(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_vs) { return ({ __auto_type s0 = f_Flow__indexSym(p_eff__Region, p_vs, p_x, ((int64_t)0)); s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Coll__Some.f_v; ({ struct E_D__Arg* o1 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o1->tag = 0; o1->u.C_D__AVar.f_n = v_i_0; o1; }); }) : ({ ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); o0; }); }); }); } +static struct E_Coll__Option__I64* f_Flow__indexSym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_y_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(p_x, v_y_0) ? ({ struct E_Coll__Option__I64* o2 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_i; o2; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; int64_t t3 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_xs = t1; p_x = t2; p_i = t3; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); } +static struct E_Coll__List__D__Arg* f_Flow__argsOfNames(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_Coll__rev__D__Arg(p_eff__Region, p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Arg* t3 = ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Flow__argOf(p_eff__Region, v_x_0, p_vs); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }); }); } +static struct E_Coll__List__D__Arg* f_Coll__rev__D__Arg(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_xs) { return f_Coll__revOnto__D__Arg(p_eff__Region, p_xs, (&N_Coll__Nil__D__Arg)); } +static struct E_Coll__List__D__Arg* f_Coll__revOnto__D__Arg(srs_cap* p_eff__Region, struct E_Coll__List__D__Arg* p_xs, struct E_Coll__List__D__Arg* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Arg* t1 = v_t_1; struct E_Coll__List__D__Arg* t2 = ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }); }); } +static struct E_Coll__List__D__Lit* f_Flow__bodyLits(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Lit* p_acc) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ f_Coll__rev__D__Lit(p_eff__Region, p_acc); }) : ({ __auto_type v_at_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_at_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Atom* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Lit* t3 = ({ struct E_Coll__List__D__Lit* o4 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_D__Lit* o4 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o4->tag = 0; o4->u.C_D__Pos.f_a = ({ struct E_D__Atom* o4 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o4->tag = 0; o4->u.C_D__Atom.f_rel = v_rel_2; o4->u.C_D__Atom.f_args = f_Flow__termArgs(p_eff__Region, v_args_3, p_vs, (&N_Coll__Nil__D__Arg)); o4; }); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_atoms = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Lit*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Lit* f_Coll__rev__D__Lit(srs_cap* p_eff__Region, struct E_Coll__List__D__Lit* p_xs) { return f_Coll__revOnto__D__Lit(p_eff__Region, p_xs, (&N_Coll__Nil__D__Lit)); } +static struct E_Coll__List__D__Lit* f_Coll__revOnto__D__Lit(srs_cap* p_eff__Region, struct E_Coll__List__D__Lit* p_xs, struct E_Coll__List__D__Lit* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__D__Lit* t1 = v_t_1; struct E_Coll__List__D__Lit* t2 = ({ struct E_Coll__List__D__Lit* o2 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__D__Lit*){0}; }); }); }); } +static struct E_Coll__List__D__Arg* f_Flow__termArgs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_ts, struct E_Coll__List__Sym__Sym* p_vs, struct E_Coll__List__D__Arg* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__D__Arg(p_eff__Region, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_Ast__TNum.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Arg* t3 = ({ struct E_Coll__List__D__Arg* o3 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_D__Arg* o3 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o3->tag = 1; o3->u.C_D__AVal.f_v = ({ struct E_D__Val* o3 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o3->tag = 1; o3->u.C_D__VInt.f_v = v_v_2; o3; }); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }) : ({ __auto_type v_n_2 = s2->u.C_Ast__TName.f_n; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_vs; struct E_Coll__List__D__Arg* t3 = ({ struct E_Coll__List__D__Arg* o3 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__argOf(p_eff__Region, v_n_2, p_vs); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_vs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Arg*){0}; }); }); }); }); }); } +static struct E_Coll__List__Flow__CapB* f_Flow__nextHolds(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Term* p_args, struct E_Coll__List__Flow__VS* p_a) { return ({ __auto_type s0 = p_args; s0->tag == 1 ? ({ __auto_type v_t1_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_r1_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_r1_1; s2->tag == 1 ? ({ __auto_type v_t2_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_r2_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_r2_3; s4->tag == 1 ? ({ __auto_type v_t3_4 = s4->u.C_Coll__Cons.f_h; f_Flow__nextIn(p_eff__Region, p_ps, p_bs, f_Flow__termSym(p_eff__Region, v_t1_0), f_Flow__termSym(p_eff__Region, v_t2_2), f_Flow__termSym(p_eff__Region, v_t3_4), p_a, (&N_Coll__Nil__Flow__CapB)); }) : ({ (&N_Coll__Nil__Flow__CapB); }); }); }) : ({ (&N_Coll__Nil__Flow__CapB); }); }); }) : ({ (&N_Coll__Nil__Flow__CapB); }); }); } +static struct E_Coll__List__Flow__CapB* f_Flow__nextIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__Option__Sym__Sym* p_s1, struct E_Coll__Option__Sym__Sym* p_op, struct E_Coll__Option__Sym__Sym* p_s2, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Flow__CapB* p_acc) { return ({ __auto_type s0 = p_s1; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x1_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = p_op; s1->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_o_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = p_s2; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x2_2 = s2->u.C_Coll__Some.f_v; f_Flow__withTrans(p_eff__Region, p_ps, p_bs, f_Flow__resolve(p_a, v_x1_0), v_o_1, f_Flow__resolve(p_a, v_x2_2), p_acc); }); }); }); }); }); }); } +static struct E_Coll__List__Flow__CapB* f_Flow__withTrans(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_b, struct E_Coll__List__Flow__CapB* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_proto_2 = s2->u.C_Flow__CapB.f_proto; ({ bool v_ok_3 = ({ __auto_type s3 = f_Flow__protoNamed(p_eff__Region, p_ps, v_proto_2); s3->tag == 0 ? ({ false; }) : ({ __auto_type v_pr_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = v_pr_3; ({ __auto_type v_ops_4 = s4->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = f_Flow__opHas(v_ops_4, p_op, p_a, p_b); res_; }); }); }); res_; }); }); }); __auto_type res_ = (v_ok_3 ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_a; struct E_Sym__Sym* t4 = p_op; struct E_Sym__Sym* t5 = p_b; struct E_Coll__List__Flow__CapB* t6 = ({ struct E_Coll__List__Flow__CapB* o4 = (struct E_Coll__List__Flow__CapB*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__CapB, u) + sizeof(((struct E_Coll__List__Flow__CapB*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_0; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ps = t1; p_bs = t2; p_a = t3; p_op = t4; p_b = t5; p_acc = t6; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Flow__CapB* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_a; struct E_Sym__Sym* t4 = p_op; struct E_Sym__Sym* t5 = p_b; struct E_Coll__List__Flow__CapB* t6 = p_acc; p_eff__Region = t0; p_ps = t1; p_bs = t2; p_a = t3; p_op = t4; p_b = t5; p_acc = t6; goto srs_tail; (struct E_Coll__List__Flow__CapB*){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Flow__opHas(struct E_Coll__List__Ast__Op* p_ops, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_trs_3 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ((f_Sym__eq(v_name_2, p_op) && f_Flow__transHas(v_trs_3, p_a, p_b)) ? true : ({ struct E_Coll__List__Ast__Op* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_op; struct E_Sym__Sym* t2 = p_a; struct E_Sym__Sym* t3 = p_b; p_ops = t0; p_op = t1; p_a = t2; p_b = t3; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Flow__transHas(struct E_Coll__List__Ast__Trans* p_trs, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_y_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ((f_Sym__eq(v_x_2, p_a) && f_Sym__eq(v_y_3, p_b)) ? true : ({ struct E_Coll__List__Ast__Trans* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_a; struct E_Sym__Sym* t2 = p_b; p_trs = t0; p_a = t1; p_b = t2; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__atState(srs_cap* p_r, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_at_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_at_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = (f_Sym__eq(v_rel_2, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"at", 2}))) ? f_Flow__atArgs(p_r, v_args_3, p_x, p_a, v_rest_1) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Atom* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; struct E_Coll__List__Flow__VS* t3 = p_a; p_r = t0; p_atoms = t1; p_x = t2; p_a = t3; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__atArgs(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_args, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Ast__Atom* p_rest) { return ({ __auto_type s0 = p_args; s0->tag == 1 ? ({ __auto_type v_t1_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_r1_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_r1_1; s2->tag == 1 ? ({ __auto_type v_t2_2 = s2->u.C_Coll__Cons.f_h; ({ __auto_type s3 = f_Flow__termSym(p_r, v_t1_0); s3->tag == 1 ? ({ __auto_type v_c_3 = s3->u.C_Coll__Some.f_v; (f_Sym__eq(v_c_3, p_x) ? f_Flow__resolved(p_r, f_Flow__termSym(p_r, v_t2_2), p_a) : f_Flow__atState(p_r, p_rest, p_x, p_a)); }) : ({ f_Flow__atState(p_r, p_rest, p_x, p_a); }); }); }) : ({ f_Flow__atState(p_r, p_rest, p_x, p_a); }); }); }) : ({ f_Flow__atState(p_r, p_rest, p_x, p_a); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__resolved(srs_cap* p_r, struct E_Coll__Option__Sym__Sym* p_t, struct E_Coll__List__Flow__VS* p_a) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Sym__Sym* o1 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = f_Flow__resolve(p_a, v_s_0); o1; }); }); }); } -static struct E_Flow__St* f_Flow__sols(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = f_Flow__prePost(p_r, p_ps, f_Flow__add(p_r, p_st, f_Flow__fSameI(p_r, p_j)), p_s, p_j, p_bs, p_atoms, p_exit, v_a_0, ((int64_t)0)); int64_t t3 = p_s; struct E_Coll__List__Flow__CapB* t4 = p_bs; struct E_Coll__List__Ast__Atom* t5 = p_atoms; struct E_Coll__List__Ast__Atom* t6 = p_exit; struct E_Coll__List__Coll__List_1_Flow__VS* t7 = v_rest_1; int64_t t8 = (p_j + ((int64_t)1)); p_r = t0; p_ps = t1; p_st = t2; p_s = t3; p_bs = t4; p_atoms = t5; p_exit = t6; p_as = t7; p_j = t8; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); } -static struct E_Flow__St* f_Flow__prePost(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, int64_t p_j, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_m) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Flow__CapB.f_x; __auto_type v_proto_3 = s2->u.C_Flow__CapB.f_proto; ({ struct E_Coll__Option__Sym__Sym* v_pre_4 = ({ __auto_type s4 = f_Flow__atState(p_r, p_atoms, v_x_2, p_a); s4->tag == 1 ? ({ __auto_type v_e_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Sym__Sym* o5 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_e_4; o5; }); }) : ({ f_Flow__startOf(p_r, p_ps, v_proto_3); }); }); __auto_type res_ = ({ __auto_type s5 = v_pre_4; s5->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = p_st; int64_t t3 = p_s; int64_t t4 = p_j; struct E_Coll__List__Flow__CapB* t5 = v_rest_1; struct E_Coll__List__Ast__Atom* t6 = p_atoms; struct E_Coll__List__Ast__Atom* t7 = p_exit; struct E_Coll__List__Flow__VS* t8 = p_a; int64_t t9 = (p_m + ((int64_t)1)); p_r = t0; p_ps = t1; p_st = t2; p_s = t3; p_j = t4; p_bs = t5; p_atoms = t6; p_exit = t7; p_a = t8; p_m = t9; goto srs_tail; (struct E_Flow__St*){0}; }); }) : ({ __auto_type v_e_5 = s5->u.C_Coll__Some.f_v; ({ struct E_Sym__Sym* v_post_6 = ({ __auto_type s6 = f_Flow__atState(p_r, p_exit, v_x_2, p_a); s6->tag == 1 ? ({ __auto_type v_o_6 = s6->u.C_Coll__Some.f_v; v_o_6; }) : ({ v_e_5; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = f_Flow__add(p_r, f_Flow__add(p_r, p_st, f_Flow__fPre(p_r, p_s, p_j, p_m, v_e_5)), f_Flow__fPost(p_r, p_s, p_j, p_m, v_post_6)); int64_t t3 = p_s; int64_t t4 = p_j; struct E_Coll__List__Flow__CapB* t5 = v_rest_1; struct E_Coll__List__Ast__Atom* t6 = p_atoms; struct E_Coll__List__Ast__Atom* t7 = p_exit; struct E_Coll__List__Flow__VS* t8 = p_a; int64_t t9 = (p_m + ((int64_t)1)); p_r = t0; p_ps = t1; p_st = t2; p_s = t3; p_j = t4; p_bs = t5; p_atoms = t6; p_exit = t7; p_a = t8; p_m = t9; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__startOf(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_proto) { return ({ __auto_type s0 = f_Flow__protoNamed(p_r, p_ps, p_proto); s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_pr_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_pr_0; ({ __auto_type v_start_1 = s1->u.C_Ast__Proto.f_start; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o2 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_start_1; o2; }); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__At* f_Flow__block(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_outer_0 = s0->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s1 = f_Flow__stmts(p_r, p_cx, p_st, p_p, p_ss); ({ __auto_type v_st1_1 = s1->u.C_Flow__At.f_st; __auto_type v_p1_2 = s1->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__expr(p_r, p_cx, v_st1_1, v_p1_2, p_last); ({ __auto_type v_st2_3 = s3->u.C_Flow__At.f_st; __auto_type v_p2_4 = s3->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__next(p_r, v_st2_3, v_p2_4); ({ __auto_type v_st3_5 = s5->u.C_Flow__At.f_st; __auto_type v_e_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = v_st3_5; ({ __auto_type v_n_7 = s7->u.C_Flow__St.f_next; __auto_type v_fs_8 = s7->u.C_Flow__St.f_facts; __auto_type v_inner_9 = s7->u.C_Flow__St.f_caps; ({ struct E_Coll__List__D__Fact* v_fs2_10 = ((f_Coll__length__Flow__Cap(v_inner_9) <= f_Coll__length__Flow__Cap(v_outer_0)) ? v_fs_8 : f_Flow__escFacts(p_r, f_Flow__srcs(p_r, p_cx, v_inner_9, p_last, (&N_Coll__Nil__Flow__Src)), v_e_6, p_line, v_fs_8)); __auto_type res_ = ({ struct E_Flow__At* o11 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o11->tag = 0; o11->u.C_Flow__At.f_st = ({ struct E_Flow__St* o11 = (struct E_Flow__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o11->tag = 0; o11->u.C_Flow__St.f_next = v_n_7; o11->u.C_Flow__St.f_facts = f_Flow__closes(p_r, v_inner_9, v_outer_0, v_e_6, v_fs2_10); o11->u.C_Flow__St.f_caps = v_outer_0; o11; }); o11->u.C_Flow__At.f_p = v_e_6; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__atState(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a) { srs_tail: return ({ __auto_type s0 = p_atoms; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_at_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_at_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = (f_Sym__eq(v_rel_2, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"at", 2}))) ? f_Flow__atArgs(p_eff__Region, v_args_3, p_x, p_a, v_rest_1) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Atom* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; struct E_Coll__List__Flow__VS* t3 = p_a; p_eff__Region = t0; p_atoms = t1; p_x = t2; p_a = t3; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__atArgs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_args, struct E_Sym__Sym* p_x, struct E_Coll__List__Flow__VS* p_a, struct E_Coll__List__Ast__Atom* p_rest) { return ({ __auto_type s0 = p_args; s0->tag == 1 ? ({ __auto_type v_t1_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_r1_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_r1_1; s2->tag == 1 ? ({ __auto_type v_t2_2 = s2->u.C_Coll__Cons.f_h; ({ __auto_type s3 = f_Flow__termSym(p_eff__Region, v_t1_0); s3->tag == 1 ? ({ __auto_type v_c_3 = s3->u.C_Coll__Some.f_v; (f_Sym__eq(v_c_3, p_x) ? f_Flow__resolved(p_eff__Region, f_Flow__termSym(p_eff__Region, v_t2_2), p_a) : f_Flow__atState(p_eff__Region, p_rest, p_x, p_a)); }) : ({ f_Flow__atState(p_eff__Region, p_rest, p_x, p_a); }); }); }) : ({ f_Flow__atState(p_eff__Region, p_rest, p_x, p_a); }); }); }) : ({ f_Flow__atState(p_eff__Region, p_rest, p_x, p_a); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__resolved(srs_cap* p_eff__Region, struct E_Coll__Option__Sym__Sym* p_t, struct E_Coll__List__Flow__VS* p_a) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Sym__Sym* o1 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = f_Flow__resolve(p_a, v_s_0); o1; }); }); }); } +static struct E_Flow__St* f_Flow__sols(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = f_Flow__prePost(p_eff__Region, p_ps, f_Flow__add(p_eff__Region, p_st, f_Flow__fSameI(p_eff__Region, p_j)), p_s, p_j, p_bs, p_atoms, p_exit, v_a_0, ((int64_t)0)); int64_t t3 = p_s; struct E_Coll__List__Flow__CapB* t4 = p_bs; struct E_Coll__List__Ast__Atom* t5 = p_atoms; struct E_Coll__List__Ast__Atom* t6 = p_exit; struct E_Coll__List__Coll__List_1_Flow__VS* t7 = v_rest_1; int64_t t8 = (p_j + ((int64_t)1)); p_eff__Region = t0; p_ps = t1; p_st = t2; p_s = t3; p_bs = t4; p_atoms = t5; p_exit = t6; p_as = t7; p_j = t8; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); } +static struct E_Flow__St* f_Flow__prePost(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, int64_t p_s, int64_t p_j, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_m) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Flow__CapB.f_x; __auto_type v_proto_3 = s2->u.C_Flow__CapB.f_proto; ({ struct E_Coll__Option__Sym__Sym* v_pre_4 = ({ __auto_type s4 = f_Flow__atState(p_eff__Region, p_atoms, v_x_2, p_a); s4->tag == 1 ? ({ __auto_type v_e_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Sym__Sym* o5 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_e_4; o5; }); }) : ({ f_Flow__startOf(p_eff__Region, p_ps, v_proto_3); }); }); __auto_type res_ = ({ __auto_type s5 = v_pre_4; s5->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = p_st; int64_t t3 = p_s; int64_t t4 = p_j; struct E_Coll__List__Flow__CapB* t5 = v_rest_1; struct E_Coll__List__Ast__Atom* t6 = p_atoms; struct E_Coll__List__Ast__Atom* t7 = p_exit; struct E_Coll__List__Flow__VS* t8 = p_a; int64_t t9 = (p_m + ((int64_t)1)); p_eff__Region = t0; p_ps = t1; p_st = t2; p_s = t3; p_j = t4; p_bs = t5; p_atoms = t6; p_exit = t7; p_a = t8; p_m = t9; goto srs_tail; (struct E_Flow__St*){0}; }); }) : ({ __auto_type v_e_5 = s5->u.C_Coll__Some.f_v; ({ struct E_Sym__Sym* v_post_6 = ({ __auto_type s6 = f_Flow__atState(p_eff__Region, p_exit, v_x_2, p_a); s6->tag == 1 ? ({ __auto_type v_o_6 = s6->u.C_Coll__Some.f_v; v_o_6; }) : ({ v_e_5; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, p_st, f_Flow__fPre(p_eff__Region, p_s, p_j, p_m, v_e_5)), f_Flow__fPost(p_eff__Region, p_s, p_j, p_m, v_post_6)); int64_t t3 = p_s; int64_t t4 = p_j; struct E_Coll__List__Flow__CapB* t5 = v_rest_1; struct E_Coll__List__Ast__Atom* t6 = p_atoms; struct E_Coll__List__Ast__Atom* t7 = p_exit; struct E_Coll__List__Flow__VS* t8 = p_a; int64_t t9 = (p_m + ((int64_t)1)); p_eff__Region = t0; p_ps = t1; p_st = t2; p_s = t3; p_j = t4; p_bs = t5; p_atoms = t6; p_exit = t7; p_a = t8; p_m = t9; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__startOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_proto) { return ({ __auto_type s0 = f_Flow__protoNamed(p_eff__Region, p_ps, p_proto); s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_pr_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_pr_0; ({ __auto_type v_start_1 = s1->u.C_Ast__Proto.f_start; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o2 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_start_1; o2; }); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__At* f_Flow__block(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_outer_0 = s0->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s1 = f_Flow__stmts(p_eff__Region, p_cx, p_st, p_p, p_ss); ({ __auto_type v_st1_1 = s1->u.C_Flow__At.f_st; __auto_type v_p1_2 = s1->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s3 = f_Flow__expr(p_eff__Region, p_cx, v_st1_1, v_p1_2, p_last); ({ __auto_type v_st2_3 = s3->u.C_Flow__At.f_st; __auto_type v_p2_4 = s3->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s5 = f_Flow__next(p_eff__Region, v_st2_3, v_p2_4); ({ __auto_type v_st3_5 = s5->u.C_Flow__At.f_st; __auto_type v_e_6 = s5->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s7 = v_st3_5; ({ __auto_type v_n_7 = s7->u.C_Flow__St.f_next; __auto_type v_fs_8 = s7->u.C_Flow__St.f_facts; __auto_type v_inner_9 = s7->u.C_Flow__St.f_caps; ({ struct E_Coll__List__D__Fact* v_fs2_10 = ((f_Coll__length__Flow__Cap(v_inner_9) <= f_Coll__length__Flow__Cap(v_outer_0)) ? v_fs_8 : f_Flow__escFacts(p_eff__Region, f_Flow__srcs(p_eff__Region, p_cx, v_inner_9, p_last, (&N_Coll__Nil__Flow__Src)), v_e_6, p_line, v_fs_8)); __auto_type res_ = ({ struct E_Flow__At* o11 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o11->tag = 0; o11->u.C_Flow__At.f_st = ({ struct E_Flow__St* o11 = (struct E_Flow__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o11->tag = 0; o11->u.C_Flow__St.f_next = v_n_7; o11->u.C_Flow__St.f_facts = f_Flow__closes(p_eff__Region, v_inner_9, v_outer_0, v_e_6, v_fs2_10); o11->u.C_Flow__St.f_caps = v_outer_0; o11; }); o11->u.C_Flow__At.f_p = v_e_6; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } static int64_t f_Coll__length__Flow__Cap(struct E_Coll__List__Flow__Cap* p_xs) { return f_Coll__lengthFrom__Flow__Cap(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Flow__Cap(struct E_Coll__List__Flow__Cap* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Flow__Cap* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__escFacts(srs_cap* p_r, struct E_Coll__List__Flow__Src* p_sv, int64_t p_e, int64_t p_line, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_sv; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_c_2 = s2->u.C_Flow__SCap.f_c; ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Src* t1 = v_rest_1; int64_t t2 = p_e; int64_t t3 = p_line; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fEscCap(p_r, p_e, v_c_2, p_line); o3->u.C_Coll__Cons.f_t = p_fs; o3; }); p_r = t0; p_sv = t1; p_e = t2; p_line = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : ({ __auto_type v_y_2 = s2->u.C_Flow__SVar.f_x; ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Src* t1 = v_rest_1; int64_t t2 = p_e; int64_t t3 = p_line; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fEscVar(p_r, p_e, v_y_2, p_line); o3->u.C_Coll__Cons.f_t = p_fs; o3; }); p_r = t0; p_sv = t1; p_e = t2; p_line = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__closes(srs_cap* p_r, struct E_Coll__List__Flow__Cap* p_inner, struct E_Coll__List__Flow__Cap* p_outer, int64_t p_e, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type res_ = ((f_Coll__length__Flow__Cap(p_inner) <= f_Coll__length__Flow__Cap(p_outer)) ? p_fs : ({ __auto_type s0 = p_inner; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_id_2 = s2->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Coll__List__Flow__Cap* t2 = p_outer; int64_t t3 = p_e; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fClose(p_r, p_e, v_id_2); o3->u.C_Coll__Cons.f_t = p_fs; o3; }); p_r = t0; p_inner = t1; p_outer = t2; p_e = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); })); res_; }); } -static struct E_Flow__At* f_Flow__stmts(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Flow__stmt(p_r, p_cx, p_st, p_p, v_s_0); ({ __auto_type v_st2_2 = s2->u.C_Flow__At.f_st; __auto_type v_p2_3 = s2->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = v_st2_2; int64_t t3 = v_p2_3; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; p_r = t0; p_cx = t1; p_st = t2; p_p = t3; p_ss = t4; goto srs_tail; (struct E_Flow__At*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__At* f_Flow__stmt(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Stmt* p_s) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Val.f_x; __auto_type v_ann_1 = s0->u.C_Ast__Val.f_ann; __auto_type v_e_2 = s0->u.C_Ast__Val.f_e; f_Flow__bindVal(p_r, p_cx, f_Flow__needs(p_r, p_cx, p_st, v_x_0, v_ann_1), p_p, v_x_0, v_e_2); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Var.f_x; __auto_type v_e_1 = s0->u.C_Ast__Var.f_e; f_Flow__bindVal(p_r, p_cx, p_st, p_p, v_x_0, v_e_1); }) : s0->tag == 3 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Do.f_e; f_Flow__expr(p_r, p_cx, p_st, p_p, v_e_0); }) : s0->tag == 4 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Check.f_e; f_Flow__expr(p_r, p_cx, p_st, p_p, v_e_0); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Handle.f_line; __auto_type v_x_1 = s0->u.C_Ast__Handle.f_x; __auto_type v_h_2 = s0->u.C_Ast__Handle.f_h; __auto_type v_xs_3 = s0->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__exprs(p_r, p_cx, p_st, p_p, v_xs_3); ({ __auto_type v_st1_4 = s4->u.C_Flow__At.f_st; __auto_type v_pa_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = f_Flow__protoOf(p_r, f_Flow__cxHs(p_cx), v_h_2); s6->tag == 0 ? ({ ({ struct E_Flow__At* o6 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o6->tag = 0; o6->u.C_Flow__At.f_st = v_st1_4; o6->u.C_Flow__At.f_p = v_pa_5; o6; }); }) : ({ __auto_type v_proto_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__fresh(p_r, v_st1_4); ({ __auto_type v_st2_7 = s7->u.C_Flow__At.f_st; __auto_type v_id_8 = s7->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s9 = v_st2_7; ({ __auto_type v_n_9 = s9->u.C_Flow__St.f_next; __auto_type v_fs_10 = s9->u.C_Flow__St.f_facts; __auto_type v_cs_11 = s9->u.C_Flow__St.f_caps; ({ struct E_Flow__St* v_st3_12 = ({ struct E_Flow__St* o12 = (struct E_Flow__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o12->tag = 0; o12->u.C_Flow__St.f_next = v_n_9; o12->u.C_Flow__St.f_facts = v_fs_10; o12->u.C_Flow__St.f_caps = ({ struct E_Coll__List__Flow__Cap* o12 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = ({ struct E_Flow__Cap* o12 = (struct E_Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Cap, u) + sizeof(((struct E_Flow__Cap*)0)->u.C_Flow__Cap))); o12->tag = 0; o12->u.C_Flow__Cap.f_name = v_x_1; o12->u.C_Flow__Cap.f_id = v_id_8; o12->u.C_Flow__Cap.f_proto = v_proto_6; o12->u.C_Flow__Cap.f_line = v_line_0; o12; }); o12->u.C_Coll__Cons.f_t = v_cs_11; o12; }); o12; }); struct E_Flow__St* v_st4_13 = f_Flow__add(p_r, f_Flow__add(p_r, v_st3_12, f_Flow__fCapOf(p_r, v_id_8, v_proto_6)), f_Flow__fCapName(p_r, v_id_8, v_x_1)); __auto_type res_ = ({ struct E_Flow__At* o14 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o14->tag = 0; o14->u.C_Flow__At.f_st = f_Flow__add(p_r, f_Flow__add(p_r, v_st4_13, f_Flow__fCapLine(p_r, v_id_8, v_line_0)), f_Flow__fHandle(p_r, v_pa_5, v_id_8)); o14->u.C_Flow__At.f_p = v_pa_5; o14; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__protoFacts(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Proto.f_name; __auto_type v_states_3 = s2->u.C_Ast__Proto.f_states; __auto_type v_start_4 = s2->u.C_Ast__Proto.f_start; __auto_type v_ends_5 = s2->u.C_Ast__Proto.f_ends; __auto_type v_dropOp_6 = s2->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_7 = s2->u.C_Ast__Proto.f_ops; ({ struct E_Coll__List__D__Fact* v_fs1_8 = f_Flow__opFacts(p_r, v_name_2, v_ops_7, p_fs); struct E_Coll__List__D__Fact* v_fs2_9 = f_Flow__stateFacts(p_r, v_name_2, v_start_4, v_states_3, v_ends_5, v_dropOp_6, v_ops_7, v_fs1_8); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Coll__List__D__Fact* t2 = v_fs2_9; p_r = t0; p_ps = t1; p_fs = t2; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__opFacts(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_trs_3 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_proto; struct E_Coll__List__Ast__Op* t2 = v_rest_1; struct E_Coll__List__D__Fact* t3 = f_Flow__transFacts(p_r, p_proto, v_name_2, v_trs_3, p_fs); p_r = t0; p_proto = t1; p_ops = t2; p_fs = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__transFacts(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_proto; struct E_Sym__Sym* t2 = p_op; struct E_Coll__List__Ast__Trans* t3 = v_rest_1; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Flow__fTr(p_r, p_proto, p_op, v_a_2, v_b_3); o4->u.C_Coll__Cons.f_t = p_fs; o4; }); p_r = t0; p_proto = t1; p_op = t2; p_trs = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Flow__stateFacts(srs_cap* p_r, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_start, struct E_Coll__List__Sym__Sym* p_states, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__Option__Sym__Sym* p_dropOp, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_states; s0->tag == 0 ? ({ ({ struct E_Coll__List__D__Fact* o0 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Flow__fStart(p_r, p_proto, p_start); o0->u.C_Coll__Cons.f_t = p_fs; o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Fact* v_fs1_2 = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Flow__fSame(p_r, v_s_0, v_s_0); o2->u.C_Coll__Cons.f_t = p_fs; o2; }); struct E_Coll__List__D__Fact* v_fs2_3 = (f_Flow__endsAfterDrop(v_s_0, p_ends, p_dropOp, p_ops) ? ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fEndOk(p_r, p_proto, v_s_0); o3->u.C_Coll__Cons.f_t = v_fs1_2; o3; }) : v_fs1_2); struct E_Coll__List__D__Fact* v_fs3_4 = (f_Flow__memberSym(v_s_0, p_ends) ? ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Flow__fFin(p_r, p_proto, v_s_0); o4->u.C_Coll__Cons.f_t = v_fs2_3; o4; }) : v_fs2_3); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_proto; struct E_Sym__Sym* t2 = p_start; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Coll__List__Sym__Sym* t4 = p_ends; struct E_Coll__Option__Sym__Sym* t5 = p_dropOp; struct E_Coll__List__Ast__Op* t6 = p_ops; struct E_Coll__List__D__Fact* t7 = v_fs3_4; p_r = t0; p_proto = t1; p_start = t2; p_states = t3; p_ends = t4; p_dropOp = t5; p_ops = t6; p_fs = t7; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__escFacts(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Src* p_sv, int64_t p_e, int64_t p_line, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_sv; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_c_2 = s2->u.C_Flow__SCap.f_c; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Src* t1 = v_rest_1; int64_t t2 = p_e; int64_t t3 = p_line; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fEscCap(p_eff__Region, p_e, v_c_2, p_line); o3->u.C_Coll__Cons.f_t = p_fs; o3; }); p_eff__Region = t0; p_sv = t1; p_e = t2; p_line = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : ({ __auto_type v_y_2 = s2->u.C_Flow__SVar.f_x; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Src* t1 = v_rest_1; int64_t t2 = p_e; int64_t t3 = p_line; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fEscVar(p_eff__Region, p_e, v_y_2, p_line); o3->u.C_Coll__Cons.f_t = p_fs; o3; }); p_eff__Region = t0; p_sv = t1; p_e = t2; p_line = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__closes(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Cap* p_inner, struct E_Coll__List__Flow__Cap* p_outer, int64_t p_e, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type res_ = ((f_Coll__length__Flow__Cap(p_inner) <= f_Coll__length__Flow__Cap(p_outer)) ? p_fs : ({ __auto_type s0 = p_inner; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_id_2 = s2->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Cap* t1 = v_rest_1; struct E_Coll__List__Flow__Cap* t2 = p_outer; int64_t t3 = p_e; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fClose(p_eff__Region, p_e, v_id_2); o3->u.C_Coll__Cons.f_t = p_fs; o3; }); p_eff__Region = t0; p_inner = t1; p_outer = t2; p_e = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); })); res_; }); } +static struct E_Flow__At* f_Flow__stmts(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Coll__List__Ast__Stmt* p_ss) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ struct E_Flow__At* o0 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o0->tag = 0; o0->u.C_Flow__At.f_st = p_st; o0->u.C_Flow__At.f_p = p_p; o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Flow__stmt(p_eff__Region, p_cx, p_st, p_p, v_s_0); ({ __auto_type v_st2_2 = s2->u.C_Flow__At.f_st; __auto_type v_p2_3 = s2->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Flow__St* t2 = v_st2_2; int64_t t3 = v_p2_3; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_p = t3; p_ss = t4; goto srs_tail; (struct E_Flow__At*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__At* f_Flow__stmt(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, int64_t p_p, struct E_Ast__Stmt* p_s) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Val.f_x; __auto_type v_ann_1 = s0->u.C_Ast__Val.f_ann; __auto_type v_e_2 = s0->u.C_Ast__Val.f_e; f_Flow__bindVal(p_eff__Region, p_cx, f_Flow__needs(p_eff__Region, p_cx, p_st, v_x_0, v_ann_1), p_p, v_x_0, v_e_2); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Var.f_x; __auto_type v_e_1 = s0->u.C_Ast__Var.f_e; f_Flow__bindVal(p_eff__Region, p_cx, p_st, p_p, v_x_0, v_e_1); }) : s0->tag == 3 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Do.f_e; f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, v_e_0); }) : s0->tag == 4 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Check.f_e; f_Flow__expr(p_eff__Region, p_cx, p_st, p_p, v_e_0); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Handle.f_line; __auto_type v_x_1 = s0->u.C_Ast__Handle.f_x; __auto_type v_h_2 = s0->u.C_Ast__Handle.f_h; __auto_type v_xs_3 = s0->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__exprs(p_eff__Region, p_cx, p_st, p_p, v_xs_3); ({ __auto_type v_st1_4 = s4->u.C_Flow__At.f_st; __auto_type v_pa_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = f_Flow__protoOf(p_eff__Region, f_Flow__cxHs(p_cx), v_h_2); s6->tag == 0 ? ({ ({ struct E_Flow__At* o6 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o6->tag = 0; o6->u.C_Flow__At.f_st = v_st1_4; o6->u.C_Flow__At.f_p = v_pa_5; o6; }); }) : ({ __auto_type v_proto_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = f_Flow__fresh(p_eff__Region, v_st1_4); ({ __auto_type v_st2_7 = s7->u.C_Flow__At.f_st; __auto_type v_id_8 = s7->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s9 = v_st2_7; ({ __auto_type v_n_9 = s9->u.C_Flow__St.f_next; __auto_type v_fs_10 = s9->u.C_Flow__St.f_facts; __auto_type v_cs_11 = s9->u.C_Flow__St.f_caps; ({ struct E_Flow__St* v_st3_12 = ({ struct E_Flow__St* o12 = (struct E_Flow__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o12->tag = 0; o12->u.C_Flow__St.f_next = v_n_9; o12->u.C_Flow__St.f_facts = v_fs_10; o12->u.C_Flow__St.f_caps = ({ struct E_Coll__List__Flow__Cap* o12 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = ({ struct E_Flow__Cap* o12 = (struct E_Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Cap, u) + sizeof(((struct E_Flow__Cap*)0)->u.C_Flow__Cap))); o12->tag = 0; o12->u.C_Flow__Cap.f_name = v_x_1; o12->u.C_Flow__Cap.f_id = v_id_8; o12->u.C_Flow__Cap.f_proto = v_proto_6; o12->u.C_Flow__Cap.f_line = v_line_0; o12; }); o12->u.C_Coll__Cons.f_t = v_cs_11; o12; }); o12; }); struct E_Flow__St* v_st4_13 = f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, v_st3_12, f_Flow__fCapOf(p_eff__Region, v_id_8, v_proto_6)), f_Flow__fCapName(p_eff__Region, v_id_8, v_x_1)); __auto_type res_ = ({ struct E_Flow__At* o14 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o14->tag = 0; o14->u.C_Flow__At.f_st = f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, v_st4_13, f_Flow__fCapLine(p_eff__Region, v_id_8, v_line_0)), f_Flow__fHandle(p_eff__Region, v_pa_5, v_id_8)); o14->u.C_Flow__At.f_p = v_pa_5; o14; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__protoFacts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Proto.f_name; __auto_type v_states_3 = s2->u.C_Ast__Proto.f_states; __auto_type v_start_4 = s2->u.C_Ast__Proto.f_start; __auto_type v_ends_5 = s2->u.C_Ast__Proto.f_ends; __auto_type v_dropOp_6 = s2->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_7 = s2->u.C_Ast__Proto.f_ops; ({ struct E_Coll__List__D__Fact* v_fs1_8 = f_Flow__opFacts(p_eff__Region, v_name_2, v_ops_7, p_fs); struct E_Coll__List__D__Fact* v_fs2_9 = f_Flow__stateFacts(p_eff__Region, v_name_2, v_start_4, v_states_3, v_ends_5, v_dropOp_6, v_ops_7, v_fs1_8); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Coll__List__D__Fact* t2 = v_fs2_9; p_eff__Region = t0; p_ps = t1; p_fs = t2; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__opFacts(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_trs_3 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_proto; struct E_Coll__List__Ast__Op* t2 = v_rest_1; struct E_Coll__List__D__Fact* t3 = f_Flow__transFacts(p_eff__Region, p_proto, v_name_2, v_trs_3, p_fs); p_eff__Region = t0; p_proto = t1; p_ops = t2; p_fs = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__transFacts(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ p_fs; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_proto; struct E_Sym__Sym* t2 = p_op; struct E_Coll__List__Ast__Trans* t3 = v_rest_1; struct E_Coll__List__D__Fact* t4 = ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Flow__fTr(p_eff__Region, p_proto, p_op, v_a_2, v_b_3); o4->u.C_Coll__Cons.f_t = p_fs; o4; }); p_eff__Region = t0; p_proto = t1; p_op = t2; p_trs = t3; p_fs = t4; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Flow__stateFacts(srs_cap* p_eff__Region, struct E_Sym__Sym* p_proto, struct E_Sym__Sym* p_start, struct E_Coll__List__Sym__Sym* p_states, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__Option__Sym__Sym* p_dropOp, struct E_Coll__List__Ast__Op* p_ops, struct E_Coll__List__D__Fact* p_fs) { srs_tail: return ({ __auto_type s0 = p_states; s0->tag == 0 ? ({ ({ struct E_Coll__List__D__Fact* o0 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Flow__fStart(p_eff__Region, p_proto, p_start); o0->u.C_Coll__Cons.f_t = p_fs; o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Fact* v_fs1_2 = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Flow__fSame(p_eff__Region, v_s_0, v_s_0); o2->u.C_Coll__Cons.f_t = p_fs; o2; }); struct E_Coll__List__D__Fact* v_fs2_3 = (f_Flow__endsAfterDrop(v_s_0, p_ends, p_dropOp, p_ops) ? ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Flow__fEndOk(p_eff__Region, p_proto, v_s_0); o3->u.C_Coll__Cons.f_t = v_fs1_2; o3; }) : v_fs1_2); struct E_Coll__List__D__Fact* v_fs3_4 = (f_Flow__memberSym(v_s_0, p_ends) ? ({ struct E_Coll__List__D__Fact* o4 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Flow__fFin(p_eff__Region, p_proto, v_s_0); o4->u.C_Coll__Cons.f_t = v_fs2_3; o4; }) : v_fs2_3); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_proto; struct E_Sym__Sym* t2 = p_start; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Coll__List__Sym__Sym* t4 = p_ends; struct E_Coll__Option__Sym__Sym* t5 = p_dropOp; struct E_Coll__List__Ast__Op* t6 = p_ops; struct E_Coll__List__D__Fact* t7 = v_fs3_4; p_eff__Region = t0; p_proto = t1; p_start = t2; p_states = t3; p_ends = t4; p_dropOp = t5; p_ops = t6; p_fs = t7; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); } static bool f_Flow__memberSym(struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(v_h_0, p_x) ? true : ({ struct E_Sym__Sym* t0 = p_x; struct E_Coll__List__Sym__Sym* t1 = v_t_1; p_x = t0; p_xs = t1; goto srs_tail; (bool){0}; })); }); }); } static bool f_Flow__endsAfterDrop(struct E_Sym__Sym* p_s, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__Option__Sym__Sym* p_dropOp, struct E_Coll__List__Ast__Op* p_ops) { return ({ __auto_type res_ = (f_Flow__memberSym(p_s, p_ends) ? true : ({ __auto_type s0 = p_dropOp; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Some.f_v; f_Flow__dropReaches(p_s, v_d_0, p_ends, p_ops); }); })); res_; }); } static bool f_Flow__dropReaches(struct E_Sym__Sym* p_s, struct E_Sym__Sym* p_d, struct E_Coll__List__Sym__Sym* p_ends, struct E_Coll__List__Ast__Op* p_ops) { srs_tail: return ({ __auto_type s0 = p_ops; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_name_2 = s2->u.C_Ast__Op.f_name; __auto_type v_trs_3 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = (f_Sym__eq(v_name_2, p_d) ? f_Flow__transReaches(p_s, v_trs_3, p_ends) : ({ struct E_Sym__Sym* t0 = p_s; struct E_Sym__Sym* t1 = p_d; struct E_Coll__List__Sym__Sym* t2 = p_ends; struct E_Coll__List__Ast__Op* t3 = v_rest_1; p_s = t0; p_d = t1; p_ends = t2; p_ops = t3; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Flow__transReaches(struct E_Sym__Sym* p_s, struct E_Coll__List__Ast__Trans* p_trs, struct E_Coll__List__Sym__Sym* p_ends) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ((f_Sym__eq(v_a_2, p_s) && f_Flow__memberSym(v_b_3, p_ends)) ? true : ({ struct E_Sym__Sym* t0 = p_s; struct E_Coll__List__Ast__Trans* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ends; p_s = t0; p_trs = t1; p_ends = t2; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_D__Arg* f_Flow__v(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o0->tag = 0; o0->u.C_D__AVar.f_n = p_n; o0; }); } -static struct E_D__Atom* f_Flow__atom(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Flow__relSym(p_r, p_rel); o0->u.C_D__Atom.f_args = f_Flow__vars(p_r, p_xs); o0; }); } -static struct E_Coll__List__D__Arg* f_Flow__vars(srs_cap* p_r, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Flow__v(p_r, v_x_0); o2->u.C_Coll__Cons.f_t = f_Flow__vars(p_r, v_rest_1); o2; }); }); }); } -static struct E_D__Lit* f_Flow__pos(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Flow__atom(p_r, p_rel, p_xs); o0; }); } -static struct E_D__Lit* f_Flow__neg(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o0->tag = 1; o0->u.C_D__Neg.f_a = f_Flow__atom(p_r, p_rel, p_xs); o0; }); } -static struct E_D__Rule* f_Flow__rule(srs_cap* p_r, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Flow__atom(p_r, p_rel, p_xs); o0->u.C_D__Rule.f_body = p_body; o0; }); } -static struct E_Coll__List__D__Rule* f_Flow__rules(srs_cap* p_r) { return ({ struct E_D__Rule* v_enter_0 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RHandle), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RCapOf), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_r, (&N_Flow__RStart), f_Flow__l2__I64(p_r, ((int64_t)7), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RWorld), f_Flow__l1__I64(p_r, ((int64_t)2))))); struct E_D__Rule* v_frame_1 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RFlow), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__neg(p_r, (&N_Flow__RClose), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))))); struct E_D__Rule* v_touch_2 = f_Flow__rule(p_r, (&N_Flow__RTouch), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RStep), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))))); struct E_D__Rule* v_keep_3 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RStep), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)5), ((int64_t)6))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__neg(p_r, (&N_Flow__RTouch), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))))); struct E_D__Rule* v_move_4 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)5)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RStep), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))), f_Flow__pos(p_r, (&N_Flow__RCapOf), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_r, (&N_Flow__RTr), f_Flow__l4__I64(p_r, ((int64_t)7), ((int64_t)6), ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_moved_5 = f_Flow__rule(p_r, (&N_Flow__RMoved), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RStep), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))), f_Flow__pos(p_r, (&N_Flow__RCapOf), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_r, (&N_Flow__RTr), f_Flow__l4__I64(p_r, ((int64_t)7), ((int64_t)6), ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_seen_6 = f_Flow__rule(p_r, (&N_Flow__RSeen), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3)), f_Flow__l2__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RStep), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_stuck_7 = f_Flow__rule(p_r, (&N_Flow__RStuck), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RSeen), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3))), f_Flow__neg(p_r, (&N_Flow__RMoved), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2))), f_Flow__pos(p_r, (&N_Flow__RLine), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)8))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_split_8 = f_Flow__rule(p_r, (&N_Flow__RSplit), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)3)), f_Flow__l5__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RMerge), f_Flow__l1__I64(p_r, ((int64_t)0))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)5))), f_Flow__neg(p_r, (&N_Flow__RSame), f_Flow__l2__I64(p_r, ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_r, (&N_Flow__RLine), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)8))))); struct E_D__Rule* v_splitN_9 = f_Flow__rule(p_r, (&N_Flow__RSplitAt), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l2__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RSplit), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_unended_10 = f_Flow__rule(p_r, (&N_Flow__RUnended), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)3)), f_Flow__l5__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RClose), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RCapOf), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)7))), f_Flow__neg(p_r, (&N_Flow__REndOk), f_Flow__l2__I64(p_r, ((int64_t)7), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RCapLine), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)8))))); struct E_D__Rule* v_unendedN_11 = f_Flow__rule(p_r, (&N_Flow__RUnendedAt), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l2__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RUnended), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9))))); struct E_Coll__List__D__Rule* v_f1_12 = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_enter_0; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_frame_1; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_touch_2; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_keep_3; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_move_4; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_moved_5; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_seen_6; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_stuck_7; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_split_8; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_splitN_9; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_unended_10; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_unendedN_11; o12->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); __auto_type res_ = f_Coll__revOnto__D__Rule(p_r, f_Coll__rev__D__Rule(p_r, v_f1_12), f_Coll__revOnto__D__Rule(p_r, f_Coll__rev__D__Rule(p_r, f_Flow__callRules(p_r)), f_Flow__capsRules(p_r))); res_; }); } -static struct E_Coll__List__D__Lit* f_Flow__l1__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); } -static struct E_Coll__List__D__Lit* f_Flow__l3__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l2__D__Lit(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__D__Lit* f_Flow__l4__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l3__D__Lit(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__I64* f_Flow__l3__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l2__I64(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__I64* f_Flow__l1__I64(srs_cap* p_r, int64_t p_a) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } -static struct E_Coll__List__D__Lit* f_Flow__l5__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d, struct E_D__Lit* p_e) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l4__D__Lit(p_r, p_b, p_c, p_d, p_e); o0; }); } -static struct E_Coll__List__I64* f_Flow__l4__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l3__I64(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__D__Lit* f_Flow__l2__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l1__D__Lit(p_r, p_b); o0; }); } -static struct E_Coll__List__I64* f_Flow__l2__I64(srs_cap* p_r, int64_t p_a, int64_t p_b) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l1__I64(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Rule* f_Flow__callRules(srs_cap* p_r) { return ({ struct E_D__Rule* v_touchB_0 = f_Flow__rule(p_r, (&N_Flow__RTouch), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RBind), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)11), ((int64_t)3))))); struct E_D__Rule* v_cframe_1 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RCStep), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__neg(p_r, (&N_Flow__RTouch), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))))); struct E_D__Rule* v_ok1_2 = f_Flow__rule(p_r, (&N_Flow__ROk), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)11)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RFirst), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)11))), f_Flow__pos(p_r, (&N_Flow__RPre), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)10), ((int64_t)11), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RBind), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)11), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_ok2_3 = f_Flow__rule(p_r, (&N_Flow__ROk), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)12)), f_Flow__l5__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__ROk), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)11))), f_Flow__pos(p_r, (&N_Flow__RNext), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)11), ((int64_t)12))), f_Flow__pos(p_r, (&N_Flow__RPre), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)10), ((int64_t)12), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RBind), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)12), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_fits_4 = f_Flow__rule(p_r, (&N_Flow__RFits), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10)), f_Flow__l2__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__ROk), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)11))), f_Flow__pos(p_r, (&N_Flow__RLast), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)11))))); struct E_D__Rule* v_cmove_5 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RFits), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10))), f_Flow__pos(p_r, (&N_Flow__RCStep), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_r, (&N_Flow__RPost), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)10), ((int64_t)11), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RBind), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)11), ((int64_t)3))))); struct E_D__Rule* v_cmoved_6 = f_Flow__rule(p_r, (&N_Flow__RMoved), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RFits), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10))))); struct E_D__Rule* v_cseen_7 = f_Flow__rule(p_r, (&N_Flow__RCSeen), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2)), f_Flow__l2__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RBind), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)11), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_cstuck_8 = f_Flow__rule(p_r, (&N_Flow__RStuck), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RCSeen), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2))), f_Flow__neg(p_r, (&N_Flow__RMoved), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2))), f_Flow__pos(p_r, (&N_Flow__RLine), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)8))), f_Flow__pos(p_r, (&N_Flow__RCallee), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)9))))); struct E_D__Rule* v_ambig_9 = f_Flow__rule(p_r, (&N_Flow__RAmbig), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RFits), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)10))), f_Flow__pos(p_r, (&N_Flow__RFits), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)13))), f_Flow__neg(p_r, (&N_Flow__RSame), f_Flow__l2__I64(p_r, ((int64_t)10), ((int64_t)13))))); struct E_D__Rule* v_ambigN_10 = f_Flow__rule(p_r, (&N_Flow__RAmbigAt), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RAmbig), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)2))), f_Flow__pos(p_r, (&N_Flow__RLine), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)8))), f_Flow__pos(p_r, (&N_Flow__RCallee), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)9))))); struct E_D__Rule* v_enterB_11 = f_Flow__rule(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__REnter), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_exitBad_12 = f_Flow__rule(p_r, (&N_Flow__RExitBad), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l5__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RWant), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)5))), f_Flow__neg(p_r, (&N_Flow__RSame), f_Flow__l2__I64(p_r, ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_r, (&N_Flow__RCapLine), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)8))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_noSol_13 = f_Flow__rule(p_r, (&N_Flow__RNoSolAt), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RNoSol), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9))))); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_touchB_0; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cframe_1; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ok1_2; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ok2_3; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_fits_4; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cmove_5; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cmoved_6; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cseen_7; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cstuck_8; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ambig_9; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ambigN_10; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_enterB_11; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_exitBad_12; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_noSol_13; o14->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); res_; }); } -static struct E_Coll__List__D__Fact* f_Flow__facts(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_exit_3 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_4 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s5 = p_cx; ({ __auto_type v_ps_5 = s5->u.C_Flow__Cx.f_ps; ({ struct E_Coll__List__Flow__CapB* v_bs_6 = f_Flow__capBs(p_r, v_ps_5, v_gs_2, ((int64_t)0), (&N_Coll__Nil__Flow__CapB)); struct E_Coll__List__Ast__Atom* v_atoms_7 = f_Flow__entryAtoms(p_r, v_gs_2, (&N_Coll__Nil__Ast__Atom)); struct E_Coll__List__Coll__List_1_Flow__VS* v_as_8 = ({ __auto_type s8 = v_bs_6; s8->tag == 0 ? ({ ({ struct E_Coll__List__Coll__List_1_Flow__VS* o8 = (struct E_Coll__List__Coll__List_1_Flow__VS*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Flow__VS, u) + sizeof(((struct E_Coll__List__Coll__List_1_Flow__VS*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = (&N_Coll__Nil__Flow__VS); o8->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__List_1_Flow__VS); o8; }); }) : ({ f_Flow__assigns(p_r, v_ps_5, f_Flow__ruleModels(p_r, v_ps_5, v_bs_6, (&N_Coll__Nil__Flow__PM)), v_bs_6, v_atoms_7, f_Flow__varsOf(p_r, v_atoms_7, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Flow__VS), (&N_Coll__Nil__Coll__List_1_Flow__VS)); }); }); struct E_Flow__St* v_st0_9 = f_Flow__binderCaps(p_r, ({ struct E_Flow__St* o9 = (struct E_Flow__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o9->tag = 0; o9->u.C_Flow__St.f_next = ((int64_t)1); o9->u.C_Flow__St.f_facts = (&N_Coll__Nil__D__Fact); o9->u.C_Flow__St.f_caps = (&N_Coll__Nil__Flow__Cap); o9; }), v_bs_6, v_line_0); __auto_type res_ = ({ __auto_type s10 = v_st0_9; ({ __auto_type v_caps_10 = s10->u.C_Flow__St.f_caps; ({ struct E_Flow__St* v_st1_11 = f_Flow__worlds(p_r, v_ps_5, v_st0_9, f_Coll__rev__Flow__Cap(p_r, v_caps_10), v_bs_6, v_atoms_7, v_exit_3, v_as_8, ((int64_t)0), (&N_Flow__Entry)); struct E_Flow__At* v_walked_12 = ({ __auto_type s12 = v_body_4; s12->tag == 1 ? ({ ({ struct E_Flow__At* o12 = (struct E_Flow__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o12->tag = 0; o12->u.C_Flow__At.f_st = v_st1_11; o12->u.C_Flow__At.f_p = ((int64_t)0); o12; }); }) : s12->tag == 0 ? ({ __auto_type v_e_12 = s12->u.C_Ast__Def.f_e; f_Flow__expr(p_r, p_cx, v_st1_11, ((int64_t)0), v_e_12); }) : ({ __auto_type v_e_12 = s12->u.C_Ast__Spec.f_e; f_Flow__expr(p_r, p_cx, v_st1_11, ((int64_t)0), v_e_12); }); }); __auto_type res_ = ({ __auto_type s13 = v_walked_12; ({ __auto_type v_st2_13 = s13->u.C_Flow__At.f_st; __auto_type v_e_14 = s13->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st3_15 = f_Flow__worlds(p_r, v_ps_5, v_st2_13, f_Coll__rev__Flow__Cap(p_r, v_caps_10), v_bs_6, v_atoms_7, v_exit_3, v_as_8, ((int64_t)0), ({ struct E_Flow__End* o15 = (struct E_Flow__End*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__End, u) + sizeof(((struct E_Flow__End*)0)->u.C_Flow__Exit))); o15->tag = 1; o15->u.C_Flow__Exit.f_e = v_e_14; o15; })); struct E_Flow__St* v_st4_16 = ({ __auto_type s16 = v_as_8; s16->tag == 0 ? ({ f_Flow__add(p_r, v_st3_15, f_Flow__fNoSol(p_r, v_line_0, v_name_1)); }) : ({ v_st3_15; }); }); __auto_type res_ = ({ __auto_type s17 = v_st4_16; ({ __auto_type v_fs_17 = s17->u.C_Flow__St.f_facts; ({ __auto_type res_ = f_Flow__protoFacts(p_r, v_ps_5, v_fs_17); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Flow__St* f_Flow__binderCaps(srs_cap* p_r, struct E_Flow__St* p_st, struct E_Coll__List__Flow__CapB* p_bs, int64_t p_line) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Flow__CapB.f_x; __auto_type v_proto_3 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__fresh(p_r, p_st); ({ __auto_type v_st1_4 = s4->u.C_Flow__At.f_st; __auto_type v_id_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = v_st1_4; ({ __auto_type v_n_6 = s6->u.C_Flow__St.f_next; __auto_type v_fs_7 = s6->u.C_Flow__St.f_facts; __auto_type v_cs_8 = s6->u.C_Flow__St.f_caps; ({ struct E_Flow__St* v_st2_9 = ({ struct E_Flow__St* o9 = (struct E_Flow__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o9->tag = 0; o9->u.C_Flow__St.f_next = v_n_6; o9->u.C_Flow__St.f_facts = v_fs_7; o9->u.C_Flow__St.f_caps = ({ struct E_Coll__List__Flow__Cap* o9 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Flow__Cap* o9 = (struct E_Flow__Cap*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Cap, u) + sizeof(((struct E_Flow__Cap*)0)->u.C_Flow__Cap))); o9->tag = 0; o9->u.C_Flow__Cap.f_name = v_x_2; o9->u.C_Flow__Cap.f_id = v_id_5; o9->u.C_Flow__Cap.f_proto = v_proto_3; o9->u.C_Flow__Cap.f_line = p_line; o9; }); o9->u.C_Coll__Cons.f_t = v_cs_8; o9; }); o9; }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Flow__St* t1 = f_Flow__add(p_r, f_Flow__add(p_r, f_Flow__add(p_r, v_st2_9, f_Flow__fCapOf(p_r, v_id_5, v_proto_3)), f_Flow__fCapName(p_r, v_id_5, v_x_2)), f_Flow__fCapLine(p_r, v_id_5, p_line)); struct E_Coll__List__Flow__CapB* t2 = v_rest_1; int64_t t3 = p_line; p_r = t0; p_st = t1; p_bs = t2; p_line = t3; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__worlds(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j, struct E_Flow__End* p_end) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Flow__St* v_st1_2 = ({ __auto_type s2 = p_end; s2->tag == 0 ? ({ f_Flow__add(p_r, p_st, f_Flow__fWorld(p_r, p_j)); }) : ({ p_st; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = f_Flow__worldCaps(p_r, p_ps, v_st1_2, p_caps, p_bs, p_atoms, p_exit, v_a_0, p_j, p_end); struct E_Coll__List__Flow__Cap* t3 = p_caps; struct E_Coll__List__Flow__CapB* t4 = p_bs; struct E_Coll__List__Ast__Atom* t5 = p_atoms; struct E_Coll__List__Ast__Atom* t6 = p_exit; struct E_Coll__List__Coll__List_1_Flow__VS* t7 = v_rest_1; int64_t t8 = (p_j + ((int64_t)1)); struct E_Flow__End* t9 = p_end; p_r = t0; p_ps = t1; p_st = t2; p_caps = t3; p_bs = t4; p_atoms = t5; p_exit = t6; p_as = t7; p_j = t8; p_end = t9; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__worldCaps(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_j, struct E_Flow__End* p_end) { srs_tail: return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_crest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_bs; s2->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_brest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_c_0; ({ __auto_type v_id_4 = s4->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ __auto_type s5 = v_b_2; ({ __auto_type v_x_5 = s5->u.C_Flow__CapB.f_x; __auto_type v_proto_6 = s5->u.C_Flow__CapB.f_proto; ({ struct E_Coll__Option__Sym__Sym* v_pre_7 = ({ __auto_type s7 = f_Flow__atState(p_r, p_atoms, v_x_5, p_a); s7->tag == 1 ? ({ __auto_type v_s_7 = s7->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Sym__Sym* o8 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = v_s_7; o8; }); }) : ({ f_Flow__startOf(p_r, p_ps, v_proto_6); }); }); struct E_Flow__St* v_st1_8 = ({ __auto_type s8 = v_pre_7; s8->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_8 = s8->u.C_Coll__Some.f_v; ({ __auto_type s9 = p_end; s9->tag == 0 ? ({ f_Flow__add(p_r, p_st, f_Flow__fEnter(p_r, ((int64_t)0), p_j, v_id_4, v_s_8)); }) : ({ __auto_type v_e_9 = s9->u.C_Flow__Exit.f_e; ({ __auto_type s10 = f_Flow__atState(p_r, p_exit, v_x_5, p_a); s10->tag == 1 ? ({ __auto_type v_o_10 = s10->u.C_Coll__Some.f_v; f_Flow__add(p_r, p_st, f_Flow__fWant(p_r, v_e_9, p_j, v_id_4, v_o_10)); }) : ({ f_Flow__add(p_r, p_st, f_Flow__fWant(p_r, v_e_9, p_j, v_id_4, v_s_8)); }); }); }); }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = v_st1_8; struct E_Coll__List__Flow__Cap* t3 = v_crest_1; struct E_Coll__List__Flow__CapB* t4 = v_brest_3; struct E_Coll__List__Ast__Atom* t5 = p_atoms; struct E_Coll__List__Ast__Atom* t6 = p_exit; struct E_Coll__List__Flow__VS* t7 = p_a; int64_t t8 = p_j; struct E_Flow__End* t9 = p_end; p_r = t0; p_ps = t1; p_st = t2; p_caps = t3; p_bs = t4; p_atoms = t5; p_exit = t6; p_a = t7; p_j = t8; p_end = t9; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Flow__Read* f_Flow__clashes(srs_cap* p_r, struct E_D__Model* p_m, struct E_Flow__Kind* p_k, struct E_Flow__Read* p_prev) { return ({ __auto_type s0 = p_prev; s0->tag == 1 ? ({ p_prev; }) : ({ __auto_type v_acc_0 = s0->u.C_Flow__Got.f_cs; f_Flow__clashList(p_r, p_k, f_D__tuples(p_r, p_m, f_Flow__relSym(p_r, f_Flow__relOf(p_k))), v_acc_0); }); }); } -static struct E_Flow__Read* f_Flow__clashList(srs_cap* p_r, struct E_Flow__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Flow__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Flow__Read* o0 = (struct E_Flow__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Read, u) + sizeof(((struct E_Flow__Read*)0)->u.C_Flow__Got))); o0->tag = 0; o0->u.C_Flow__Got.f_cs = p_acc; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__clashOf(p_r, p_k, v_t_0); s2->tag == 0 ? ({ ({ struct E_Flow__Read* o2 = (struct E_Flow__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Read, u) + sizeof(((struct E_Flow__Read*)0)->u.C_Flow__IllTyped))); o2->tag = 1; o2->u.C_Flow__IllTyped.f_rel = f_Flow__relSym(p_r, f_Flow__relOf(p_k)); o2; }); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Flow__Kind* t1 = p_k; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = ({ struct E_Coll__List__Flow__Clash* o3 = (struct E_Coll__List__Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Clash, u) + sizeof(((struct E_Coll__List__Flow__Clash*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_c_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_k = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Flow__Read*){0}; }); }); }); }); }); } -static struct E_Coll__Option__Flow__Clash* f_Flow__clashOf(srs_cap* p_r, struct E_Flow__Kind* p_k, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_rest_1; s2->tag == 1 ? ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 0 ? ({ f_Flow__clashLN(p_r, p_k, v_a_0, v_b_2); }) : ({ (&N_Coll__None__Flow__Clash); }); }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); } -static struct E_Coll__Option__Flow__Clash* f_Flow__clashLN(srs_cap* p_r, struct E_Flow__Kind* p_k, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 1 ? ({ __auto_type v_line_0 = s0->u.C_D__VInt.f_v; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ __auto_type v_name_1 = s1->u.C_D__VSym.f_s; ({ struct E_Coll__Option__Flow__Clash* o2 = (struct E_Coll__Option__Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Flow__Clash, u) + sizeof(((struct E_Coll__Option__Flow__Clash*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = f_Flow__make(p_r, p_k, v_line_0, v_name_1); o2; }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); } -static struct E_Flow__Read* f_Flow__readAll(srs_cap* p_r, struct E_D__Model* p_m) { return ({ __auto_type res_ = f_Flow__clashes(p_r, p_m, (&N_Flow__KStale), f_Flow__clashes(p_r, p_m, (&N_Flow__KStuck), f_Flow__clashes(p_r, p_m, (&N_Flow__KSplit), f_Flow__clashes(p_r, p_m, (&N_Flow__KUnended), f_Flow__clashes(p_r, p_m, (&N_Flow__KAmbig), f_Flow__clashes(p_r, p_m, (&N_Flow__KExitBad), f_Flow__clashes(p_r, p_m, (&N_Flow__KNoSol), f_Flow__clashes(p_r, p_m, (&N_Flow__KDead), f_Flow__clashes(p_r, p_m, (&N_Flow__KEscape), ({ struct E_Flow__Read* o0 = (struct E_Flow__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Read, u) + sizeof(((struct E_Flow__Read*)0)->u.C_Flow__Got))); o0->tag = 0; o0->u.C_Flow__Got.f_cs = (&N_Coll__Nil__Flow__Clash); o0; })))))))))); res_; }); } -static struct E_Flow__Clash* f_Flow__make(srs_cap* p_r, struct E_Flow__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_name) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Stuck))); o0->tag = 0; o0->u.C_Flow__Stuck.f_line = p_line; o0->u.C_Flow__Stuck.f_cap = p_name; o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Split))); o0->tag = 1; o0->u.C_Flow__Split.f_line = p_line; o0->u.C_Flow__Split.f_cap = p_name; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Unended))); o0->tag = 2; o0->u.C_Flow__Unended.f_line = p_line; o0->u.C_Flow__Unended.f_cap = p_name; o0; }); }) : s0->tag == 3 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Ambig))); o0->tag = 3; o0->u.C_Flow__Ambig.f_line = p_line; o0->u.C_Flow__Ambig.f_cap = p_name; o0; }); }) : s0->tag == 4 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__ExitBad))); o0->tag = 4; o0->u.C_Flow__ExitBad.f_line = p_line; o0->u.C_Flow__ExitBad.f_cap = p_name; o0; }); }) : s0->tag == 5 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__NoSol))); o0->tag = 5; o0->u.C_Flow__NoSol.f_line = p_line; o0->u.C_Flow__NoSol.f_cap = p_name; o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Dead))); o0->tag = 6; o0->u.C_Flow__Dead.f_line = p_line; o0->u.C_Flow__Dead.f_cap = p_name; o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Escape))); o0->tag = 7; o0->u.C_Flow__Escape.f_line = p_line; o0->u.C_Flow__Escape.f_cap = p_name; o0; }); }) : ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Stale))); o0->tag = 8; o0->u.C_Flow__Stale.f_line = p_line; o0->u.C_Flow__Stale.f_x = p_name; o0; }); }); }); } -static struct E_Flow__Verdict* f_Flow__verdictOf(srs_cap* p_r, struct E_Flow__Read* p_rd) { return ({ __auto_type s0 = p_rd; s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_Flow__IllTyped.f_rel; ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__RulesIllTyped))); o1->tag = 4; o1->u.C_Flow__RulesIllTyped.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_cs_0 = s0->u.C_Flow__Got.f_cs; ({ __auto_type s1 = v_cs_0; s1->tag == 0 ? ({ (&N_Flow__Ok); }) : ({ ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__Bad))); o1->tag = 1; o1->u.C_Flow__Bad.f_clashes = v_cs_0; o1; }); }); }); }); }); } -static struct E_Flow__Verdict* f_Flow__check(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = f_D__solve(p_r, f_Flow__rules(p_r), f_Flow__facts(p_r, p_cx, p_f)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; f_Flow__verdictOf(p_r, f_Flow__readAll(p_r, v_m_0)); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__RulesUnsafe))); o1->tag = 2; o1->u.C_Flow__RulesUnsafe.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__RulesNegCycle))); o1->tag = 3; o1->u.C_Flow__RulesNegCycle.f_rel = v_rel_0; o1; }); }); }); res_; }); } -static struct E_Coll__List__D__Rule* f_Flow__capsRules(srs_cap* p_r) { return ({ struct E_D__Rule* v_e1_0 = f_Flow__rule(p_r, (&N_Flow__REdge), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RFlow), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_e2_1 = f_Flow__rule(p_r, (&N_Flow__REdge), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RStep), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))))); struct E_D__Rule* v_e3_2 = f_Flow__rule(p_r, (&N_Flow__REdge), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1)), f_Flow__l1__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RCStep), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_h1_3 = f_Flow__rule(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)1), ((int64_t)14), ((int64_t)3)), f_Flow__l2__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RAssign), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)14), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__REdge), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_h2_4 = f_Flow__rule(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)1), ((int64_t)14), ((int64_t)3)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RAssignFrom), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)14), ((int64_t)15))), f_Flow__pos(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)15), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__REdge), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_h3_5 = f_Flow__rule(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)1), ((int64_t)14), ((int64_t)3)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__REdge), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)14), ((int64_t)3))), f_Flow__neg(p_r, (&N_Flow__RAssigns), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)14))))); struct E_D__Rule* v_dead_6 = f_Flow__rule(p_r, (&N_Flow__RDead), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), ({ struct E_Coll__List__D__Lit* o6 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = f_Flow__pos(p_r, (&N_Flow__RReadAt), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)14), ((int64_t)8))); o6->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o6 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = f_Flow__pos(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)14), ((int64_t)3))); o6->u.C_Coll__Cons.f_t = f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RCapOf), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_r, (&N_Flow__RFin), f_Flow__l2__I64(p_r, ((int64_t)7), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9)))); o6; }); o6; })); struct E_D__Rule* v_esc1_7 = f_Flow__rule(p_r, (&N_Flow__REscape), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l3__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__REscCap), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)3), ((int64_t)8))), f_Flow__pos(p_r, (&N_Flow__RClose), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_esc2_8 = f_Flow__rule(p_r, (&N_Flow__REscape), f_Flow__l2__I64(p_r, ((int64_t)8), ((int64_t)9)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__REscVar), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)15), ((int64_t)8))), f_Flow__pos(p_r, (&N_Flow__RHolds), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)15), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RClose), f_Flow__l2__I64(p_r, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_r, (&N_Flow__RCapName), f_Flow__l2__I64(p_r, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_stale_9 = f_Flow__rule(p_r, (&N_Flow__RStale), f_Flow__l2__I64(p_r, ((int64_t)2), ((int64_t)1)), f_Flow__l4__D__Lit(p_r, f_Flow__pos(p_r, (&N_Flow__RReadAt), f_Flow__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2))), f_Flow__pos(p_r, (&N_Flow__RNeed), f_Flow__l3__I64(p_r, ((int64_t)1), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_r, (&N_Flow__RAt), f_Flow__l4__I64(p_r, ((int64_t)0), ((int64_t)5), ((int64_t)3), ((int64_t)6))), f_Flow__neg(p_r, (&N_Flow__RSameS), f_Flow__l2__I64(p_r, ((int64_t)6), ((int64_t)4))))); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_e1_0; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_e2_1; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_e3_2; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_h1_3; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_h2_4; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_h3_5; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_dead_6; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_esc1_7; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_esc2_8; o10->u.C_Coll__Cons.f_t = f_Flow__l1__D__Rule(p_r, v_stale_9); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); res_; }); } -static struct E_Coll__List__D__Rule* f_Flow__l1__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o0; }); } -static struct E_Flow__St* f_Flow__needs(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann) { return ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_t_0; ({ __auto_type v_tn_1 = s1->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_ps_2 = s2->u.C_Flow__Cx.f_ps; __auto_type v_ts_3 = s2->u.C_Flow__Cx.f_ts; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__typeDecl(p_r, v_ts_3, v_tn_1); s4->tag == 0 ? ({ p_st; }) : ({ __auto_type v_td_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s5 = v_td_4; ({ __auto_type v_gs_5 = s5->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = f_Flow__needAtoms(p_r, v_ps_2, f_Ty__evidence(p_r, v_gs_5, (&N_Coll__Nil__Ast__Binder)), p_x, f_Flow__entryAtoms(p_r, v_gs_5, (&N_Coll__Nil__Ast__Atom)), p_st); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__TypeDecl* f_Flow__typeDecl(srs_cap* p_r, struct E_Coll__List__Ast__TypeDecl* p_ts, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ (&N_Coll__None__Ast__TypeDecl); }) : ({ __auto_type v_td_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_td_0; ({ __auto_type v_m_2 = s2->u.C_Ast__TypeDecl.f_name; ({ __auto_type res_ = (f_Sym__eq(v_m_2, p_n) ? ({ struct E_Coll__Option__Ast__TypeDecl* o3 = (struct E_Coll__Option__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__TypeDecl, u) + sizeof(((struct E_Coll__Option__Ast__TypeDecl*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_td_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__TypeDecl* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_n; p_r = t0; p_ts = t1; p_n = t2; goto srs_tail; (struct E_Coll__Option__Ast__TypeDecl*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__needAtoms(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Atom* p_as, struct E_Flow__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ struct E_Flow__St* v_st2_4 = (Str__eq(f_Sym__str(v_rel_2), ((srs_str){(const uint8_t*)"at", 2})) ? f_Flow__needAt(p_r, p_ps, p_ev, p_x, v_args_3, p_st) : p_st); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Binder* t2 = p_ev; struct E_Sym__Sym* t3 = p_x; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Flow__St* t5 = v_st2_4; p_r = t0; p_ps = t1; p_ev = t2; p_x = t3; p_as = t4; p_st = t5; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__needAt(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Term* p_args, struct E_Flow__St* p_st) { return ({ __auto_type s0 = f_Fx__nth(p_r, p_args, ((int64_t)0)); s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_Fx__nth(p_r, p_args, ((int64_t)1)); s1->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = f_Flow__binderProto(p_r, p_ev, v_b_0); s2->tag == 0 ? ({ p_st; }) : ({ __auto_type v_p_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s3 = p_st; ({ __auto_type v_caps_3 = s3->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__onlyCap(p_r, v_caps_3, v_p_2, (&N_Coll__None__Flow__Cap)); s4->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s5 = v_c_4; ({ __auto_type v_id_5 = s5->u.C_Flow__Cap.f_id; ({ __auto_type res_ = f_Flow__sameStates(p_r, p_ps, v_p_2, f_Flow__add(p_r, p_st, f_Flow__fact3(p_r, (&N_Flow__RNeed), f_Flow__s(p_r, p_x), f_Flow__i(p_r, v_id_5), f_Flow__s(p_r, v_s_1)))); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Flow__binderProto(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_b) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_b) ? ({ struct E_Coll__Option__Sym__Sym* o5 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_tn_4; o5; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_b; p_r = t0; p_bs = t1; p_b = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__sameStates(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Flow__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_pr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_pr_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Proto.f_name; __auto_type v_states_3 = s2->u.C_Ast__Proto.f_states; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_p) ? f_Flow__sameAll(p_r, v_states_3, p_st) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_p; struct E_Flow__St* t3 = p_st; p_r = t0; p_ps = t1; p_p = t2; p_st = t3; goto srs_tail; (struct E_Flow__St*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Flow__St* f_Flow__sameAll(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ss, struct E_Flow__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Flow__St* t2 = f_Flow__add(p_r, p_st, f_Flow__fact2(p_r, (&N_Flow__RSameS), f_Flow__s(p_r, v_s_0), f_Flow__s(p_r, v_s_0))); p_r = t0; p_ss = t1; p_st = t2; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); } +static struct E_D__Arg* f_Flow__v(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o0->tag = 0; o0->u.C_D__AVar.f_n = p_n; o0; }); } +static struct E_D__Atom* f_Flow__atom(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Flow__relSym(p_eff__Region, p_rel); o0->u.C_D__Atom.f_args = f_Flow__vars(p_eff__Region, p_xs); o0; }); } +static struct E_Coll__List__D__Arg* f_Flow__vars(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Flow__v(p_eff__Region, v_x_0); o2->u.C_Coll__Cons.f_t = f_Flow__vars(p_eff__Region, v_rest_1); o2; }); }); }); } +static struct E_D__Lit* f_Flow__pos(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Flow__atom(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_D__Lit* f_Flow__neg(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o0->tag = 1; o0->u.C_D__Neg.f_a = f_Flow__atom(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_D__Rule* f_Flow__rule(srs_cap* p_eff__Region, struct E_Flow__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Flow__atom(p_eff__Region, p_rel, p_xs); o0->u.C_D__Rule.f_body = p_body; o0; }); } +static struct E_Coll__List__D__Rule* f_Flow__rules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_enter_0 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RHandle), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapOf), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_eff__Region, (&N_Flow__RStart), f_Flow__l2__I64(p_eff__Region, ((int64_t)7), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RWorld), f_Flow__l1__I64(p_eff__Region, ((int64_t)2))))); struct E_D__Rule* v_frame_1 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RFlow), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__neg(p_eff__Region, (&N_Flow__RClose), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))))); struct E_D__Rule* v_touch_2 = f_Flow__rule(p_eff__Region, (&N_Flow__RTouch), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RStep), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))))); struct E_D__Rule* v_keep_3 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RStep), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)5), ((int64_t)6))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__neg(p_eff__Region, (&N_Flow__RTouch), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))))); struct E_D__Rule* v_move_4 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)5)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RStep), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapOf), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_eff__Region, (&N_Flow__RTr), f_Flow__l4__I64(p_eff__Region, ((int64_t)7), ((int64_t)6), ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_moved_5 = f_Flow__rule(p_eff__Region, (&N_Flow__RMoved), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RStep), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapOf), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_eff__Region, (&N_Flow__RTr), f_Flow__l4__I64(p_eff__Region, ((int64_t)7), ((int64_t)6), ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_seen_6 = f_Flow__rule(p_eff__Region, (&N_Flow__RSeen), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3)), f_Flow__l2__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RStep), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_stuck_7 = f_Flow__rule(p_eff__Region, (&N_Flow__RStuck), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RSeen), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3))), f_Flow__neg(p_eff__Region, (&N_Flow__RMoved), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2))), f_Flow__pos(p_eff__Region, (&N_Flow__RLine), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)8))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_split_8 = f_Flow__rule(p_eff__Region, (&N_Flow__RSplit), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)3)), f_Flow__l5__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RMerge), f_Flow__l1__I64(p_eff__Region, ((int64_t)0))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)5))), f_Flow__neg(p_eff__Region, (&N_Flow__RSame), f_Flow__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_eff__Region, (&N_Flow__RLine), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)8))))); struct E_D__Rule* v_splitN_9 = f_Flow__rule(p_eff__Region, (&N_Flow__RSplitAt), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l2__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RSplit), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_unended_10 = f_Flow__rule(p_eff__Region, (&N_Flow__RUnended), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)3)), f_Flow__l5__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RClose), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapOf), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)7))), f_Flow__neg(p_eff__Region, (&N_Flow__REndOk), f_Flow__l2__I64(p_eff__Region, ((int64_t)7), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapLine), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)8))))); struct E_D__Rule* v_unendedN_11 = f_Flow__rule(p_eff__Region, (&N_Flow__RUnendedAt), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l2__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RUnended), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9))))); struct E_Coll__List__D__Rule* v_f1_12 = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_enter_0; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_frame_1; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_touch_2; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_keep_3; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_move_4; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_moved_5; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_seen_6; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_stuck_7; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_split_8; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_splitN_9; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_unended_10; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_unendedN_11; o12->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); __auto_type res_ = f_Coll__revOnto__D__Rule(p_eff__Region, f_Coll__rev__D__Rule(p_eff__Region, v_f1_12), f_Coll__revOnto__D__Rule(p_eff__Region, f_Coll__rev__D__Rule(p_eff__Region, f_Flow__callRules(p_eff__Region)), f_Flow__capsRules(p_eff__Region))); res_; }); } +static struct E_Coll__List__D__Lit* f_Flow__l1__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); } +static struct E_Coll__List__D__Lit* f_Flow__l3__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l2__D__Lit(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__D__Lit* f_Flow__l4__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l3__D__Lit(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__I64* f_Flow__l3__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l2__I64(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__I64* f_Flow__l1__I64(srs_cap* p_eff__Region, int64_t p_a) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } +static struct E_Coll__List__D__Lit* f_Flow__l5__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d, struct E_D__Lit* p_e) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l4__D__Lit(p_eff__Region, p_b, p_c, p_d, p_e); o0; }); } +static struct E_Coll__List__I64* f_Flow__l4__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l3__I64(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__D__Lit* f_Flow__l2__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l1__D__Lit(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__I64* f_Flow__l2__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Flow__l1__I64(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Rule* f_Flow__callRules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_touchB_0 = f_Flow__rule(p_eff__Region, (&N_Flow__RTouch), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RBind), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)11), ((int64_t)3))))); struct E_D__Rule* v_cframe_1 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RCStep), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__neg(p_eff__Region, (&N_Flow__RTouch), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))))); struct E_D__Rule* v_ok1_2 = f_Flow__rule(p_eff__Region, (&N_Flow__ROk), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)11)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RFirst), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)11))), f_Flow__pos(p_eff__Region, (&N_Flow__RPre), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)10), ((int64_t)11), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RBind), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)11), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_ok2_3 = f_Flow__rule(p_eff__Region, (&N_Flow__ROk), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)12)), f_Flow__l5__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__ROk), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)11))), f_Flow__pos(p_eff__Region, (&N_Flow__RNext), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)11), ((int64_t)12))), f_Flow__pos(p_eff__Region, (&N_Flow__RPre), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)10), ((int64_t)12), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RBind), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)12), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_fits_4 = f_Flow__rule(p_eff__Region, (&N_Flow__RFits), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10)), f_Flow__l2__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__ROk), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10), ((int64_t)11))), f_Flow__pos(p_eff__Region, (&N_Flow__RLast), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)11))))); struct E_D__Rule* v_cmove_5 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)1), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RFits), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10))), f_Flow__pos(p_eff__Region, (&N_Flow__RCStep), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_eff__Region, (&N_Flow__RPost), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)10), ((int64_t)11), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RBind), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)11), ((int64_t)3))))); struct E_D__Rule* v_cmoved_6 = f_Flow__rule(p_eff__Region, (&N_Flow__RMoved), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RFits), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10))))); struct E_D__Rule* v_cseen_7 = f_Flow__rule(p_eff__Region, (&N_Flow__RCSeen), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)), f_Flow__l2__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RBind), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)11), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_cstuck_8 = f_Flow__rule(p_eff__Region, (&N_Flow__RStuck), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RCSeen), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2))), f_Flow__neg(p_eff__Region, (&N_Flow__RMoved), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2))), f_Flow__pos(p_eff__Region, (&N_Flow__RLine), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)8))), f_Flow__pos(p_eff__Region, (&N_Flow__RCallee), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)9))))); struct E_D__Rule* v_ambig_9 = f_Flow__rule(p_eff__Region, (&N_Flow__RAmbig), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RFits), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)10))), f_Flow__pos(p_eff__Region, (&N_Flow__RFits), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)13))), f_Flow__neg(p_eff__Region, (&N_Flow__RSame), f_Flow__l2__I64(p_eff__Region, ((int64_t)10), ((int64_t)13))))); struct E_D__Rule* v_ambigN_10 = f_Flow__rule(p_eff__Region, (&N_Flow__RAmbigAt), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RAmbig), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)2))), f_Flow__pos(p_eff__Region, (&N_Flow__RLine), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)8))), f_Flow__pos(p_eff__Region, (&N_Flow__RCallee), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)9))))); struct E_D__Rule* v_enterB_11 = f_Flow__rule(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__REnter), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))))); struct E_D__Rule* v_exitBad_12 = f_Flow__rule(p_eff__Region, (&N_Flow__RExitBad), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l5__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RWant), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)5))), f_Flow__neg(p_eff__Region, (&N_Flow__RSame), f_Flow__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)5))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapLine), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)8))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_noSol_13 = f_Flow__rule(p_eff__Region, (&N_Flow__RNoSolAt), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RNoSol), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9))))); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_touchB_0; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cframe_1; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ok1_2; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ok2_3; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_fits_4; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cmove_5; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cmoved_6; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cseen_7; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_cstuck_8; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ambig_9; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_ambigN_10; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_enterB_11; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_exitBad_12; o14->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o14 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o14->tag = 1; o14->u.C_Coll__Cons.f_h = v_noSol_13; o14->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); o14; }); res_; }); } +static struct E_Coll__List__D__Fact* f_Flow__facts(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_exit_3 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_4 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s5 = p_cx; ({ __auto_type v_ps_5 = s5->u.C_Flow__Cx.f_ps; ({ struct E_Coll__List__Flow__CapB* v_bs_6 = f_Flow__capBs(p_eff__Region, v_ps_5, v_gs_2, ((int64_t)0), (&N_Coll__Nil__Flow__CapB)); struct E_Coll__List__Ast__Atom* v_atoms_7 = f_Flow__entryAtoms(p_eff__Region, v_gs_2, (&N_Coll__Nil__Ast__Atom)); struct E_Coll__List__Coll__List_1_Flow__VS* v_as_8 = ({ __auto_type s8 = v_bs_6; s8->tag == 0 ? ({ ({ struct E_Coll__List__Coll__List_1_Flow__VS* o8 = (struct E_Coll__List__Coll__List_1_Flow__VS*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Flow__VS, u) + sizeof(((struct E_Coll__List__Coll__List_1_Flow__VS*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = (&N_Coll__Nil__Flow__VS); o8->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__List_1_Flow__VS); o8; }); }) : ({ f_Flow__assigns(p_eff__Region, v_ps_5, f_Flow__ruleModels(p_eff__Region, v_ps_5, v_bs_6, (&N_Coll__Nil__Flow__PM)), v_bs_6, v_atoms_7, f_Flow__varsOf(p_eff__Region, v_atoms_7, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Flow__VS), (&N_Coll__Nil__Coll__List_1_Flow__VS)); }); }); struct E_Flow__St* v_st0_9 = f_Flow__binderCaps(p_eff__Region, ({ struct E_Flow__St* o9 = (struct E_Flow__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o9->tag = 0; o9->u.C_Flow__St.f_next = ((int64_t)1); o9->u.C_Flow__St.f_facts = (&N_Coll__Nil__D__Fact); o9->u.C_Flow__St.f_caps = (&N_Coll__Nil__Flow__Cap); o9; }), v_bs_6, v_line_0); __auto_type res_ = ({ __auto_type s10 = v_st0_9; ({ __auto_type v_caps_10 = s10->u.C_Flow__St.f_caps; ({ struct E_Flow__St* v_st1_11 = f_Flow__worlds(p_eff__Region, v_ps_5, v_st0_9, f_Coll__rev__Flow__Cap(p_eff__Region, v_caps_10), v_bs_6, v_atoms_7, v_exit_3, v_as_8, ((int64_t)0), (&N_Flow__Entry)); struct E_Flow__At* v_walked_12 = ({ __auto_type s12 = v_body_4; s12->tag == 1 ? ({ ({ struct E_Flow__At* o12 = (struct E_Flow__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__At, u) + sizeof(((struct E_Flow__At*)0)->u.C_Flow__At))); o12->tag = 0; o12->u.C_Flow__At.f_st = v_st1_11; o12->u.C_Flow__At.f_p = ((int64_t)0); o12; }); }) : s12->tag == 0 ? ({ __auto_type v_e_12 = s12->u.C_Ast__Def.f_e; f_Flow__expr(p_eff__Region, p_cx, v_st1_11, ((int64_t)0), v_e_12); }) : ({ __auto_type v_e_12 = s12->u.C_Ast__Spec.f_e; f_Flow__expr(p_eff__Region, p_cx, v_st1_11, ((int64_t)0), v_e_12); }); }); __auto_type res_ = ({ __auto_type s13 = v_walked_12; ({ __auto_type v_st2_13 = s13->u.C_Flow__At.f_st; __auto_type v_e_14 = s13->u.C_Flow__At.f_p; ({ struct E_Flow__St* v_st3_15 = f_Flow__worlds(p_eff__Region, v_ps_5, v_st2_13, f_Coll__rev__Flow__Cap(p_eff__Region, v_caps_10), v_bs_6, v_atoms_7, v_exit_3, v_as_8, ((int64_t)0), ({ struct E_Flow__End* o15 = (struct E_Flow__End*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__End, u) + sizeof(((struct E_Flow__End*)0)->u.C_Flow__Exit))); o15->tag = 1; o15->u.C_Flow__Exit.f_e = v_e_14; o15; })); struct E_Flow__St* v_st4_16 = ({ __auto_type s16 = v_as_8; s16->tag == 0 ? ({ f_Flow__add(p_eff__Region, v_st3_15, f_Flow__fNoSol(p_eff__Region, v_line_0, v_name_1)); }) : ({ v_st3_15; }); }); __auto_type res_ = ({ __auto_type s17 = v_st4_16; ({ __auto_type v_fs_17 = s17->u.C_Flow__St.f_facts; ({ __auto_type res_ = f_Flow__protoFacts(p_eff__Region, v_ps_5, v_fs_17); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Flow__St* f_Flow__binderCaps(srs_cap* p_eff__Region, struct E_Flow__St* p_st, struct E_Coll__List__Flow__CapB* p_bs, int64_t p_line) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Flow__CapB.f_x; __auto_type v_proto_3 = s2->u.C_Flow__CapB.f_proto; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__fresh(p_eff__Region, p_st); ({ __auto_type v_st1_4 = s4->u.C_Flow__At.f_st; __auto_type v_id_5 = s4->u.C_Flow__At.f_p; ({ __auto_type res_ = ({ __auto_type s6 = v_st1_4; ({ __auto_type v_n_6 = s6->u.C_Flow__St.f_next; __auto_type v_fs_7 = s6->u.C_Flow__St.f_facts; __auto_type v_cs_8 = s6->u.C_Flow__St.f_caps; ({ struct E_Flow__St* v_st2_9 = ({ struct E_Flow__St* o9 = (struct E_Flow__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__St, u) + sizeof(((struct E_Flow__St*)0)->u.C_Flow__St))); o9->tag = 0; o9->u.C_Flow__St.f_next = v_n_6; o9->u.C_Flow__St.f_facts = v_fs_7; o9->u.C_Flow__St.f_caps = ({ struct E_Coll__List__Flow__Cap* o9 = (struct E_Coll__List__Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Cap, u) + sizeof(((struct E_Coll__List__Flow__Cap*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Flow__Cap* o9 = (struct E_Flow__Cap*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Cap, u) + sizeof(((struct E_Flow__Cap*)0)->u.C_Flow__Cap))); o9->tag = 0; o9->u.C_Flow__Cap.f_name = v_x_2; o9->u.C_Flow__Cap.f_id = v_id_5; o9->u.C_Flow__Cap.f_proto = v_proto_3; o9->u.C_Flow__Cap.f_line = p_line; o9; }); o9->u.C_Coll__Cons.f_t = v_cs_8; o9; }); o9; }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Flow__St* t1 = f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, f_Flow__add(p_eff__Region, v_st2_9, f_Flow__fCapOf(p_eff__Region, v_id_5, v_proto_3)), f_Flow__fCapName(p_eff__Region, v_id_5, v_x_2)), f_Flow__fCapLine(p_eff__Region, v_id_5, p_line)); struct E_Coll__List__Flow__CapB* t2 = v_rest_1; int64_t t3 = p_line; p_eff__Region = t0; p_st = t1; p_bs = t2; p_line = t3; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__worlds(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Coll__List_1_Flow__VS* p_as, int64_t p_j, struct E_Flow__End* p_end) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Flow__St* v_st1_2 = ({ __auto_type s2 = p_end; s2->tag == 0 ? ({ f_Flow__add(p_eff__Region, p_st, f_Flow__fWorld(p_eff__Region, p_j)); }) : ({ p_st; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = f_Flow__worldCaps(p_eff__Region, p_ps, v_st1_2, p_caps, p_bs, p_atoms, p_exit, v_a_0, p_j, p_end); struct E_Coll__List__Flow__Cap* t3 = p_caps; struct E_Coll__List__Flow__CapB* t4 = p_bs; struct E_Coll__List__Ast__Atom* t5 = p_atoms; struct E_Coll__List__Ast__Atom* t6 = p_exit; struct E_Coll__List__Coll__List_1_Flow__VS* t7 = v_rest_1; int64_t t8 = (p_j + ((int64_t)1)); struct E_Flow__End* t9 = p_end; p_eff__Region = t0; p_ps = t1; p_st = t2; p_caps = t3; p_bs = t4; p_atoms = t5; p_exit = t6; p_as = t7; p_j = t8; p_end = t9; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__worldCaps(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Flow__St* p_st, struct E_Coll__List__Flow__Cap* p_caps, struct E_Coll__List__Flow__CapB* p_bs, struct E_Coll__List__Ast__Atom* p_atoms, struct E_Coll__List__Ast__Atom* p_exit, struct E_Coll__List__Flow__VS* p_a, int64_t p_j, struct E_Flow__End* p_end) { srs_tail: return ({ __auto_type s0 = p_caps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_crest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_bs; s2->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_brest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_c_0; ({ __auto_type v_id_4 = s4->u.C_Flow__Cap.f_id; ({ __auto_type res_ = ({ __auto_type s5 = v_b_2; ({ __auto_type v_x_5 = s5->u.C_Flow__CapB.f_x; __auto_type v_proto_6 = s5->u.C_Flow__CapB.f_proto; ({ struct E_Coll__Option__Sym__Sym* v_pre_7 = ({ __auto_type s7 = f_Flow__atState(p_eff__Region, p_atoms, v_x_5, p_a); s7->tag == 1 ? ({ __auto_type v_s_7 = s7->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Sym__Sym* o8 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = v_s_7; o8; }); }) : ({ f_Flow__startOf(p_eff__Region, p_ps, v_proto_6); }); }); struct E_Flow__St* v_st1_8 = ({ __auto_type s8 = v_pre_7; s8->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_8 = s8->u.C_Coll__Some.f_v; ({ __auto_type s9 = p_end; s9->tag == 0 ? ({ f_Flow__add(p_eff__Region, p_st, f_Flow__fEnter(p_eff__Region, ((int64_t)0), p_j, v_id_4, v_s_8)); }) : ({ __auto_type v_e_9 = s9->u.C_Flow__Exit.f_e; ({ __auto_type s10 = f_Flow__atState(p_eff__Region, p_exit, v_x_5, p_a); s10->tag == 1 ? ({ __auto_type v_o_10 = s10->u.C_Coll__Some.f_v; f_Flow__add(p_eff__Region, p_st, f_Flow__fWant(p_eff__Region, v_e_9, p_j, v_id_4, v_o_10)); }) : ({ f_Flow__add(p_eff__Region, p_st, f_Flow__fWant(p_eff__Region, v_e_9, p_j, v_id_4, v_s_8)); }); }); }); }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Flow__St* t2 = v_st1_8; struct E_Coll__List__Flow__Cap* t3 = v_crest_1; struct E_Coll__List__Flow__CapB* t4 = v_brest_3; struct E_Coll__List__Ast__Atom* t5 = p_atoms; struct E_Coll__List__Ast__Atom* t6 = p_exit; struct E_Coll__List__Flow__VS* t7 = p_a; int64_t t8 = p_j; struct E_Flow__End* t9 = p_end; p_eff__Region = t0; p_ps = t1; p_st = t2; p_caps = t3; p_bs = t4; p_atoms = t5; p_exit = t6; p_a = t7; p_j = t8; p_end = t9; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Flow__Read* f_Flow__clashes(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Flow__Kind* p_k, struct E_Flow__Read* p_prev) { return ({ __auto_type s0 = p_prev; s0->tag == 1 ? ({ p_prev; }) : ({ __auto_type v_acc_0 = s0->u.C_Flow__Got.f_cs; f_Flow__clashList(p_eff__Region, p_k, f_D__tuples(p_eff__Region, p_m, f_Flow__relSym(p_eff__Region, f_Flow__relOf(p_k))), v_acc_0); }); }); } +static struct E_Flow__Read* f_Flow__clashList(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Flow__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Flow__Read* o0 = (struct E_Flow__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Read, u) + sizeof(((struct E_Flow__Read*)0)->u.C_Flow__Got))); o0->tag = 0; o0->u.C_Flow__Got.f_cs = p_acc; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Flow__clashOf(p_eff__Region, p_k, v_t_0); s2->tag == 0 ? ({ ({ struct E_Flow__Read* o2 = (struct E_Flow__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Read, u) + sizeof(((struct E_Flow__Read*)0)->u.C_Flow__IllTyped))); o2->tag = 1; o2->u.C_Flow__IllTyped.f_rel = f_Flow__relSym(p_eff__Region, f_Flow__relOf(p_k)); o2; }); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Kind* t1 = p_k; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = ({ struct E_Coll__List__Flow__Clash* o3 = (struct E_Coll__List__Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Clash, u) + sizeof(((struct E_Coll__List__Flow__Clash*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_c_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_k = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Flow__Read*){0}; }); }); }); }); }); } +static struct E_Coll__Option__Flow__Clash* f_Flow__clashOf(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_rest_1; s2->tag == 1 ? ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 0 ? ({ f_Flow__clashLN(p_eff__Region, p_k, v_a_0, v_b_2); }) : ({ (&N_Coll__None__Flow__Clash); }); }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); } +static struct E_Coll__Option__Flow__Clash* f_Flow__clashLN(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 1 ? ({ __auto_type v_line_0 = s0->u.C_D__VInt.f_v; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ __auto_type v_name_1 = s1->u.C_D__VSym.f_s; ({ struct E_Coll__Option__Flow__Clash* o2 = (struct E_Coll__Option__Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Flow__Clash, u) + sizeof(((struct E_Coll__Option__Flow__Clash*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = f_Flow__make(p_eff__Region, p_k, v_line_0, v_name_1); o2; }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); }) : ({ (&N_Coll__None__Flow__Clash); }); }); } +static struct E_Flow__Read* f_Flow__readAll(srs_cap* p_eff__Region, struct E_D__Model* p_m) { return ({ __auto_type res_ = f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KStale), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KStuck), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KSplit), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KUnended), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KAmbig), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KExitBad), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KNoSol), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KDead), f_Flow__clashes(p_eff__Region, p_m, (&N_Flow__KEscape), ({ struct E_Flow__Read* o0 = (struct E_Flow__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Read, u) + sizeof(((struct E_Flow__Read*)0)->u.C_Flow__Got))); o0->tag = 0; o0->u.C_Flow__Got.f_cs = (&N_Coll__Nil__Flow__Clash); o0; })))))))))); res_; }); } +static struct E_Flow__Clash* f_Flow__make(srs_cap* p_eff__Region, struct E_Flow__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_name) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Stuck))); o0->tag = 0; o0->u.C_Flow__Stuck.f_line = p_line; o0->u.C_Flow__Stuck.f_cap = p_name; o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Split))); o0->tag = 1; o0->u.C_Flow__Split.f_line = p_line; o0->u.C_Flow__Split.f_cap = p_name; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Unended))); o0->tag = 2; o0->u.C_Flow__Unended.f_line = p_line; o0->u.C_Flow__Unended.f_cap = p_name; o0; }); }) : s0->tag == 3 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Ambig))); o0->tag = 3; o0->u.C_Flow__Ambig.f_line = p_line; o0->u.C_Flow__Ambig.f_cap = p_name; o0; }); }) : s0->tag == 4 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__ExitBad))); o0->tag = 4; o0->u.C_Flow__ExitBad.f_line = p_line; o0->u.C_Flow__ExitBad.f_cap = p_name; o0; }); }) : s0->tag == 5 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__NoSol))); o0->tag = 5; o0->u.C_Flow__NoSol.f_line = p_line; o0->u.C_Flow__NoSol.f_cap = p_name; o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Dead))); o0->tag = 6; o0->u.C_Flow__Dead.f_line = p_line; o0->u.C_Flow__Dead.f_cap = p_name; o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Escape))); o0->tag = 7; o0->u.C_Flow__Escape.f_line = p_line; o0->u.C_Flow__Escape.f_cap = p_name; o0; }); }) : ({ ({ struct E_Flow__Clash* o0 = (struct E_Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Clash, u) + sizeof(((struct E_Flow__Clash*)0)->u.C_Flow__Stale))); o0->tag = 8; o0->u.C_Flow__Stale.f_line = p_line; o0->u.C_Flow__Stale.f_x = p_name; o0; }); }); }); } +static struct E_Flow__Verdict* f_Flow__verdictOf(srs_cap* p_eff__Region, struct E_Flow__Read* p_rd) { return ({ __auto_type s0 = p_rd; s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_Flow__IllTyped.f_rel; ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__RulesIllTyped))); o1->tag = 4; o1->u.C_Flow__RulesIllTyped.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_cs_0 = s0->u.C_Flow__Got.f_cs; ({ __auto_type s1 = v_cs_0; s1->tag == 0 ? ({ (&N_Flow__Ok); }) : ({ ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__Bad))); o1->tag = 1; o1->u.C_Flow__Bad.f_clashes = v_cs_0; o1; }); }); }); }); }); } +static struct E_Flow__Verdict* f_Flow__check(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = f_D__solve(p_eff__Region, f_Flow__rules(p_eff__Region), f_Flow__facts(p_eff__Region, p_cx, p_f)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; f_Flow__verdictOf(p_eff__Region, f_Flow__readAll(p_eff__Region, v_m_0)); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__RulesUnsafe))); o1->tag = 2; o1->u.C_Flow__RulesUnsafe.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Flow__Verdict* o1 = (struct E_Flow__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Verdict, u) + sizeof(((struct E_Flow__Verdict*)0)->u.C_Flow__RulesNegCycle))); o1->tag = 3; o1->u.C_Flow__RulesNegCycle.f_rel = v_rel_0; o1; }); }); }); res_; }); } +static struct E_Coll__List__D__Rule* f_Flow__capsRules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_e1_0 = f_Flow__rule(p_eff__Region, (&N_Flow__REdge), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RFlow), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_e2_1 = f_Flow__rule(p_eff__Region, (&N_Flow__REdge), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RStep), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)3), ((int64_t)6))))); struct E_D__Rule* v_e3_2 = f_Flow__rule(p_eff__Region, (&N_Flow__REdge), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)), f_Flow__l1__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RCStep), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_h1_3 = f_Flow__rule(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)1), ((int64_t)14), ((int64_t)3)), f_Flow__l2__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RAssign), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)14), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__REdge), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_h2_4 = f_Flow__rule(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)1), ((int64_t)14), ((int64_t)3)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RAssignFrom), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)14), ((int64_t)15))), f_Flow__pos(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)15), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__REdge), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))))); struct E_D__Rule* v_h3_5 = f_Flow__rule(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)1), ((int64_t)14), ((int64_t)3)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__REdge), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1))), f_Flow__pos(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)14), ((int64_t)3))), f_Flow__neg(p_eff__Region, (&N_Flow__RAssigns), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)14))))); struct E_D__Rule* v_dead_6 = f_Flow__rule(p_eff__Region, (&N_Flow__RDead), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), ({ struct E_Coll__List__D__Lit* o6 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = f_Flow__pos(p_eff__Region, (&N_Flow__RReadAt), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)14), ((int64_t)8))); o6->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o6 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = f_Flow__pos(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)14), ((int64_t)3))); o6->u.C_Coll__Cons.f_t = f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)2), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapOf), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)7))), f_Flow__pos(p_eff__Region, (&N_Flow__RFin), f_Flow__l2__I64(p_eff__Region, ((int64_t)7), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9)))); o6; }); o6; })); struct E_D__Rule* v_esc1_7 = f_Flow__rule(p_eff__Region, (&N_Flow__REscape), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l3__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__REscCap), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)3), ((int64_t)8))), f_Flow__pos(p_eff__Region, (&N_Flow__RClose), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_esc2_8 = f_Flow__rule(p_eff__Region, (&N_Flow__REscape), f_Flow__l2__I64(p_eff__Region, ((int64_t)8), ((int64_t)9)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__REscVar), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)15), ((int64_t)8))), f_Flow__pos(p_eff__Region, (&N_Flow__RHolds), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)15), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RClose), f_Flow__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)3))), f_Flow__pos(p_eff__Region, (&N_Flow__RCapName), f_Flow__l2__I64(p_eff__Region, ((int64_t)3), ((int64_t)9))))); struct E_D__Rule* v_stale_9 = f_Flow__rule(p_eff__Region, (&N_Flow__RStale), f_Flow__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)1)), f_Flow__l4__D__Lit(p_eff__Region, f_Flow__pos(p_eff__Region, (&N_Flow__RReadAt), f_Flow__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2))), f_Flow__pos(p_eff__Region, (&N_Flow__RNeed), f_Flow__l3__I64(p_eff__Region, ((int64_t)1), ((int64_t)3), ((int64_t)4))), f_Flow__pos(p_eff__Region, (&N_Flow__RAt), f_Flow__l4__I64(p_eff__Region, ((int64_t)0), ((int64_t)5), ((int64_t)3), ((int64_t)6))), f_Flow__neg(p_eff__Region, (&N_Flow__RSameS), f_Flow__l2__I64(p_eff__Region, ((int64_t)6), ((int64_t)4))))); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_e1_0; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_e2_1; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_e3_2; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_h1_3; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_h2_4; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_h3_5; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_dead_6; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_esc1_7; o10->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o10 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_esc2_8; o10->u.C_Coll__Cons.f_t = f_Flow__l1__D__Rule(p_eff__Region, v_stale_9); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); o10; }); res_; }); } +static struct E_Coll__List__D__Rule* f_Flow__l1__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o0; }); } +static struct E_Flow__St* f_Flow__needs(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Flow__St* p_st, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann) { return ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_t_0; ({ __auto_type v_tn_1 = s1->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_ps_2 = s2->u.C_Flow__Cx.f_ps; __auto_type v_ts_3 = s2->u.C_Flow__Cx.f_ts; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__typeDecl(p_eff__Region, v_ts_3, v_tn_1); s4->tag == 0 ? ({ p_st; }) : ({ __auto_type v_td_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s5 = v_td_4; ({ __auto_type v_gs_5 = s5->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = f_Flow__needAtoms(p_eff__Region, v_ps_2, f_Ty__evidence(p_eff__Region, v_gs_5, (&N_Coll__Nil__Ast__Binder)), p_x, f_Flow__entryAtoms(p_eff__Region, v_gs_5, (&N_Coll__Nil__Ast__Atom)), p_st); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__TypeDecl* f_Flow__typeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TypeDecl* p_ts, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ (&N_Coll__None__Ast__TypeDecl); }) : ({ __auto_type v_td_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_td_0; ({ __auto_type v_m_2 = s2->u.C_Ast__TypeDecl.f_name; ({ __auto_type res_ = (f_Sym__eq(v_m_2, p_n) ? ({ struct E_Coll__Option__Ast__TypeDecl* o3 = (struct E_Coll__Option__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__TypeDecl, u) + sizeof(((struct E_Coll__Option__Ast__TypeDecl*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_td_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__TypeDecl* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_n; p_eff__Region = t0; p_ts = t1; p_n = t2; goto srs_tail; (struct E_Coll__Option__Ast__TypeDecl*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__needAtoms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Atom* p_as, struct E_Flow__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_args_3 = s2->u.C_Ast__Atom.f_args; ({ struct E_Flow__St* v_st2_4 = (Str__eq(f_Sym__str(v_rel_2), ((srs_str){(const uint8_t*)"at", 2})) ? f_Flow__needAt(p_eff__Region, p_ps, p_ev, p_x, v_args_3, p_st) : p_st); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Binder* t2 = p_ev; struct E_Sym__Sym* t3 = p_x; struct E_Coll__List__Ast__Atom* t4 = v_rest_1; struct E_Flow__St* t5 = v_st2_4; p_eff__Region = t0; p_ps = t1; p_ev = t2; p_x = t3; p_as = t4; p_st = t5; goto srs_tail; (struct E_Flow__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__needAt(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Term* p_args, struct E_Flow__St* p_st) { return ({ __auto_type s0 = f_Fx__nth(p_eff__Region, p_args, ((int64_t)0)); s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_Fx__nth(p_eff__Region, p_args, ((int64_t)1)); s1->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = f_Flow__binderProto(p_eff__Region, p_ev, v_b_0); s2->tag == 0 ? ({ p_st; }) : ({ __auto_type v_p_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s3 = p_st; ({ __auto_type v_caps_3 = s3->u.C_Flow__St.f_caps; ({ __auto_type res_ = ({ __auto_type s4 = f_Flow__onlyCap(p_eff__Region, v_caps_3, v_p_2, (&N_Coll__None__Flow__Cap)); s4->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s5 = v_c_4; ({ __auto_type v_id_5 = s5->u.C_Flow__Cap.f_id; ({ __auto_type res_ = f_Flow__sameStates(p_eff__Region, p_ps, v_p_2, f_Flow__add(p_eff__Region, p_st, f_Flow__fact3(p_eff__Region, (&N_Flow__RNeed), f_Flow__s(p_eff__Region, p_x), f_Flow__i(p_eff__Region, v_id_5), f_Flow__s(p_eff__Region, v_s_1)))); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Flow__binderProto(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_b) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_b) ? ({ struct E_Coll__Option__Sym__Sym* o5 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_tn_4; o5; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_b; p_eff__Region = t0; p_bs = t1; p_b = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__sameStates(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Flow__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_pr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_pr_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Proto.f_name; __auto_type v_states_3 = s2->u.C_Ast__Proto.f_states; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_p) ? f_Flow__sameAll(p_eff__Region, v_states_3, p_st) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_p; struct E_Flow__St* t3 = p_st; p_eff__Region = t0; p_ps = t1; p_p = t2; p_st = t3; goto srs_tail; (struct E_Flow__St*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Flow__St* f_Flow__sameAll(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ss, struct E_Flow__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Flow__St* t2 = f_Flow__add(p_eff__Region, p_st, f_Flow__fact2(p_eff__Region, (&N_Flow__RSameS), f_Flow__s(p_eff__Region, v_s_0), f_Flow__s(p_eff__Region, v_s_0))); p_eff__Region = t0; p_ss = t1; p_st = t2; goto srs_tail; (struct E_Flow__St*){0}; }); }); }); } static int64_t f_Hs__lane(int64_t p_h, int64_t p_x, int64_t p_p, int64_t p_m) { return (((p_x >= ((int64_t)0)) && (p_x < ((int64_t)2147483648))) ? (((p_h * p_p) + p_x) % p_m) : (((p_h * p_p) + (((p_x % p_m) + p_m) % p_m)) % p_m)); } -static struct E_Hs__Dg* f_Hs__add(srs_cap* p_r, struct E_Hs__Dg* p_g, int64_t p_x) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = ({ struct E_Hs__Dg* o4 = (struct E_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o4->tag = 0; o4->u.C_Hs__Dg.f_a = f_Hs__lane(v_a_0, p_x, ((int64_t)1000000007), ((int64_t)4294967291)); o4->u.C_Hs__Dg.f_b = f_Hs__lane(v_b_1, p_x, ((int64_t)998244353), ((int64_t)4294967279)); o4->u.C_Hs__Dg.f_c = f_Hs__lane(v_c_2, p_x, ((int64_t)754974721), ((int64_t)4294967231)); o4->u.C_Hs__Dg.f_d = f_Hs__lane(v_d_3, p_x, ((int64_t)167772161), ((int64_t)4294967197)); o4; }); res_; }); }); }); res_; }); } -static struct E_Hs__Dg* f_Hs__str(srs_cap* p_r, struct E_Hs__Dg* p_g, srs_str p_s) { return f_Hs__bytes(p_r, f_Hs__add(p_r, p_g, Str__len(p_s)), p_s, ((int64_t)0), Str__len(p_s)); } -static struct E_Hs__Dg* f_Hs__bytes(srs_cap* p_r, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = (((p_i + ((int64_t)2)) < p_n) ? ({ srs_cap* t0 = p_r; struct E_Hs__Dg* t1 = f_Hs__add(p_r, p_g, ((Str__at(p_s, p_i) + (((int64_t)256) * Str__at(p_s, (p_i + ((int64_t)1))))) + (((int64_t)65536) * Str__at(p_s, (p_i + ((int64_t)2)))))); srs_str t2 = p_s; int64_t t3 = (p_i + ((int64_t)3)); int64_t t4 = p_n; p_r = t0; p_g = t1; p_s = t2; p_i = t3; p_n = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }) : ((p_i < p_n) ? ({ srs_cap* t0 = p_r; struct E_Hs__Dg* t1 = f_Hs__add(p_r, p_g, Str__at(p_s, p_i)); srs_str t2 = p_s; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_n; p_r = t0; p_g = t1; p_s = t2; p_i = t3; p_n = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }) : p_g)); res_; }); } -static struct E_Hs__Dg* f_Hs__dg(srs_cap* p_r, struct E_Hs__Dg* p_g, struct E_Hs__Dg* p_h) { return ({ __auto_type res_ = ({ __auto_type s0 = p_h; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = f_Hs__add(p_r, f_Hs__add(p_r, f_Hs__add(p_r, f_Hs__add(p_r, p_g, v_a_0), v_b_1), v_c_2), v_d_3); res_; }); }); }); res_; }); } +static struct E_Hs__Dg* f_Hs__add(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, int64_t p_x) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = ({ struct E_Hs__Dg* o4 = (struct E_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o4->tag = 0; o4->u.C_Hs__Dg.f_a = f_Hs__lane(v_a_0, p_x, ((int64_t)1000000007), ((int64_t)4294967291)); o4->u.C_Hs__Dg.f_b = f_Hs__lane(v_b_1, p_x, ((int64_t)998244353), ((int64_t)4294967279)); o4->u.C_Hs__Dg.f_c = f_Hs__lane(v_c_2, p_x, ((int64_t)754974721), ((int64_t)4294967231)); o4->u.C_Hs__Dg.f_d = f_Hs__lane(v_d_3, p_x, ((int64_t)167772161), ((int64_t)4294967197)); o4; }); res_; }); }); }); res_; }); } +static struct E_Hs__Dg* f_Hs__str(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, srs_str p_s) { return f_Hs__bytes(p_eff__Region, f_Hs__add(p_eff__Region, p_g, Str__len(p_s)), p_s, ((int64_t)0), Str__len(p_s)); } +static struct E_Hs__Dg* f_Hs__bytes(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = (((p_i + ((int64_t)2)) < p_n) ? ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Dg* t1 = f_Hs__add(p_eff__Region, p_g, ((Str__at(p_s, p_i) + (((int64_t)256) * Str__at(p_s, (p_i + ((int64_t)1))))) + (((int64_t)65536) * Str__at(p_s, (p_i + ((int64_t)2)))))); srs_str t2 = p_s; int64_t t3 = (p_i + ((int64_t)3)); int64_t t4 = p_n; p_eff__Region = t0; p_g = t1; p_s = t2; p_i = t3; p_n = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }) : ((p_i < p_n) ? ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Dg* t1 = f_Hs__add(p_eff__Region, p_g, Str__at(p_s, p_i)); srs_str t2 = p_s; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_n; p_eff__Region = t0; p_g = t1; p_s = t2; p_i = t3; p_n = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }) : p_g)); res_; }); } +static struct E_Hs__Dg* f_Hs__dg(srs_cap* p_eff__Region, struct E_Hs__Dg* p_g, struct E_Hs__Dg* p_h) { return ({ __auto_type res_ = ({ __auto_type s0 = p_h; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, v_a_0), v_b_1), v_c_2), v_d_3); res_; }); }); }); res_; }); } static bool f_Hs__less(struct E_Hs__Dg* p_x, struct E_Hs__Dg* p_y) { return ({ __auto_type res_ = ({ __auto_type s0 = p_x; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = ({ __auto_type s4 = p_y; ({ __auto_type v_a2_4 = s4->u.C_Hs__Dg.f_a; __auto_type v_b2_5 = s4->u.C_Hs__Dg.f_b; __auto_type v_c2_6 = s4->u.C_Hs__Dg.f_c; __auto_type v_d2_7 = s4->u.C_Hs__Dg.f_d; ({ __auto_type res_ = ((v_a_0 < v_a2_4) || ((v_a_0 == v_a2_4) && ((v_b_1 < v_b2_5) || ((v_b_1 == v_b2_5) && ((v_c_2 < v_c2_6) || ((v_c_2 == v_c2_6) && (v_d_3 < v_d2_7))))))); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Hs__Dg* f_Hs__name(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Sym__Sym* p_x, struct E_Hs__Where* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_hm_0 = s0->u.C_Hs__Cx.f_hm; __auto_type v_mem_1 = s0->u.C_Hs__Cx.f_mem; __auto_type v_pass_2 = s0->u.C_Hs__Cx.f_pass; ({ struct E_Coll__Option__I64* v_pos_3 = ({ __auto_type s3 = p_w; s3->tag == 0 ? ({ f_Hs__index(p_r, p_env, p_x, ((int64_t)0)); }) : ({ (&N_Coll__None__I64); }); }); __auto_type res_ = ({ __auto_type s4 = v_pos_3; s4->tag == 1 ? ({ __auto_type v_i_4 = s4->u.C_Coll__Some.f_v; f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)3)), v_i_4); }) : ({ ({ __auto_type s4 = f_Hs__index(p_r, v_mem_1, p_x, ((int64_t)0)); s4->tag == 1 ? ({ __auto_type v_i_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type s5 = v_pass_2; s5->tag == 0 ? ({ f_Hs__add(p_r, p_g, ((int64_t)5)); }) : ({ f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)6)), v_i_4); }); }); }) : ({ ({ __auto_type s4 = f_Coll__sLookup__Hs__Dg(p_r, v_hm_0, p_x); s4->tag == 1 ? ({ __auto_type v_h_4 = s4->u.C_Coll__Some.f_v; f_Hs__dg(p_r, f_Hs__add(p_r, p_g, ((int64_t)4)), v_h_4); }) : ({ f_Hs__str(p_r, f_Hs__add(p_r, p_g, ((int64_t)2)), f_Sym__str(p_x)); }); }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Hs__Dg* f_Coll__sLookup__Hs__Dg(srs_cap* p_r, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Hs__Dg(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg)), p_s); }); }); } -static struct E_Coll__Option__Hs__Dg* f_Coll__sFind__Hs__Dg(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Hs__Dg); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Hs__Dg* o4 = (struct E_Coll__Option__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Hs__Dg, u) + sizeof(((struct E_Coll__Option__Hs__Dg*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Hs__Dg* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Hs__Dg*){0}; })); }); }); }); }); } +static struct E_Hs__Dg* f_Hs__name(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Sym__Sym* p_x, struct E_Hs__Where* p_w) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_hm_0 = s0->u.C_Hs__Cx.f_hm; __auto_type v_mem_1 = s0->u.C_Hs__Cx.f_mem; __auto_type v_pass_2 = s0->u.C_Hs__Cx.f_pass; ({ struct E_Coll__Option__I64* v_pos_3 = ({ __auto_type s3 = p_w; s3->tag == 0 ? ({ f_Hs__index(p_eff__Region, p_env, p_x, ((int64_t)0)); }) : ({ (&N_Coll__None__I64); }); }); __auto_type res_ = ({ __auto_type s4 = v_pos_3; s4->tag == 1 ? ({ __auto_type v_i_4 = s4->u.C_Coll__Some.f_v; f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)3)), v_i_4); }) : ({ ({ __auto_type s4 = f_Hs__index(p_eff__Region, v_mem_1, p_x, ((int64_t)0)); s4->tag == 1 ? ({ __auto_type v_i_4 = s4->u.C_Coll__Some.f_v; ({ __auto_type s5 = v_pass_2; s5->tag == 0 ? ({ f_Hs__add(p_eff__Region, p_g, ((int64_t)5)); }) : ({ f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)6)), v_i_4); }); }); }) : ({ ({ __auto_type s4 = f_Coll__sLookup__Hs__Dg(p_eff__Region, v_hm_0, p_x); s4->tag == 1 ? ({ __auto_type v_h_4 = s4->u.C_Coll__Some.f_v; f_Hs__dg(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)4)), v_h_4); }) : ({ f_Hs__str(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)2)), f_Sym__str(p_x)); }); }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Hs__Dg* f_Coll__sLookup__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Hs__Dg(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg)), p_s); }); }); } +static struct E_Coll__Option__Hs__Dg* f_Coll__sFind__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Hs__Dg); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Hs__Dg* o4 = (struct E_Coll__Option__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Hs__Dg, u) + sizeof(((struct E_Coll__Option__Hs__Dg*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Hs__Dg* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Hs__Dg*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_t, p_k), p_k, p_d); } static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__Option__I64* f_Hs__index(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_y_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(p_x, v_y_0) ? ({ struct E_Coll__Option__I64* o2 = (struct E_Coll__Option__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_i; o2; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; int64_t t3 = (p_i + ((int64_t)1)); p_r = t0; p_xs = t1; p_x = t2; p_i = t3; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); } -static struct E_Hs__Dg* f_Hs__ty(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Ty* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; __auto_type v_vals_2 = s0->u.C_Ast__Ty.f_vals; ({ __auto_type res_ = f_Hs__exprs(p_r, p_cx, p_env, f_Hs__tys(p_r, p_cx, p_env, f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)9)), f_Coll__length__Ast__Ty(v_args_1)), v_n_0, (&N_Hs__Local)), v_args_1), v_vals_2); res_; }); }); }); res_; }); } +static struct E_Coll__Option__I64* f_Hs__index(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Sym__Sym* p_x, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__I64); }) : ({ __auto_type v_y_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(p_x, v_y_0) ? ({ struct E_Coll__Option__I64* o2 = (struct E_Coll__Option__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__I64, u) + sizeof(((struct E_Coll__Option__I64*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_i; o2; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; int64_t t3 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_xs = t1; p_x = t2; p_i = t3; goto srs_tail; (struct E_Coll__Option__I64*){0}; })); }); }); } +static struct E_Hs__Dg* f_Hs__ty(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Ty* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; __auto_type v_vals_2 = s0->u.C_Ast__Ty.f_vals; ({ __auto_type res_ = f_Hs__exprs(p_eff__Region, p_cx, p_env, f_Hs__tys(p_eff__Region, p_cx, p_env, f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)9)), f_Coll__length__Ast__Ty(v_args_1)), v_n_0, (&N_Hs__Local)), v_args_1), v_vals_2); res_; }); }); }); res_; }); } static int64_t f_Coll__length__Ast__Ty(struct E_Coll__List__Ast__Ty* p_xs) { return f_Coll__lengthFrom__Ast__Ty(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Ty(struct E_Coll__List__Ast__Ty* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Ty* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Hs__Dg* f_Hs__tys(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Ty* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__ty(p_r, p_cx, p_env, p_g, v_t_0); struct E_Coll__List__Ast__Ty* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_ts = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } +static struct E_Hs__Dg* f_Hs__tys(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Ty* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__ty(p_eff__Region, p_cx, p_env, p_g, v_t_0); struct E_Coll__List__Ast__Ty* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_ts = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } static int64_t f_Hs__binOp(struct E_Ast__BinOp* p_op) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ((int64_t)0); }) : s0->tag == 1 ? ({ ((int64_t)1); }) : s0->tag == 2 ? ({ ((int64_t)2); }) : s0->tag == 3 ? ({ ((int64_t)3); }) : s0->tag == 4 ? ({ ((int64_t)4); }) : s0->tag == 5 ? ({ ((int64_t)5); }) : s0->tag == 6 ? ({ ((int64_t)6); }) : s0->tag == 7 ? ({ ((int64_t)7); }) : s0->tag == 8 ? ({ ((int64_t)8); }) : s0->tag == 9 ? ({ ((int64_t)9); }) : s0->tag == 10 ? ({ ((int64_t)10); }) : s0->tag == 11 ? ({ ((int64_t)11); }) : ({ ((int64_t)12); }); }); } -static struct E_Hs__Dg* f_Hs__expr(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)32)), v_v_0); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)33)), (v_v_0 ? ((int64_t)1) : ((int64_t)0))); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; f_Hs__str(p_r, f_Hs__add(p_r, p_g, ((int64_t)34)), v_s_0); }) : s0->tag == 3 ? ({ f_Hs__add(p_r, p_g, ((int64_t)35)); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)36)), v_x_0, (&N_Hs__Local)); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_1 = s0->u.C_Ast__Call.f_targs; __auto_type v_chosen_2 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; ({ struct E_Hs__Dg* v_g1_4 = f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)37)), f_Coll__length__Ast__Expr(v_xs_3)), f_Coll__length__Ast__Ty(v_targs_1)), v_f_0, (&N_Hs__Global)); __auto_type res_ = f_Hs__exprs(p_r, p_cx, p_env, f_Hs__names(p_r, p_cx, p_env, f_Hs__tys(p_r, p_cx, p_env, v_g1_4, v_targs_1), v_chosen_2), v_xs_3); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_recv_0 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_1 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_2 = s0->u.C_Ast__Method.f_args; f_Hs__exprs(p_r, p_cx, p_env, f_Hs__str(p_r, f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)42)), f_Coll__length__Ast__Expr(v_xs_2)), v_recv_0, (&N_Hs__Local)), f_Sym__str(v_op_1)), v_xs_2); }) : s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_1 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_2 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_r, p_cx, p_env, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)43)), f_Hs__binOp(v_op_0)), v_l_1); struct E_Ast__Expr* t4 = v_x_2; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Un.f_op; __auto_type v_x_1 = s0->u.C_Ast__Un.f_e; ({ int64_t v_k_2 = ({ __auto_type s2 = v_op_0; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ((int64_t)1); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)44)), v_k_2); struct E_Ast__Expr* t4 = v_x_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_r, p_cx, p_env, f_Hs__expr(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)45)), v_c_0), v_t_1); struct E_Ast__Expr* t4 = v_x_2; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Hs__arms(p_r, p_cx, p_env, f_Hs__expr(p_r, p_cx, p_env, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)46)), f_Coll__length__Ast__Arm(v_arms_1)), v_s_0), v_arms_1); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ __auto_type res_ = ({ __auto_type s2 = f_Hs__stmts(p_r, p_cx, ({ struct E_Hs__W* o2 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o2->tag = 0; o2->u.C_Hs__W.f_g = f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)50)), f_Coll__length__Ast__Stmt(v_ss_0)); o2->u.C_Hs__W.f_env = p_env; o2; }), v_ss_0); ({ __auto_type v_g1_2 = s2->u.C_Hs__W.f_g; __auto_type v_env1_3 = s2->u.C_Hs__W.f_env; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = v_env1_3; struct E_Hs__Dg* t3 = v_g1_2; struct E_Ast__Expr* t4 = v_last_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)51)), v_c_0); struct E_Ast__Expr* t4 = v_b_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)52)), v_x_0, (&N_Hs__Local)); struct E_Ast__Expr* t4 = v_v_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : ({ __auto_type v_q_0 = s0->u.C_Ast__Quant.f_q; __auto_type v_x_1 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_2 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_3 = s0->u.C_Ast__Quant.f_e; ({ int64_t v_k_4 = ({ __auto_type s4 = v_q_0; s4->tag == 0 ? ({ ((int64_t)47); }) : ({ ((int64_t)48); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_1; o5->u.C_Coll__Cons.f_t = p_env; o5; }); struct E_Hs__Dg* t3 = f_Hs__ty(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, v_k_4), v_t_2); struct E_Ast__Expr* t4 = v_b_3; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__expr(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Ast__Expr* p_e) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)32)), v_v_0); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)33)), (v_v_0 ? ((int64_t)1) : ((int64_t)0))); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; f_Hs__str(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)34)), v_s_0); }) : s0->tag == 3 ? ({ f_Hs__add(p_eff__Region, p_g, ((int64_t)35)); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)36)), v_x_0, (&N_Hs__Local)); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_1 = s0->u.C_Ast__Call.f_targs; __auto_type v_chosen_2 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; ({ struct E_Hs__Dg* v_g1_4 = f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)37)), f_Coll__length__Ast__Expr(v_xs_3)), f_Coll__length__Ast__Ty(v_targs_1)), v_f_0, (&N_Hs__Global)); __auto_type res_ = f_Hs__exprs(p_eff__Region, p_cx, p_env, f_Hs__names(p_eff__Region, p_cx, p_env, f_Hs__tys(p_eff__Region, p_cx, p_env, v_g1_4, v_targs_1), v_chosen_2), v_xs_3); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_recv_0 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_1 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_2 = s0->u.C_Ast__Method.f_args; f_Hs__exprs(p_eff__Region, p_cx, p_env, f_Hs__str(p_eff__Region, f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)42)), f_Coll__length__Ast__Expr(v_xs_2)), v_recv_0, (&N_Hs__Local)), f_Sym__str(v_op_1)), v_xs_2); }) : s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_1 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_2 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)43)), f_Hs__binOp(v_op_0)), v_l_1); struct E_Ast__Expr* t4 = v_x_2; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Un.f_op; __auto_type v_x_1 = s0->u.C_Ast__Un.f_e; ({ int64_t v_k_2 = ({ __auto_type s2 = v_op_0; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ ((int64_t)1); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)44)), v_k_2); struct E_Ast__Expr* t4 = v_x_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)45)), v_c_0), v_t_1); struct E_Ast__Expr* t4 = v_x_2; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Hs__arms(p_eff__Region, p_cx, p_env, f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)46)), f_Coll__length__Ast__Arm(v_arms_1)), v_s_0), v_arms_1); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ __auto_type res_ = ({ __auto_type s2 = f_Hs__stmts(p_eff__Region, p_cx, ({ struct E_Hs__W* o2 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o2->tag = 0; o2->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)50)), f_Coll__length__Ast__Stmt(v_ss_0)); o2->u.C_Hs__W.f_env = p_env; o2; }), v_ss_0); ({ __auto_type v_g1_2 = s2->u.C_Hs__W.f_g; __auto_type v_env1_3 = s2->u.C_Hs__W.f_env; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = v_env1_3; struct E_Hs__Dg* t3 = v_g1_2; struct E_Ast__Expr* t4 = v_last_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)51)), v_c_0); struct E_Ast__Expr* t4 = v_b_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_1 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)52)), v_x_0, (&N_Hs__Local)); struct E_Ast__Expr* t4 = v_v_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }) : ({ __auto_type v_q_0 = s0->u.C_Ast__Quant.f_q; __auto_type v_x_1 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_2 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_3 = s0->u.C_Ast__Quant.f_e; ({ int64_t v_k_4 = ({ __auto_type s4 = v_q_0; s4->tag == 0 ? ({ ((int64_t)47); }) : ({ ((int64_t)48); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_1; o5->u.C_Coll__Cons.f_t = p_env; o5; }); struct E_Hs__Dg* t3 = f_Hs__ty(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, v_k_4), v_t_2); struct E_Ast__Expr* t4 = v_b_3; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_e = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); } static int64_t f_Coll__length__Ast__Expr(struct E_Coll__List__Ast__Expr* p_xs) { return f_Coll__lengthFrom__Ast__Expr(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Expr(struct E_Coll__List__Ast__Expr* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Expr* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } static int64_t f_Coll__length__Ast__Arm(struct E_Coll__List__Ast__Arm* p_xs) { return f_Coll__lengthFrom__Ast__Arm(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Arm(struct E_Coll__List__Ast__Arm* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Arm* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } static int64_t f_Coll__length__Ast__Stmt(struct E_Coll__List__Ast__Stmt* p_xs) { return f_Coll__lengthFrom__Ast__Stmt(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Stmt(struct E_Coll__List__Ast__Stmt* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Stmt* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Hs__Dg* f_Hs__exprs(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_r, p_cx, p_env, p_g, v_x_0); struct E_Coll__List__Ast__Expr* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_xs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } -static struct E_Hs__Dg* f_Hs__names(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Sym__Sym* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__name(p_r, p_cx, p_env, p_g, v_x_0, (&N_Hs__Local)); struct E_Coll__List__Sym__Sym* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_xs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } -static struct E_Hs__Dg* f_Hs__arms(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ struct E_Hs__Dg* v_g2_4 = ({ __auto_type s4 = v_p_2; s4->tag == 1 ? ({ f_Hs__expr(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)49)), v_b_3); }) : ({ __auto_type v_c_4 = s4->u.C_Ast__PCase.f_c; __auto_type v_binds_5 = s4->u.C_Ast__PCase.f_binds; f_Hs__expr(p_r, p_cx, f_Coll__revOnto__Sym__Sym(p_r, v_binds_5, p_env), f_Hs__add(p_r, f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)49)), v_c_4, (&N_Hs__Global)), f_Coll__length__Sym__Sym(v_binds_5)), v_b_3); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_4; struct E_Coll__List__Ast__Arm* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_as = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__W* f_Hs__stmts(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Stmt* p_ss) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_g_2 = s2->u.C_Hs__W.f_g; __auto_type v_env_3 = s2->u.C_Hs__W.f_env; ({ struct E_Hs__W* v_w2_4 = ({ __auto_type s4 = v_s_0; s4->tag == 0 ? ({ __auto_type v_x_4 = s4->u.C_Ast__Val.f_x; __auto_type v_ann_5 = s4->u.C_Ast__Val.f_ann; __auto_type v_e_6 = s4->u.C_Ast__Val.f_e; ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__expr(p_r, p_cx, v_env_3, f_Hs__ann(p_r, p_cx, v_env_3, f_Hs__add(p_r, v_g_2, ((int64_t)53)), v_ann_5), v_e_6); o7->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o7 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_x_4; o7->u.C_Coll__Cons.f_t = v_env_3; o7; }); o7; }); }) : s4->tag == 1 ? ({ __auto_type v_x_4 = s4->u.C_Ast__Var.f_x; __auto_type v_ann_5 = s4->u.C_Ast__Var.f_ann; __auto_type v_e_6 = s4->u.C_Ast__Var.f_e; ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__expr(p_r, p_cx, v_env_3, f_Hs__ann(p_r, p_cx, v_env_3, f_Hs__add(p_r, v_g_2, ((int64_t)57)), v_ann_5), v_e_6); o7->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o7 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_x_4; o7->u.C_Coll__Cons.f_t = v_env_3; o7; }); o7; }); }) : s4->tag == 2 ? ({ __auto_type v_x_4 = s4->u.C_Ast__Handle.f_x; __auto_type v_h_5 = s4->u.C_Ast__Handle.f_h; __auto_type v_xs_6 = s4->u.C_Ast__Handle.f_args; ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__exprs(p_r, p_cx, v_env_3, f_Hs__name(p_r, p_cx, v_env_3, f_Hs__add(p_r, v_g_2, ((int64_t)54)), v_h_5, (&N_Hs__Global)), v_xs_6); o7->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o7 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_x_4; o7->u.C_Coll__Cons.f_t = v_env_3; o7; }); o7; }); }) : s4->tag == 3 ? ({ __auto_type v_e_4 = s4->u.C_Ast__Do.f_e; ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__expr(p_r, p_cx, v_env_3, f_Hs__add(p_r, v_g_2, ((int64_t)55)), v_e_4); o5->u.C_Hs__W.f_env = v_env_3; o5; }); }) : ({ __auto_type v_k_4 = s4->u.C_Ast__Check.f_k; __auto_type v_e_5 = s4->u.C_Ast__Check.f_e; ({ int64_t v_c_6 = ({ __auto_type s6 = v_k_4; s6->tag == 0 ? ({ ((int64_t)0); }) : ({ ((int64_t)1); }); }); __auto_type res_ = ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__expr(p_r, p_cx, v_env_3, f_Hs__add(p_r, f_Hs__add(p_r, v_g_2, ((int64_t)56)), v_c_6), v_e_5); o7->u.C_Hs__W.f_env = v_env_3; o7; }); res_; }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Hs__W* t2 = v_w2_4; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; p_r = t0; p_cx = t1; p_w = t2; p_ss = t3; goto srs_tail; (struct E_Hs__W*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__ann(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__Option__Ast__Ty* p_a) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ f_Hs__add(p_r, p_g, ((int64_t)0)); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; f_Hs__ty(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)1)), v_t_0); }); }); } -static struct E_Hs__W* f_Hs__binders(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Binder* p_bs) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_g_2 = s2->u.C_Hs__W.f_g; __auto_type v_env_3 = s2->u.C_Hs__W.f_env; ({ __auto_type res_ = ({ __auto_type s4 = v_b_0; ({ __auto_type v_x_4 = s4->u.C_Ast__Binder.f_x; __auto_type v_t_5 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Hs__W* t2 = ({ struct E_Hs__W* o6 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o6->tag = 0; o6->u.C_Hs__W.f_g = f_Hs__ty(p_r, p_cx, v_env_3, f_Hs__add(p_r, v_g_2, ((int64_t)28)), v_t_5); o6->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o6 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_x_4; o6->u.C_Coll__Cons.f_t = v_env_3; o6; }); o6; }); struct E_Coll__List__Ast__Binder* t3 = v_rest_1; p_r = t0; p_cx = t1; p_w = t2; p_bs = t3; goto srs_tail; (struct E_Hs__W*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__W* f_Hs__groups(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Group* p_gs) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_gr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_g_2 = s2->u.C_Hs__W.f_g; __auto_type v_env_3 = s2->u.C_Hs__W.f_env; ({ struct E_Hs__W* v_w2_4 = ({ __auto_type s4 = v_gr_0; s4->tag == 0 ? ({ __auto_type v_bs_4 = s4->u.C_Ast__Types.f_bs; f_Hs__binders(p_r, p_cx, ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__add(p_r, v_g_2, ((int64_t)26)); o5->u.C_Hs__W.f_env = v_env_3; o5; }), v_bs_4); }) : s4->tag == 1 ? ({ __auto_type v_bs_4 = s4->u.C_Ast__Evidence.f_bs; f_Hs__binders(p_r, p_cx, ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__add(p_r, v_g_2, ((int64_t)27)); o5->u.C_Hs__W.f_env = v_env_3; o5; }), v_bs_4); }) : ({ __auto_type v_as_4 = s4->u.C_Ast__Facts.f_atoms; ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__atoms(p_r, p_cx, v_env_3, f_Hs__add(p_r, v_g_2, ((int64_t)29)), v_as_4); o5->u.C_Hs__W.f_env = v_env_3; o5; }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Hs__W* t2 = v_w2_4; struct E_Coll__List__Ast__Group* t3 = v_rest_1; p_r = t0; p_cx = t1; p_w = t2; p_gs = t3; goto srs_tail; (struct E_Hs__W*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__atoms(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Atom* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_ts_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__terms(p_r, p_cx, p_env, f_Hs__str(p_r, f_Hs__add(p_r, p_g, f_Coll__length__Ast__Term(v_ts_3)), f_Sym__str(v_rel_2)), v_ts_3); struct E_Coll__List__Ast__Atom* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_as = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__terms(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Hs__Dg* v_g2_2 = ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)30)), v_x_2, (&N_Hs__Local)); }) : ({ __auto_type v_v_2 = s2->u.C_Ast__TNum.f_v; f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)31)), v_v_2); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_2; struct E_Coll__List__Ast__Term* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_ts = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__clauses(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Clause* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Hs__Dg* v_g2_2 = ({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_k_2 = s2->u.C_Ast__CondC.f_k; __auto_type v_e_3 = s2->u.C_Ast__CondC.f_e; ({ int64_t v_kc_4 = ({ __auto_type s4 = v_k_2; s4->tag == 0 ? ({ ((int64_t)0); }) : s4->tag == 1 ? ({ ((int64_t)1); }) : s4->tag == 2 ? ({ ((int64_t)2); }) : s4->tag == 3 ? ({ ((int64_t)3); }) : ({ ((int64_t)4); }); }); __auto_type res_ = f_Hs__expr(p_r, p_cx, p_env, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)58)), v_kc_4), v_e_3); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__ProofUsing.f_xs; f_Hs__names(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)59)), v_xs_2); }) : s2->tag == 2 ? ({ __auto_type v_x_2 = s2->u.C_Ast__ProofInduction.f_x; f_Hs__name(p_r, p_cx, p_env, f_Hs__add(p_r, p_g, ((int64_t)60)), v_x_2, (&N_Hs__Local)); }) : ({ __auto_type v_s_2 = s2->u.C_Ast__ProofLean.f_s; f_Hs__str(p_r, f_Hs__add(p_r, p_g, ((int64_t)61)), v_s_2); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_2; struct E_Coll__List__Ast__Clause* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_cs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__fn(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_1 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_2 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_3 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_4 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s5 = f_Hs__groups(p_r, p_cx, ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__add(p_r, ({ struct E_Hs__Dg* o5 = (struct E_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o5->tag = 0; o5->u.C_Hs__Dg.f_a = ((int64_t)1); o5->u.C_Hs__Dg.f_b = ((int64_t)2); o5->u.C_Hs__Dg.f_c = ((int64_t)3); o5->u.C_Hs__Dg.f_d = ((int64_t)4); o5; }), ((int64_t)12)); o5->u.C_Hs__W.f_env = (&N_Coll__Nil__Sym__Sym); o5; }), v_gs_0); ({ __auto_type v_g1_5 = s5->u.C_Hs__W.f_g; __auto_type v_env1_6 = s5->u.C_Hs__W.f_env; ({ __auto_type res_ = ({ __auto_type s7 = f_Hs__binders(p_r, p_cx, ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__add(p_r, v_g1_5, f_Coll__length__Ast__Binder(v_ps_1)); o7->u.C_Hs__W.f_env = v_env1_6; o7; }), v_ps_1); ({ __auto_type v_g2_7 = s7->u.C_Hs__W.f_g; __auto_type v_env2_8 = s7->u.C_Hs__W.f_env; ({ struct E_Hs__Dg* v_g3_9 = f_Hs__atoms(p_r, p_cx, v_env2_8, f_Hs__ty(p_r, p_cx, v_env2_8, v_g2_7, v_ret_2), v_exit_3); __auto_type res_ = ({ __auto_type s10 = v_body_4; s10->tag == 1 ? ({ f_Hs__add(p_r, v_g3_9, ((int64_t)70)); }) : s10->tag == 0 ? ({ __auto_type v_cs_10 = s10->u.C_Ast__Def.f_cs; __auto_type v_e_11 = s10->u.C_Ast__Def.f_e; f_Hs__clauses(p_r, p_cx, v_env2_8, f_Hs__expr(p_r, p_cx, v_env2_8, f_Hs__add(p_r, v_g3_9, ((int64_t)71)), v_e_11), v_cs_10); }) : ({ __auto_type v_cs_10 = s10->u.C_Ast__Spec.f_cs; __auto_type v_e_11 = s10->u.C_Ast__Spec.f_e; f_Hs__clauses(p_r, p_cx, v_env2_8, f_Hs__expr(p_r, p_cx, v_env2_8, f_Hs__add(p_r, v_g3_9, ((int64_t)72)), v_e_11), v_cs_10); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Hs__Dg* f_Hs__enum_(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Ast__Enum* p_e) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_gs_0 = s0->u.C_Ast__Enum.f_groups; __auto_type v_cases_1 = s0->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ __auto_type s2 = f_Hs__groups(p_r, p_cx, ({ struct E_Hs__W* o2 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o2->tag = 0; o2->u.C_Hs__W.f_g = f_Hs__add(p_r, ({ struct E_Hs__Dg* o2 = (struct E_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o2->tag = 0; o2->u.C_Hs__Dg.f_a = ((int64_t)1); o2->u.C_Hs__Dg.f_b = ((int64_t)2); o2->u.C_Hs__Dg.f_c = ((int64_t)3); o2->u.C_Hs__Dg.f_d = ((int64_t)4); o2; }), ((int64_t)13)); o2->u.C_Hs__W.f_env = (&N_Coll__Nil__Sym__Sym); o2; }), v_gs_0); ({ __auto_type v_g1_2 = s2->u.C_Hs__W.f_g; __auto_type v_env1_3 = s2->u.C_Hs__W.f_env; ({ __auto_type res_ = f_Hs__cases(p_r, p_cx, v_env1_3, f_Hs__add(p_r, v_g1_2, f_Coll__length__Ast__Case(v_cases_1)), v_cases_1); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Hs__Dg* f_Hs__exprs(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__expr(p_eff__Region, p_cx, p_env, p_g, v_x_0); struct E_Coll__List__Ast__Expr* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_xs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } +static struct E_Hs__Dg* f_Hs__names(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Sym__Sym* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__name(p_eff__Region, p_cx, p_env, p_g, v_x_0, (&N_Hs__Local)); struct E_Coll__List__Sym__Sym* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_xs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } +static struct E_Hs__Dg* f_Hs__arms(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_3 = s2->u.C_Ast__Arm.f_body; ({ struct E_Hs__Dg* v_g2_4 = ({ __auto_type s4 = v_p_2; s4->tag == 1 ? ({ f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)49)), v_b_3); }) : ({ __auto_type v_c_4 = s4->u.C_Ast__PCase.f_c; __auto_type v_binds_5 = s4->u.C_Ast__PCase.f_binds; f_Hs__expr(p_eff__Region, p_cx, f_Coll__revOnto__Sym__Sym(p_eff__Region, v_binds_5, p_env), f_Hs__add(p_eff__Region, f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)49)), v_c_4, (&N_Hs__Global)), f_Coll__length__Sym__Sym(v_binds_5)), v_b_3); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_4; struct E_Coll__List__Ast__Arm* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_as = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__W* f_Hs__stmts(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Stmt* p_ss) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_g_2 = s2->u.C_Hs__W.f_g; __auto_type v_env_3 = s2->u.C_Hs__W.f_env; ({ struct E_Hs__W* v_w2_4 = ({ __auto_type s4 = v_s_0; s4->tag == 0 ? ({ __auto_type v_x_4 = s4->u.C_Ast__Val.f_x; __auto_type v_ann_5 = s4->u.C_Ast__Val.f_ann; __auto_type v_e_6 = s4->u.C_Ast__Val.f_e; ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__expr(p_eff__Region, p_cx, v_env_3, f_Hs__ann(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)53)), v_ann_5), v_e_6); o7->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o7 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_x_4; o7->u.C_Coll__Cons.f_t = v_env_3; o7; }); o7; }); }) : s4->tag == 1 ? ({ __auto_type v_x_4 = s4->u.C_Ast__Var.f_x; __auto_type v_ann_5 = s4->u.C_Ast__Var.f_ann; __auto_type v_e_6 = s4->u.C_Ast__Var.f_e; ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__expr(p_eff__Region, p_cx, v_env_3, f_Hs__ann(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)57)), v_ann_5), v_e_6); o7->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o7 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_x_4; o7->u.C_Coll__Cons.f_t = v_env_3; o7; }); o7; }); }) : s4->tag == 2 ? ({ __auto_type v_x_4 = s4->u.C_Ast__Handle.f_x; __auto_type v_h_5 = s4->u.C_Ast__Handle.f_h; __auto_type v_xs_6 = s4->u.C_Ast__Handle.f_args; ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__exprs(p_eff__Region, p_cx, v_env_3, f_Hs__name(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)54)), v_h_5, (&N_Hs__Global)), v_xs_6); o7->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o7 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_x_4; o7->u.C_Coll__Cons.f_t = v_env_3; o7; }); o7; }); }) : s4->tag == 3 ? ({ __auto_type v_e_4 = s4->u.C_Ast__Do.f_e; ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__expr(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)55)), v_e_4); o5->u.C_Hs__W.f_env = v_env_3; o5; }); }) : ({ __auto_type v_k_4 = s4->u.C_Ast__Check.f_k; __auto_type v_e_5 = s4->u.C_Ast__Check.f_e; ({ int64_t v_c_6 = ({ __auto_type s6 = v_k_4; s6->tag == 0 ? ({ ((int64_t)0); }) : ({ ((int64_t)1); }); }); __auto_type res_ = ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__expr(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)56)), v_c_6), v_e_5); o7->u.C_Hs__W.f_env = v_env_3; o7; }); res_; }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Hs__W* t2 = v_w2_4; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_w = t2; p_ss = t3; goto srs_tail; (struct E_Hs__W*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__ann(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__Option__Ast__Ty* p_a) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ f_Hs__add(p_eff__Region, p_g, ((int64_t)0)); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; f_Hs__ty(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)1)), v_t_0); }); }); } +static struct E_Hs__W* f_Hs__binders(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Binder* p_bs) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_g_2 = s2->u.C_Hs__W.f_g; __auto_type v_env_3 = s2->u.C_Hs__W.f_env; ({ __auto_type res_ = ({ __auto_type s4 = v_b_0; ({ __auto_type v_x_4 = s4->u.C_Ast__Binder.f_x; __auto_type v_t_5 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Hs__W* t2 = ({ struct E_Hs__W* o6 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o6->tag = 0; o6->u.C_Hs__W.f_g = f_Hs__ty(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)28)), v_t_5); o6->u.C_Hs__W.f_env = ({ struct E_Coll__List__Sym__Sym* o6 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_x_4; o6->u.C_Coll__Cons.f_t = v_env_3; o6; }); o6; }); struct E_Coll__List__Ast__Binder* t3 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_w = t2; p_bs = t3; goto srs_tail; (struct E_Hs__W*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__W* f_Hs__groups(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__W* p_w, struct E_Coll__List__Ast__Group* p_gs) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_gr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_w; ({ __auto_type v_g_2 = s2->u.C_Hs__W.f_g; __auto_type v_env_3 = s2->u.C_Hs__W.f_env; ({ struct E_Hs__W* v_w2_4 = ({ __auto_type s4 = v_gr_0; s4->tag == 0 ? ({ __auto_type v_bs_4 = s4->u.C_Ast__Types.f_bs; f_Hs__binders(p_eff__Region, p_cx, ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, v_g_2, ((int64_t)26)); o5->u.C_Hs__W.f_env = v_env_3; o5; }), v_bs_4); }) : s4->tag == 1 ? ({ __auto_type v_bs_4 = s4->u.C_Ast__Evidence.f_bs; f_Hs__binders(p_eff__Region, p_cx, ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, v_g_2, ((int64_t)27)); o5->u.C_Hs__W.f_env = v_env_3; o5; }), v_bs_4); }) : ({ __auto_type v_as_4 = s4->u.C_Ast__Facts.f_atoms; ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__atoms(p_eff__Region, p_cx, v_env_3, f_Hs__add(p_eff__Region, v_g_2, ((int64_t)29)), v_as_4); o5->u.C_Hs__W.f_env = v_env_3; o5; }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Hs__W* t2 = v_w2_4; struct E_Coll__List__Ast__Group* t3 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_w = t2; p_gs = t3; goto srs_tail; (struct E_Hs__W*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__atoms(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Atom* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_rel_2 = s2->u.C_Ast__Atom.f_rel; __auto_type v_ts_3 = s2->u.C_Ast__Atom.f_args; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = f_Hs__terms(p_eff__Region, p_cx, p_env, f_Hs__str(p_eff__Region, f_Hs__add(p_eff__Region, p_g, f_Coll__length__Ast__Term(v_ts_3)), f_Sym__str(v_rel_2)), v_ts_3); struct E_Coll__List__Ast__Atom* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_as = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__terms(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Hs__Dg* v_g2_2 = ({ __auto_type s2 = v_t_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__TName.f_n; f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)30)), v_x_2, (&N_Hs__Local)); }) : ({ __auto_type v_v_2 = s2->u.C_Ast__TNum.f_v; f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)31)), v_v_2); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_2; struct E_Coll__List__Ast__Term* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_ts = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__clauses(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Clause* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Hs__Dg* v_g2_2 = ({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_k_2 = s2->u.C_Ast__CondC.f_k; __auto_type v_e_3 = s2->u.C_Ast__CondC.f_e; ({ int64_t v_kc_4 = ({ __auto_type s4 = v_k_2; s4->tag == 0 ? ({ ((int64_t)0); }) : s4->tag == 1 ? ({ ((int64_t)1); }) : s4->tag == 2 ? ({ ((int64_t)2); }) : s4->tag == 3 ? ({ ((int64_t)3); }) : ({ ((int64_t)4); }); }); __auto_type res_ = f_Hs__expr(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)58)), v_kc_4), v_e_3); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__ProofUsing.f_xs; f_Hs__names(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)59)), v_xs_2); }) : s2->tag == 2 ? ({ __auto_type v_x_2 = s2->u.C_Ast__ProofInduction.f_x; f_Hs__name(p_eff__Region, p_cx, p_env, f_Hs__add(p_eff__Region, p_g, ((int64_t)60)), v_x_2, (&N_Hs__Local)); }) : ({ __auto_type v_s_2 = s2->u.C_Ast__ProofLean.f_s; f_Hs__str(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)61)), v_s_2); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_2; struct E_Coll__List__Ast__Clause* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_cs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__fn(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Ast__Fn* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_1 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_2 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_3 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_4 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s5 = f_Hs__groups(p_eff__Region, p_cx, ({ struct E_Hs__W* o5 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o5->tag = 0; o5->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, ({ struct E_Hs__Dg* o5 = (struct E_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o5->tag = 0; o5->u.C_Hs__Dg.f_a = ((int64_t)1); o5->u.C_Hs__Dg.f_b = ((int64_t)2); o5->u.C_Hs__Dg.f_c = ((int64_t)3); o5->u.C_Hs__Dg.f_d = ((int64_t)4); o5; }), ((int64_t)12)); o5->u.C_Hs__W.f_env = (&N_Coll__Nil__Sym__Sym); o5; }), v_gs_0); ({ __auto_type v_g1_5 = s5->u.C_Hs__W.f_g; __auto_type v_env1_6 = s5->u.C_Hs__W.f_env; ({ __auto_type res_ = ({ __auto_type s7 = f_Hs__binders(p_eff__Region, p_cx, ({ struct E_Hs__W* o7 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o7->tag = 0; o7->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, v_g1_5, f_Coll__length__Ast__Binder(v_ps_1)); o7->u.C_Hs__W.f_env = v_env1_6; o7; }), v_ps_1); ({ __auto_type v_g2_7 = s7->u.C_Hs__W.f_g; __auto_type v_env2_8 = s7->u.C_Hs__W.f_env; ({ struct E_Hs__Dg* v_g3_9 = f_Hs__atoms(p_eff__Region, p_cx, v_env2_8, f_Hs__ty(p_eff__Region, p_cx, v_env2_8, v_g2_7, v_ret_2), v_exit_3); __auto_type res_ = ({ __auto_type s10 = v_body_4; s10->tag == 1 ? ({ f_Hs__add(p_eff__Region, v_g3_9, ((int64_t)70)); }) : s10->tag == 0 ? ({ __auto_type v_cs_10 = s10->u.C_Ast__Def.f_cs; __auto_type v_e_11 = s10->u.C_Ast__Def.f_e; f_Hs__clauses(p_eff__Region, p_cx, v_env2_8, f_Hs__expr(p_eff__Region, p_cx, v_env2_8, f_Hs__add(p_eff__Region, v_g3_9, ((int64_t)71)), v_e_11), v_cs_10); }) : ({ __auto_type v_cs_10 = s10->u.C_Ast__Spec.f_cs; __auto_type v_e_11 = s10->u.C_Ast__Spec.f_e; f_Hs__clauses(p_eff__Region, p_cx, v_env2_8, f_Hs__expr(p_eff__Region, p_cx, v_env2_8, f_Hs__add(p_eff__Region, v_g3_9, ((int64_t)72)), v_e_11), v_cs_10); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Hs__Dg* f_Hs__enum_(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Ast__Enum* p_e) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_gs_0 = s0->u.C_Ast__Enum.f_groups; __auto_type v_cases_1 = s0->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ __auto_type s2 = f_Hs__groups(p_eff__Region, p_cx, ({ struct E_Hs__W* o2 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o2->tag = 0; o2->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, ({ struct E_Hs__Dg* o2 = (struct E_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o2->tag = 0; o2->u.C_Hs__Dg.f_a = ((int64_t)1); o2->u.C_Hs__Dg.f_b = ((int64_t)2); o2->u.C_Hs__Dg.f_c = ((int64_t)3); o2->u.C_Hs__Dg.f_d = ((int64_t)4); o2; }), ((int64_t)13)); o2->u.C_Hs__W.f_env = (&N_Coll__Nil__Sym__Sym); o2; }), v_gs_0); ({ __auto_type v_g1_2 = s2->u.C_Hs__W.f_g; __auto_type v_env1_3 = s2->u.C_Hs__W.f_env; ({ __auto_type res_ = f_Hs__cases(p_eff__Region, p_cx, v_env1_3, f_Hs__add(p_eff__Region, v_g1_2, f_Coll__length__Ast__Case(v_cases_1)), v_cases_1); res_; }); }); }); res_; }); }); }); res_; }); } static int64_t f_Coll__length__Ast__Case(struct E_Coll__List__Ast__Case* p_xs) { return f_Coll__lengthFrom__Ast__Case(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ast__Case(struct E_Coll__List__Ast__Case* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ast__Case* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Hs__Dg* f_Hs__cases(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_fs_2 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s3 = f_Hs__binders(p_r, p_cx, ({ struct E_Hs__W* o3 = (struct E_Hs__W*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o3->tag = 0; o3->u.C_Hs__W.f_g = f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)14)), f_Coll__length__Ast__Binder(v_fs_2)); o3->u.C_Hs__W.f_env = p_env; o3; }), v_fs_2); ({ __auto_type v_g2_3 = s3->u.C_Hs__W.f_g; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_3; struct E_Coll__List__Ast__Case* t4 = v_rest_1; p_r = t0; p_cx = t1; p_env = t2; p_g = t3; p_cs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__cases(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_env, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_fs_2 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s3 = f_Hs__binders(p_eff__Region, p_cx, ({ struct E_Hs__W* o3 = (struct E_Hs__W*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__W, u) + sizeof(((struct E_Hs__W*)0)->u.C_Hs__W))); o3->tag = 0; o3->u.C_Hs__W.f_g = f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)14)), f_Coll__length__Ast__Binder(v_fs_2)); o3->u.C_Hs__W.f_env = p_env; o3; }), v_fs_2); ({ __auto_type v_g2_3 = s3->u.C_Hs__W.f_g; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Hs__Cx* t1 = p_cx; struct E_Coll__List__Sym__Sym* t2 = p_env; struct E_Hs__Dg* t3 = v_g2_3; struct E_Coll__List__Ast__Case* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_env = t2; p_g = t3; p_cs = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } static struct E_Sym__Sym* f_Hs__dName(struct E_Hs__D* p_d) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Hs__DF.f_f; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_n_1 = s1->u.C_Ast__Fn.f_name; ({ __auto_type res_ = v_n_1; res_; }); }); }); res_; }); }) : ({ __auto_type v_e_0 = s0->u.C_Hs__DE.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_n_1 = s1->u.C_Ast__Enum.f_name; ({ __auto_type res_ = v_n_1; res_; }); }); }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__hashD(srs_cap* p_r, struct E_Hs__Cx* p_cx, struct E_Hs__D* p_d) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Hs__DF.f_f; f_Hs__fn(p_r, p_cx, v_f_0); }) : ({ __auto_type v_e_0 = s0->u.C_Hs__DE.f_e; f_Hs__enum_(p_r, p_cx, v_e_0); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__refs(srs_cap* p_r, struct E_Hs__D* p_d, struct E_Coll__List__Sym__Sym* p_acc) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Hs__DF.f_f; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_body_1 = s1->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s2 = v_body_1; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Def.f_e; f_Hs__eRefs(p_r, v_e_2, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Spec.f_e; f_Hs__eRefs(p_r, v_e_2, p_acc); }) : ({ p_acc; }); }); res_; }); }); }); res_; }); }) : ({ __auto_type v_e_0 = s0->u.C_Hs__DE.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_cases_1 = s1->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Hs__caseRefs(p_r, v_cases_1, p_acc); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__caseRefs(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_fs_2 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__binderRefs(p_r, v_fs_2, p_acc); p_r = t0; p_cs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__binderRefs(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__tyRefs(p_r, v_t_2, p_acc); p_r = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__tyRefs(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; ({ __auto_type res_ = f_Hs__tysRefs(p_r, v_args_1, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_n_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); res_; }); }); }); res_; }); } -static struct E_Coll__List__Sym__Sym* f_Hs__tysRefs(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__tyRefs(p_r, v_t_0, p_acc); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__eRefs(srs_cap* p_r, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ struct E_Coll__List__Sym__Sym* o1 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_x_0; o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Hs__esRefs(p_r, v_xs_1, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_f_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Hs__esRefs(p_r, v_xs_0, p_acc); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_r, v_l_0, p_acc); p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_2; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_r, v_t_1, f_Hs__eRefs(p_r, v_c_0, p_acc)); p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Hs__armRefs(p_r, v_arms_1, f_Hs__eRefs(p_r, v_s_0, p_acc)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_last_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__stmtRefs(p_r, v_ss_0, p_acc); p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_b_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_r, v_c_0, p_acc); p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_b_0 = s0->u.C_Ast__Quant.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_b_0; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ p_acc; }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__esRefs(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Expr* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_r, v_x_0, p_acc); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__armRefs(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_r, v_b_2, p_acc); p_r = t0; p_as = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__stmtRefs(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Sym__Sym* v_acc2_2 = ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Val.f_e; f_Hs__eRefs(p_r, v_e_2, p_acc); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Var.f_e; f_Hs__eRefs(p_r, v_e_2, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__Handle.f_args; f_Hs__esRefs(p_r, v_xs_2, p_acc); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; f_Hs__eRefs(p_r, v_e_2, p_acc); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; f_Hs__eRefs(p_r, v_e_2, p_acc); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = v_acc2_2; p_r = t0; p_ss = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__edges(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__Hs__D(p_r, p_dm, p_x); s0->tag == 0 ? ({ (&N_Coll__Nil__Sym__Sym); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Some.f_v; f_Hs__inMap(p_r, p_dm, f_Hs__refs(p_r, v_d_0, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Sym__Sym)); }); }); } -static struct E_Coll__Option__Hs__D* f_Coll__sLookup__Hs__D(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Hs__D(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__D(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Hs__D)), p_s); }); }); } -static struct E_Coll__Option__Hs__D* f_Coll__sFind__Hs__D(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Hs__D); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Hs__D* o4 = (struct E_Coll__Option__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Hs__D, u) + sizeof(((struct E_Coll__Option__Hs__D*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Hs__D* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Hs__D*){0}; })); }); }); }); }); } +static struct E_Hs__Dg* f_Hs__hashD(srs_cap* p_eff__Region, struct E_Hs__Cx* p_cx, struct E_Hs__D* p_d) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Hs__DF.f_f; f_Hs__fn(p_eff__Region, p_cx, v_f_0); }) : ({ __auto_type v_e_0 = s0->u.C_Hs__DE.f_e; f_Hs__enum_(p_eff__Region, p_cx, v_e_0); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__refs(srs_cap* p_eff__Region, struct E_Hs__D* p_d, struct E_Coll__List__Sym__Sym* p_acc) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Hs__DF.f_f; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_body_1 = s1->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s2 = v_body_1; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Def.f_e; f_Hs__eRefs(p_eff__Region, v_e_2, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Spec.f_e; f_Hs__eRefs(p_eff__Region, v_e_2, p_acc); }) : ({ p_acc; }); }); res_; }); }); }); res_; }); }) : ({ __auto_type v_e_0 = s0->u.C_Hs__DE.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_cases_1 = s1->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Hs__caseRefs(p_eff__Region, v_cases_1, p_acc); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__caseRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_fs_2 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__binderRefs(p_eff__Region, v_fs_2, p_acc); p_eff__Region = t0; p_cs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__binderRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__tyRefs(p_eff__Region, v_t_2, p_acc); p_eff__Region = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__tyRefs(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; ({ __auto_type res_ = f_Hs__tysRefs(p_eff__Region, v_args_1, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_n_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); res_; }); }); }); res_; }); } +static struct E_Coll__List__Sym__Sym* f_Hs__tysRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__tyRefs(p_eff__Region, v_t_0, p_acc); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__eRefs(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ struct E_Coll__List__Sym__Sym* o1 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_x_0; o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Hs__esRefs(p_eff__Region, v_xs_1, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_f_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Hs__esRefs(p_eff__Region, v_xs_0, p_acc); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_eff__Region, v_l_0, p_acc); p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_2; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_eff__Region, v_t_1, f_Hs__eRefs(p_eff__Region, v_c_0, p_acc)); p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Hs__armRefs(p_eff__Region, v_arms_1, f_Hs__eRefs(p_eff__Region, v_s_0, p_acc)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_last_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__stmtRefs(p_eff__Region, v_ss_0, p_acc); p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_b_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_eff__Region, v_c_0, p_acc); p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_b_0 = s0->u.C_Ast__Quant.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_b_0; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_e = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ p_acc; }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__esRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Expr* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_eff__Region, v_x_0, p_acc); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__armRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Hs__eRefs(p_eff__Region, v_b_2, p_acc); p_eff__Region = t0; p_as = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__stmtRefs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Sym__Sym* v_acc2_2 = ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Val.f_e; f_Hs__eRefs(p_eff__Region, v_e_2, p_acc); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Var.f_e; f_Hs__eRefs(p_eff__Region, v_e_2, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__Handle.f_args; f_Hs__esRefs(p_eff__Region, v_xs_2, p_acc); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; f_Hs__eRefs(p_eff__Region, v_e_2, p_acc); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; f_Hs__eRefs(p_eff__Region, v_e_2, p_acc); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = v_acc2_2; p_eff__Region = t0; p_ss = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__edges(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__Hs__D(p_eff__Region, p_dm, p_x); s0->tag == 0 ? ({ (&N_Coll__Nil__Sym__Sym); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Some.f_v; f_Hs__inMap(p_eff__Region, p_dm, f_Hs__refs(p_eff__Region, v_d_0, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Sym__Sym)); }); }); } +static struct E_Coll__Option__Hs__D* f_Coll__sLookup__Hs__D(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Hs__D(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__D(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Hs__D)), p_s); }); }); } +static struct E_Coll__Option__Hs__D* f_Coll__sFind__Hs__D(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Hs__D); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Hs__D* o4 = (struct E_Coll__Option__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Hs__D, u) + sizeof(((struct E_Coll__Option__Hs__D*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Hs__D* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Hs__D*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__D(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__D(p_t, p_k), p_k, p_d); } static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__inMap(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Coll__sLookup__Hs__D(p_r, p_dm, v_x_0); s2->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_dm = t1; p_xs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = p_acc; p_r = t0; p_dm = t1; p_xs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } -static int64_t f_Hs__geti(srs_cap* p_r, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__I64(p_r, p_m, p_x); s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Coll__Some.f_v; v_i_0; }) : ({ (((int64_t)0) - ((int64_t)1)); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__inMap(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Coll__sLookup__Hs__D(p_eff__Region, p_dm, v_x_0); s2->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_dm = t1; p_xs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = p_acc; p_eff__Region = t0; p_dm = t1; p_xs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } +static int64_t f_Hs__geti(srs_cap* p_eff__Region, struct E_Coll__SMap__I64* p_m, struct E_Sym__Sym* p_x) { return ({ __auto_type s0 = f_Coll__sLookup__I64(p_eff__Region, p_m, p_x); s0->tag == 1 ? ({ __auto_type v_i_0 = s0->u.C_Coll__Some.f_v; v_i_0; }) : ({ (((int64_t)0) - ((int64_t)1)); }); }); } static int64_t f_Hs__min(int64_t p_a, int64_t p_b) { return ((p_a < p_b) ? p_a : p_b); } -static struct E_Hs__T* f_Hs__visit(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Hs__T* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Hs__T.f_next; __auto_type v_idx_1 = s0->u.C_Hs__T.f_idx; __auto_type v_low_2 = s0->u.C_Hs__T.f_low; __auto_type v_st_3 = s0->u.C_Hs__T.f_stack; __auto_type v_on_4 = s0->u.C_Hs__T.f_on; __auto_type v_cs_5 = s0->u.C_Hs__T.f_comps; ({ struct E_Hs__T* v_t1_6 = ({ struct E_Hs__T* o6 = (struct E_Hs__T*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o6->tag = 0; o6->u.C_Hs__T.f_next = (v_n_0 + ((int64_t)1)); o6->u.C_Hs__T.f_idx = f_Coll__sInsert__I64(p_r, v_idx_1, p_v, v_n_0); o6->u.C_Hs__T.f_low = f_Coll__sInsert__I64(p_r, v_low_2, p_v, v_n_0); o6->u.C_Hs__T.f_stack = ({ struct E_Coll__List__Sym__Sym* o6 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_v; o6->u.C_Coll__Cons.f_t = v_st_3; o6; }); o6->u.C_Hs__T.f_on = f_Coll__sInsert__Bool(p_r, v_on_4, p_v, true); o6->u.C_Hs__T.f_comps = v_cs_5; o6; }); struct E_Hs__T* v_t2_7 = f_Hs__succs(p_r, p_dm, p_v, f_Hs__edges(p_r, p_dm, p_v), v_t1_6); __auto_type res_ = ({ __auto_type s8 = v_t2_7; ({ __auto_type v_n2_8 = s8->u.C_Hs__T.f_next; __auto_type v_idx2_9 = s8->u.C_Hs__T.f_idx; __auto_type v_low2_10 = s8->u.C_Hs__T.f_low; __auto_type v_st2_11 = s8->u.C_Hs__T.f_stack; __auto_type v_on2_12 = s8->u.C_Hs__T.f_on; __auto_type v_cs2_13 = s8->u.C_Hs__T.f_comps; ({ __auto_type res_ = ((f_Hs__geti(p_r, v_low2_10, p_v) == f_Hs__geti(p_r, v_idx2_9, p_v)) ? ({ __auto_type res_ = ({ __auto_type s14 = f_Hs__pop(p_r, p_v, v_st2_11, v_on2_12, (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_comp_14 = s14->u.C_Hs__Pop.f_comp; __auto_type v_rest_15 = s14->u.C_Hs__Pop.f_rest; __auto_type v_on3_16 = s14->u.C_Hs__Pop.f_on; ({ __auto_type res_ = ({ struct E_Hs__T* o17 = (struct E_Hs__T*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o17->tag = 0; o17->u.C_Hs__T.f_next = v_n2_8; o17->u.C_Hs__T.f_idx = v_idx2_9; o17->u.C_Hs__T.f_low = v_low2_10; o17->u.C_Hs__T.f_stack = v_rest_15; o17->u.C_Hs__T.f_on = v_on3_16; o17->u.C_Hs__T.f_comps = ({ struct E_Coll__List__Coll__List_1_Sym__Sym* o17 = (struct E_Coll__List__Coll__List_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__List_1_Sym__Sym*)0)->u.C_Coll__Cons))); o17->tag = 1; o17->u.C_Coll__Cons.f_h = v_comp_14; o17->u.C_Coll__Cons.f_t = v_cs2_13; o17; }); o17; }); res_; }); }); }); res_; }) : v_t2_7); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Hs__T* f_Hs__succs(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_ws, struct E_Hs__T* p_t) { srs_tail: return ({ __auto_type s0 = p_ws; s0->tag == 0 ? ({ p_t; }) : ({ __auto_type v_w_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_t; ({ __auto_type v_idx_2 = s2->u.C_Hs__T.f_idx; __auto_type v_on_3 = s2->u.C_Hs__T.f_on; ({ __auto_type res_ = ((f_Hs__geti(p_r, v_idx_2, v_w_0) < ((int64_t)0)) ? ({ struct E_Hs__T* v_t2_4 = f_Hs__visit(p_r, p_dm, v_w_0, p_t); __auto_type res_ = ({ __auto_type s5 = v_t2_4; ({ __auto_type v_n2_5 = s5->u.C_Hs__T.f_next; __auto_type v_idx2_6 = s5->u.C_Hs__T.f_idx; __auto_type v_low2_7 = s5->u.C_Hs__T.f_low; __auto_type v_st2_8 = s5->u.C_Hs__T.f_stack; __auto_type v_on2_9 = s5->u.C_Hs__T.f_on; __auto_type v_cs2_10 = s5->u.C_Hs__T.f_comps; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Sym__Sym* t2 = p_v; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__T* t4 = ({ struct E_Hs__T* o11 = (struct E_Hs__T*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o11->tag = 0; o11->u.C_Hs__T.f_next = v_n2_5; o11->u.C_Hs__T.f_idx = v_idx2_6; o11->u.C_Hs__T.f_low = f_Coll__sInsert__I64(p_r, v_low2_7, p_v, f_Hs__min(f_Hs__geti(p_r, v_low2_7, p_v), f_Hs__geti(p_r, v_low2_7, v_w_0))); o11->u.C_Hs__T.f_stack = v_st2_8; o11->u.C_Hs__T.f_on = v_on2_9; o11->u.C_Hs__T.f_comps = v_cs2_10; o11; }); p_r = t0; p_dm = t1; p_v = t2; p_ws = t3; p_t = t4; goto srs_tail; (struct E_Hs__T*){0}; }); res_; }); }); }); res_; }) : (f_Hs__onStack(p_r, v_on_3, v_w_0) ? ({ __auto_type res_ = ({ __auto_type s4 = p_t; ({ __auto_type v_n2_4 = s4->u.C_Hs__T.f_next; __auto_type v_idx2_5 = s4->u.C_Hs__T.f_idx; __auto_type v_low2_6 = s4->u.C_Hs__T.f_low; __auto_type v_st2_7 = s4->u.C_Hs__T.f_stack; __auto_type v_on2_8 = s4->u.C_Hs__T.f_on; __auto_type v_cs2_9 = s4->u.C_Hs__T.f_comps; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Sym__Sym* t2 = p_v; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__T* t4 = ({ struct E_Hs__T* o10 = (struct E_Hs__T*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o10->tag = 0; o10->u.C_Hs__T.f_next = v_n2_4; o10->u.C_Hs__T.f_idx = v_idx2_5; o10->u.C_Hs__T.f_low = f_Coll__sInsert__I64(p_r, v_low2_6, p_v, f_Hs__min(f_Hs__geti(p_r, v_low2_6, p_v), f_Hs__geti(p_r, v_idx2_5, v_w_0))); o10->u.C_Hs__T.f_stack = v_st2_7; o10->u.C_Hs__T.f_on = v_on2_8; o10->u.C_Hs__T.f_comps = v_cs2_9; o10; }); p_r = t0; p_dm = t1; p_v = t2; p_ws = t3; p_t = t4; goto srs_tail; (struct E_Hs__T*){0}; }); res_; }); }); }); res_; }) : ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Sym__Sym* t2 = p_v; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__T* t4 = p_t; p_r = t0; p_dm = t1; p_v = t2; p_ws = t3; p_t = t4; goto srs_tail; (struct E_Hs__T*){0}; }))); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__Pop* f_Hs__pop(srs_cap* p_r, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_st, struct E_Coll__SMap__Bool* p_on, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_st; s0->tag == 0 ? ({ ({ struct E_Hs__Pop* o0 = (struct E_Hs__Pop*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Pop, u) + sizeof(((struct E_Hs__Pop*)0)->u.C_Hs__Pop))); o0->tag = 0; o0->u.C_Hs__Pop.f_comp = p_acc; o0->u.C_Hs__Pop.f_rest = (&N_Coll__Nil__Sym__Sym); o0->u.C_Hs__Pop.f_on = p_on; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__SMap__Bool* v_on2_2 = f_Coll__sInsert__Bool(p_r, p_on, v_x_0, false); __auto_type res_ = (f_Sym__eq(v_x_0, p_v) ? ({ struct E_Hs__Pop* o3 = (struct E_Hs__Pop*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Pop, u) + sizeof(((struct E_Hs__Pop*)0)->u.C_Hs__Pop))); o3->tag = 0; o3->u.C_Hs__Pop.f_comp = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); o3->u.C_Hs__Pop.f_rest = v_rest_1; o3->u.C_Hs__Pop.f_on = v_on2_2; o3; }) : ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_v; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__SMap__Bool* t3 = v_on2_2; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_v = t1; p_st = t2; p_on = t3; p_acc = t4; goto srs_tail; (struct E_Hs__Pop*){0}; })); res_; }); }); }); } -static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Hs__comps(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_order, struct E_Hs__T* p_t) { srs_tail: return ({ __auto_type s0 = p_order; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_cs_0 = s0->u.C_Hs__T.f_comps; ({ __auto_type res_ = f_Coll__rev__Coll__List_1_Sym__Sym(p_r, v_cs_0); res_; }); }); }); res_; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_t; ({ __auto_type v_idx_2 = s2->u.C_Hs__T.f_idx; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Hs__T* t3 = ((f_Hs__geti(p_r, v_idx_2, v_x_0) < ((int64_t)0)) ? f_Hs__visit(p_r, p_dm, v_x_0, p_t) : p_t); p_r = t0; p_dm = t1; p_order = t2; p_t = t3; goto srs_tail; (struct E_Coll__List__Coll__List_1_Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__rev__Coll__List_1_Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs) { return f_Coll__revOnto__Coll__List_1_Sym__Sym(p_r, p_xs, (&N_Coll__Nil__Coll__List_1_Sym__Sym)); } -static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__revOnto__Coll__List_1_Sym__Sym(srs_cap* p_r, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs, struct E_Coll__List__Coll__List_1_Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__List_1_Sym__Sym* t1 = v_t_1; struct E_Coll__List__Coll__List_1_Sym__Sym* t2 = ({ struct E_Coll__List__Coll__List_1_Sym__Sym* o2 = (struct E_Coll__List__Coll__List_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__List_1_Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Coll__List_1_Sym__Sym*){0}; }); }); }); } -static struct E_Coll__SMap__Hs__Dg* f_Hs__comp(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_ms) { return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ bool v_selfRef_2 = f_Ty__memberSym(v_m_0, f_Hs__edges(p_r, p_dm, v_m_0)); __auto_type res_ = (((f_Coll__length__Sym__Sym(v_more_1) == ((int64_t)0)) && (!v_selfRef_2)) ? f_Hs__put(p_r, p_dm, p_hm, v_m_0, f_Hs__hashOf(p_r, p_dm, ({ struct E_Hs__Cx* o3 = (struct E_Hs__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Cx, u) + sizeof(((struct E_Hs__Cx*)0)->u.C_Hs__Cx))); o3->tag = 0; o3->u.C_Hs__Cx.f_hm = p_hm; o3->u.C_Hs__Cx.f_mem = (&N_Coll__Nil__Sym__Sym); o3->u.C_Hs__Cx.f_pass = (&N_Hs__Second); o3; }), v_m_0)) : ({ struct E_Coll__List__Sym__Sym* v_order_3 = f_Hs__sorted(p_r, p_dm, p_hm, p_ms, p_ms, (&N_Coll__Nil__Hs__M)); struct E_Hs__Dg* v_whole_4 = f_Hs__whole(p_r, p_dm, ({ struct E_Hs__Cx* o4 = (struct E_Hs__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Cx, u) + sizeof(((struct E_Hs__Cx*)0)->u.C_Hs__Cx))); o4->tag = 0; o4->u.C_Hs__Cx.f_hm = p_hm; o4->u.C_Hs__Cx.f_mem = v_order_3; o4->u.C_Hs__Cx.f_pass = (&N_Hs__Second); o4; }), v_order_3, ({ struct E_Hs__Dg* o4 = (struct E_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o4->tag = 0; o4->u.C_Hs__Dg.f_a = ((int64_t)9); o4->u.C_Hs__Dg.f_b = ((int64_t)9); o4->u.C_Hs__Dg.f_c = ((int64_t)9); o4->u.C_Hs__Dg.f_d = ((int64_t)9); o4; })); __auto_type res_ = f_Hs__members(p_r, p_dm, p_hm, v_whole_4, v_order_3, ((int64_t)0)); res_; })); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__hashOf(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Sym__Sym* p_m) { return ({ __auto_type s0 = f_Coll__sLookup__Hs__D(p_r, p_dm, p_m); s0->tag == 1 ? ({ __auto_type v_d_0 = s0->u.C_Coll__Some.f_v; f_Hs__hashD(p_r, p_cx, v_d_0); }) : ({ ({ struct E_Hs__Dg* o0 = (struct E_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o0->tag = 0; o0->u.C_Hs__Dg.f_a = ((int64_t)0); o0->u.C_Hs__Dg.f_b = ((int64_t)0); o0->u.C_Hs__Dg.f_c = ((int64_t)0); o0->u.C_Hs__Dg.f_d = ((int64_t)0); o0; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__sorted(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_all, struct E_Coll__List__Sym__Sym* p_ms, struct E_Coll__List__Hs__M* p_acc) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ f_Hs__mNames(p_r, p_acc, (&N_Coll__Nil__Sym__Sym)); }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__SMap__Hs__Dg* t2 = p_hm; struct E_Coll__List__Sym__Sym* t3 = p_all; struct E_Coll__List__Sym__Sym* t4 = v_rest_1; struct E_Coll__List__Hs__M* t5 = f_Hs__ins(p_r, p_acc, ({ struct E_Hs__M* o2 = (struct E_Hs__M*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__M, u) + sizeof(((struct E_Hs__M*)0)->u.C_Hs__M))); o2->tag = 0; o2->u.C_Hs__M.f_name = v_m_0; o2->u.C_Hs__M.f_g = f_Hs__hashOf(p_r, p_dm, ({ struct E_Hs__Cx* o2 = (struct E_Hs__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Cx, u) + sizeof(((struct E_Hs__Cx*)0)->u.C_Hs__Cx))); o2->tag = 0; o2->u.C_Hs__Cx.f_hm = p_hm; o2->u.C_Hs__Cx.f_mem = p_all; o2->u.C_Hs__Cx.f_pass = (&N_Hs__First); o2; }), v_m_0); o2; })); p_r = t0; p_dm = t1; p_hm = t2; p_all = t3; p_ms = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } -static struct E_Coll__List__Hs__M* f_Hs__ins(srs_cap* p_r, struct E_Coll__List__Hs__M* p_xs, struct E_Hs__M* p_m) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Hs__M* o0 = (struct E_Coll__List__Hs__M*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Hs__M, u) + sizeof(((struct E_Coll__List__Hs__M*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_m; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Hs__M); o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_m; ({ __auto_type v_g_2 = s2->u.C_Hs__M.f_g; ({ __auto_type res_ = ({ __auto_type s3 = v_x_0; ({ __auto_type v_h_3 = s3->u.C_Hs__M.f_g; ({ __auto_type res_ = (f_Hs__less(v_g_2, v_h_3) ? ({ struct E_Coll__List__Hs__M* o4 = (struct E_Coll__List__Hs__M*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Hs__M, u) + sizeof(((struct E_Coll__List__Hs__M*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = p_m; o4->u.C_Coll__Cons.f_t = p_xs; o4; }) : ({ struct E_Coll__List__Hs__M* o4 = (struct E_Coll__List__Hs__M*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Hs__M, u) + sizeof(((struct E_Coll__List__Hs__M*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_0; o4->u.C_Coll__Cons.f_t = f_Hs__ins(p_r, v_rest_1, p_m); o4; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Hs__mNames(srs_cap* p_r, struct E_Coll__List__Hs__M* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_r, p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Hs__M.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Hs__M* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_n_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Hs__Dg* f_Hs__whole(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_ms, struct E_Hs__Dg* p_g) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Hs__Cx* t2 = p_cx; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__Dg* t4 = f_Hs__dg(p_r, p_g, f_Hs__hashOf(p_r, p_dm, p_cx, v_m_0)); p_r = t0; p_dm = t1; p_cx = t2; p_ms = t3; p_g = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } -static struct E_Coll__SMap__Hs__Dg* f_Hs__members(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_whole, struct E_Coll__List__Sym__Sym* p_ms, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__SMap__Hs__Dg* t2 = f_Hs__put(p_r, p_dm, p_hm, v_m_0, f_Hs__add(p_r, f_Hs__add(p_r, p_whole, ((int64_t)10)), p_i)); struct E_Hs__Dg* t3 = p_whole; struct E_Coll__List__Sym__Sym* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); p_r = t0; p_dm = t1; p_hm = t2; p_whole = t3; p_ms = t4; p_i = t5; goto srs_tail; (struct E_Coll__SMap__Hs__Dg*){0}; }); }); }); } -static struct E_Coll__SMap__Hs__Dg* f_Hs__put(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Sym__Sym* p_m, struct E_Hs__Dg* p_g) { return ({ struct E_Coll__SMap__Hs__Dg* v_hm2_0 = f_Coll__sInsert__Hs__Dg(p_r, p_hm, p_m, p_g); __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Hs__D(p_r, p_dm, p_m); s1->tag == 1 ? ({ __auto_type v_d_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = v_d_1; s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Hs__DE.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_cases_3 = s3->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Hs__casesPut(p_r, v_hm2_0, p_g, v_cases_3, ((int64_t)0)); res_; }); }); }); res_; }); }) : ({ v_hm2_0; }); }); }) : ({ v_hm2_0; }); }); res_; }); } -static struct E_Coll__SMap__Hs__Dg* f_Coll__sInsert__Hs__Dg(srs_cap* p_r, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_n_2) ? ({ struct E_Coll__SMap__Hs__Dg* o3 = (struct E_Coll__SMap__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Hs__Dg, u) + sizeof(((struct E_Coll__SMap__Hs__Dg*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_t_0, v_h_1, f_Coll__sSet__Hs__Dg(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Hs__Dg* o3 = (struct E_Coll__SMap__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Hs__Dg, u) + sizeof(((struct E_Coll__SMap__Hs__Dg*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__Dg* o3 = (struct E_Coll__SEntry__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__Dg, u) + sizeof(((struct E_Coll__SEntry__Hs__Dg*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg); o3; })); o3; })); res_; }); }); }); } +static struct E_Hs__T* f_Hs__visit(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Hs__T* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Hs__T.f_next; __auto_type v_idx_1 = s0->u.C_Hs__T.f_idx; __auto_type v_low_2 = s0->u.C_Hs__T.f_low; __auto_type v_st_3 = s0->u.C_Hs__T.f_stack; __auto_type v_on_4 = s0->u.C_Hs__T.f_on; __auto_type v_cs_5 = s0->u.C_Hs__T.f_comps; ({ struct E_Hs__T* v_t1_6 = ({ struct E_Hs__T* o6 = (struct E_Hs__T*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o6->tag = 0; o6->u.C_Hs__T.f_next = (v_n_0 + ((int64_t)1)); o6->u.C_Hs__T.f_idx = f_Coll__sInsert__I64(p_eff__Region, v_idx_1, p_v, v_n_0); o6->u.C_Hs__T.f_low = f_Coll__sInsert__I64(p_eff__Region, v_low_2, p_v, v_n_0); o6->u.C_Hs__T.f_stack = ({ struct E_Coll__List__Sym__Sym* o6 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_v; o6->u.C_Coll__Cons.f_t = v_st_3; o6; }); o6->u.C_Hs__T.f_on = f_Coll__sInsert__Bool(p_eff__Region, v_on_4, p_v, true); o6->u.C_Hs__T.f_comps = v_cs_5; o6; }); struct E_Hs__T* v_t2_7 = f_Hs__succs(p_eff__Region, p_dm, p_v, f_Hs__edges(p_eff__Region, p_dm, p_v), v_t1_6); __auto_type res_ = ({ __auto_type s8 = v_t2_7; ({ __auto_type v_n2_8 = s8->u.C_Hs__T.f_next; __auto_type v_idx2_9 = s8->u.C_Hs__T.f_idx; __auto_type v_low2_10 = s8->u.C_Hs__T.f_low; __auto_type v_st2_11 = s8->u.C_Hs__T.f_stack; __auto_type v_on2_12 = s8->u.C_Hs__T.f_on; __auto_type v_cs2_13 = s8->u.C_Hs__T.f_comps; ({ __auto_type res_ = ((f_Hs__geti(p_eff__Region, v_low2_10, p_v) == f_Hs__geti(p_eff__Region, v_idx2_9, p_v)) ? ({ __auto_type res_ = ({ __auto_type s14 = f_Hs__pop(p_eff__Region, p_v, v_st2_11, v_on2_12, (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_comp_14 = s14->u.C_Hs__Pop.f_comp; __auto_type v_rest_15 = s14->u.C_Hs__Pop.f_rest; __auto_type v_on3_16 = s14->u.C_Hs__Pop.f_on; ({ __auto_type res_ = ({ struct E_Hs__T* o17 = (struct E_Hs__T*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o17->tag = 0; o17->u.C_Hs__T.f_next = v_n2_8; o17->u.C_Hs__T.f_idx = v_idx2_9; o17->u.C_Hs__T.f_low = v_low2_10; o17->u.C_Hs__T.f_stack = v_rest_15; o17->u.C_Hs__T.f_on = v_on3_16; o17->u.C_Hs__T.f_comps = ({ struct E_Coll__List__Coll__List_1_Sym__Sym* o17 = (struct E_Coll__List__Coll__List_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__List_1_Sym__Sym*)0)->u.C_Coll__Cons))); o17->tag = 1; o17->u.C_Coll__Cons.f_h = v_comp_14; o17->u.C_Coll__Cons.f_t = v_cs2_13; o17; }); o17; }); res_; }); }); }); res_; }) : v_t2_7); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Hs__T* f_Hs__succs(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_ws, struct E_Hs__T* p_t) { srs_tail: return ({ __auto_type s0 = p_ws; s0->tag == 0 ? ({ p_t; }) : ({ __auto_type v_w_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_t; ({ __auto_type v_idx_2 = s2->u.C_Hs__T.f_idx; __auto_type v_on_3 = s2->u.C_Hs__T.f_on; ({ __auto_type res_ = ((f_Hs__geti(p_eff__Region, v_idx_2, v_w_0) < ((int64_t)0)) ? ({ struct E_Hs__T* v_t2_4 = f_Hs__visit(p_eff__Region, p_dm, v_w_0, p_t); __auto_type res_ = ({ __auto_type s5 = v_t2_4; ({ __auto_type v_n2_5 = s5->u.C_Hs__T.f_next; __auto_type v_idx2_6 = s5->u.C_Hs__T.f_idx; __auto_type v_low2_7 = s5->u.C_Hs__T.f_low; __auto_type v_st2_8 = s5->u.C_Hs__T.f_stack; __auto_type v_on2_9 = s5->u.C_Hs__T.f_on; __auto_type v_cs2_10 = s5->u.C_Hs__T.f_comps; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Sym__Sym* t2 = p_v; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__T* t4 = ({ struct E_Hs__T* o11 = (struct E_Hs__T*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o11->tag = 0; o11->u.C_Hs__T.f_next = v_n2_5; o11->u.C_Hs__T.f_idx = v_idx2_6; o11->u.C_Hs__T.f_low = f_Coll__sInsert__I64(p_eff__Region, v_low2_7, p_v, f_Hs__min(f_Hs__geti(p_eff__Region, v_low2_7, p_v), f_Hs__geti(p_eff__Region, v_low2_7, v_w_0))); o11->u.C_Hs__T.f_stack = v_st2_8; o11->u.C_Hs__T.f_on = v_on2_9; o11->u.C_Hs__T.f_comps = v_cs2_10; o11; }); p_eff__Region = t0; p_dm = t1; p_v = t2; p_ws = t3; p_t = t4; goto srs_tail; (struct E_Hs__T*){0}; }); res_; }); }); }); res_; }) : (f_Hs__onStack(p_eff__Region, v_on_3, v_w_0) ? ({ __auto_type res_ = ({ __auto_type s4 = p_t; ({ __auto_type v_n2_4 = s4->u.C_Hs__T.f_next; __auto_type v_idx2_5 = s4->u.C_Hs__T.f_idx; __auto_type v_low2_6 = s4->u.C_Hs__T.f_low; __auto_type v_st2_7 = s4->u.C_Hs__T.f_stack; __auto_type v_on2_8 = s4->u.C_Hs__T.f_on; __auto_type v_cs2_9 = s4->u.C_Hs__T.f_comps; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Sym__Sym* t2 = p_v; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__T* t4 = ({ struct E_Hs__T* o10 = (struct E_Hs__T*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o10->tag = 0; o10->u.C_Hs__T.f_next = v_n2_4; o10->u.C_Hs__T.f_idx = v_idx2_5; o10->u.C_Hs__T.f_low = f_Coll__sInsert__I64(p_eff__Region, v_low2_6, p_v, f_Hs__min(f_Hs__geti(p_eff__Region, v_low2_6, p_v), f_Hs__geti(p_eff__Region, v_idx2_5, v_w_0))); o10->u.C_Hs__T.f_stack = v_st2_7; o10->u.C_Hs__T.f_on = v_on2_8; o10->u.C_Hs__T.f_comps = v_cs2_9; o10; }); p_eff__Region = t0; p_dm = t1; p_v = t2; p_ws = t3; p_t = t4; goto srs_tail; (struct E_Hs__T*){0}; }); res_; }); }); }); res_; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Sym__Sym* t2 = p_v; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__T* t4 = p_t; p_eff__Region = t0; p_dm = t1; p_v = t2; p_ws = t3; p_t = t4; goto srs_tail; (struct E_Hs__T*){0}; }))); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__Pop* f_Hs__pop(srs_cap* p_eff__Region, struct E_Sym__Sym* p_v, struct E_Coll__List__Sym__Sym* p_st, struct E_Coll__SMap__Bool* p_on, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_st; s0->tag == 0 ? ({ ({ struct E_Hs__Pop* o0 = (struct E_Hs__Pop*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Pop, u) + sizeof(((struct E_Hs__Pop*)0)->u.C_Hs__Pop))); o0->tag = 0; o0->u.C_Hs__Pop.f_comp = p_acc; o0->u.C_Hs__Pop.f_rest = (&N_Coll__Nil__Sym__Sym); o0->u.C_Hs__Pop.f_on = p_on; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__SMap__Bool* v_on2_2 = f_Coll__sInsert__Bool(p_eff__Region, p_on, v_x_0, false); __auto_type res_ = (f_Sym__eq(v_x_0, p_v) ? ({ struct E_Hs__Pop* o3 = (struct E_Hs__Pop*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Pop, u) + sizeof(((struct E_Hs__Pop*)0)->u.C_Hs__Pop))); o3->tag = 0; o3->u.C_Hs__Pop.f_comp = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); o3->u.C_Hs__Pop.f_rest = v_rest_1; o3->u.C_Hs__Pop.f_on = v_on2_2; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_v; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__SMap__Bool* t3 = v_on2_2; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_v = t1; p_st = t2; p_on = t3; p_acc = t4; goto srs_tail; (struct E_Hs__Pop*){0}; })); res_; }); }); }); } +static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Hs__comps(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__List__Sym__Sym* p_order, struct E_Hs__T* p_t) { srs_tail: return ({ __auto_type s0 = p_order; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_cs_0 = s0->u.C_Hs__T.f_comps; ({ __auto_type res_ = f_Coll__rev__Coll__List_1_Sym__Sym(p_eff__Region, v_cs_0); res_; }); }); }); res_; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_t; ({ __auto_type v_idx_2 = s2->u.C_Hs__T.f_idx; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Hs__T* t3 = ((f_Hs__geti(p_eff__Region, v_idx_2, v_x_0) < ((int64_t)0)) ? f_Hs__visit(p_eff__Region, p_dm, v_x_0, p_t) : p_t); p_eff__Region = t0; p_dm = t1; p_order = t2; p_t = t3; goto srs_tail; (struct E_Coll__List__Coll__List_1_Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__rev__Coll__List_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs) { return f_Coll__revOnto__Coll__List_1_Sym__Sym(p_eff__Region, p_xs, (&N_Coll__Nil__Coll__List_1_Sym__Sym)); } +static struct E_Coll__List__Coll__List_1_Sym__Sym* f_Coll__revOnto__Coll__List_1_Sym__Sym(srs_cap* p_eff__Region, struct E_Coll__List__Coll__List_1_Sym__Sym* p_xs, struct E_Coll__List__Coll__List_1_Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__List_1_Sym__Sym* t1 = v_t_1; struct E_Coll__List__Coll__List_1_Sym__Sym* t2 = ({ struct E_Coll__List__Coll__List_1_Sym__Sym* o2 = (struct E_Coll__List__Coll__List_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Coll__List__Coll__List_1_Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Coll__List_1_Sym__Sym*){0}; }); }); }); } +static struct E_Coll__SMap__Hs__Dg* f_Hs__comp(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_ms) { return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ bool v_selfRef_2 = f_Ty__memberSym(v_m_0, f_Hs__edges(p_eff__Region, p_dm, v_m_0)); __auto_type res_ = (((f_Coll__length__Sym__Sym(v_more_1) == ((int64_t)0)) && (!v_selfRef_2)) ? f_Hs__put(p_eff__Region, p_dm, p_hm, v_m_0, f_Hs__hashOf(p_eff__Region, p_dm, ({ struct E_Hs__Cx* o3 = (struct E_Hs__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Cx, u) + sizeof(((struct E_Hs__Cx*)0)->u.C_Hs__Cx))); o3->tag = 0; o3->u.C_Hs__Cx.f_hm = p_hm; o3->u.C_Hs__Cx.f_mem = (&N_Coll__Nil__Sym__Sym); o3->u.C_Hs__Cx.f_pass = (&N_Hs__Second); o3; }), v_m_0)) : ({ struct E_Coll__List__Sym__Sym* v_order_3 = f_Hs__sorted(p_eff__Region, p_dm, p_hm, p_ms, p_ms, (&N_Coll__Nil__Hs__M)); struct E_Hs__Dg* v_whole_4 = f_Hs__whole(p_eff__Region, p_dm, ({ struct E_Hs__Cx* o4 = (struct E_Hs__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Cx, u) + sizeof(((struct E_Hs__Cx*)0)->u.C_Hs__Cx))); o4->tag = 0; o4->u.C_Hs__Cx.f_hm = p_hm; o4->u.C_Hs__Cx.f_mem = v_order_3; o4->u.C_Hs__Cx.f_pass = (&N_Hs__Second); o4; }), v_order_3, ({ struct E_Hs__Dg* o4 = (struct E_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o4->tag = 0; o4->u.C_Hs__Dg.f_a = ((int64_t)9); o4->u.C_Hs__Dg.f_b = ((int64_t)9); o4->u.C_Hs__Dg.f_c = ((int64_t)9); o4->u.C_Hs__Dg.f_d = ((int64_t)9); o4; })); __auto_type res_ = f_Hs__members(p_eff__Region, p_dm, p_hm, v_whole_4, v_order_3, ((int64_t)0)); res_; })); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__hashOf(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Sym__Sym* p_m) { return ({ __auto_type s0 = f_Coll__sLookup__Hs__D(p_eff__Region, p_dm, p_m); s0->tag == 1 ? ({ __auto_type v_d_0 = s0->u.C_Coll__Some.f_v; f_Hs__hashD(p_eff__Region, p_cx, v_d_0); }) : ({ ({ struct E_Hs__Dg* o0 = (struct E_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Dg, u) + sizeof(((struct E_Hs__Dg*)0)->u.C_Hs__Dg))); o0->tag = 0; o0->u.C_Hs__Dg.f_a = ((int64_t)0); o0->u.C_Hs__Dg.f_b = ((int64_t)0); o0->u.C_Hs__Dg.f_c = ((int64_t)0); o0->u.C_Hs__Dg.f_d = ((int64_t)0); o0; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__sorted(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Sym__Sym* p_all, struct E_Coll__List__Sym__Sym* p_ms, struct E_Coll__List__Hs__M* p_acc) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ f_Hs__mNames(p_eff__Region, p_acc, (&N_Coll__Nil__Sym__Sym)); }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__SMap__Hs__Dg* t2 = p_hm; struct E_Coll__List__Sym__Sym* t3 = p_all; struct E_Coll__List__Sym__Sym* t4 = v_rest_1; struct E_Coll__List__Hs__M* t5 = f_Hs__ins(p_eff__Region, p_acc, ({ struct E_Hs__M* o2 = (struct E_Hs__M*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__M, u) + sizeof(((struct E_Hs__M*)0)->u.C_Hs__M))); o2->tag = 0; o2->u.C_Hs__M.f_name = v_m_0; o2->u.C_Hs__M.f_g = f_Hs__hashOf(p_eff__Region, p_dm, ({ struct E_Hs__Cx* o2 = (struct E_Hs__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Cx, u) + sizeof(((struct E_Hs__Cx*)0)->u.C_Hs__Cx))); o2->tag = 0; o2->u.C_Hs__Cx.f_hm = p_hm; o2->u.C_Hs__Cx.f_mem = p_all; o2->u.C_Hs__Cx.f_pass = (&N_Hs__First); o2; }), v_m_0); o2; })); p_eff__Region = t0; p_dm = t1; p_hm = t2; p_all = t3; p_ms = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } +static struct E_Coll__List__Hs__M* f_Hs__ins(srs_cap* p_eff__Region, struct E_Coll__List__Hs__M* p_xs, struct E_Hs__M* p_m) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Hs__M* o0 = (struct E_Coll__List__Hs__M*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Hs__M, u) + sizeof(((struct E_Coll__List__Hs__M*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_m; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Hs__M); o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_m; ({ __auto_type v_g_2 = s2->u.C_Hs__M.f_g; ({ __auto_type res_ = ({ __auto_type s3 = v_x_0; ({ __auto_type v_h_3 = s3->u.C_Hs__M.f_g; ({ __auto_type res_ = (f_Hs__less(v_g_2, v_h_3) ? ({ struct E_Coll__List__Hs__M* o4 = (struct E_Coll__List__Hs__M*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Hs__M, u) + sizeof(((struct E_Coll__List__Hs__M*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = p_m; o4->u.C_Coll__Cons.f_t = p_xs; o4; }) : ({ struct E_Coll__List__Hs__M* o4 = (struct E_Coll__List__Hs__M*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Hs__M, u) + sizeof(((struct E_Coll__List__Hs__M*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_0; o4->u.C_Coll__Cons.f_t = f_Hs__ins(p_eff__Region, v_rest_1, p_m); o4; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Hs__mNames(srs_cap* p_eff__Region, struct E_Coll__List__Hs__M* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Hs__M.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Hs__M* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_n_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Hs__Dg* f_Hs__whole(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Hs__Cx* p_cx, struct E_Coll__List__Sym__Sym* p_ms, struct E_Hs__Dg* p_g) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ p_g; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Hs__Cx* t2 = p_cx; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Hs__Dg* t4 = f_Hs__dg(p_eff__Region, p_g, f_Hs__hashOf(p_eff__Region, p_dm, p_cx, v_m_0)); p_eff__Region = t0; p_dm = t1; p_cx = t2; p_ms = t3; p_g = t4; goto srs_tail; (struct E_Hs__Dg*){0}; }); }); }); } +static struct E_Coll__SMap__Hs__Dg* f_Hs__members(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_whole, struct E_Coll__List__Sym__Sym* p_ms, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__SMap__Hs__Dg* t2 = f_Hs__put(p_eff__Region, p_dm, p_hm, v_m_0, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_whole, ((int64_t)10)), p_i)); struct E_Hs__Dg* t3 = p_whole; struct E_Coll__List__Sym__Sym* t4 = v_rest_1; int64_t t5 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_dm = t1; p_hm = t2; p_whole = t3; p_ms = t4; p_i = t5; goto srs_tail; (struct E_Coll__SMap__Hs__Dg*){0}; }); }); }); } +static struct E_Coll__SMap__Hs__Dg* f_Hs__put(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Sym__Sym* p_m, struct E_Hs__Dg* p_g) { return ({ struct E_Coll__SMap__Hs__Dg* v_hm2_0 = f_Coll__sInsert__Hs__Dg(p_eff__Region, p_hm, p_m, p_g); __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Hs__D(p_eff__Region, p_dm, p_m); s1->tag == 1 ? ({ __auto_type v_d_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = v_d_1; s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Hs__DE.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_cases_3 = s3->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Hs__casesPut(p_eff__Region, v_hm2_0, p_g, v_cases_3, ((int64_t)0)); res_; }); }); }); res_; }); }) : ({ v_hm2_0; }); }); }) : ({ v_hm2_0; }); }); res_; }); } +static struct E_Coll__SMap__Hs__Dg* f_Coll__sInsert__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_m, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_n_2) ? ({ struct E_Coll__SMap__Hs__Dg* o3 = (struct E_Coll__SMap__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Hs__Dg, u) + sizeof(((struct E_Coll__SMap__Hs__Dg*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Hs__Dg(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__Dg(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Hs__Dg* o3 = (struct E_Coll__SMap__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Hs__Dg, u) + sizeof(((struct E_Coll__SMap__Hs__Dg*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__Dg* o3 = (struct E_Coll__SEntry__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__Dg, u) + sizeof(((struct E_Coll__SEntry__Hs__Dg*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg); o3; })); o3; })); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__Dg(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__sSet__Hs__Dg(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__Dg* o0 = (struct E_Coll__SEntry__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__Dg, u) + sizeof(((struct E_Coll__SEntry__Hs__Dg*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__Dg* o3 = (struct E_Coll__SEntry__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__Dg, u) + sizeof(((struct E_Coll__SEntry__Hs__Dg*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Hs__Dg(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__Hs__Dg* f_Hs__casesPut(srs_cap* p_r, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__Dg* t1 = f_Coll__sInsert__Hs__Dg(p_r, p_hm, v_n_2, f_Hs__add(p_r, f_Hs__add(p_r, p_g, ((int64_t)8)), p_i)); struct E_Hs__Dg* t2 = p_g; struct E_Coll__List__Ast__Case* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); p_r = t0; p_hm = t1; p_g = t2; p_cs = t3; p_i = t4; goto srs_tail; (struct E_Coll__SMap__Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Hs__Dg* f_Hs__compsPut(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Coll__List_1_Sym__Sym* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__SMap__Hs__Dg* t2 = f_Hs__comp(p_r, p_dm, p_hm, v_c_0); struct E_Coll__List__Coll__List_1_Sym__Sym* t3 = v_rest_1; p_r = t0; p_dm = t1; p_hm = t2; p_cs = t3; goto srs_tail; (struct E_Coll__SMap__Hs__Dg*){0}; }); }); }); } -static struct E_Hs__Split* f_Hs__split(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Hs__Split* p_sp) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = p_sp; ({ __auto_type v_es_0 = s0->u.C_Hs__Split.f_es; __auto_type v_eo_1 = s0->u.C_Hs__Split.f_eo; __auto_type v_fs_2 = s0->u.C_Hs__Split.f_fs; __auto_type v_fo_3 = s0->u.C_Hs__Split.f_fo; ({ __auto_type res_ = ({ struct E_Hs__Split* o4 = (struct E_Hs__Split*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o4->tag = 0; o4->u.C_Hs__Split.f_es = v_es_0; o4->u.C_Hs__Split.f_eo = f_Coll__rev__Sym__Sym(p_r, v_eo_1); o4->u.C_Hs__Split.f_fs = v_fs_2; o4->u.C_Hs__Split.f_fo = f_Coll__rev__Sym__Sym(p_r, v_fo_3); o4; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_sp; ({ __auto_type v_es_2 = s2->u.C_Hs__Split.f_es; __auto_type v_eo_3 = s2->u.C_Hs__Split.f_eo; __auto_type v_fs_4 = s2->u.C_Hs__Split.f_fs; __auto_type v_fo_5 = s2->u.C_Hs__Split.f_fo; ({ __auto_type res_ = ({ __auto_type s6 = v_d_0; s6->tag == 1 ? ({ __auto_type v_e_6 = s6->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s7 = v_e_6; ({ __auto_type v_n_7 = s7->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = ({ struct E_Hs__Split* o8 = (struct E_Hs__Split*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o8->tag = 0; o8->u.C_Hs__Split.f_es = f_Coll__sInsert__Hs__D(p_r, v_es_2, v_n_7, ({ struct E_Hs__D* o8 = (struct E_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__D, u) + sizeof(((struct E_Hs__D*)0)->u.C_Hs__DE))); o8->tag = 1; o8->u.C_Hs__DE.f_e = v_e_6; o8; })); o8->u.C_Hs__Split.f_eo = ({ struct E_Coll__List__Sym__Sym* o8 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_n_7; o8->u.C_Coll__Cons.f_t = v_eo_3; o8; }); o8->u.C_Hs__Split.f_fs = v_fs_4; o8->u.C_Hs__Split.f_fo = v_fo_5; o8; }); p_r = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; }); res_; }); }); }); res_; }); }) : s6->tag == 0 ? ({ __auto_type v_f_6 = s6->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s7 = v_f_6; ({ __auto_type v_n_7 = s7->u.C_Ast__Fn.f_name; __auto_type v_body_8 = s7->u.C_Ast__Fn.f_body; ({ bool v_isExt_9 = ({ __auto_type s9 = v_body_8; s9->tag == 1 ? ({ true; }) : ({ false; }); }); __auto_type res_ = (v_isExt_9 ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = p_sp; p_r = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = ({ struct E_Hs__Split* o10 = (struct E_Hs__Split*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o10->tag = 0; o10->u.C_Hs__Split.f_es = v_es_2; o10->u.C_Hs__Split.f_eo = v_eo_3; o10->u.C_Hs__Split.f_fs = f_Coll__sInsert__Hs__D(p_r, v_fs_4, v_n_7, ({ struct E_Hs__D* o10 = (struct E_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__D, u) + sizeof(((struct E_Hs__D*)0)->u.C_Hs__DF))); o10->tag = 0; o10->u.C_Hs__DF.f_f = v_f_6; o10; })); o10->u.C_Hs__Split.f_fo = ({ struct E_Coll__List__Sym__Sym* o10 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_n_7; o10->u.C_Coll__Cons.f_t = v_fo_5; o10; }); o10; }); p_r = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; })); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = p_sp; p_r = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Hs__D* f_Coll__sInsert__Hs__D(srs_cap* p_r, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__D(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__D(v_n_2) ? ({ struct E_Coll__SMap__Hs__D* o3 = (struct E_Coll__SMap__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Hs__D, u) + sizeof(((struct E_Coll__SMap__Hs__D*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_t_0, v_h_1, f_Coll__sSet__Hs__D(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__D(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Hs__D)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Hs__D* o3 = (struct E_Coll__SMap__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Hs__D, u) + sizeof(((struct E_Coll__SMap__Hs__D*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__D* o3 = (struct E_Coll__SEntry__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__D, u) + sizeof(((struct E_Coll__SEntry__Hs__D*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__D); o3; })); o3; })); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Hs__Dg* f_Coll__sSet__Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__Dg* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__Dg* o0 = (struct E_Coll__SEntry__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__Dg, u) + sizeof(((struct E_Coll__SEntry__Hs__Dg*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__Dg); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__Dg* o3 = (struct E_Coll__SEntry__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__Dg, u) + sizeof(((struct E_Coll__SEntry__Hs__Dg*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Hs__Dg* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Hs__Dg(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__Dg* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__Dg(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__Dg*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__Hs__Dg* f_Hs__casesPut(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Hs__Dg* p_g, struct E_Coll__List__Ast__Case* p_cs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__Dg* t1 = f_Coll__sInsert__Hs__Dg(p_eff__Region, p_hm, v_n_2, f_Hs__add(p_eff__Region, f_Hs__add(p_eff__Region, p_g, ((int64_t)8)), p_i)); struct E_Hs__Dg* t2 = p_g; struct E_Coll__List__Ast__Case* t3 = v_rest_1; int64_t t4 = (p_i + ((int64_t)1)); p_eff__Region = t0; p_hm = t1; p_g = t2; p_cs = t3; p_i = t4; goto srs_tail; (struct E_Coll__SMap__Hs__Dg*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Hs__Dg* f_Hs__compsPut(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_dm, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Coll__List_1_Sym__Sym* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_hm; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Hs__D* t1 = p_dm; struct E_Coll__SMap__Hs__Dg* t2 = f_Hs__comp(p_eff__Region, p_dm, p_hm, v_c_0); struct E_Coll__List__Coll__List_1_Sym__Sym* t3 = v_rest_1; p_eff__Region = t0; p_dm = t1; p_hm = t2; p_cs = t3; goto srs_tail; (struct E_Coll__SMap__Hs__Dg*){0}; }); }); }); } +static struct E_Hs__Split* f_Hs__split(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Hs__Split* p_sp) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = p_sp; ({ __auto_type v_es_0 = s0->u.C_Hs__Split.f_es; __auto_type v_eo_1 = s0->u.C_Hs__Split.f_eo; __auto_type v_fs_2 = s0->u.C_Hs__Split.f_fs; __auto_type v_fo_3 = s0->u.C_Hs__Split.f_fo; ({ __auto_type res_ = ({ struct E_Hs__Split* o4 = (struct E_Hs__Split*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o4->tag = 0; o4->u.C_Hs__Split.f_es = v_es_0; o4->u.C_Hs__Split.f_eo = f_Coll__rev__Sym__Sym(p_eff__Region, v_eo_1); o4->u.C_Hs__Split.f_fs = v_fs_2; o4->u.C_Hs__Split.f_fo = f_Coll__rev__Sym__Sym(p_eff__Region, v_fo_3); o4; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_sp; ({ __auto_type v_es_2 = s2->u.C_Hs__Split.f_es; __auto_type v_eo_3 = s2->u.C_Hs__Split.f_eo; __auto_type v_fs_4 = s2->u.C_Hs__Split.f_fs; __auto_type v_fo_5 = s2->u.C_Hs__Split.f_fo; ({ __auto_type res_ = ({ __auto_type s6 = v_d_0; s6->tag == 1 ? ({ __auto_type v_e_6 = s6->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s7 = v_e_6; ({ __auto_type v_n_7 = s7->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = ({ struct E_Hs__Split* o8 = (struct E_Hs__Split*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o8->tag = 0; o8->u.C_Hs__Split.f_es = f_Coll__sInsert__Hs__D(p_eff__Region, v_es_2, v_n_7, ({ struct E_Hs__D* o8 = (struct E_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__D, u) + sizeof(((struct E_Hs__D*)0)->u.C_Hs__DE))); o8->tag = 1; o8->u.C_Hs__DE.f_e = v_e_6; o8; })); o8->u.C_Hs__Split.f_eo = ({ struct E_Coll__List__Sym__Sym* o8 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_n_7; o8->u.C_Coll__Cons.f_t = v_eo_3; o8; }); o8->u.C_Hs__Split.f_fs = v_fs_4; o8->u.C_Hs__Split.f_fo = v_fo_5; o8; }); p_eff__Region = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; }); res_; }); }); }); res_; }); }) : s6->tag == 0 ? ({ __auto_type v_f_6 = s6->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s7 = v_f_6; ({ __auto_type v_n_7 = s7->u.C_Ast__Fn.f_name; __auto_type v_body_8 = s7->u.C_Ast__Fn.f_body; ({ bool v_isExt_9 = ({ __auto_type s9 = v_body_8; s9->tag == 1 ? ({ true; }) : ({ false; }); }); __auto_type res_ = (v_isExt_9 ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = p_sp; p_eff__Region = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = ({ struct E_Hs__Split* o10 = (struct E_Hs__Split*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o10->tag = 0; o10->u.C_Hs__Split.f_es = v_es_2; o10->u.C_Hs__Split.f_eo = v_eo_3; o10->u.C_Hs__Split.f_fs = f_Coll__sInsert__Hs__D(p_eff__Region, v_fs_4, v_n_7, ({ struct E_Hs__D* o10 = (struct E_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__D, u) + sizeof(((struct E_Hs__D*)0)->u.C_Hs__DF))); o10->tag = 0; o10->u.C_Hs__DF.f_f = v_f_6; o10; })); o10->u.C_Hs__Split.f_fo = ({ struct E_Coll__List__Sym__Sym* o10 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_n_7; o10->u.C_Coll__Cons.f_t = v_fo_5; o10; }); o10; }); p_eff__Region = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; })); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Hs__Split* t2 = p_sp; p_eff__Region = t0; p_ds = t1; p_sp = t2; goto srs_tail; (struct E_Hs__Split*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Hs__D* f_Coll__sInsert__Hs__D(srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__D* p_m, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Hs__D(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__D(v_n_2) ? ({ struct E_Coll__SMap__Hs__D* o3 = (struct E_Coll__SMap__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Hs__D, u) + sizeof(((struct E_Coll__SMap__Hs__D*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Hs__D(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Hs__D(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Hs__D)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Hs__D* o3 = (struct E_Coll__SMap__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Hs__D, u) + sizeof(((struct E_Coll__SMap__Hs__D*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__D* o3 = (struct E_Coll__SEntry__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__D, u) + sizeof(((struct E_Coll__SEntry__Hs__D*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__D); o3; })); o3; })); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Hs__D(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__sSet__Hs__D(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__D* o0 = (struct E_Coll__SEntry__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__D, u) + sizeof(((struct E_Coll__SEntry__Hs__D*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__D); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__D* o3 = (struct E_Coll__SEntry__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__D, u) + sizeof(((struct E_Coll__SEntry__Hs__D*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Hs__D(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__SMap__Hs__Dg* f_Hs__all(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Hs__split(p_r, p_ds, ({ struct E_Hs__Split* o0 = (struct E_Hs__Split*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o0->tag = 0; o0->u.C_Hs__Split.f_es = f_Coll__sEmpty__Hs__D(p_r); o0->u.C_Hs__Split.f_eo = (&N_Coll__Nil__Sym__Sym); o0->u.C_Hs__Split.f_fs = f_Coll__sEmpty__Hs__D(p_r); o0->u.C_Hs__Split.f_fo = (&N_Coll__Nil__Sym__Sym); o0; })); ({ __auto_type v_es_0 = s0->u.C_Hs__Split.f_es; __auto_type v_eo_1 = s0->u.C_Hs__Split.f_eo; __auto_type v_fs_2 = s0->u.C_Hs__Split.f_fs; __auto_type v_fo_3 = s0->u.C_Hs__Split.f_fo; ({ struct E_Hs__T* v_t0_4 = ({ struct E_Hs__T* o4 = (struct E_Hs__T*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o4->tag = 0; o4->u.C_Hs__T.f_next = ((int64_t)0); o4->u.C_Hs__T.f_idx = f_Coll__sEmpty__I64(p_r); o4->u.C_Hs__T.f_low = f_Coll__sEmpty__I64(p_r); o4->u.C_Hs__T.f_stack = (&N_Coll__Nil__Sym__Sym); o4->u.C_Hs__T.f_on = f_Coll__sEmpty__Bool(p_r); o4->u.C_Hs__T.f_comps = (&N_Coll__Nil__Coll__List_1_Sym__Sym); o4; }); struct E_Coll__SMap__Hs__Dg* v_hm1_5 = f_Hs__compsPut(p_r, v_es_0, f_Coll__sEmpty__Hs__Dg(p_r), f_Hs__comps(p_r, v_es_0, v_eo_1, v_t0_4)); __auto_type res_ = f_Hs__compsPut(p_r, v_fs_2, v_hm1_5, f_Hs__comps(p_r, v_fs_2, v_fo_3, v_t0_4)); res_; }); }); }); res_; }); } -static struct E_Coll__SMap__Hs__D* f_Coll__sEmpty__Hs__D(srs_cap* p_r) { return ({ struct E_Coll__SMap__Hs__D* o0 = (struct E_Coll__SMap__Hs__D*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Hs__D, u) + sizeof(((struct E_Coll__SMap__Hs__D*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); } -static struct E_Coll__SMap__Hs__Dg* f_Coll__sEmpty__Hs__Dg(srs_cap* p_r) { return ({ struct E_Coll__SMap__Hs__Dg* o0 = (struct E_Coll__SMap__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Hs__Dg, u) + sizeof(((struct E_Coll__SMap__Hs__Dg*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); } -static int64_t f_Hs__print(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return f_Hs__printFrom(p_r, p_eff__Console, f_Hs__all(p_r, p_ds), p_ds); } -static int64_t f_Hs__printFrom(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__Option__Sym__Sym* v_n_2 = ({ __auto_type s2 = v_d_0; s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_en_3 = s3->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_en_3; o4; }); res_; }); }); }); res_; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_fn_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_fn_3; o4; }); res_; }); }); }); res_; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }); (void)(({ __auto_type s3 = v_n_2; s3->tag == 1 ? ({ __auto_type v_x_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type s4 = f_Coll__sLookup__Hs__Dg(p_r, p_hm, v_x_3); s4->tag == 1 ? ({ __auto_type v_g_4 = s4->u.C_Coll__Some.f_v; f_Hs__show(p_eff__Console, v_x_3, v_g_4); }) : ({ ((int64_t)0); }); }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__SMap__Hs__Dg* t2 = p_hm; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_hm = t2; p_ds = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Hs__D* f_Coll__sSet__Hs__D(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_xs, struct E_Sym__Sym* p_s, struct E_Hs__D* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__D* o0 = (struct E_Coll__SEntry__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__D, u) + sizeof(((struct E_Coll__SEntry__Hs__D*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Hs__D); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Hs__D* o3 = (struct E_Coll__SEntry__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Hs__D, u) + sizeof(((struct E_Coll__SEntry__Hs__D*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Hs__D* o3 = (struct E_Coll__List__Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Hs__D(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Hs__D* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Hs__D(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Hs__D* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Hs__D(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Hs__D*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__SMap__Hs__Dg* f_Hs__all(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Hs__split(p_eff__Region, p_ds, ({ struct E_Hs__Split* o0 = (struct E_Hs__Split*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__Split, u) + sizeof(((struct E_Hs__Split*)0)->u.C_Hs__Split))); o0->tag = 0; o0->u.C_Hs__Split.f_es = f_Coll__sEmpty__Hs__D(p_eff__Region); o0->u.C_Hs__Split.f_eo = (&N_Coll__Nil__Sym__Sym); o0->u.C_Hs__Split.f_fs = f_Coll__sEmpty__Hs__D(p_eff__Region); o0->u.C_Hs__Split.f_fo = (&N_Coll__Nil__Sym__Sym); o0; })); ({ __auto_type v_es_0 = s0->u.C_Hs__Split.f_es; __auto_type v_eo_1 = s0->u.C_Hs__Split.f_eo; __auto_type v_fs_2 = s0->u.C_Hs__Split.f_fs; __auto_type v_fo_3 = s0->u.C_Hs__Split.f_fo; ({ struct E_Hs__T* v_t0_4 = ({ struct E_Hs__T* o4 = (struct E_Hs__T*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Hs__T, u) + sizeof(((struct E_Hs__T*)0)->u.C_Hs__T))); o4->tag = 0; o4->u.C_Hs__T.f_next = ((int64_t)0); o4->u.C_Hs__T.f_idx = f_Coll__sEmpty__I64(p_eff__Region); o4->u.C_Hs__T.f_low = f_Coll__sEmpty__I64(p_eff__Region); o4->u.C_Hs__T.f_stack = (&N_Coll__Nil__Sym__Sym); o4->u.C_Hs__T.f_on = f_Coll__sEmpty__Bool(p_eff__Region); o4->u.C_Hs__T.f_comps = (&N_Coll__Nil__Coll__List_1_Sym__Sym); o4; }); struct E_Coll__SMap__Hs__Dg* v_hm1_5 = f_Hs__compsPut(p_eff__Region, v_es_0, f_Coll__sEmpty__Hs__Dg(p_eff__Region), f_Hs__comps(p_eff__Region, v_es_0, v_eo_1, v_t0_4)); __auto_type res_ = f_Hs__compsPut(p_eff__Region, v_fs_2, v_hm1_5, f_Hs__comps(p_eff__Region, v_fs_2, v_fo_3, v_t0_4)); res_; }); }); }); res_; }); } +static struct E_Coll__SMap__Hs__D* f_Coll__sEmpty__Hs__D(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Hs__D* o0 = (struct E_Coll__SMap__Hs__D*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Hs__D, u) + sizeof(((struct E_Coll__SMap__Hs__D*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__D); o0; }); } +static struct E_Coll__SMap__Hs__Dg* f_Coll__sEmpty__Hs__Dg(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Hs__Dg* o0 = (struct E_Coll__SMap__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Hs__Dg, u) + sizeof(((struct E_Coll__SMap__Hs__Dg*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Hs__Dg); o0; }); } +static int64_t f_Hs__print(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return f_Hs__printFrom(p_eff__Console, p_eff__Region, f_Hs__all(p_eff__Region, p_ds), p_ds); } +static int64_t f_Hs__printFrom(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__Option__Sym__Sym* v_n_2 = ({ __auto_type s2 = v_d_0; s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_en_3 = s3->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_en_3; o4; }); res_; }); }); }); res_; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_fn_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_fn_3; o4; }); res_; }); }); }); res_; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }); (void)(({ __auto_type s3 = v_n_2; s3->tag == 1 ? ({ __auto_type v_x_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type s4 = f_Coll__sLookup__Hs__Dg(p_eff__Region, p_hm, v_x_3); s4->tag == 1 ? ({ __auto_type v_g_4 = s4->u.C_Coll__Some.f_v; f_Hs__show(p_eff__Console, v_x_3, v_g_4); }) : ({ ((int64_t)0); }); }); }) : ({ ((int64_t)0); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__SMap__Hs__Dg* t2 = p_hm; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_hm = t2; p_ds = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static int64_t f_Hs__show(srs_cap* p_eff__Console, struct E_Sym__Sym* p_n, struct E_Hs__Dg* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Sym__str(p_n)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_a_0); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_b_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_c_2); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)".", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_d_3); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } -static bool f_Hs__onStack(srs_cap* p_r, struct E_Coll__SMap__Bool* p_on, struct E_Sym__Sym* p_w) { return ({ __auto_type s0 = f_Coll__sLookup__Bool(p_r, p_on, p_w); s0->tag == 1 ? ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; v_b_0; }) : ({ false; }); }); } -static struct E_K__Term* f_K__walk(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ __auto_type s1 = f_Coll__node__K__Term(p_s, v_n_0); s1->tag == 0 ? ({ p_t; }) : ({ __auto_type v_u_1 = s1->u.C_Coll__Bin.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_K__Term* t2 = v_u_1; p_r = t0; p_s = t1; p_t = t2; goto srs_tail; (struct E_K__Term*){0}; }); }); }); }) : s0->tag == 1 ? ({ p_t; }) : ({ p_t; }); }); } +static bool f_Hs__onStack(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_on, struct E_Sym__Sym* p_w) { return ({ __auto_type s0 = f_Coll__sLookup__Bool(p_eff__Region, p_on, p_w); s0->tag == 1 ? ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; v_b_0; }) : ({ false; }); }); } +static struct E_K__Term* f_K__walk(struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ __auto_type s1 = f_Coll__node__K__Term(p_s, v_n_0); s1->tag == 0 ? ({ p_t; }) : ({ __auto_type v_u_1 = s1->u.C_Coll__Bin.f_v; ({ struct E_Coll__IMap__K__Term* t0 = p_s; struct E_K__Term* t1 = v_u_1; p_s = t0; p_t = t1; goto srs_tail; (struct E_K__Term*){0}; }); }); }); }) : s0->tag == 1 ? ({ p_t; }) : ({ p_t; }); }); } static struct E_Coll__IMap__K__Term* f_Coll__node__K__Term(struct E_Coll__IMap__K__Term* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__K__Term* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__K__Term*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__K__Term* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__K__Term*){0}; }) : p_m)); }); }); } -static bool f_K__occurs(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t) { return ({ __auto_type s0 = f_K__walk(p_r, p_s, p_t); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_K__Var.f_n; (v_m_0 == p_n); }) : s0->tag == 1 ? ({ __auto_type v_args_0 = s0->u.C_K__Con.f_args; f_K__occursIn(p_r, p_s, p_n, v_args_0); }) : ({ false; }); }); } -static bool f_K__occursIn(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; (f_K__occurs(p_r, p_s, p_n, v_h_0) ? true : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; int64_t t2 = p_n; struct E_Coll__List__K__Term* t3 = v_t_1; p_r = t0; p_s = t1; p_n = t2; p_ts = t3; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unify(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_a, struct E_K__Term* p_b) { return ({ struct E_K__Term* v_x_0 = f_K__walk(p_r, p_s, p_a); struct E_K__Term* v_y_1 = f_K__walk(p_r, p_s, p_b); __auto_type res_ = ({ __auto_type s2 = v_x_0; s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_K__Var.f_n; f_K__bind(p_r, p_s, v_n_2, v_y_1); }) : s2->tag == 1 ? ({ __auto_type v_f_2 = s2->u.C_K__Con.f_f; __auto_type v_xs_3 = s2->u.C_K__Con.f_args; ({ __auto_type s4 = v_y_1; s4->tag == 0 ? ({ __auto_type v_m_4 = s4->u.C_K__Var.f_n; f_K__bind(p_r, p_s, v_m_4, v_x_0); }) : s4->tag == 1 ? ({ __auto_type v_g_4 = s4->u.C_K__Con.f_f; __auto_type v_ys_5 = s4->u.C_K__Con.f_args; (f_Sym__eq(v_f_2, v_g_4) ? f_K__unifyAll(p_r, p_s, v_xs_3, v_ys_5) : (&N_Coll__None__Coll__IMap_1_K__Term)); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }) : ({ __auto_type v_v_2 = s2->u.C_K__Int.f_v; ({ __auto_type s3 = v_y_1; s3->tag == 0 ? ({ __auto_type v_m_3 = s3->u.C_K__Var.f_n; f_K__bind(p_r, p_s, v_m_3, v_x_0); }) : s3->tag == 2 ? ({ __auto_type v_w_3 = s3->u.C_K__Int.f_v; ((v_v_2 == v_w_3) ? ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o4 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = p_s; o4; }) : (&N_Coll__None__Coll__IMap_1_K__Term)); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }); }); res_; }); } -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__bind(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_K__Var.f_n; ((v_m_0 == p_n) ? ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o1 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = p_s; o1; }) : ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o1 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = f_Coll__insert__K__Term(p_r, p_s, p_n, p_t); o1; })); }) : s0->tag == 1 ? ({ (f_K__occurs(p_r, p_s, p_n, p_t) ? (&N_Coll__None__Coll__IMap_1_K__Term) : ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__insert__K__Term(p_r, p_s, p_n, p_t); o0; })); }) : ({ ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__insert__K__Term(p_r, p_s, p_n, p_t); o0; }); }); }); } -static struct E_Coll__IMap__K__Term* f_Coll__insert__K__Term(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_m, int64_t p_k, struct E_K__Term* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__K__Term* o0 = (struct E_Coll__IMap__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__K__Term, u) + sizeof(((struct E_Coll__IMap__K__Term*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__K__Term); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__K__Term); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__K__Term(p_r, v_k2_1, v_v2_2, f_Coll__insert__K__Term(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__K__Term(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__K__Term(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__K__Term* o5 = (struct E_Coll__IMap__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__K__Term, u) + sizeof(((struct E_Coll__IMap__K__Term*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__K__Term* f_Coll__balance__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__K__Term(p_l); int64_t v_sr_1 = f_Coll__size__K__Term(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__K__Term(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__K__Term(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static bool f_K__occurs(struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t) { return ({ __auto_type s0 = f_K__walk(p_s, p_t); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_K__Var.f_n; (v_m_0 == p_n); }) : s0->tag == 1 ? ({ __auto_type v_args_0 = s0->u.C_K__Con.f_args; f_K__occursIn(p_s, p_n, v_args_0); }) : ({ false; }); }); } +static bool f_K__occursIn(struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; (f_K__occurs(p_s, p_n, v_h_0) ? true : ({ struct E_Coll__IMap__K__Term* t0 = p_s; int64_t t1 = p_n; struct E_Coll__List__K__Term* t2 = v_t_1; p_s = t0; p_n = t1; p_ts = t2; goto srs_tail; (bool){0}; })); }); }); } +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unify(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_a, struct E_K__Term* p_b) { return ({ struct E_K__Term* v_x_0 = f_K__walk(p_s, p_a); struct E_K__Term* v_y_1 = f_K__walk(p_s, p_b); __auto_type res_ = ({ __auto_type s2 = v_x_0; s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_K__Var.f_n; f_K__bind(p_eff__Region, p_s, v_n_2, v_y_1); }) : s2->tag == 1 ? ({ __auto_type v_f_2 = s2->u.C_K__Con.f_f; __auto_type v_xs_3 = s2->u.C_K__Con.f_args; ({ __auto_type s4 = v_y_1; s4->tag == 0 ? ({ __auto_type v_m_4 = s4->u.C_K__Var.f_n; f_K__bind(p_eff__Region, p_s, v_m_4, v_x_0); }) : s4->tag == 1 ? ({ __auto_type v_g_4 = s4->u.C_K__Con.f_f; __auto_type v_ys_5 = s4->u.C_K__Con.f_args; (f_Sym__eq(v_f_2, v_g_4) ? f_K__unifyAll(p_eff__Region, p_s, v_xs_3, v_ys_5) : (&N_Coll__None__Coll__IMap_1_K__Term)); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }) : ({ __auto_type v_v_2 = s2->u.C_K__Int.f_v; ({ __auto_type s3 = v_y_1; s3->tag == 0 ? ({ __auto_type v_m_3 = s3->u.C_K__Var.f_n; f_K__bind(p_eff__Region, p_s, v_m_3, v_x_0); }) : s3->tag == 2 ? ({ __auto_type v_w_3 = s3->u.C_K__Int.f_v; ((v_v_2 == v_w_3) ? ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o4 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = p_s; o4; }) : (&N_Coll__None__Coll__IMap_1_K__Term)); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }); }); res_; }); } +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__bind(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, int64_t p_n, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_K__Var.f_n; ((v_m_0 == p_n) ? ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o1 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = p_s; o1; }) : ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o1 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = f_Coll__insert__K__Term(p_eff__Region, p_s, p_n, p_t); o1; })); }) : s0->tag == 1 ? ({ (f_K__occurs(p_s, p_n, p_t) ? (&N_Coll__None__Coll__IMap_1_K__Term) : ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__insert__K__Term(p_eff__Region, p_s, p_n, p_t); o0; })); }) : ({ ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__insert__K__Term(p_eff__Region, p_s, p_n, p_t); o0; }); }); }); } +static struct E_Coll__IMap__K__Term* f_Coll__insert__K__Term(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_m, int64_t p_k, struct E_K__Term* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__K__Term* o0 = (struct E_Coll__IMap__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__K__Term, u) + sizeof(((struct E_Coll__IMap__K__Term*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__K__Term); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__K__Term); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__K__Term(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__K__Term(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__K__Term(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__K__Term(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__K__Term* o5 = (struct E_Coll__IMap__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__K__Term, u) + sizeof(((struct E_Coll__IMap__K__Term*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__K__Term* f_Coll__balance__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__K__Term(p_l); int64_t v_sr_1 = f_Coll__size__K__Term(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__K__Term(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__K__Term(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__K__Term(struct E_Coll__IMap__K__Term* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__K__Term* f_Coll__rotateL__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Term(v_rl_2) < (f_Coll__ratio() * f_Coll__size__K__Term(v_rr_3))) ? f_Coll__bin__K__Term(p_r, v_k2_0, v_v2_1, f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__K__Term(p_r, v_k2_0, v_v2_1, f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Term(p_r, v_k3_4, v_v3_5, f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__K__Term(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__K__Term* f_Coll__rotateR__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__K__Term(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Term(v_lr_3) < (f_Coll__ratio() * f_Coll__size__K__Term(v_ll_2))) ? f_Coll__bin__K__Term(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Term(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__K__Term(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Term(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Term(p_r, v_k3_4, v_v3_5, f_Coll__bin__K__Term(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__K__Term(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__K__Term* f_Coll__bin__K__Term(srs_cap* p_r, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__K__Term* o0 = (struct E_Coll__IMap__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__K__Term, u) + sizeof(((struct E_Coll__IMap__K__Term*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__K__Term(p_l) + f_Coll__size__K__Term(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAll(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_ys) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_s; o0; }); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_xt_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = f_K__unify(p_r, p_s, v_x_0, v_y_2); s4->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_s2_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = v_s2_4; struct E_Coll__List__K__Term* t2 = v_xt_1; struct E_Coll__List__K__Term* t3 = v_yt_3; p_r = t0; p_s = t1; p_xs = t2; p_ys = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_K__Term*){0}; }); }); }); }); }); }); }); } -static struct E_K__Term* f_K__reify(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t) { return ({ __auto_type s0 = f_K__walk(p_r, p_s, p_t); s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o1->tag = 0; o1->u.C_K__Var.f_n = v_n_0; o1; }); }) : s0->tag == 2 ? ({ __auto_type v_v_0 = s0->u.C_K__Int.f_v; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o1->tag = 2; o1->u.C_K__Int.f_v = v_v_0; o1; }); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_f_0; o2->u.C_K__Con.f_args = f_Coll__rev__K__Term(p_r, f_K__reifyOnto(p_r, p_s, v_args_1, (&N_Coll__Nil__K__Term))); o2; }); }); }); } -static struct E_Coll__List__K__Term* f_K__reifyOnto(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_K__reify(p_r, p_s, v_h_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_s = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_Coll__IMap__K__Term* f_Coll__rotateL__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Term(v_rl_2) < (f_Coll__ratio() * f_Coll__size__K__Term(v_rr_3))) ? f_Coll__bin__K__Term(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__K__Term(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Term(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__K__Term(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__K__Term* f_Coll__rotateR__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Term(v_lr_3) < (f_Coll__ratio() * f_Coll__size__K__Term(v_ll_2))) ? f_Coll__bin__K__Term(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__K__Term(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Term(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__K__Term(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__K__Term(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__K__Term* f_Coll__bin__K__Term(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Term* p_v, struct E_Coll__IMap__K__Term* p_l, struct E_Coll__IMap__K__Term* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__K__Term* o0 = (struct E_Coll__IMap__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__K__Term, u) + sizeof(((struct E_Coll__IMap__K__Term*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__K__Term(p_l) + f_Coll__size__K__Term(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAll(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_ys) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_s; o0; }); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_xt_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = f_K__unify(p_eff__Region, p_s, v_x_0, v_y_2); s4->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_s2_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = v_s2_4; struct E_Coll__List__K__Term* t2 = v_xt_1; struct E_Coll__List__K__Term* t3 = v_yt_3; p_eff__Region = t0; p_s = t1; p_xs = t2; p_ys = t3; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_K__Term*){0}; }); }); }); }); }); }); }); } +static struct E_K__Term* f_K__reify(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_t) { return ({ __auto_type s0 = f_K__walk(p_s, p_t); s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o1->tag = 0; o1->u.C_K__Var.f_n = v_n_0; o1; }); }) : s0->tag == 2 ? ({ __auto_type v_v_0 = s0->u.C_K__Int.f_v; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o1->tag = 2; o1->u.C_K__Int.f_v = v_v_0; o1; }); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_f_0; o2->u.C_K__Con.f_args = f_Coll__rev__K__Term(p_eff__Region, f_K__reifyOnto(p_eff__Region, p_s, v_args_1, (&N_Coll__Nil__K__Term))); o2; }); }); }); } +static struct E_Coll__List__K__Term* f_K__reifyOnto(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_K__reify(p_eff__Region, p_s, v_h_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_s = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } static bool f_K__member(int64_t p_v, struct E_Coll__List__I64* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ((v_h_0 == p_v) ? true : ({ int64_t t0 = p_v; struct E_Coll__List__I64* t1 = v_t_1; p_v = t0; p_xs = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__List__I64* f_K__ints(srs_cap* p_r, struct E_K__Dom* p_d) { return ({ __auto_type res_ = ({ __auto_type s0 = p_d; ({ __auto_type v_h_0 = s0->u.C_K__Dom.f_h; __auto_type v_t_1 = s0->u.C_K__Dom.f_t; ({ __auto_type res_ = ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = v_t_1; o2; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__I64* f_K__ints(srs_cap* p_eff__Region, struct E_K__Dom* p_d) { return ({ __auto_type res_ = ({ __auto_type s0 = p_d; ({ __auto_type v_h_0 = s0->u.C_K__Dom.f_h; __auto_type v_t_1 = s0->u.C_K__Dom.f_t; ({ __auto_type res_ = ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = v_t_1; o2; }); res_; }); }); }); res_; }); } static int64_t f_K__lo(struct E_K__Dom* p_d) { return ({ __auto_type res_ = ({ __auto_type s0 = p_d; ({ __auto_type v_h_0 = s0->u.C_K__Dom.f_h; ({ __auto_type res_ = v_h_0; res_; }); }); }); res_; }); } static int64_t f_K__lastOf(int64_t p_h, struct E_Coll__List__I64* p_t) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_h; }) : ({ __auto_type v_h2_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t2_1 = s0->u.C_Coll__Cons.f_t; ({ int64_t t0 = v_h2_0; struct E_Coll__List__I64* t1 = v_t2_1; p_h = t0; p_t = t1; goto srs_tail; (int64_t){0}; }); }); }); } static int64_t f_K__hi(struct E_K__Dom* p_d) { return ({ __auto_type res_ = ({ __auto_type s0 = p_d; ({ __auto_type v_x_0 = s0->u.C_K__Dom.f_hi; ({ __auto_type res_ = v_x_0; res_; }); }); }); res_; }); } static int64_t f_K__domSize(struct E_K__Dom* p_d) { return ({ __auto_type res_ = ({ __auto_type s0 = p_d; ({ __auto_type v_n_0 = s0->u.C_K__Dom.f_n; ({ __auto_type res_ = v_n_0; res_; }); }); }); res_; }); } static bool f_K__inDom(int64_t p_v, struct E_K__Dom* p_d) { return ({ __auto_type res_ = ({ __auto_type s0 = p_d; ({ __auto_type v_x_0 = s0->u.C_K__Dom.f_hi; __auto_type v_h_1 = s0->u.C_K__Dom.f_h; __auto_type v_t_2 = s0->u.C_K__Dom.f_t; ({ __auto_type res_ = (((p_v >= v_h_1) && (p_v <= v_x_0)) && ((p_v == v_h_1) || f_K__member(p_v, v_t_2))); res_; }); }); }); res_; }); } -static struct E_Coll__List__I64* f_K__range(srs_cap* p_r, int64_t p_a, int64_t p_b) { return f_K__rangeOnto(p_r, p_a, p_b, (&N_Coll__Nil__I64)); } -static struct E_Coll__List__I64* f_K__rangeOnto(srs_cap* p_r, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc) { srs_tail: return ((p_a > p_b) ? p_acc : ({ srs_cap* t0 = p_r; int64_t t1 = p_a; int64_t t2 = (p_b - ((int64_t)1)); struct E_Coll__List__I64* t3 = ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = p_acc; o0; }); p_r = t0; p_a = t1; p_b = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__I64*){0}; })); } -static struct E_Coll__List__I64* f_K__between(srs_cap* p_r, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b) { return f_Coll__rev__I64(p_r, f_K__betweenOnto(p_r, p_xs, p_a, p_b, (&N_Coll__Nil__I64))); } -static struct E_Coll__List__I64* f_Coll__rev__I64(srs_cap* p_r, struct E_Coll__List__I64* p_xs) { return f_Coll__revOnto__I64(p_r, p_xs, (&N_Coll__Nil__I64)); } -static struct E_Coll__List__I64* f_Coll__revOnto__I64(srs_cap* p_r, struct E_Coll__List__I64* p_xs, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__I64* t1 = v_t_1; struct E_Coll__List__I64* t2 = ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } -static struct E_Coll__List__I64* f_K__betweenOnto(srs_cap* p_r, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__I64* t1 = v_t_1; int64_t t2 = p_a; int64_t t3 = p_b; struct E_Coll__List__I64* t4 = (((v_h_0 >= p_a) && (v_h_0 <= p_b)) ? ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }) : p_acc); p_r = t0; p_xs = t1; p_a = t2; p_b = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } -static struct E_Coll__List__I64* f_K__withoutOnto(srs_cap* p_r, struct E_Coll__List__I64* p_xs, int64_t p_v, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__I64* t1 = v_t_1; int64_t t2 = p_v; struct E_Coll__List__I64* t3 = ((v_h_0 == p_v) ? p_acc : ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); p_r = t0; p_xs = t1; p_v = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } -static struct E_Coll__List__I64* f_K__meetInts(srs_cap* p_r, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d) { return f_Coll__rev__I64(p_r, f_K__meetOnto(p_r, p_xs, p_d, (&N_Coll__Nil__I64))); } -static struct E_Coll__List__I64* f_K__meetOnto(srs_cap* p_r, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__I64* t1 = v_t_1; struct E_K__Dom* t2 = p_d; struct E_Coll__List__I64* t3 = (f_K__inDom(v_h_0, p_d) ? ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }) : p_acc); p_r = t0; p_xs = t1; p_d = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } -static struct E_K__DomOf* f_K__domOf(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ds_1 = s0->u.C_K__State.f_dom; ({ __auto_type res_ = ({ __auto_type s2 = f_K__walk(p_r, v_s_0, p_t); s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_K__Var.f_n; ({ __auto_type s3 = f_Coll__node__K__Dom(v_ds_1, v_n_2); s3->tag == 0 ? ({ (&N_K__NoDom); }) : ({ __auto_type v_d_3 = s3->u.C_Coll__Bin.f_v; ({ struct E_K__DomOf* o4 = (struct E_K__DomOf*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__DomOf, u) + sizeof(((struct E_K__DomOf*)0)->u.C_K__Has))); o4->tag = 1; o4->u.C_K__Has.f_d = v_d_3; o4; }); }); }); }) : s2->tag == 2 ? ({ __auto_type v_v_2 = s2->u.C_K__Int.f_v; ({ struct E_K__DomOf* o3 = (struct E_K__DomOf*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__DomOf, u) + sizeof(((struct E_K__DomOf*)0)->u.C_K__Has))); o3->tag = 1; o3->u.C_K__Has.f_d = ({ struct E_K__Dom* o3 = (struct E_K__Dom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Dom, u) + sizeof(((struct E_K__Dom*)0)->u.C_K__Dom))); o3->tag = 0; o3->u.C_K__Dom.f_n = ((int64_t)1); o3->u.C_K__Dom.f_hi = v_v_2; o3->u.C_K__Dom.f_h = v_v_2; o3->u.C_K__Dom.f_t = (&N_Coll__Nil__I64); o3; }); o3; }); }) : ({ (&N_K__NotInt); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__I64* f_K__range(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b) { return f_K__rangeOnto(p_eff__Region, p_a, p_b, (&N_Coll__Nil__I64)); } +static struct E_Coll__List__I64* f_K__rangeOnto(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc) { srs_tail: return ((p_a > p_b) ? p_acc : ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_a; int64_t t2 = (p_b - ((int64_t)1)); struct E_Coll__List__I64* t3 = ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = p_acc; o0; }); p_eff__Region = t0; p_a = t1; p_b = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__I64*){0}; })); } +static struct E_Coll__List__I64* f_K__between(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b) { return f_Coll__rev__I64(p_eff__Region, f_K__betweenOnto(p_eff__Region, p_xs, p_a, p_b, (&N_Coll__Nil__I64))); } +static struct E_Coll__List__I64* f_Coll__rev__I64(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs) { return f_Coll__revOnto__I64(p_eff__Region, p_xs, (&N_Coll__Nil__I64)); } +static struct E_Coll__List__I64* f_Coll__revOnto__I64(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__I64* t1 = v_t_1; struct E_Coll__List__I64* t2 = ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } +static struct E_Coll__List__I64* f_K__betweenOnto(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, int64_t p_a, int64_t p_b, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__I64* t1 = v_t_1; int64_t t2 = p_a; int64_t t3 = p_b; struct E_Coll__List__I64* t4 = (((v_h_0 >= p_a) && (v_h_0 <= p_b)) ? ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }) : p_acc); p_eff__Region = t0; p_xs = t1; p_a = t2; p_b = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } +static struct E_Coll__List__I64* f_K__withoutOnto(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, int64_t p_v, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__I64* t1 = v_t_1; int64_t t2 = p_v; struct E_Coll__List__I64* t3 = ((v_h_0 == p_v) ? p_acc : ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); p_eff__Region = t0; p_xs = t1; p_v = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } +static struct E_Coll__List__I64* f_K__meetInts(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d) { return f_Coll__rev__I64(p_eff__Region, f_K__meetOnto(p_eff__Region, p_xs, p_d, (&N_Coll__Nil__I64))); } +static struct E_Coll__List__I64* f_K__meetOnto(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs, struct E_K__Dom* p_d, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__I64* t1 = v_t_1; struct E_K__Dom* t2 = p_d; struct E_Coll__List__I64* t3 = (f_K__inDom(v_h_0, p_d) ? ({ struct E_Coll__List__I64* o2 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }) : p_acc); p_eff__Region = t0; p_xs = t1; p_d = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } +static struct E_K__DomOf* f_K__domOf(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ds_1 = s0->u.C_K__State.f_dom; ({ __auto_type res_ = ({ __auto_type s2 = f_K__walk(v_s_0, p_t); s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_K__Var.f_n; ({ __auto_type s3 = f_Coll__node__K__Dom(v_ds_1, v_n_2); s3->tag == 0 ? ({ (&N_K__NoDom); }) : ({ __auto_type v_d_3 = s3->u.C_Coll__Bin.f_v; ({ struct E_K__DomOf* o4 = (struct E_K__DomOf*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__DomOf, u) + sizeof(((struct E_K__DomOf*)0)->u.C_K__Has))); o4->tag = 1; o4->u.C_K__Has.f_d = v_d_3; o4; }); }); }); }) : s2->tag == 2 ? ({ __auto_type v_v_2 = s2->u.C_K__Int.f_v; ({ struct E_K__DomOf* o3 = (struct E_K__DomOf*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__DomOf, u) + sizeof(((struct E_K__DomOf*)0)->u.C_K__Has))); o3->tag = 1; o3->u.C_K__Has.f_d = ({ struct E_K__Dom* o3 = (struct E_K__Dom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Dom, u) + sizeof(((struct E_K__Dom*)0)->u.C_K__Dom))); o3->tag = 0; o3->u.C_K__Dom.f_n = ((int64_t)1); o3->u.C_K__Dom.f_hi = v_v_2; o3->u.C_K__Dom.f_h = v_v_2; o3->u.C_K__Dom.f_t = (&N_Coll__Nil__I64); o3; }); o3; }); }) : ({ (&N_K__NotInt); }); }); res_; }); }); }); res_; }); } static struct E_Coll__IMap__K__Dom* f_Coll__node__K__Dom(struct E_Coll__IMap__K__Dom* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__K__Dom* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__K__Dom*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__K__Dom* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__K__Dom*){0}; }) : p_m)); }); }); } -static struct E_Coll__Option__K__State* f_K__setDom(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ns_1 = s0->u.C_K__State.f_neq; __auto_type v_ds_2 = s0->u.C_K__State.f_dom; __auto_type v_ps_3 = s0->u.C_K__State.f_fd; __auto_type v_nx_4 = s0->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s5 = p_xs; s5->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_h_5 = s5->u.C_Coll__Cons.f_h; __auto_type v_rest_6 = s5->u.C_Coll__Cons.f_t; ({ __auto_type s7 = f_K__walk(p_r, v_s_0, p_t); s7->tag == 2 ? ({ __auto_type v_v_7 = s7->u.C_K__Int.f_v; (f_K__member(v_v_7, p_xs) ? ({ struct E_Coll__Option__K__State* o8 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = p_st; o8; }) : (&N_Coll__None__K__State)); }) : s7->tag == 1 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_n_7 = s7->u.C_K__Var.f_n; ({ __auto_type s8 = v_rest_6; s8->tag == 0 ? ({ ({ __auto_type s8 = f_K__unify(p_r, v_s_0, ({ struct E_K__Term* o8 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o8->tag = 0; o8->u.C_K__Var.f_n = v_n_7; o8; }), ({ struct E_K__Term* o8 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o8->tag = 2; o8->u.C_K__Int.f_v = v_h_5; o8; })); s8->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_s2_8 = s8->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = ({ struct E_K__State* o9 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o9->tag = 0; o9->u.C_K__State.f_s = v_s2_8; o9->u.C_K__State.f_neq = v_ns_1; o9->u.C_K__State.f_dom = v_ds_2; o9->u.C_K__State.f_fd = f_K__emit(p_r, v_ps_3, v_n_7, (&N_K__Fixed)); o9->u.C_K__State.f_next = v_nx_4; o9; }); o9; }); }); }); }) : ({ ({ int64_t v_k_8 = (((int64_t)1) + f_Coll__length__I64(v_rest_6)); __auto_type res_ = (f_K__hasSize(v_ds_2, v_n_7, v_k_8) ? ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = p_st; o9; }) : ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = ({ struct E_K__State* o9 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o9->tag = 0; o9->u.C_K__State.f_s = v_s_0; o9->u.C_K__State.f_neq = v_ns_1; o9->u.C_K__State.f_dom = f_Coll__insert__K__Dom(p_r, v_ds_2, v_n_7, ({ struct E_K__Dom* o9 = (struct E_K__Dom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Dom, u) + sizeof(((struct E_K__Dom*)0)->u.C_K__Dom))); o9->tag = 0; o9->u.C_K__Dom.f_n = v_k_8; o9->u.C_K__Dom.f_hi = f_K__lastOf(v_h_5, v_rest_6); o9->u.C_K__Dom.f_h = v_h_5; o9->u.C_K__Dom.f_t = v_rest_6; o9; })); o9->u.C_K__State.f_fd = f_K__emit(p_r, v_ps_3, v_n_7, (&N_K__Narrowed)); o9->u.C_K__State.f_next = v_nx_4; o9; }); o9; })); res_; }); }); }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__K__State* f_K__setDom(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ns_1 = s0->u.C_K__State.f_neq; __auto_type v_ds_2 = s0->u.C_K__State.f_dom; __auto_type v_ps_3 = s0->u.C_K__State.f_fd; __auto_type v_nx_4 = s0->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s5 = p_xs; s5->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_h_5 = s5->u.C_Coll__Cons.f_h; __auto_type v_rest_6 = s5->u.C_Coll__Cons.f_t; ({ __auto_type s7 = f_K__walk(v_s_0, p_t); s7->tag == 2 ? ({ __auto_type v_v_7 = s7->u.C_K__Int.f_v; (f_K__member(v_v_7, p_xs) ? ({ struct E_Coll__Option__K__State* o8 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = p_st; o8; }) : (&N_Coll__None__K__State)); }) : s7->tag == 1 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_n_7 = s7->u.C_K__Var.f_n; ({ __auto_type s8 = v_rest_6; s8->tag == 0 ? ({ ({ __auto_type s8 = f_K__unify(p_eff__Region, v_s_0, ({ struct E_K__Term* o8 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o8->tag = 0; o8->u.C_K__Var.f_n = v_n_7; o8; }), ({ struct E_K__Term* o8 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o8->tag = 2; o8->u.C_K__Int.f_v = v_h_5; o8; })); s8->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_s2_8 = s8->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = ({ struct E_K__State* o9 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o9->tag = 0; o9->u.C_K__State.f_s = v_s2_8; o9->u.C_K__State.f_neq = v_ns_1; o9->u.C_K__State.f_dom = v_ds_2; o9->u.C_K__State.f_fd = f_K__emit(p_eff__Region, v_ps_3, v_n_7, (&N_K__Fixed)); o9->u.C_K__State.f_next = v_nx_4; o9; }); o9; }); }); }); }) : ({ ({ int64_t v_k_8 = (((int64_t)1) + f_Coll__length__I64(v_rest_6)); __auto_type res_ = (f_K__hasSize(v_ds_2, v_n_7, v_k_8) ? ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = p_st; o9; }) : ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = ({ struct E_K__State* o9 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o9->tag = 0; o9->u.C_K__State.f_s = v_s_0; o9->u.C_K__State.f_neq = v_ns_1; o9->u.C_K__State.f_dom = f_Coll__insert__K__Dom(p_eff__Region, v_ds_2, v_n_7, ({ struct E_K__Dom* o9 = (struct E_K__Dom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Dom, u) + sizeof(((struct E_K__Dom*)0)->u.C_K__Dom))); o9->tag = 0; o9->u.C_K__Dom.f_n = v_k_8; o9->u.C_K__Dom.f_hi = f_K__lastOf(v_h_5, v_rest_6); o9->u.C_K__Dom.f_h = v_h_5; o9->u.C_K__Dom.f_t = v_rest_6; o9; })); o9->u.C_K__State.f_fd = f_K__emit(p_eff__Region, v_ps_3, v_n_7, (&N_K__Narrowed)); o9->u.C_K__State.f_next = v_nx_4; o9; }); o9; })); res_; }); }); }); }); }); }); }); res_; }); }); }); res_; }); } static int64_t f_Coll__length__I64(struct E_Coll__List__I64* p_xs) { return f_Coll__lengthFrom__I64(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__I64(struct E_Coll__List__I64* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__I64* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Coll__IMap__K__Dom* f_Coll__insert__K__Dom(srs_cap* p_r, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k, struct E_K__Dom* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__K__Dom* o0 = (struct E_Coll__IMap__K__Dom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__K__Dom, u) + sizeof(((struct E_Coll__IMap__K__Dom*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__K__Dom); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__K__Dom); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__K__Dom(p_r, v_k2_1, v_v2_2, f_Coll__insert__K__Dom(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__K__Dom(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__K__Dom(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__K__Dom* o5 = (struct E_Coll__IMap__K__Dom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__K__Dom, u) + sizeof(((struct E_Coll__IMap__K__Dom*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__K__Dom* f_Coll__balance__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__K__Dom(p_l); int64_t v_sr_1 = f_Coll__size__K__Dom(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__K__Dom(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__K__Dom(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_Coll__IMap__K__Dom* f_Coll__insert__K__Dom(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k, struct E_K__Dom* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__K__Dom* o0 = (struct E_Coll__IMap__K__Dom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__K__Dom, u) + sizeof(((struct E_Coll__IMap__K__Dom*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__K__Dom); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__K__Dom); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__K__Dom(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__K__Dom(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__K__Dom(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__K__Dom(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__K__Dom* o5 = (struct E_Coll__IMap__K__Dom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__K__Dom, u) + sizeof(((struct E_Coll__IMap__K__Dom*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__K__Dom* f_Coll__balance__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__K__Dom(p_l); int64_t v_sr_1 = f_Coll__size__K__Dom(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__K__Dom(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__K__Dom(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__K__Dom(struct E_Coll__IMap__K__Dom* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__K__Dom* f_Coll__rotateL__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Dom(v_rl_2) < (f_Coll__ratio() * f_Coll__size__K__Dom(v_rr_3))) ? f_Coll__bin__K__Dom(p_r, v_k2_0, v_v2_1, f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__K__Dom(p_r, v_k2_0, v_v2_1, f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Dom(p_r, v_k3_4, v_v3_5, f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__K__Dom(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__K__Dom* f_Coll__rotateR__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__K__Dom(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Dom(v_lr_3) < (f_Coll__ratio() * f_Coll__size__K__Dom(v_ll_2))) ? f_Coll__bin__K__Dom(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Dom(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__K__Dom(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Dom(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Dom(p_r, v_k3_4, v_v3_5, f_Coll__bin__K__Dom(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__K__Dom(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__K__Dom* f_Coll__bin__K__Dom(srs_cap* p_r, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__K__Dom* o0 = (struct E_Coll__IMap__K__Dom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__K__Dom, u) + sizeof(((struct E_Coll__IMap__K__Dom*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__K__Dom(p_l) + f_Coll__size__K__Dom(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_Coll__IMap__K__Dom* f_Coll__rotateL__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Dom(v_rl_2) < (f_Coll__ratio() * f_Coll__size__K__Dom(v_rr_3))) ? f_Coll__bin__K__Dom(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__K__Dom(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Dom(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__K__Dom(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__K__Dom* f_Coll__rotateR__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__K__Dom(v_lr_3) < (f_Coll__ratio() * f_Coll__size__K__Dom(v_ll_2))) ? f_Coll__bin__K__Dom(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__K__Dom(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__K__Dom(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__K__Dom(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__K__Dom(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__K__Dom* f_Coll__bin__K__Dom(srs_cap* p_eff__Region, int64_t p_k, struct E_K__Dom* p_v, struct E_Coll__IMap__K__Dom* p_l, struct E_Coll__IMap__K__Dom* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__K__Dom* o0 = (struct E_Coll__IMap__K__Dom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__K__Dom, u) + sizeof(((struct E_Coll__IMap__K__Dom*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__K__Dom(p_l) + f_Coll__size__K__Dom(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } static bool f_K__hasSize(struct E_Coll__IMap__K__Dom* p_ds, int64_t p_n, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_key_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_d_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_3 = s0->u.C_Coll__Bin.f_r; ((p_n < v_key_0) ? ({ struct E_Coll__IMap__K__Dom* t0 = v_l_2; int64_t t1 = p_n; int64_t t2 = p_k; p_ds = t0; p_n = t1; p_k = t2; goto srs_tail; (bool){0}; }) : ((p_n > v_key_0) ? ({ struct E_Coll__IMap__K__Dom* t0 = v_r2_3; int64_t t1 = p_n; int64_t t2 = p_k; p_ds = t0; p_n = t1; p_k = t2; goto srs_tail; (bool){0}; }) : (f_K__domSize(v_d_1) == p_k))); }); }); } -static struct E_Coll__Option__K__State* f_K__meet(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = f_K__domOf(p_r, p_st, p_t); s0->tag == 0 ? ({ f_K__setDom(p_r, p_st, p_t, p_xs); }) : s0->tag == 1 ? ({ __auto_type v_d_0 = s0->u.C_K__Has.f_d; f_K__setDom(p_r, p_st, p_t, f_K__meetInts(p_r, p_xs, v_d_0)); }) : ({ (&N_Coll__None__K__State); }); }); } -static struct E_Coll__Option__K__State* f_K__leAt(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, int64_t p_k) { return ({ struct E_Coll__Option__K__State* v_sx_0 = ((f_K__hi(p_dx) <= (f_K__hi(p_dy) - p_k)) ? ({ struct E_Coll__Option__K__State* o0 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_st; o0; }) : f_K__setDom(p_r, p_st, p_x, f_K__between(p_r, f_K__ints(p_r, p_dx), f_K__lo(p_dx), (f_K__hi(p_dy) - p_k)))); __auto_type res_ = ({ __auto_type s1 = v_sx_0; s1->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_1 = s1->u.C_Coll__Some.f_v; ((f_K__lo(p_dy) >= (f_K__lo(p_dx) + p_k)) ? ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_st2_1; o2; }) : f_K__setDom(p_r, v_st2_1, p_y, f_K__between(p_r, f_K__ints(p_r, p_dy), (f_K__lo(p_dx) + p_k), f_K__hi(p_dy)))); }); }); res_; }); } -static struct E_Coll__Option__K__State* f_K__neAt(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy) { return ({ int64_t v_nx_0 = f_K__domSize(p_dx); int64_t v_ny_1 = f_K__domSize(p_dy); __auto_type res_ = (((v_nx_0 == ((int64_t)1)) && (v_ny_1 == ((int64_t)1))) ? ((f_K__lo(p_dx) == f_K__lo(p_dy)) ? (&N_Coll__None__K__State) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })) : ((v_nx_0 == ((int64_t)1)) ? (f_K__inDom(f_K__lo(p_dx), p_dy) ? f_K__setDom(p_r, p_st, p_y, f_Coll__rev__I64(p_r, f_K__withoutOnto(p_r, f_K__ints(p_r, p_dy), f_K__lo(p_dx), (&N_Coll__Nil__I64)))) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })) : ((v_ny_1 == ((int64_t)1)) ? (f_K__inDom(f_K__lo(p_dy), p_dx) ? f_K__setDom(p_r, p_st, p_x, f_Coll__rev__I64(p_r, f_K__withoutOnto(p_r, f_K__ints(p_r, p_dx), f_K__lo(p_dy), (&N_Coll__Nil__I64)))) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })))); res_; }); } -static struct E_Coll__Option__K__State* f_K__plusAt(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Term* p_z, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, struct E_K__Dom* p_dz) { return ({ __auto_type res_ = ({ __auto_type s0 = f_K__setDom(p_r, p_st, p_z, f_K__between(p_r, f_K__ints(p_r, p_dz), (f_K__lo(p_dx) + f_K__lo(p_dy)), (f_K__hi(p_dx) + f_K__hi(p_dy)))); s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st1_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_K__setDom(p_r, v_st1_0, p_x, f_K__between(p_r, f_K__ints(p_r, p_dx), (f_K__lo(p_dz) - f_K__hi(p_dy)), (f_K__hi(p_dz) - f_K__lo(p_dy)))); s1->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_1 = s1->u.C_Coll__Some.f_v; f_K__setDom(p_r, v_st2_1, p_y, f_K__between(p_r, f_K__ints(p_r, p_dy), (f_K__lo(p_dz) - f_K__hi(p_dx)), (f_K__hi(p_dz) - f_K__lo(p_dx)))); }); }); }); }); res_; }); } -static struct E_Coll__Option__K__State* f_K__fire(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Fd* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_op_0 = s0->u.C_K__FBin.f_op; __auto_type v_x_1 = s0->u.C_K__FBin.f_x; __auto_type v_y_2 = s0->u.C_K__FBin.f_y; ({ __auto_type s3 = f_K__domOf(p_r, p_st, v_x_1); s3->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o3 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = p_st; o3; }); }) : s3->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dx_3 = s3->u.C_K__Has.f_d; ({ __auto_type s4 = f_K__domOf(p_r, p_st, v_y_2); s4->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o4 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = p_st; o4; }); }) : s4->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dy_4 = s4->u.C_K__Has.f_d; ({ __auto_type s5 = v_op_0; s5->tag == 0 ? ({ f_K__leAt(p_r, p_st, v_x_1, v_y_2, v_dx_3, v_dy_4, ((int64_t)0)); }) : s5->tag == 1 ? ({ f_K__leAt(p_r, p_st, v_x_1, v_y_2, v_dx_3, v_dy_4, ((int64_t)1)); }) : ({ f_K__neAt(p_r, p_st, v_x_1, v_y_2, v_dx_3, v_dy_4); }); }); }); }); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_K__FPlus.f_x; __auto_type v_y_1 = s0->u.C_K__FPlus.f_y; __auto_type v_z_2 = s0->u.C_K__FPlus.f_z; ({ __auto_type s3 = f_K__domOf(p_r, p_st, v_x_0); s3->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o3 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = p_st; o3; }); }) : s3->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dx_3 = s3->u.C_K__Has.f_d; ({ __auto_type s4 = f_K__domOf(p_r, p_st, v_y_1); s4->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o4 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = p_st; o4; }); }) : s4->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dy_4 = s4->u.C_K__Has.f_d; ({ __auto_type s5 = f_K__domOf(p_r, p_st, v_z_2); s5->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o5 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = p_st; o5; }); }) : s5->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dz_5 = s5->u.C_K__Has.f_d; f_K__plusAt(p_r, p_st, v_x_0, v_y_1, v_z_2, v_dx_3, v_dy_4, v_dz_5); }); }); }); }); }); }); }); }); } -static struct E_K__Props* f_K__emit(srs_cap* p_r, struct E_K__Props* p_ps, int64_t p_n, struct E_K__Change* p_change) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ps; ({ __auto_type v_fx_0 = s0->u.C_K__Props.f_fix; __auto_type v_an_1 = s0->u.C_K__Props.f_any; __auto_type v_evs_2 = s0->u.C_K__Props.f_evs; ({ __auto_type res_ = ({ struct E_K__Props* o3 = (struct E_K__Props*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o3->tag = 0; o3->u.C_K__Props.f_fix = v_fx_0; o3->u.C_K__Props.f_any = v_an_1; o3->u.C_K__Props.f_evs = ({ struct E_Coll__List__K__Ev* o3 = (struct E_Coll__List__K__Ev*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Ev, u) + sizeof(((struct E_Coll__List__K__Ev*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_K__Ev* o3 = (struct E_K__Ev*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Ev, u) + sizeof(((struct E_K__Ev*)0)->u.C_K__Ev))); o3->tag = 0; o3->u.C_K__Ev.f_v = p_n; o3->u.C_K__Ev.f_change = p_change; o3; }); o3->u.C_Coll__Cons.f_t = v_evs_2; o3; }); o3; }); res_; }); }); }); res_; }); } -static struct E_Coll__List__K__Term* f_K__fdTerms(srs_cap* p_r, struct E_K__Fd* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_K__FBin.f_x; __auto_type v_y_1 = s0->u.C_K__FBin.f_y; ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_y_1; o2->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o2; }); o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_K__FPlus.f_x; __auto_type v_y_1 = s0->u.C_K__FPlus.f_y; __auto_type v_z_2 = s0->u.C_K__FPlus.f_z; ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_y_1; o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_z_2; o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o3; }); o3; }); o3; }); }); }); } -static struct E_Coll__List__K__Fd* f_K__watchers(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, int64_t p_n) { return ({ __auto_type s0 = f_Coll__node__Coll__List_1_K__Fd(p_w, p_n); s0->tag == 0 ? ({ (&N_Coll__Nil__K__Fd); }) : ({ __auto_type v_cs_0 = s0->u.C_Coll__Bin.f_v; v_cs_0; }); }); } +static struct E_Coll__Option__K__State* f_K__meet(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = f_K__domOf(p_eff__Region, p_st, p_t); s0->tag == 0 ? ({ f_K__setDom(p_eff__Region, p_st, p_t, p_xs); }) : s0->tag == 1 ? ({ __auto_type v_d_0 = s0->u.C_K__Has.f_d; f_K__setDom(p_eff__Region, p_st, p_t, f_K__meetInts(p_eff__Region, p_xs, v_d_0)); }) : ({ (&N_Coll__None__K__State); }); }); } +static struct E_Coll__Option__K__State* f_K__leAt(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, int64_t p_k) { return ({ struct E_Coll__Option__K__State* v_sx_0 = ((f_K__hi(p_dx) <= (f_K__hi(p_dy) - p_k)) ? ({ struct E_Coll__Option__K__State* o0 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_st; o0; }) : f_K__setDom(p_eff__Region, p_st, p_x, f_K__between(p_eff__Region, f_K__ints(p_eff__Region, p_dx), f_K__lo(p_dx), (f_K__hi(p_dy) - p_k)))); __auto_type res_ = ({ __auto_type s1 = v_sx_0; s1->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_1 = s1->u.C_Coll__Some.f_v; ((f_K__lo(p_dy) >= (f_K__lo(p_dx) + p_k)) ? ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_st2_1; o2; }) : f_K__setDom(p_eff__Region, v_st2_1, p_y, f_K__between(p_eff__Region, f_K__ints(p_eff__Region, p_dy), (f_K__lo(p_dx) + p_k), f_K__hi(p_dy)))); }); }); res_; }); } +static struct E_Coll__Option__K__State* f_K__neAt(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy) { return ({ int64_t v_nx_0 = f_K__domSize(p_dx); int64_t v_ny_1 = f_K__domSize(p_dy); __auto_type res_ = (((v_nx_0 == ((int64_t)1)) && (v_ny_1 == ((int64_t)1))) ? ((f_K__lo(p_dx) == f_K__lo(p_dy)) ? (&N_Coll__None__K__State) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })) : ((v_nx_0 == ((int64_t)1)) ? (f_K__inDom(f_K__lo(p_dx), p_dy) ? f_K__setDom(p_eff__Region, p_st, p_y, f_Coll__rev__I64(p_eff__Region, f_K__withoutOnto(p_eff__Region, f_K__ints(p_eff__Region, p_dy), f_K__lo(p_dx), (&N_Coll__Nil__I64)))) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })) : ((v_ny_1 == ((int64_t)1)) ? (f_K__inDom(f_K__lo(p_dy), p_dx) ? f_K__setDom(p_eff__Region, p_st, p_x, f_Coll__rev__I64(p_eff__Region, f_K__withoutOnto(p_eff__Region, f_K__ints(p_eff__Region, p_dx), f_K__lo(p_dy), (&N_Coll__Nil__I64)))) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })) : ({ struct E_Coll__Option__K__State* o2 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_st; o2; })))); res_; }); } +static struct E_Coll__Option__K__State* f_K__plusAt(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_x, struct E_K__Term* p_y, struct E_K__Term* p_z, struct E_K__Dom* p_dx, struct E_K__Dom* p_dy, struct E_K__Dom* p_dz) { return ({ __auto_type res_ = ({ __auto_type s0 = f_K__setDom(p_eff__Region, p_st, p_z, f_K__between(p_eff__Region, f_K__ints(p_eff__Region, p_dz), (f_K__lo(p_dx) + f_K__lo(p_dy)), (f_K__hi(p_dx) + f_K__hi(p_dy)))); s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st1_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_K__setDom(p_eff__Region, v_st1_0, p_x, f_K__between(p_eff__Region, f_K__ints(p_eff__Region, p_dx), (f_K__lo(p_dz) - f_K__hi(p_dy)), (f_K__hi(p_dz) - f_K__lo(p_dy)))); s1->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_1 = s1->u.C_Coll__Some.f_v; f_K__setDom(p_eff__Region, v_st2_1, p_y, f_K__between(p_eff__Region, f_K__ints(p_eff__Region, p_dy), (f_K__lo(p_dz) - f_K__hi(p_dx)), (f_K__hi(p_dz) - f_K__lo(p_dx)))); }); }); }); }); res_; }); } +static struct E_Coll__Option__K__State* f_K__fire(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Fd* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_op_0 = s0->u.C_K__FBin.f_op; __auto_type v_x_1 = s0->u.C_K__FBin.f_x; __auto_type v_y_2 = s0->u.C_K__FBin.f_y; ({ __auto_type s3 = f_K__domOf(p_eff__Region, p_st, v_x_1); s3->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o3 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = p_st; o3; }); }) : s3->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dx_3 = s3->u.C_K__Has.f_d; ({ __auto_type s4 = f_K__domOf(p_eff__Region, p_st, v_y_2); s4->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o4 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = p_st; o4; }); }) : s4->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dy_4 = s4->u.C_K__Has.f_d; ({ __auto_type s5 = v_op_0; s5->tag == 0 ? ({ f_K__leAt(p_eff__Region, p_st, v_x_1, v_y_2, v_dx_3, v_dy_4, ((int64_t)0)); }) : s5->tag == 1 ? ({ f_K__leAt(p_eff__Region, p_st, v_x_1, v_y_2, v_dx_3, v_dy_4, ((int64_t)1)); }) : ({ f_K__neAt(p_eff__Region, p_st, v_x_1, v_y_2, v_dx_3, v_dy_4); }); }); }); }); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_K__FPlus.f_x; __auto_type v_y_1 = s0->u.C_K__FPlus.f_y; __auto_type v_z_2 = s0->u.C_K__FPlus.f_z; ({ __auto_type s3 = f_K__domOf(p_eff__Region, p_st, v_x_0); s3->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o3 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = p_st; o3; }); }) : s3->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dx_3 = s3->u.C_K__Has.f_d; ({ __auto_type s4 = f_K__domOf(p_eff__Region, p_st, v_y_1); s4->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o4 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = p_st; o4; }); }) : s4->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dy_4 = s4->u.C_K__Has.f_d; ({ __auto_type s5 = f_K__domOf(p_eff__Region, p_st, v_z_2); s5->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o5 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = p_st; o5; }); }) : s5->tag == 2 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_dz_5 = s5->u.C_K__Has.f_d; f_K__plusAt(p_eff__Region, p_st, v_x_0, v_y_1, v_z_2, v_dx_3, v_dy_4, v_dz_5); }); }); }); }); }); }); }); }); } +static struct E_K__Props* f_K__emit(srs_cap* p_eff__Region, struct E_K__Props* p_ps, int64_t p_n, struct E_K__Change* p_change) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ps; ({ __auto_type v_fx_0 = s0->u.C_K__Props.f_fix; __auto_type v_an_1 = s0->u.C_K__Props.f_any; __auto_type v_evs_2 = s0->u.C_K__Props.f_evs; ({ __auto_type res_ = ({ struct E_K__Props* o3 = (struct E_K__Props*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o3->tag = 0; o3->u.C_K__Props.f_fix = v_fx_0; o3->u.C_K__Props.f_any = v_an_1; o3->u.C_K__Props.f_evs = ({ struct E_Coll__List__K__Ev* o3 = (struct E_Coll__List__K__Ev*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Ev, u) + sizeof(((struct E_Coll__List__K__Ev*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_K__Ev* o3 = (struct E_K__Ev*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Ev, u) + sizeof(((struct E_K__Ev*)0)->u.C_K__Ev))); o3->tag = 0; o3->u.C_K__Ev.f_v = p_n; o3->u.C_K__Ev.f_change = p_change; o3; }); o3->u.C_Coll__Cons.f_t = v_evs_2; o3; }); o3; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__Term* f_K__fdTerms(srs_cap* p_eff__Region, struct E_K__Fd* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_K__FBin.f_x; __auto_type v_y_1 = s0->u.C_K__FBin.f_y; ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_y_1; o2->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o2; }); o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_K__FPlus.f_x; __auto_type v_y_1 = s0->u.C_K__FPlus.f_y; __auto_type v_z_2 = s0->u.C_K__FPlus.f_z; ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_y_1; o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_z_2; o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o3; }); o3; }); o3; }); }); }); } +static struct E_Coll__List__K__Fd* f_K__watchers(struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, int64_t p_n) { return ({ __auto_type s0 = f_Coll__node__Coll__List_1_K__Fd(p_w, p_n); s0->tag == 0 ? ({ (&N_Coll__Nil__K__Fd); }) : ({ __auto_type v_cs_0 = s0->u.C_Coll__Bin.f_v; v_cs_0; }); }); } static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__node__Coll__List_1_K__Fd(struct E_Coll__IMap__Coll__List_1_K__Fd* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__Coll__List_1_K__Fd* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Fd*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__Coll__List_1_K__Fd* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Fd*){0}; }) : p_m)); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_K__watchIn(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, struct E_K__Fd* p_c, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_K__walk(p_r, p_s, v_t_0); s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_K__Var.f_n; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__IMap__Coll__List_1_K__Fd* t2 = f_Coll__insert__Coll__List_1_K__Fd(p_r, p_w, v_n_2, ({ struct E_Coll__List__K__Fd* o3 = (struct E_Coll__List__K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Fd, u) + sizeof(((struct E_Coll__List__K__Fd*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = p_c; o3->u.C_Coll__Cons.f_t = f_K__watchers(p_r, p_w, v_n_2); o3; })); struct E_K__Fd* t3 = p_c; struct E_Coll__List__K__Term* t4 = v_rest_1; p_r = t0; p_s = t1; p_w = t2; p_c = t3; p_ts = t4; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Fd*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__IMap__Coll__List_1_K__Fd* t2 = p_w; struct E_K__Fd* t3 = p_c; struct E_Coll__List__K__Term* t4 = v_rest_1; p_r = t0; p_s = t1; p_w = t2; p_c = t3; p_ts = t4; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Fd*){0}; }); }); }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__insert__Coll__List_1_K__Fd(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Fd* p_m, int64_t p_k, struct E_Coll__List__K__Fd* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__Coll__List_1_K__Fd* o0 = (struct E_Coll__IMap__Coll__List_1_K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Fd, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Fd*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__Coll__List_1_K__Fd); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__Coll__List_1_K__Fd); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__Coll__List_1_K__Fd(p_r, v_k2_1, v_v2_2, f_Coll__insert__Coll__List_1_K__Fd(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__Coll__List_1_K__Fd(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__Coll__List_1_K__Fd(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__Coll__List_1_K__Fd* o5 = (struct E_Coll__IMap__Coll__List_1_K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Fd, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Fd*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__balance__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__Coll__List_1_K__Fd(p_l); int64_t v_sr_1 = f_Coll__size__Coll__List_1_K__Fd(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_K__watchIn(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__IMap__Coll__List_1_K__Fd* p_w, struct E_K__Fd* p_c, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_w; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_K__walk(p_s, v_t_0); s2->tag == 0 ? ({ __auto_type v_n_2 = s2->u.C_K__Var.f_n; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__IMap__Coll__List_1_K__Fd* t2 = f_Coll__insert__Coll__List_1_K__Fd(p_eff__Region, p_w, v_n_2, ({ struct E_Coll__List__K__Fd* o3 = (struct E_Coll__List__K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Fd, u) + sizeof(((struct E_Coll__List__K__Fd*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = p_c; o3->u.C_Coll__Cons.f_t = f_K__watchers(p_w, v_n_2); o3; })); struct E_K__Fd* t3 = p_c; struct E_Coll__List__K__Term* t4 = v_rest_1; p_eff__Region = t0; p_s = t1; p_w = t2; p_c = t3; p_ts = t4; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Fd*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__IMap__Coll__List_1_K__Fd* t2 = p_w; struct E_K__Fd* t3 = p_c; struct E_Coll__List__K__Term* t4 = v_rest_1; p_eff__Region = t0; p_s = t1; p_w = t2; p_c = t3; p_ts = t4; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Fd*){0}; }); }); }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__insert__Coll__List_1_K__Fd(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Fd* p_m, int64_t p_k, struct E_Coll__List__K__Fd* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__Coll__List_1_K__Fd* o0 = (struct E_Coll__IMap__Coll__List_1_K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Fd, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Fd*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__Coll__List_1_K__Fd); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__Coll__List_1_K__Fd); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__Coll__List_1_K__Fd(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__Coll__List_1_K__Fd(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__Coll__List_1_K__Fd(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__Coll__List_1_K__Fd(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__Coll__List_1_K__Fd* o5 = (struct E_Coll__IMap__Coll__List_1_K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Fd, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Fd*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__balance__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__Coll__List_1_K__Fd(p_l); int64_t v_sr_1 = f_Coll__size__Coll__List_1_K__Fd(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__Coll__List_1_K__Fd(struct E_Coll__IMap__Coll__List_1_K__Fd* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateL__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Fd(v_rl_2) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Fd(v_rr_3))) ? f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateR__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Fd(v_lr_3) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Fd(v_ll_2))) ? f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Fd(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__Coll__List_1_K__Fd(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__bin__Coll__List_1_K__Fd(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__Coll__List_1_K__Fd* o0 = (struct E_Coll__IMap__Coll__List_1_K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Fd, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Fd*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__Coll__List_1_K__Fd(p_l) + f_Coll__size__Coll__List_1_K__Fd(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } -static struct E_K__Props* f_K__watch(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Props* p_ps, struct E_K__Fd* p_c) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ps; ({ __auto_type v_fx_0 = s0->u.C_K__Props.f_fix; __auto_type v_an_1 = s0->u.C_K__Props.f_any; __auto_type v_evs_2 = s0->u.C_K__Props.f_evs; ({ __auto_type res_ = (f_K__isNe(p_c) ? ({ struct E_K__Props* o3 = (struct E_K__Props*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o3->tag = 0; o3->u.C_K__Props.f_fix = f_K__watchIn(p_r, p_s, v_fx_0, p_c, f_K__fdTerms(p_r, p_c)); o3->u.C_K__Props.f_any = v_an_1; o3->u.C_K__Props.f_evs = v_evs_2; o3; }) : ({ struct E_K__Props* o3 = (struct E_K__Props*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o3->tag = 0; o3->u.C_K__Props.f_fix = v_fx_0; o3->u.C_K__Props.f_any = f_K__watchIn(p_r, p_s, v_an_1, p_c, f_K__fdTerms(p_r, p_c)); o3->u.C_K__Props.f_evs = v_evs_2; o3; })); res_; }); }); }); res_; }); } +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateL__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Fd(v_rl_2) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Fd(v_rr_3))) ? f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__rotateR__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Fd(v_lr_3) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Fd(v_ll_2))) ? f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__Coll__List_1_K__Fd(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Fd* f_Coll__bin__Coll__List_1_K__Fd(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Fd* p_v, struct E_Coll__IMap__Coll__List_1_K__Fd* p_l, struct E_Coll__IMap__Coll__List_1_K__Fd* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__Coll__List_1_K__Fd* o0 = (struct E_Coll__IMap__Coll__List_1_K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Fd, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Fd*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__Coll__List_1_K__Fd(p_l) + f_Coll__size__Coll__List_1_K__Fd(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_K__Props* f_K__watch(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Props* p_ps, struct E_K__Fd* p_c) { return ({ __auto_type res_ = ({ __auto_type s0 = p_ps; ({ __auto_type v_fx_0 = s0->u.C_K__Props.f_fix; __auto_type v_an_1 = s0->u.C_K__Props.f_any; __auto_type v_evs_2 = s0->u.C_K__Props.f_evs; ({ __auto_type res_ = (f_K__isNe(p_c) ? ({ struct E_K__Props* o3 = (struct E_K__Props*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o3->tag = 0; o3->u.C_K__Props.f_fix = f_K__watchIn(p_eff__Region, p_s, v_fx_0, p_c, f_K__fdTerms(p_eff__Region, p_c)); o3->u.C_K__Props.f_any = v_an_1; o3->u.C_K__Props.f_evs = v_evs_2; o3; }) : ({ struct E_K__Props* o3 = (struct E_K__Props*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o3->tag = 0; o3->u.C_K__Props.f_fix = v_fx_0; o3->u.C_K__Props.f_any = f_K__watchIn(p_eff__Region, p_s, v_an_1, p_c, f_K__fdTerms(p_eff__Region, p_c)); o3->u.C_K__Props.f_evs = v_evs_2; o3; })); res_; }); }); }); res_; }); } static bool f_K__isNe(struct E_K__Fd* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_op_0 = s0->u.C_K__FBin.f_op; ({ __auto_type s1 = v_op_0; s1->tag == 2 ? ({ true; }) : s1->tag == 0 ? ({ false; }) : ({ false; }); }); }) : ({ false; }); }); } -static struct E_Coll__List__K__Fd* f_K__wakeAll(srs_cap* p_r, struct E_K__Props* p_ps, struct E_Coll__List__K__Ev* p_evs, struct E_Coll__List__K__Fd* p_agenda) { srs_tail: return ({ __auto_type s0 = p_evs; s0->tag == 0 ? ({ p_agenda; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_n_2 = s2->u.C_K__Ev.f_v; __auto_type v_change_3 = s2->u.C_K__Ev.f_change; ({ __auto_type res_ = ({ __auto_type s4 = p_ps; ({ __auto_type v_fx_4 = s4->u.C_K__Props.f_fix; __auto_type v_an_5 = s4->u.C_K__Props.f_any; ({ struct E_Coll__List__K__Fd* v_a1_6 = f_Coll__revOnto__K__Fd(p_r, f_K__watchers(p_r, v_an_5, v_n_2), p_agenda); struct E_Coll__List__K__Fd* v_a2_7 = ({ __auto_type s7 = v_change_3; s7->tag == 0 ? ({ f_Coll__revOnto__K__Fd(p_r, f_K__watchers(p_r, v_fx_4, v_n_2), v_a1_6); }) : ({ v_a1_6; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_K__Props* t1 = p_ps; struct E_Coll__List__K__Ev* t2 = v_rest_1; struct E_Coll__List__K__Fd* t3 = v_a2_7; p_r = t0; p_ps = t1; p_evs = t2; p_agenda = t3; goto srs_tail; (struct E_Coll__List__K__Fd*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__K__Fd* f_Coll__revOnto__K__Fd(srs_cap* p_r, struct E_Coll__List__K__Fd* p_xs, struct E_Coll__List__K__Fd* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Fd* t1 = v_t_1; struct E_Coll__List__K__Fd* t2 = ({ struct E_Coll__List__K__Fd* o2 = (struct E_Coll__List__K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Fd, u) + sizeof(((struct E_Coll__List__K__Fd*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Fd*){0}; }); }); }); } -static struct E_Coll__Option__K__State* f_K__prop(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda) { srs_tail: return ({ __auto_type s0 = p_agenda; s0->tag == 1 ? ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_K__fire(p_r, p_st, v_c_0); s2->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_K__State* t1 = v_st2_2; struct E_Coll__List__K__Fd* t2 = v_rest_1; p_r = t0; p_st = t1; p_agenda = t2; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); }) : ({ ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ns_1 = s0->u.C_K__State.f_neq; __auto_type v_ds_2 = s0->u.C_K__State.f_dom; __auto_type v_ps_3 = s0->u.C_K__State.f_fd; __auto_type v_nx_4 = s0->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s5 = v_ps_3; ({ __auto_type v_fx_5 = s5->u.C_K__Props.f_fix; __auto_type v_an_6 = s5->u.C_K__Props.f_any; __auto_type v_evs_7 = s5->u.C_K__Props.f_evs; ({ __auto_type res_ = ({ __auto_type s8 = v_evs_7; s8->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o8 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = p_st; o8; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_K__State* t1 = ({ struct E_K__State* o8 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o8->tag = 0; o8->u.C_K__State.f_s = v_s_0; o8->u.C_K__State.f_neq = v_ns_1; o8->u.C_K__State.f_dom = v_ds_2; o8->u.C_K__State.f_fd = ({ struct E_K__Props* o8 = (struct E_K__Props*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o8->tag = 0; o8->u.C_K__Props.f_fix = v_fx_5; o8->u.C_K__Props.f_any = v_an_6; o8->u.C_K__Props.f_evs = (&N_Coll__Nil__K__Ev); o8; }); o8->u.C_K__State.f_next = v_nx_4; o8; }); struct E_Coll__List__K__Fd* t2 = f_K__wakeAll(p_r, v_ps_3, v_evs_7, (&N_Coll__Nil__K__Fd)); p_r = t0; p_st = t1; p_agenda = t2; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__K__State* f_K__settleFrom(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda) { return ({ __auto_type s0 = f_K__prop(p_r, p_st, p_agenda); s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_st2_0; ({ __auto_type v_s_1 = s1->u.C_K__State.f_s; __auto_type v_ns_2 = s1->u.C_K__State.f_neq; __auto_type v_ds_3 = s1->u.C_K__State.f_dom; __auto_type v_ps_4 = s1->u.C_K__State.f_fd; __auto_type v_nx_5 = s1->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s6 = f_K__recheck(p_r, v_s_1, v_ns_2, (&N_Coll__Nil__K__Neq)); s6->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_ns2_6 = s6->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__K__State* o7 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o7->tag = 1; o7->u.C_Coll__Some.f_v = ({ struct E_K__State* o7 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o7->tag = 0; o7->u.C_K__State.f_s = v_s_1; o7->u.C_K__State.f_neq = v_ns2_6; o7->u.C_K__State.f_dom = v_ds_3; o7->u.C_K__State.f_fd = v_ps_4; o7->u.C_K__State.f_next = v_nx_5; o7; }); o7; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__I64* f_K__varsOf(srs_cap* p_r, struct E_K__Term* p_t, struct E_Coll__List__I64* p_acc) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ struct E_Coll__List__I64* o1 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_n_0; o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 2 ? ({ p_acc; }) : ({ __auto_type v_args_0 = s0->u.C_K__Con.f_args; f_K__varsOfAll(p_r, v_args_0, p_acc); }); }); } -static struct E_Coll__List__I64* f_K__varsOfAll(srs_cap* p_r, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Term* t1 = v_t_1; struct E_Coll__List__I64* t2 = f_K__varsOf(p_r, v_h_0, p_acc); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } -static struct E_Coll__Option__K__State* f_K__bound(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s0, struct E_Coll__List__I64* p_ms, struct E_K__State* p_st) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o0 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_st; o0; }); }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_st; ({ __auto_type v_s_2 = s2->u.C_K__State.f_s; __auto_type v_ns_3 = s2->u.C_K__State.f_neq; __auto_type v_ds_4 = s2->u.C_K__State.f_dom; __auto_type v_ps_5 = s2->u.C_K__State.f_fd; __auto_type v_nx_6 = s2->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s7 = f_K__walk(p_r, p_s0, ({ struct E_K__Term* o7 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o7->tag = 0; o7->u.C_K__Var.f_n = v_v_0; o7; })); s7->tag == 0 ? ({ __auto_type v_m_7 = s7->u.C_K__Var.f_n; ({ __auto_type s8 = f_K__walk(p_r, v_s_2, ({ struct E_K__Term* o8 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o8->tag = 0; o8->u.C_K__Var.f_n = v_m_7; o8; })); s8->tag == 0 ? ({ __auto_type v_k_8 = s8->u.C_K__Var.f_n; ({ __auto_type res_ = ((v_k_8 == v_m_7) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = p_st; p_r = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }) : ({ __auto_type res_ = ({ __auto_type s9 = v_ps_5; ({ __auto_type v_fx_9 = s9->u.C_K__Props.f_fix; __auto_type v_an_10 = s9->u.C_K__Props.f_any; __auto_type v_evs_11 = s9->u.C_K__Props.f_evs; ({ struct E_K__Props* v_moved_12 = ({ struct E_K__Props* o12 = (struct E_K__Props*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o12->tag = 0; o12->u.C_K__Props.f_fix = f_Coll__insert__Coll__List_1_K__Fd(p_r, v_fx_9, v_k_8, f_Coll__revOnto__K__Fd(p_r, f_K__watchers(p_r, v_fx_9, v_m_7), f_K__watchers(p_r, v_fx_9, v_k_8))); o12->u.C_K__Props.f_any = f_Coll__insert__Coll__List_1_K__Fd(p_r, v_an_10, v_k_8, f_Coll__revOnto__K__Fd(p_r, f_K__watchers(p_r, v_an_10, v_m_7), f_K__watchers(p_r, v_an_10, v_k_8))); o12->u.C_K__Props.f_evs = ({ struct E_Coll__List__K__Ev* o12 = (struct E_Coll__List__K__Ev*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Ev, u) + sizeof(((struct E_Coll__List__K__Ev*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = ({ struct E_K__Ev* o12 = (struct E_K__Ev*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Ev, u) + sizeof(((struct E_K__Ev*)0)->u.C_K__Ev))); o12->tag = 0; o12->u.C_K__Ev.f_v = v_k_8; o12->u.C_K__Ev.f_change = (&N_K__Fixed); o12; }); o12->u.C_Coll__Cons.f_t = v_evs_11; o12; }); o12; }); struct E_K__State* v_st1_13 = ({ struct E_K__State* o13 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o13->tag = 0; o13->u.C_K__State.f_s = v_s_2; o13->u.C_K__State.f_neq = v_ns_3; o13->u.C_K__State.f_dom = v_ds_4; o13->u.C_K__State.f_fd = v_moved_12; o13->u.C_K__State.f_next = v_nx_6; o13; }); struct E_Coll__Option__K__State* v_met_14 = ({ __auto_type s14 = f_Coll__lookup__K__Dom(p_r, v_ds_4, v_m_7); s14->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o14 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o14->tag = 1; o14->u.C_Coll__Some.f_v = v_st1_13; o14; }); }) : ({ __auto_type v_d_14 = s14->u.C_Coll__Some.f_v; f_K__meet(p_r, v_st1_13, ({ struct E_K__Term* o15 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o15->tag = 0; o15->u.C_K__Var.f_n = v_k_8; o15; }), f_K__ints(p_r, v_d_14)); }); }); __auto_type res_ = ({ __auto_type s15 = v_met_14; s15->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_15 = s15->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = v_st2_15; p_r = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); res_; })); res_; }); }) : ({ ({ struct E_K__State* v_st1_8 = ({ struct E_K__State* o8 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o8->tag = 0; o8->u.C_K__State.f_s = v_s_2; o8->u.C_K__State.f_neq = v_ns_3; o8->u.C_K__State.f_dom = v_ds_4; o8->u.C_K__State.f_fd = f_K__emit(p_r, v_ps_5, v_m_7, (&N_K__Fixed)); o8->u.C_K__State.f_next = v_nx_6; o8; }); struct E_Coll__Option__K__State* v_met_9 = ({ __auto_type s9 = f_Coll__lookup__K__Dom(p_r, v_ds_4, v_m_7); s9->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = v_st1_8; o9; }); }) : ({ __auto_type v_d_9 = s9->u.C_Coll__Some.f_v; f_K__meet(p_r, v_st1_8, ({ struct E_K__Term* o10 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o10->tag = 0; o10->u.C_K__Var.f_n = v_m_7; o10; }), f_K__ints(p_r, v_d_9)); }); }); __auto_type res_ = ({ __auto_type s10 = v_met_9; s10->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_10 = s10->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = v_st2_10; p_r = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = p_st; p_r = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__K__Dom* f_Coll__lookup__K__Dom(srs_cap* p_r, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ (&N_Coll__None__K__Dom); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_3 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Dom* t1 = v_l_2; int64_t t2 = p_k; p_r = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__K__Dom*){0}; }) : ((p_k > v_k2_0) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Dom* t1 = v_r2_3; int64_t t2 = p_k; p_r = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__K__Dom*){0}; }) : ({ struct E_Coll__Option__K__Dom* o4 = (struct E_Coll__Option__K__Dom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Dom, u) + sizeof(((struct E_Coll__Option__K__Dom*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_1; o4; }))); }); }); } -static struct E_Coll__Option__K__State* f_K__post(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__IMap_1_K__Term* p_u) { return ({ __auto_type s0 = p_u; s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_s2_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = p_st; ({ __auto_type v_s_1 = s1->u.C_K__State.f_s; __auto_type v_ns_2 = s1->u.C_K__State.f_neq; __auto_type v_ds_3 = s1->u.C_K__State.f_dom; __auto_type v_ps_4 = s1->u.C_K__State.f_fd; __auto_type v_nx_5 = s1->u.C_K__State.f_next; ({ __auto_type res_ = ((f_Coll__size__K__Term(v_s2_0) == f_Coll__size__K__Term(v_s_1)) ? ({ struct E_Coll__Option__K__State* o6 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = p_st; o6; }) : ({ __auto_type s6 = f_K__bound(p_r, v_s_1, f_K__varsOfAll(p_r, p_ts, (&N_Coll__Nil__I64)), ({ struct E_K__State* o6 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o6->tag = 0; o6->u.C_K__State.f_s = v_s2_0; o6->u.C_K__State.f_neq = v_ns_2; o6->u.C_K__State.f_dom = v_ds_3; o6->u.C_K__State.f_fd = v_ps_4; o6->u.C_K__State.f_next = v_nx_5; o6; })); s6->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_6 = s6->u.C_Coll__Some.f_v; f_K__settleFrom(p_r, v_st2_6, (&N_Coll__Nil__K__Fd)); }); })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Coll__List_1_K__Neq* f_K__recheck(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Neq* p_ns, struct E_Coll__List__K__Neq* p_kept) { srs_tail: return ({ __auto_type s0 = p_ns; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_K__Neq* o0 = (struct E_Coll__Option__Coll__List_1_K__Neq*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_K__Neq, u) + sizeof(((struct E_Coll__Option__Coll__List_1_K__Neq*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__K__Neq(p_r, p_kept); o0; }); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_a_2 = s2->u.C_K__Neq.f_a; __auto_type v_b_3 = s2->u.C_K__Neq.f_b; ({ __auto_type res_ = ({ __auto_type s4 = f_K__unify(p_r, p_s, v_a_2, v_b_3); s4->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Neq* t2 = v_t_1; struct E_Coll__List__K__Neq* t3 = p_kept; p_r = t0; p_s = t1; p_ns = t2; p_kept = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Neq*){0}; }); }) : ({ __auto_type v_s2_4 = s4->u.C_Coll__Some.f_v; ((f_Coll__size__K__Term(v_s2_4) == f_Coll__size__K__Term(p_s)) ? (&N_Coll__None__Coll__List_1_K__Neq) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Neq* t2 = v_t_1; struct E_Coll__List__K__Neq* t3 = ({ struct E_Coll__List__K__Neq* o5 = (struct E_Coll__List__K__Neq*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Neq, u) + sizeof(((struct E_Coll__List__K__Neq*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_h_0; o5->u.C_Coll__Cons.f_t = p_kept; o5; }); p_r = t0; p_s = t1; p_ns = t2; p_kept = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Neq*){0}; })); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__K__Neq* f_Coll__rev__K__Neq(srs_cap* p_r, struct E_Coll__List__K__Neq* p_xs) { return f_Coll__revOnto__K__Neq(p_r, p_xs, (&N_Coll__Nil__K__Neq)); } -static struct E_Coll__List__K__Neq* f_Coll__revOnto__K__Neq(srs_cap* p_r, struct E_Coll__List__K__Neq* p_xs, struct E_Coll__List__K__Neq* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Neq* t1 = v_t_1; struct E_Coll__List__K__Neq* t2 = ({ struct E_Coll__List__K__Neq* o2 = (struct E_Coll__List__K__Neq*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Neq, u) + sizeof(((struct E_Coll__List__K__Neq*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Neq*){0}; }); }); }); } -static struct E_Coll__Option__K__State* f_K__addNeq(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_a, struct E_K__Term* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ns_1 = s0->u.C_K__State.f_neq; __auto_type v_ds_2 = s0->u.C_K__State.f_dom; __auto_type v_fs_3 = s0->u.C_K__State.f_fd; __auto_type v_nx_4 = s0->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s5 = f_K__unify(p_r, v_s_0, p_a, p_b); s5->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o5 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = p_st; o5; }); }) : ({ __auto_type v_s2_5 = s5->u.C_Coll__Some.f_v; ((f_Coll__size__K__Term(v_s2_5) == f_Coll__size__K__Term(v_s_0)) ? (&N_Coll__None__K__State) : ({ struct E_Coll__Option__K__State* o6 = (struct E_Coll__Option__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = ({ struct E_K__State* o6 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o6->tag = 0; o6->u.C_K__State.f_s = v_s_0; o6->u.C_K__State.f_neq = ({ struct E_Coll__List__K__Neq* o6 = (struct E_Coll__List__K__Neq*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Neq, u) + sizeof(((struct E_Coll__List__K__Neq*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_K__Neq* o6 = (struct E_K__Neq*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Neq, u) + sizeof(((struct E_K__Neq*)0)->u.C_K__Neq))); o6->tag = 0; o6->u.C_K__Neq.f_a = p_a; o6->u.C_K__Neq.f_b = p_b; o6; }); o6->u.C_Coll__Cons.f_t = v_ns_1; o6; }); o6->u.C_K__State.f_dom = v_ds_2; o6->u.C_K__State.f_fd = v_fs_3; o6->u.C_K__State.f_next = v_nx_4; o6; }); o6; })); }); }); res_; }); }); }); res_; }); } -static struct E_K__Pick* f_K__pickVar(srs_cap* p_r, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_xs, struct E_K__Pick* p_best) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_best; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_K__domOf(p_r, p_st, v_h_0); s2->tag == 1 ? ({ __auto_type v_d_2 = s2->u.C_K__Has.f_d; (((f_K__domSize(v_d_2) > ((int64_t)1)) && f_K__smaller(v_d_2, p_best)) ? ({ srs_cap* t0 = p_r; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = ({ struct E_K__Pick* o3 = (struct E_K__Pick*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Pick, u) + sizeof(((struct E_K__Pick*)0)->u.C_K__Pick))); o3->tag = 1; o3->u.C_K__Pick.f_t = v_h_0; o3->u.C_K__Pick.f_d = v_d_2; o3; }); p_r = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; }) : ({ srs_cap* t0 = p_r; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = p_best; p_r = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; })); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = p_best; p_r = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = p_best; p_r = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; }); }); }); }); }); } +static struct E_Coll__List__K__Fd* f_K__wakeAll(srs_cap* p_eff__Region, struct E_K__Props* p_ps, struct E_Coll__List__K__Ev* p_evs, struct E_Coll__List__K__Fd* p_agenda) { srs_tail: return ({ __auto_type s0 = p_evs; s0->tag == 0 ? ({ p_agenda; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_n_2 = s2->u.C_K__Ev.f_v; __auto_type v_change_3 = s2->u.C_K__Ev.f_change; ({ __auto_type res_ = ({ __auto_type s4 = p_ps; ({ __auto_type v_fx_4 = s4->u.C_K__Props.f_fix; __auto_type v_an_5 = s4->u.C_K__Props.f_any; ({ struct E_Coll__List__K__Fd* v_a1_6 = f_Coll__revOnto__K__Fd(p_eff__Region, f_K__watchers(v_an_5, v_n_2), p_agenda); struct E_Coll__List__K__Fd* v_a2_7 = ({ __auto_type s7 = v_change_3; s7->tag == 0 ? ({ f_Coll__revOnto__K__Fd(p_eff__Region, f_K__watchers(v_fx_4, v_n_2), v_a1_6); }) : ({ v_a1_6; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_K__Props* t1 = p_ps; struct E_Coll__List__K__Ev* t2 = v_rest_1; struct E_Coll__List__K__Fd* t3 = v_a2_7; p_eff__Region = t0; p_ps = t1; p_evs = t2; p_agenda = t3; goto srs_tail; (struct E_Coll__List__K__Fd*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Fd* f_Coll__revOnto__K__Fd(srs_cap* p_eff__Region, struct E_Coll__List__K__Fd* p_xs, struct E_Coll__List__K__Fd* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Fd* t1 = v_t_1; struct E_Coll__List__K__Fd* t2 = ({ struct E_Coll__List__K__Fd* o2 = (struct E_Coll__List__K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Fd, u) + sizeof(((struct E_Coll__List__K__Fd*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Fd*){0}; }); }); }); } +static struct E_Coll__Option__K__State* f_K__prop(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda) { srs_tail: return ({ __auto_type s0 = p_agenda; s0->tag == 1 ? ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_K__fire(p_eff__Region, p_st, v_c_0); s2->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = v_st2_2; struct E_Coll__List__K__Fd* t2 = v_rest_1; p_eff__Region = t0; p_st = t1; p_agenda = t2; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); }) : ({ ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ns_1 = s0->u.C_K__State.f_neq; __auto_type v_ds_2 = s0->u.C_K__State.f_dom; __auto_type v_ps_3 = s0->u.C_K__State.f_fd; __auto_type v_nx_4 = s0->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s5 = v_ps_3; ({ __auto_type v_fx_5 = s5->u.C_K__Props.f_fix; __auto_type v_an_6 = s5->u.C_K__Props.f_any; __auto_type v_evs_7 = s5->u.C_K__Props.f_evs; ({ __auto_type res_ = ({ __auto_type s8 = v_evs_7; s8->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o8 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = p_st; o8; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = ({ struct E_K__State* o8 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o8->tag = 0; o8->u.C_K__State.f_s = v_s_0; o8->u.C_K__State.f_neq = v_ns_1; o8->u.C_K__State.f_dom = v_ds_2; o8->u.C_K__State.f_fd = ({ struct E_K__Props* o8 = (struct E_K__Props*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o8->tag = 0; o8->u.C_K__Props.f_fix = v_fx_5; o8->u.C_K__Props.f_any = v_an_6; o8->u.C_K__Props.f_evs = (&N_Coll__Nil__K__Ev); o8; }); o8->u.C_K__State.f_next = v_nx_4; o8; }); struct E_Coll__List__K__Fd* t2 = f_K__wakeAll(p_eff__Region, v_ps_3, v_evs_7, (&N_Coll__Nil__K__Fd)); p_eff__Region = t0; p_st = t1; p_agenda = t2; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__K__State* f_K__settleFrom(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Fd* p_agenda) { return ({ __auto_type s0 = f_K__prop(p_eff__Region, p_st, p_agenda); s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_st2_0; ({ __auto_type v_s_1 = s1->u.C_K__State.f_s; __auto_type v_ns_2 = s1->u.C_K__State.f_neq; __auto_type v_ds_3 = s1->u.C_K__State.f_dom; __auto_type v_ps_4 = s1->u.C_K__State.f_fd; __auto_type v_nx_5 = s1->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s6 = f_K__recheck(p_eff__Region, v_s_1, v_ns_2, (&N_Coll__Nil__K__Neq)); s6->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_ns2_6 = s6->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__K__State* o7 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o7->tag = 1; o7->u.C_Coll__Some.f_v = ({ struct E_K__State* o7 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o7->tag = 0; o7->u.C_K__State.f_s = v_s_1; o7->u.C_K__State.f_neq = v_ns2_6; o7->u.C_K__State.f_dom = v_ds_3; o7->u.C_K__State.f_fd = v_ps_4; o7->u.C_K__State.f_next = v_nx_5; o7; }); o7; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__I64* f_K__varsOf(srs_cap* p_eff__Region, struct E_K__Term* p_t, struct E_Coll__List__I64* p_acc) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ struct E_Coll__List__I64* o1 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_n_0; o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 2 ? ({ p_acc; }) : ({ __auto_type v_args_0 = s0->u.C_K__Con.f_args; f_K__varsOfAll(p_eff__Region, v_args_0, p_acc); }); }); } +static struct E_Coll__List__I64* f_K__varsOfAll(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__I64* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Term* t1 = v_t_1; struct E_Coll__List__I64* t2 = f_K__varsOf(p_eff__Region, v_h_0, p_acc); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__I64*){0}; }); }); }); } +static struct E_Coll__Option__K__State* f_K__bound(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s0, struct E_Coll__List__I64* p_ms, struct E_K__State* p_st) { srs_tail: return ({ __auto_type s0 = p_ms; s0->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o0 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_st; o0; }); }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_st; ({ __auto_type v_s_2 = s2->u.C_K__State.f_s; __auto_type v_ns_3 = s2->u.C_K__State.f_neq; __auto_type v_ds_4 = s2->u.C_K__State.f_dom; __auto_type v_ps_5 = s2->u.C_K__State.f_fd; __auto_type v_nx_6 = s2->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s7 = f_K__walk(p_s0, ({ struct E_K__Term* o7 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o7->tag = 0; o7->u.C_K__Var.f_n = v_v_0; o7; })); s7->tag == 0 ? ({ __auto_type v_m_7 = s7->u.C_K__Var.f_n; ({ __auto_type s8 = f_K__walk(v_s_2, ({ struct E_K__Term* o8 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o8->tag = 0; o8->u.C_K__Var.f_n = v_m_7; o8; })); s8->tag == 0 ? ({ __auto_type v_k_8 = s8->u.C_K__Var.f_n; ({ __auto_type res_ = ((v_k_8 == v_m_7) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = p_st; p_eff__Region = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }) : ({ __auto_type res_ = ({ __auto_type s9 = v_ps_5; ({ __auto_type v_fx_9 = s9->u.C_K__Props.f_fix; __auto_type v_an_10 = s9->u.C_K__Props.f_any; __auto_type v_evs_11 = s9->u.C_K__Props.f_evs; ({ struct E_K__Props* v_moved_12 = ({ struct E_K__Props* o12 = (struct E_K__Props*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o12->tag = 0; o12->u.C_K__Props.f_fix = f_Coll__insert__Coll__List_1_K__Fd(p_eff__Region, v_fx_9, v_k_8, f_Coll__revOnto__K__Fd(p_eff__Region, f_K__watchers(v_fx_9, v_m_7), f_K__watchers(v_fx_9, v_k_8))); o12->u.C_K__Props.f_any = f_Coll__insert__Coll__List_1_K__Fd(p_eff__Region, v_an_10, v_k_8, f_Coll__revOnto__K__Fd(p_eff__Region, f_K__watchers(v_an_10, v_m_7), f_K__watchers(v_an_10, v_k_8))); o12->u.C_K__Props.f_evs = ({ struct E_Coll__List__K__Ev* o12 = (struct E_Coll__List__K__Ev*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Ev, u) + sizeof(((struct E_Coll__List__K__Ev*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = ({ struct E_K__Ev* o12 = (struct E_K__Ev*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Ev, u) + sizeof(((struct E_K__Ev*)0)->u.C_K__Ev))); o12->tag = 0; o12->u.C_K__Ev.f_v = v_k_8; o12->u.C_K__Ev.f_change = (&N_K__Fixed); o12; }); o12->u.C_Coll__Cons.f_t = v_evs_11; o12; }); o12; }); struct E_K__State* v_st1_13 = ({ struct E_K__State* o13 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o13->tag = 0; o13->u.C_K__State.f_s = v_s_2; o13->u.C_K__State.f_neq = v_ns_3; o13->u.C_K__State.f_dom = v_ds_4; o13->u.C_K__State.f_fd = v_moved_12; o13->u.C_K__State.f_next = v_nx_6; o13; }); struct E_Coll__Option__K__State* v_met_14 = ({ __auto_type s14 = f_Coll__lookup__K__Dom(p_eff__Region, v_ds_4, v_m_7); s14->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o14 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o14->tag = 1; o14->u.C_Coll__Some.f_v = v_st1_13; o14; }); }) : ({ __auto_type v_d_14 = s14->u.C_Coll__Some.f_v; f_K__meet(p_eff__Region, v_st1_13, ({ struct E_K__Term* o15 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o15->tag = 0; o15->u.C_K__Var.f_n = v_k_8; o15; }), f_K__ints(p_eff__Region, v_d_14)); }); }); __auto_type res_ = ({ __auto_type s15 = v_met_14; s15->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_15 = s15->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = v_st2_15; p_eff__Region = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); res_; })); res_; }); }) : ({ ({ struct E_K__State* v_st1_8 = ({ struct E_K__State* o8 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o8->tag = 0; o8->u.C_K__State.f_s = v_s_2; o8->u.C_K__State.f_neq = v_ns_3; o8->u.C_K__State.f_dom = v_ds_4; o8->u.C_K__State.f_fd = f_K__emit(p_eff__Region, v_ps_5, v_m_7, (&N_K__Fixed)); o8->u.C_K__State.f_next = v_nx_6; o8; }); struct E_Coll__Option__K__State* v_met_9 = ({ __auto_type s9 = f_Coll__lookup__K__Dom(p_eff__Region, v_ds_4, v_m_7); s9->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o9 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = v_st1_8; o9; }); }) : ({ __auto_type v_d_9 = s9->u.C_Coll__Some.f_v; f_K__meet(p_eff__Region, v_st1_8, ({ struct E_K__Term* o10 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o10->tag = 0; o10->u.C_K__Var.f_n = v_m_7; o10; }), f_K__ints(p_eff__Region, v_d_9)); }); }); __auto_type res_ = ({ __auto_type s10 = v_met_9; s10->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_10 = s10->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = v_st2_10; p_eff__Region = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s0; struct E_Coll__List__I64* t2 = v_rest_1; struct E_K__State* t3 = p_st; p_eff__Region = t0; p_s0 = t1; p_ms = t2; p_st = t3; goto srs_tail; (struct E_Coll__Option__K__State*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__K__Dom* f_Coll__lookup__K__Dom(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Dom* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ (&N_Coll__None__K__Dom); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_3 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Dom* t1 = v_l_2; int64_t t2 = p_k; p_eff__Region = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__K__Dom*){0}; }) : ((p_k > v_k2_0) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Dom* t1 = v_r2_3; int64_t t2 = p_k; p_eff__Region = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__K__Dom*){0}; }) : ({ struct E_Coll__Option__K__Dom* o4 = (struct E_Coll__Option__K__Dom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Dom, u) + sizeof(((struct E_Coll__Option__K__Dom*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_1; o4; }))); }); }); } +static struct E_Coll__Option__K__State* f_K__post(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__IMap_1_K__Term* p_u) { return ({ __auto_type s0 = p_u; s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_s2_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = p_st; ({ __auto_type v_s_1 = s1->u.C_K__State.f_s; __auto_type v_ns_2 = s1->u.C_K__State.f_neq; __auto_type v_ds_3 = s1->u.C_K__State.f_dom; __auto_type v_ps_4 = s1->u.C_K__State.f_fd; __auto_type v_nx_5 = s1->u.C_K__State.f_next; ({ __auto_type res_ = ((f_Coll__size__K__Term(v_s2_0) == f_Coll__size__K__Term(v_s_1)) ? ({ struct E_Coll__Option__K__State* o6 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = p_st; o6; }) : ({ __auto_type s6 = f_K__bound(p_eff__Region, v_s_1, f_K__varsOfAll(p_eff__Region, p_ts, (&N_Coll__Nil__I64)), ({ struct E_K__State* o6 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o6->tag = 0; o6->u.C_K__State.f_s = v_s2_0; o6->u.C_K__State.f_neq = v_ns_2; o6->u.C_K__State.f_dom = v_ds_3; o6->u.C_K__State.f_fd = v_ps_4; o6->u.C_K__State.f_next = v_nx_5; o6; })); s6->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st2_6 = s6->u.C_Coll__Some.f_v; f_K__settleFrom(p_eff__Region, v_st2_6, (&N_Coll__Nil__K__Fd)); }); })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Coll__List_1_K__Neq* f_K__recheck(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Neq* p_ns, struct E_Coll__List__K__Neq* p_kept) { srs_tail: return ({ __auto_type s0 = p_ns; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_K__Neq* o0 = (struct E_Coll__Option__Coll__List_1_K__Neq*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_K__Neq, u) + sizeof(((struct E_Coll__Option__Coll__List_1_K__Neq*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = f_Coll__rev__K__Neq(p_eff__Region, p_kept); o0; }); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_a_2 = s2->u.C_K__Neq.f_a; __auto_type v_b_3 = s2->u.C_K__Neq.f_b; ({ __auto_type res_ = ({ __auto_type s4 = f_K__unify(p_eff__Region, p_s, v_a_2, v_b_3); s4->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Neq* t2 = v_t_1; struct E_Coll__List__K__Neq* t3 = p_kept; p_eff__Region = t0; p_s = t1; p_ns = t2; p_kept = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Neq*){0}; }); }) : ({ __auto_type v_s2_4 = s4->u.C_Coll__Some.f_v; ((f_Coll__size__K__Term(v_s2_4) == f_Coll__size__K__Term(p_s)) ? (&N_Coll__None__Coll__List_1_K__Neq) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Neq* t2 = v_t_1; struct E_Coll__List__K__Neq* t3 = ({ struct E_Coll__List__K__Neq* o5 = (struct E_Coll__List__K__Neq*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Neq, u) + sizeof(((struct E_Coll__List__K__Neq*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_h_0; o5->u.C_Coll__Cons.f_t = p_kept; o5; }); p_eff__Region = t0; p_s = t1; p_ns = t2; p_kept = t3; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Neq*){0}; })); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Neq* f_Coll__rev__K__Neq(srs_cap* p_eff__Region, struct E_Coll__List__K__Neq* p_xs) { return f_Coll__revOnto__K__Neq(p_eff__Region, p_xs, (&N_Coll__Nil__K__Neq)); } +static struct E_Coll__List__K__Neq* f_Coll__revOnto__K__Neq(srs_cap* p_eff__Region, struct E_Coll__List__K__Neq* p_xs, struct E_Coll__List__K__Neq* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Neq* t1 = v_t_1; struct E_Coll__List__K__Neq* t2 = ({ struct E_Coll__List__K__Neq* o2 = (struct E_Coll__List__K__Neq*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Neq, u) + sizeof(((struct E_Coll__List__K__Neq*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Neq*){0}; }); }); }); } +static struct E_Coll__Option__K__State* f_K__addNeq(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_a, struct E_K__Term* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_K__State.f_s; __auto_type v_ns_1 = s0->u.C_K__State.f_neq; __auto_type v_ds_2 = s0->u.C_K__State.f_dom; __auto_type v_fs_3 = s0->u.C_K__State.f_fd; __auto_type v_nx_4 = s0->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s5 = f_K__unify(p_eff__Region, v_s_0, p_a, p_b); s5->tag == 0 ? ({ ({ struct E_Coll__Option__K__State* o5 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = p_st; o5; }); }) : ({ __auto_type v_s2_5 = s5->u.C_Coll__Some.f_v; ((f_Coll__size__K__Term(v_s2_5) == f_Coll__size__K__Term(v_s_0)) ? (&N_Coll__None__K__State) : ({ struct E_Coll__Option__K__State* o6 = (struct E_Coll__Option__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__State, u) + sizeof(((struct E_Coll__Option__K__State*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = ({ struct E_K__State* o6 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o6->tag = 0; o6->u.C_K__State.f_s = v_s_0; o6->u.C_K__State.f_neq = ({ struct E_Coll__List__K__Neq* o6 = (struct E_Coll__List__K__Neq*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Neq, u) + sizeof(((struct E_Coll__List__K__Neq*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_K__Neq* o6 = (struct E_K__Neq*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Neq, u) + sizeof(((struct E_K__Neq*)0)->u.C_K__Neq))); o6->tag = 0; o6->u.C_K__Neq.f_a = p_a; o6->u.C_K__Neq.f_b = p_b; o6; }); o6->u.C_Coll__Cons.f_t = v_ns_1; o6; }); o6->u.C_K__State.f_dom = v_ds_2; o6->u.C_K__State.f_fd = v_fs_3; o6->u.C_K__State.f_next = v_nx_4; o6; }); o6; })); }); }); res_; }); }); }); res_; }); } +static struct E_K__Pick* f_K__pickVar(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_Coll__List__K__Term* p_xs, struct E_K__Pick* p_best) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_best; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_K__domOf(p_eff__Region, p_st, v_h_0); s2->tag == 1 ? ({ __auto_type v_d_2 = s2->u.C_K__Has.f_d; (((f_K__domSize(v_d_2) > ((int64_t)1)) && f_K__smaller(v_d_2, p_best)) ? ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = ({ struct E_K__Pick* o3 = (struct E_K__Pick*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Pick, u) + sizeof(((struct E_K__Pick*)0)->u.C_K__Pick))); o3->tag = 1; o3->u.C_K__Pick.f_t = v_h_0; o3->u.C_K__Pick.f_d = v_d_2; o3; }); p_eff__Region = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = p_best; p_eff__Region = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; })); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = p_best; p_eff__Region = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = p_st; struct E_Coll__List__K__Term* t2 = v_t_1; struct E_K__Pick* t3 = p_best; p_eff__Region = t0; p_st = t1; p_xs = t2; p_best = t3; goto srs_tail; (struct E_K__Pick*){0}; }); }); }); }); }); } static bool f_K__smaller(struct E_K__Dom* p_d, struct E_K__Pick* p_best) { return ({ __auto_type s0 = p_best; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_e_0 = s0->u.C_K__Pick.f_d; (f_K__domSize(p_d) < f_K__domSize(v_e_0)); }); }); } -static struct E_Coll__List__K__Branch* f_K__labelBranches(srs_cap* p_r, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_vs, struct E_Coll__List__K__Goal* p_gs, struct E_Coll__List__K__Branch* p_acc) { srs_tail: return ({ __auto_type s0 = p_vs; s0->tag == 0 ? ({ f_Coll__rev__K__Branch(p_r, p_acc); }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_K__State* t1 = p_st; struct E_K__Term* t2 = p_t; struct E_Coll__List__I64* t3 = v_more_1; struct E_Coll__List__K__Goal* t4 = p_gs; struct E_Coll__List__K__Branch* t5 = ({ struct E_Coll__List__K__Branch* o2 = (struct E_Coll__List__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o2 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o2->tag = 0; o2->u.C_K__Branch.f_st = p_st; o2->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o2 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Eq))); o2->tag = 1; o2->u.C_K__Eq.f_a = p_t; o2->u.C_K__Eq.f_b = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o2->tag = 2; o2->u.C_K__Int.f_v = v_v_0; o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_gs; o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_st = t1; p_t = t2; p_vs = t3; p_gs = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__K__Branch*){0}; }); }); }); } -static struct E_Coll__List__K__Branch* f_Coll__rev__K__Branch(srs_cap* p_r, struct E_Coll__List__K__Branch* p_xs) { return f_Coll__revOnto__K__Branch(p_r, p_xs, (&N_Coll__Nil__K__Branch)); } -static struct E_Coll__List__K__Branch* f_Coll__revOnto__K__Branch(srs_cap* p_r, struct E_Coll__List__K__Branch* p_xs, struct E_Coll__List__K__Branch* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Branch* t1 = v_t_1; struct E_Coll__List__K__Branch* t2 = ({ struct E_Coll__List__K__Branch* o2 = (struct E_Coll__List__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Branch*){0}; }); }); }); } -static struct E_K__Goal* f_K__distinct(srs_cap* p_r, struct E_Coll__List__K__Term* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_K__True); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Conj))); o2->tag = 2; o2->u.C_K__Conj.f_g = f_K__neEach(p_r, v_h_0, v_t_1); o2->u.C_K__Conj.f_h = f_K__distinct(p_r, v_t_1); o2; }); }); }); } -static struct E_K__Goal* f_K__neEach(srs_cap* p_r, struct E_K__Term* p_x, struct E_Coll__List__K__Term* p_ys) { return ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ (&N_K__True); }) : ({ __auto_type v_y_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Conj))); o2->tag = 2; o2->u.C_K__Conj.f_g = ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Post))); o2->tag = 7; o2->u.C_K__Post.f_c = ({ struct E_K__Fd* o2 = (struct E_K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Fd, u) + sizeof(((struct E_K__Fd*)0)->u.C_K__FBin))); o2->tag = 0; o2->u.C_K__FBin.f_op = (&N_K__Ne); o2->u.C_K__FBin.f_x = p_x; o2->u.C_K__FBin.f_y = v_y_0; o2; }); o2; }); o2->u.C_K__Conj.f_h = f_K__neEach(p_r, p_x, v_t_1); o2; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__index(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rules) { return f_K__indexOnto(p_r, f_Coll__rev__K__Rule(p_r, p_rules), (&N_Coll__Tip__Coll__List_1_K__Rule)); } -static struct E_Coll__List__K__Rule* f_Coll__rev__K__Rule(srs_cap* p_r, struct E_Coll__List__K__Rule* p_xs) { return f_Coll__revOnto__K__Rule(p_r, p_xs, (&N_Coll__Nil__K__Rule)); } -static struct E_Coll__List__K__Rule* f_Coll__revOnto__K__Rule(srs_cap* p_r, struct E_Coll__List__K__Rule* p_xs, struct E_Coll__List__K__Rule* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Coll__List__K__Rule* t2 = ({ struct E_Coll__List__K__Rule* o2 = (struct E_Coll__List__K__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Rule, u) + sizeof(((struct E_Coll__List__K__Rule*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Rule*){0}; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__indexOnto(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rs, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_ix; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_rel_2 = s2->u.C_K__Rule.f_rel; ({ int64_t v_k_3 = f_Sym__hash(v_rel_2); struct E_Coll__List__K__Rule* v_old_4 = ({ __auto_type s4 = f_Coll__lookup__Coll__List_1_K__Rule(p_r, p_ix, v_k_3); s4->tag == 0 ? ({ (&N_Coll__Nil__K__Rule); }) : ({ __auto_type v_xs_4 = s4->u.C_Coll__Some.f_v; v_xs_4; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Coll__IMap__Coll__List_1_K__Rule* t2 = f_Coll__insert__Coll__List_1_K__Rule(p_r, p_ix, v_k_3, ({ struct E_Coll__List__K__Rule* o5 = (struct E_Coll__List__K__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Rule, u) + sizeof(((struct E_Coll__List__K__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_h_0; o5->u.C_Coll__Cons.f_t = v_old_4; o5; })); p_r = t0; p_rs = t1; p_ix = t2; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Rule*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Coll__List_1_K__Rule* f_Coll__lookup__Coll__List_1_K__Rule(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_K__Rule); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_3 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = v_l_2; int64_t t2 = p_k; p_r = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Rule*){0}; }) : ((p_k > v_k2_0) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = v_r2_3; int64_t t2 = p_k; p_r = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Rule*){0}; }) : ({ struct E_Coll__Option__Coll__List_1_K__Rule* o4 = (struct E_Coll__Option__Coll__List_1_K__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__Option__Coll__List_1_K__Rule*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_1; o4; }))); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__insert__Coll__List_1_K__Rule(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k, struct E_Coll__List__K__Rule* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__Coll__List_1_K__Rule* o0 = (struct E_Coll__IMap__Coll__List_1_K__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Rule*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__Coll__List_1_K__Rule); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__Coll__List_1_K__Rule); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__Coll__List_1_K__Rule(p_r, v_k2_1, v_v2_2, f_Coll__insert__Coll__List_1_K__Rule(p_r, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__Coll__List_1_K__Rule(p_r, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__Coll__List_1_K__Rule(p_r, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__Coll__List_1_K__Rule* o5 = (struct E_Coll__IMap__Coll__List_1_K__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Rule*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__balance__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__Coll__List_1_K__Rule(p_l); int64_t v_sr_1 = f_Coll__size__Coll__List_1_K__Rule(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, p_r2) : f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, p_r2)))); res_; }); } +static struct E_Coll__List__K__Branch* f_K__labelBranches(srs_cap* p_eff__Region, struct E_K__State* p_st, struct E_K__Term* p_t, struct E_Coll__List__I64* p_vs, struct E_Coll__List__K__Goal* p_gs, struct E_Coll__List__K__Branch* p_acc) { srs_tail: return ({ __auto_type s0 = p_vs; s0->tag == 0 ? ({ f_Coll__rev__K__Branch(p_eff__Region, p_acc); }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_K__State* t1 = p_st; struct E_K__Term* t2 = p_t; struct E_Coll__List__I64* t3 = v_more_1; struct E_Coll__List__K__Goal* t4 = p_gs; struct E_Coll__List__K__Branch* t5 = ({ struct E_Coll__List__K__Branch* o2 = (struct E_Coll__List__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o2 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o2->tag = 0; o2->u.C_K__Branch.f_st = p_st; o2->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o2 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Eq))); o2->tag = 1; o2->u.C_K__Eq.f_a = p_t; o2->u.C_K__Eq.f_b = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o2->tag = 2; o2->u.C_K__Int.f_v = v_v_0; o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_gs; o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_st = t1; p_t = t2; p_vs = t3; p_gs = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__K__Branch*){0}; }); }); }); } +static struct E_Coll__List__K__Branch* f_Coll__rev__K__Branch(srs_cap* p_eff__Region, struct E_Coll__List__K__Branch* p_xs) { return f_Coll__revOnto__K__Branch(p_eff__Region, p_xs, (&N_Coll__Nil__K__Branch)); } +static struct E_Coll__List__K__Branch* f_Coll__revOnto__K__Branch(srs_cap* p_eff__Region, struct E_Coll__List__K__Branch* p_xs, struct E_Coll__List__K__Branch* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Branch* t1 = v_t_1; struct E_Coll__List__K__Branch* t2 = ({ struct E_Coll__List__K__Branch* o2 = (struct E_Coll__List__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Branch*){0}; }); }); }); } +static struct E_K__Goal* f_K__distinct(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_K__True); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Conj))); o2->tag = 2; o2->u.C_K__Conj.f_g = f_K__neEach(p_eff__Region, v_h_0, v_t_1); o2->u.C_K__Conj.f_h = f_K__distinct(p_eff__Region, v_t_1); o2; }); }); }); } +static struct E_K__Goal* f_K__neEach(srs_cap* p_eff__Region, struct E_K__Term* p_x, struct E_Coll__List__K__Term* p_ys) { return ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ (&N_K__True); }) : ({ __auto_type v_y_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Conj))); o2->tag = 2; o2->u.C_K__Conj.f_g = ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Post))); o2->tag = 7; o2->u.C_K__Post.f_c = ({ struct E_K__Fd* o2 = (struct E_K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Fd, u) + sizeof(((struct E_K__Fd*)0)->u.C_K__FBin))); o2->tag = 0; o2->u.C_K__FBin.f_op = (&N_K__Ne); o2->u.C_K__FBin.f_x = p_x; o2->u.C_K__FBin.f_y = v_y_0; o2; }); o2; }); o2->u.C_K__Conj.f_h = f_K__neEach(p_eff__Region, p_x, v_t_1); o2; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__index(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rules) { return f_K__indexOnto(p_eff__Region, f_Coll__rev__K__Rule(p_eff__Region, p_rules), (&N_Coll__Tip__Coll__List_1_K__Rule)); } +static struct E_Coll__List__K__Rule* f_Coll__rev__K__Rule(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_xs) { return f_Coll__revOnto__K__Rule(p_eff__Region, p_xs, (&N_Coll__Nil__K__Rule)); } +static struct E_Coll__List__K__Rule* f_Coll__revOnto__K__Rule(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_xs, struct E_Coll__List__K__Rule* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Coll__List__K__Rule* t2 = ({ struct E_Coll__List__K__Rule* o2 = (struct E_Coll__List__K__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Rule, u) + sizeof(((struct E_Coll__List__K__Rule*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__Rule*){0}; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_K__indexOnto(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rs, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ p_ix; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_rel_2 = s2->u.C_K__Rule.f_rel; ({ int64_t v_k_3 = f_Sym__hash(v_rel_2); struct E_Coll__List__K__Rule* v_old_4 = ({ __auto_type s4 = f_Coll__lookup__Coll__List_1_K__Rule(p_eff__Region, p_ix, v_k_3); s4->tag == 0 ? ({ (&N_Coll__Nil__K__Rule); }) : ({ __auto_type v_xs_4 = s4->u.C_Coll__Some.f_v; v_xs_4; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Coll__IMap__Coll__List_1_K__Rule* t2 = f_Coll__insert__Coll__List_1_K__Rule(p_eff__Region, p_ix, v_k_3, ({ struct E_Coll__List__K__Rule* o5 = (struct E_Coll__List__K__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Rule, u) + sizeof(((struct E_Coll__List__K__Rule*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_h_0; o5->u.C_Coll__Cons.f_t = v_old_4; o5; })); p_eff__Region = t0; p_rs = t1; p_ix = t2; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Rule*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Coll__List_1_K__Rule* f_Coll__lookup__Coll__List_1_K__Rule(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_K__Rule); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_3 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = v_l_2; int64_t t2 = p_k; p_eff__Region = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Rule*){0}; }) : ((p_k > v_k2_0) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = v_r2_3; int64_t t2 = p_k; p_eff__Region = t0; p_m = t1; p_k = t2; goto srs_tail; (struct E_Coll__Option__Coll__List_1_K__Rule*){0}; }) : ({ struct E_Coll__Option__Coll__List_1_K__Rule* o4 = (struct E_Coll__Option__Coll__List_1_K__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__Option__Coll__List_1_K__Rule*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_1; o4; }))); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__insert__Coll__List_1_K__Rule(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k, struct E_Coll__List__K__Rule* p_v) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ({ struct E_Coll__IMap__Coll__List_1_K__Rule* o0 = (struct E_Coll__IMap__Coll__List_1_K__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Rule*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((int64_t)1); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = (&N_Coll__Tip__Coll__List_1_K__Rule); o0->u.C_Coll__Bin.f_r = (&N_Coll__Tip__Coll__List_1_K__Rule); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; __auto_type v_k2_1 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_2 = s0->u.C_Coll__Bin.f_v; __auto_type v_l_3 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_4 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((p_k < v_k2_1) ? f_Coll__balance__Coll__List_1_K__Rule(p_eff__Region, v_k2_1, v_v2_2, f_Coll__insert__Coll__List_1_K__Rule(p_eff__Region, v_l_3, p_k, p_v), v_r2_4) : ((p_k > v_k2_1) ? f_Coll__balance__Coll__List_1_K__Rule(p_eff__Region, v_k2_1, v_v2_2, v_l_3, f_Coll__insert__Coll__List_1_K__Rule(p_eff__Region, v_r2_4, p_k, p_v)) : ({ struct E_Coll__IMap__Coll__List_1_K__Rule* o5 = (struct E_Coll__IMap__Coll__List_1_K__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Rule*)0)->u.C_Coll__Bin))); o5->tag = 1; o5->u.C_Coll__Bin.f_size = v_s_0; o5->u.C_Coll__Bin.f_k = p_k; o5->u.C_Coll__Bin.f_v = p_v; o5->u.C_Coll__Bin.f_l = v_l_3; o5->u.C_Coll__Bin.f_r = v_r2_4; o5; }))); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__balance__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ int64_t v_sl_0 = f_Coll__size__Coll__List_1_K__Rule(p_l); int64_t v_sr_1 = f_Coll__size__Coll__List_1_K__Rule(p_r2); __auto_type res_ = (((v_sl_0 + v_sr_1) <= ((int64_t)1)) ? f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sr_1 > (f_Coll__delta() * v_sl_0)) ? f_Coll__rotateL__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, p_r2) : ((v_sl_0 > (f_Coll__delta() * v_sr_1)) ? f_Coll__rotateR__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, p_r2) : f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, p_r2)))); res_; }); } static int64_t f_Coll__size__Coll__List_1_K__Rule(struct E_Coll__IMap__Coll__List_1_K__Rule* p_m) { return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Bin.f_size; v_s_0; }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateL__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Rule(v_rl_2) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Rule(v_rr_3))) ? f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, v_rll_6), f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateR__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Rule(v_lr_3) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Rule(v_ll_2))) ? f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Rule(p_r, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__Coll__List_1_K__Rule(p_r, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } -static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__bin__Coll__List_1_K__Rule(srs_cap* p_r, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__Coll__List_1_K__Rule* o0 = (struct E_Coll__IMap__Coll__List_1_K__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Rule*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__Coll__List_1_K__Rule(p_l) + f_Coll__size__Coll__List_1_K__Rule(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } -static struct E_K__Term* f_K__shift(srs_cap* p_r, struct E_K__Term* p_t, int64_t p_k) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o1->tag = 0; o1->u.C_K__Var.f_n = (v_n_0 + p_k); o1; }); }) : s0->tag == 2 ? ({ __auto_type v_v_0 = s0->u.C_K__Int.f_v; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o1->tag = 2; o1->u.C_K__Int.f_v = v_v_0; o1; }); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_f_0; o2->u.C_K__Con.f_args = f_Coll__rev__K__Term(p_r, f_K__shiftOnto(p_r, v_args_1, p_k, (&N_Coll__Nil__K__Term))); o2; }); }); }); } -static struct E_Coll__List__K__Term* f_K__shiftOnto(srs_cap* p_r, struct E_Coll__List__K__Term* p_ts, int64_t p_k, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Term* t1 = v_t_1; int64_t t2 = p_k; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_K__shift(p_r, v_h_0, p_k); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_k = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } -static struct E_K__Goal* f_K__shiftGoal(srs_cap* p_r, struct E_K__Goal* p_g, int64_t p_k) { return ({ __auto_type s0 = p_g; s0->tag == 0 ? ({ (&N_K__True); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_K__Eq.f_a; __auto_type v_b_1 = s0->u.C_K__Eq.f_b; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Eq))); o2->tag = 1; o2->u.C_K__Eq.f_a = f_K__shift(p_r, v_a_0, p_k); o2->u.C_K__Eq.f_b = f_K__shift(p_r, v_b_1, p_k); o2; }); }) : s0->tag == 2 ? ({ __auto_type v_x_0 = s0->u.C_K__Conj.f_g; __auto_type v_y_1 = s0->u.C_K__Conj.f_h; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Conj))); o2->tag = 2; o2->u.C_K__Conj.f_g = f_K__shiftGoal(p_r, v_x_0, p_k); o2->u.C_K__Conj.f_h = f_K__shiftGoal(p_r, v_y_1, p_k); o2; }); }) : s0->tag == 3 ? ({ __auto_type v_x_0 = s0->u.C_K__Disj.f_g; __auto_type v_y_1 = s0->u.C_K__Disj.f_h; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Disj))); o2->tag = 3; o2->u.C_K__Disj.f_g = f_K__shiftGoal(p_r, v_x_0, p_k); o2->u.C_K__Disj.f_h = f_K__shiftGoal(p_r, v_y_1, p_k); o2; }); }) : s0->tag == 4 ? ({ __auto_type v_f_0 = s0->u.C_K__Call.f_rel; __auto_type v_args_1 = s0->u.C_K__Call.f_args; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Call))); o2->tag = 4; o2->u.C_K__Call.f_rel = v_f_0; o2->u.C_K__Call.f_args = f_Coll__rev__K__Term(p_r, f_K__shiftOnto(p_r, v_args_1, p_k, (&N_Coll__Nil__K__Term))); o2; }); }) : s0->tag == 5 ? ({ __auto_type v_a_0 = s0->u.C_K__Diseq.f_a; __auto_type v_b_1 = s0->u.C_K__Diseq.f_b; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Diseq))); o2->tag = 5; o2->u.C_K__Diseq.f_a = f_K__shift(p_r, v_a_0, p_k); o2->u.C_K__Diseq.f_b = f_K__shift(p_r, v_b_1, p_k); o2; }); }) : s0->tag == 6 ? ({ __auto_type v_x_0 = s0->u.C_K__In.f_x; __auto_type v_d_1 = s0->u.C_K__In.f_d; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__In))); o2->tag = 6; o2->u.C_K__In.f_x = f_K__shift(p_r, v_x_0, p_k); o2->u.C_K__In.f_d = v_d_1; o2; }); }) : s0->tag == 7 ? ({ __auto_type v_c_0 = s0->u.C_K__Post.f_c; ({ struct E_K__Goal* o1 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Post))); o1->tag = 7; o1->u.C_K__Post.f_c = f_K__shiftFd(p_r, v_c_0, p_k); o1; }); }) : ({ __auto_type v_xs_0 = s0->u.C_K__Label.f_xs; ({ struct E_K__Goal* o1 = (struct E_K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Label))); o1->tag = 8; o1->u.C_K__Label.f_xs = f_Coll__rev__K__Term(p_r, f_K__shiftOnto(p_r, v_xs_0, p_k, (&N_Coll__Nil__K__Term))); o1; }); }); }); } -static struct E_K__Fd* f_K__shiftFd(srs_cap* p_r, struct E_K__Fd* p_c, int64_t p_k) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_op_0 = s0->u.C_K__FBin.f_op; __auto_type v_x_1 = s0->u.C_K__FBin.f_x; __auto_type v_y_2 = s0->u.C_K__FBin.f_y; ({ struct E_K__Fd* o3 = (struct E_K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Fd, u) + sizeof(((struct E_K__Fd*)0)->u.C_K__FBin))); o3->tag = 0; o3->u.C_K__FBin.f_op = v_op_0; o3->u.C_K__FBin.f_x = f_K__shift(p_r, v_x_1, p_k); o3->u.C_K__FBin.f_y = f_K__shift(p_r, v_y_2, p_k); o3; }); }) : ({ __auto_type v_x_0 = s0->u.C_K__FPlus.f_x; __auto_type v_y_1 = s0->u.C_K__FPlus.f_y; __auto_type v_z_2 = s0->u.C_K__FPlus.f_z; ({ struct E_K__Fd* o3 = (struct E_K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Fd, u) + sizeof(((struct E_K__Fd*)0)->u.C_K__FPlus))); o3->tag = 1; o3->u.C_K__FPlus.f_x = f_K__shift(p_r, v_x_0, p_k); o3->u.C_K__FPlus.f_y = f_K__shift(p_r, v_y_1, p_k); o3->u.C_K__FPlus.f_z = f_K__shift(p_r, v_z_2, p_k); o3; }); }); }); } -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyOff(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_h, int64_t p_k, struct E_K__Term* p_y) { return ({ __auto_type s0 = p_h; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; f_K__unify(p_r, p_s, ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o1->tag = 0; o1->u.C_K__Var.f_n = (v_n_0 + p_k); o1; }), p_y); }) : s0->tag == 2 ? ({ f_K__unify(p_r, p_s, p_h, p_y); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_hs_1 = s0->u.C_K__Con.f_args; ({ __auto_type s2 = f_K__walk(p_r, p_s, p_y); s2->tag == 0 ? ({ __auto_type v_m_2 = s2->u.C_K__Var.f_n; f_K__bind(p_r, p_s, v_m_2, f_K__shift(p_r, p_h, p_k)); }) : s2->tag == 1 ? ({ __auto_type v_g_2 = s2->u.C_K__Con.f_f; __auto_type v_ys_3 = s2->u.C_K__Con.f_args; (f_Sym__eq(v_f_0, v_g_2) ? f_K__unifyAllOff(p_r, p_s, v_hs_1, p_k, v_ys_3) : (&N_Coll__None__Coll__IMap_1_K__Term)); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }); }); } -static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAllOff(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_hs, int64_t p_k, struct E_Coll__List__K__Term* p_ys) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_s; o0; }); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_ht_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = f_K__unifyOff(p_r, p_s, v_h_0, p_k, v_y_2); s4->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_s2_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = v_s2_4; struct E_Coll__List__K__Term* t2 = v_ht_1; int64_t t3 = p_k; struct E_Coll__List__K__Term* t4 = v_yt_3; p_r = t0; p_s = t1; p_hs = t2; p_k = t3; p_ys = t4; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_K__Term*){0}; }); }); }); }); }); }); }); } -static struct E_K__Step* f_K__picks(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rs, struct E_Sym__Sym* p_rel, struct E_Coll__List__K__Term* p_args, struct E_K__State* p_st, struct E_Coll__List__K__Goal* p_rest, struct E_Coll__List__K__Branch* p_out, int64_t p_cost) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ struct E_K__Step* o0 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o0->tag = 3; o0->u.C_K__Split.f_bs = f_Coll__rev__K__Branch(p_r, p_out); o0->u.C_K__Split.f_cost = p_cost; o0; }); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_f_2 = s2->u.C_K__Rule.f_rel; __auto_type v_head_3 = s2->u.C_K__Rule.f_head; __auto_type v_body_4 = s2->u.C_K__Rule.f_body; __auto_type v_nv_5 = s2->u.C_K__Rule.f_nvars; ({ __auto_type res_ = ({ __auto_type s6 = p_st; ({ __auto_type v_s_6 = s6->u.C_K__State.f_s; __auto_type v_ns_7 = s6->u.C_K__State.f_neq; __auto_type v_ds_8 = s6->u.C_K__State.f_dom; __auto_type v_fs_9 = s6->u.C_K__State.f_fd; __auto_type v_nx_10 = s6->u.C_K__State.f_next; ({ __auto_type res_ = ((!f_Sym__eq(v_f_2, p_rel)) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__K__Term* t3 = p_args; struct E_K__State* t4 = p_st; struct E_Coll__List__K__Goal* t5 = p_rest; struct E_Coll__List__K__Branch* t6 = p_out; int64_t t7 = p_cost; p_r = t0; p_rs = t1; p_rel = t2; p_args = t3; p_st = t4; p_rest = t5; p_out = t6; p_cost = t7; goto srs_tail; (struct E_K__Step*){0}; }) : ({ __auto_type s11 = f_K__post(p_r, p_st, p_args, f_K__unifyAllOff(p_r, v_s_6, v_head_3, v_nx_10, p_args)); s11->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__K__Term* t3 = p_args; struct E_K__State* t4 = p_st; struct E_Coll__List__K__Goal* t5 = p_rest; struct E_Coll__List__K__Branch* t6 = p_out; int64_t t7 = (p_cost + ((int64_t)1)); p_r = t0; p_rs = t1; p_rel = t2; p_args = t3; p_st = t4; p_rest = t5; p_out = t6; p_cost = t7; goto srs_tail; (struct E_K__Step*){0}; }); }) : ({ __auto_type v_st2_11 = s11->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s12 = v_st2_11; ({ __auto_type v_s2_12 = s12->u.C_K__State.f_s; __auto_type v_ns2_13 = s12->u.C_K__State.f_neq; __auto_type v_ds2_14 = s12->u.C_K__State.f_dom; __auto_type v_fs2_15 = s12->u.C_K__State.f_fd; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__K__Term* t3 = p_args; struct E_K__State* t4 = p_st; struct E_Coll__List__K__Goal* t5 = p_rest; struct E_Coll__List__K__Branch* t6 = ({ struct E_Coll__List__K__Branch* o16 = (struct E_Coll__List__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o16 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o16->tag = 0; o16->u.C_K__Branch.f_st = ({ struct E_K__State* o16 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o16->tag = 0; o16->u.C_K__State.f_s = v_s2_12; o16->u.C_K__State.f_neq = v_ns2_13; o16->u.C_K__State.f_dom = v_ds2_14; o16->u.C_K__State.f_fd = v_fs2_15; o16->u.C_K__State.f_next = (v_nx_10 + v_nv_5); o16; }); o16->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o16 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = f_K__shiftGoal(p_r, v_body_4, v_nx_10); o16->u.C_Coll__Cons.f_t = p_rest; o16; }); o16; }); o16->u.C_Coll__Cons.f_t = p_out; o16; }); int64_t t7 = (p_cost + ((int64_t)1)); p_r = t0; p_rs = t1; p_rel = t2; p_args = t3; p_st = t4; p_rest = t5; p_out = t6; p_cost = t7; goto srs_tail; (struct E_K__Step*){0}; }); res_; }); }); }); res_; }); }); })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__K__State* f_K__settled(srs_cap* p_r, struct E_Coll__Option__K__State* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st_0 = s0->u.C_Coll__Some.f_v; f_K__settleFrom(p_r, v_st_0, (&N_Coll__Nil__K__Fd)); }); }); } -static struct E_K__Step* f_K__onward(srs_cap* p_r, struct E_Coll__Option__K__State* p_c, struct E_Coll__List__K__Goal* p_rest) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ (&N_K__Dead); }) : ({ __auto_type v_st_0 = s0->u.C_Coll__Some.f_v; ({ struct E_K__Step* o1 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o1->tag = 2; o1->u.C_K__More.f_b = ({ struct E_K__Branch* o1 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o1->tag = 0; o1->u.C_K__Branch.f_st = v_st_0; o1->u.C_K__Branch.f_gs = p_rest; o1; }); o1; }); }); }); } -static struct E_K__Step* f_K__kstep(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_K__Branch* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_b; ({ __auto_type v_st_0 = s0->u.C_K__Branch.f_st; __auto_type v_gs_1 = s0->u.C_K__Branch.f_gs; ({ __auto_type res_ = ({ __auto_type s2 = v_st_0; ({ __auto_type v_s_2 = s2->u.C_K__State.f_s; __auto_type v_ns_3 = s2->u.C_K__State.f_neq; __auto_type v_ds_4 = s2->u.C_K__State.f_dom; __auto_type v_fs_5 = s2->u.C_K__State.f_fd; __auto_type v_nx_6 = s2->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s7 = v_gs_1; s7->tag == 0 ? ({ ({ struct E_K__Step* o7 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Done))); o7->tag = 0; o7->u.C_K__Done.f_st = v_st_0; o7; }); }) : ({ __auto_type v_g_7 = s7->u.C_Coll__Cons.f_h; __auto_type v_rest_8 = s7->u.C_Coll__Cons.f_t; ({ __auto_type s9 = v_g_7; s9->tag == 0 ? ({ ({ struct E_K__Step* o9 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o9->tag = 2; o9->u.C_K__More.f_b = ({ struct E_K__Branch* o9 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o9->tag = 0; o9->u.C_K__Branch.f_st = v_st_0; o9->u.C_K__Branch.f_gs = v_rest_8; o9; }); o9; }); }) : s9->tag == 1 ? ({ __auto_type v_a_9 = s9->u.C_K__Eq.f_a; __auto_type v_c_10 = s9->u.C_K__Eq.f_b; f_K__onward(p_r, f_K__post(p_r, v_st_0, ({ struct E_Coll__List__K__Term* o11 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_a_9; o11->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o11 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_c_10; o11->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o11; }); o11; }), f_K__unify(p_r, v_s_2, v_a_9, v_c_10)), v_rest_8); }) : s9->tag == 5 ? ({ __auto_type v_a_9 = s9->u.C_K__Diseq.f_a; __auto_type v_c_10 = s9->u.C_K__Diseq.f_b; f_K__onward(p_r, f_K__addNeq(p_r, v_st_0, v_a_9, v_c_10), v_rest_8); }) : s9->tag == 6 ? ({ __auto_type v_x_9 = s9->u.C_K__In.f_x; __auto_type v_xs_10 = s9->u.C_K__In.f_d; f_K__onward(p_r, f_K__settled(p_r, f_K__meet(p_r, v_st_0, v_x_9, v_xs_10)), v_rest_8); }) : s9->tag == 7 ? ({ __auto_type v_c_9 = s9->u.C_K__Post.f_c; f_K__onward(p_r, f_K__settleFrom(p_r, ({ struct E_K__State* o10 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o10->tag = 0; o10->u.C_K__State.f_s = v_s_2; o10->u.C_K__State.f_neq = v_ns_3; o10->u.C_K__State.f_dom = v_ds_4; o10->u.C_K__State.f_fd = f_K__watch(p_r, v_s_2, v_fs_5, v_c_9); o10->u.C_K__State.f_next = v_nx_6; o10; }), ({ struct E_Coll__List__K__Fd* o10 = (struct E_Coll__List__K__Fd*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Fd, u) + sizeof(((struct E_Coll__List__K__Fd*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_c_9; o10->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Fd); o10; })), v_rest_8); }) : s9->tag == 8 ? ({ __auto_type v_xs_9 = s9->u.C_K__Label.f_xs; ({ __auto_type s10 = f_K__pickVar(p_r, v_st_0, v_xs_9, (&N_K__NoPick)); s10->tag == 0 ? ({ ({ struct E_K__Step* o10 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o10->tag = 2; o10->u.C_K__More.f_b = ({ struct E_K__Branch* o10 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o10->tag = 0; o10->u.C_K__Branch.f_st = v_st_0; o10->u.C_K__Branch.f_gs = v_rest_8; o10; }); o10; }); }) : ({ __auto_type v_t_10 = s10->u.C_K__Pick.f_t; __auto_type v_d_11 = s10->u.C_K__Pick.f_d; ({ struct E_K__Step* o12 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o12->tag = 3; o12->u.C_K__Split.f_bs = f_K__labelBranches(p_r, v_st_0, v_t_10, f_K__ints(p_r, v_d_11), v_gs_1, (&N_Coll__Nil__K__Branch)); o12->u.C_K__Split.f_cost = f_K__domSize(v_d_11); o12; }); }); }); }) : s9->tag == 2 ? ({ __auto_type v_x_9 = s9->u.C_K__Conj.f_g; __auto_type v_y_10 = s9->u.C_K__Conj.f_h; ({ struct E_K__Step* o11 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o11->tag = 2; o11->u.C_K__More.f_b = ({ struct E_K__Branch* o11 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o11->tag = 0; o11->u.C_K__Branch.f_st = v_st_0; o11->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_x_9; o11->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_y_10; o11->u.C_Coll__Cons.f_t = v_rest_8; o11; }); o11; }); o11; }); o11; }); }) : s9->tag == 3 ? ({ __auto_type v_x_9 = s9->u.C_K__Disj.f_g; __auto_type v_y_10 = s9->u.C_K__Disj.f_h; ({ struct E_K__Step* o11 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o11->tag = 3; o11->u.C_K__Split.f_bs = ({ struct E_Coll__List__K__Branch* o11 = (struct E_Coll__List__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o11 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o11->tag = 0; o11->u.C_K__Branch.f_st = v_st_0; o11->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_x_9; o11->u.C_Coll__Cons.f_t = v_rest_8; o11; }); o11; }); o11->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Branch* o11 = (struct E_Coll__List__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o11 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o11->tag = 0; o11->u.C_K__Branch.f_st = v_st_0; o11->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_y_10; o11->u.C_Coll__Cons.f_t = v_rest_8; o11; }); o11; }); o11->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Branch); o11; }); o11; }); o11->u.C_K__Split.f_cost = ((int64_t)1); o11; }); }) : ({ __auto_type v_f_9 = s9->u.C_K__Call.f_rel; __auto_type v_args_10 = s9->u.C_K__Call.f_args; ({ __auto_type s11 = f_Coll__node__Coll__List_1_K__Rule(p_ix, f_Sym__hash(v_f_9)); s11->tag == 0 ? ({ ({ struct E_K__Step* o11 = (struct E_K__Step*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o11->tag = 3; o11->u.C_K__Split.f_bs = (&N_Coll__Nil__K__Branch); o11->u.C_K__Split.f_cost = ((int64_t)0); o11; }); }) : ({ __auto_type v_rs_11 = s11->u.C_Coll__Bin.f_v; f_K__picks(p_r, v_rs_11, v_f_9, v_args_10, v_st_0, v_rest_8, (&N_Coll__Nil__K__Branch), ((int64_t)0)); }); }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateL__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ __auto_type s0 = p_r2; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_rl_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_rr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Rule(v_rl_2) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Rule(v_rr_3))) ? f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3) : ({ __auto_type s4 = v_rl_2; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k2_0, v_v2_1, f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, v_rl_2), v_rr_3); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_rll_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_rlr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, v_rll_6), f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k2_0, v_v2_1, v_rlr_7, v_rr_3)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__rotateR__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ __auto_type s0 = p_l; s0->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, p_l, p_r2); }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_v2_1 = s0->u.C_Coll__Bin.f_v; __auto_type v_ll_2 = s0->u.C_Coll__Bin.f_l; __auto_type v_lr_3 = s0->u.C_Coll__Bin.f_r; ({ __auto_type res_ = ((f_Coll__size__Coll__List_1_K__Rule(v_lr_3) < (f_Coll__ratio() * f_Coll__size__Coll__List_1_K__Rule(v_ll_2))) ? f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, v_lr_3, p_r2)) : ({ __auto_type s4 = v_lr_3; s4->tag == 0 ? ({ f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, v_lr_3, p_r2)); }) : ({ __auto_type v_k3_4 = s4->u.C_Coll__Bin.f_k; __auto_type v_v3_5 = s4->u.C_Coll__Bin.f_v; __auto_type v_lrl_6 = s4->u.C_Coll__Bin.f_l; __auto_type v_lrr_7 = s4->u.C_Coll__Bin.f_r; f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k3_4, v_v3_5, f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, v_k2_0, v_v2_1, v_ll_2, v_lrl_6), f_Coll__bin__Coll__List_1_K__Rule(p_eff__Region, p_k, p_v, v_lrr_7, p_r2)); }); })); res_; }); }); }); } +static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__bin__Coll__List_1_K__Rule(srs_cap* p_eff__Region, int64_t p_k, struct E_Coll__List__K__Rule* p_v, struct E_Coll__IMap__Coll__List_1_K__Rule* p_l, struct E_Coll__IMap__Coll__List_1_K__Rule* p_r2) { return ({ __auto_type res_ = ({ struct E_Coll__IMap__Coll__List_1_K__Rule* o0 = (struct E_Coll__IMap__Coll__List_1_K__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__IMap__Coll__List_1_K__Rule, u) + sizeof(((struct E_Coll__IMap__Coll__List_1_K__Rule*)0)->u.C_Coll__Bin))); o0->tag = 1; o0->u.C_Coll__Bin.f_size = ((f_Coll__size__Coll__List_1_K__Rule(p_l) + f_Coll__size__Coll__List_1_K__Rule(p_r2)) + ((int64_t)1)); o0->u.C_Coll__Bin.f_k = p_k; o0->u.C_Coll__Bin.f_v = p_v; o0->u.C_Coll__Bin.f_l = p_l; o0->u.C_Coll__Bin.f_r = p_r2; o0; }); res_; }); } +static struct E_K__Term* f_K__shift(srs_cap* p_eff__Region, struct E_K__Term* p_t, int64_t p_k) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o1->tag = 0; o1->u.C_K__Var.f_n = (v_n_0 + p_k); o1; }); }) : s0->tag == 2 ? ({ __auto_type v_v_0 = s0->u.C_K__Int.f_v; ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Int))); o1->tag = 2; o1->u.C_K__Int.f_v = v_v_0; o1; }); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_f_0; o2->u.C_K__Con.f_args = f_Coll__rev__K__Term(p_eff__Region, f_K__shiftOnto(p_eff__Region, v_args_1, p_k, (&N_Coll__Nil__K__Term))); o2; }); }); }); } +static struct E_Coll__List__K__Term* f_K__shiftOnto(srs_cap* p_eff__Region, struct E_Coll__List__K__Term* p_ts, int64_t p_k, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Term* t1 = v_t_1; int64_t t2 = p_k; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_K__shift(p_eff__Region, v_h_0, p_k); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_k = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_K__Goal* f_K__shiftGoal(srs_cap* p_eff__Region, struct E_K__Goal* p_g, int64_t p_k) { return ({ __auto_type s0 = p_g; s0->tag == 0 ? ({ (&N_K__True); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_K__Eq.f_a; __auto_type v_b_1 = s0->u.C_K__Eq.f_b; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Eq))); o2->tag = 1; o2->u.C_K__Eq.f_a = f_K__shift(p_eff__Region, v_a_0, p_k); o2->u.C_K__Eq.f_b = f_K__shift(p_eff__Region, v_b_1, p_k); o2; }); }) : s0->tag == 2 ? ({ __auto_type v_x_0 = s0->u.C_K__Conj.f_g; __auto_type v_y_1 = s0->u.C_K__Conj.f_h; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Conj))); o2->tag = 2; o2->u.C_K__Conj.f_g = f_K__shiftGoal(p_eff__Region, v_x_0, p_k); o2->u.C_K__Conj.f_h = f_K__shiftGoal(p_eff__Region, v_y_1, p_k); o2; }); }) : s0->tag == 3 ? ({ __auto_type v_x_0 = s0->u.C_K__Disj.f_g; __auto_type v_y_1 = s0->u.C_K__Disj.f_h; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Disj))); o2->tag = 3; o2->u.C_K__Disj.f_g = f_K__shiftGoal(p_eff__Region, v_x_0, p_k); o2->u.C_K__Disj.f_h = f_K__shiftGoal(p_eff__Region, v_y_1, p_k); o2; }); }) : s0->tag == 4 ? ({ __auto_type v_f_0 = s0->u.C_K__Call.f_rel; __auto_type v_args_1 = s0->u.C_K__Call.f_args; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Call))); o2->tag = 4; o2->u.C_K__Call.f_rel = v_f_0; o2->u.C_K__Call.f_args = f_Coll__rev__K__Term(p_eff__Region, f_K__shiftOnto(p_eff__Region, v_args_1, p_k, (&N_Coll__Nil__K__Term))); o2; }); }) : s0->tag == 5 ? ({ __auto_type v_a_0 = s0->u.C_K__Diseq.f_a; __auto_type v_b_1 = s0->u.C_K__Diseq.f_b; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Diseq))); o2->tag = 5; o2->u.C_K__Diseq.f_a = f_K__shift(p_eff__Region, v_a_0, p_k); o2->u.C_K__Diseq.f_b = f_K__shift(p_eff__Region, v_b_1, p_k); o2; }); }) : s0->tag == 6 ? ({ __auto_type v_x_0 = s0->u.C_K__In.f_x; __auto_type v_d_1 = s0->u.C_K__In.f_d; ({ struct E_K__Goal* o2 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__In))); o2->tag = 6; o2->u.C_K__In.f_x = f_K__shift(p_eff__Region, v_x_0, p_k); o2->u.C_K__In.f_d = v_d_1; o2; }); }) : s0->tag == 7 ? ({ __auto_type v_c_0 = s0->u.C_K__Post.f_c; ({ struct E_K__Goal* o1 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Post))); o1->tag = 7; o1->u.C_K__Post.f_c = f_K__shiftFd(p_eff__Region, v_c_0, p_k); o1; }); }) : ({ __auto_type v_xs_0 = s0->u.C_K__Label.f_xs; ({ struct E_K__Goal* o1 = (struct E_K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Goal, u) + sizeof(((struct E_K__Goal*)0)->u.C_K__Label))); o1->tag = 8; o1->u.C_K__Label.f_xs = f_Coll__rev__K__Term(p_eff__Region, f_K__shiftOnto(p_eff__Region, v_xs_0, p_k, (&N_Coll__Nil__K__Term))); o1; }); }); }); } +static struct E_K__Fd* f_K__shiftFd(srs_cap* p_eff__Region, struct E_K__Fd* p_c, int64_t p_k) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ __auto_type v_op_0 = s0->u.C_K__FBin.f_op; __auto_type v_x_1 = s0->u.C_K__FBin.f_x; __auto_type v_y_2 = s0->u.C_K__FBin.f_y; ({ struct E_K__Fd* o3 = (struct E_K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Fd, u) + sizeof(((struct E_K__Fd*)0)->u.C_K__FBin))); o3->tag = 0; o3->u.C_K__FBin.f_op = v_op_0; o3->u.C_K__FBin.f_x = f_K__shift(p_eff__Region, v_x_1, p_k); o3->u.C_K__FBin.f_y = f_K__shift(p_eff__Region, v_y_2, p_k); o3; }); }) : ({ __auto_type v_x_0 = s0->u.C_K__FPlus.f_x; __auto_type v_y_1 = s0->u.C_K__FPlus.f_y; __auto_type v_z_2 = s0->u.C_K__FPlus.f_z; ({ struct E_K__Fd* o3 = (struct E_K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Fd, u) + sizeof(((struct E_K__Fd*)0)->u.C_K__FPlus))); o3->tag = 1; o3->u.C_K__FPlus.f_x = f_K__shift(p_eff__Region, v_x_0, p_k); o3->u.C_K__FPlus.f_y = f_K__shift(p_eff__Region, v_y_1, p_k); o3->u.C_K__FPlus.f_z = f_K__shift(p_eff__Region, v_z_2, p_k); o3; }); }); }); } +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyOff(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_K__Term* p_h, int64_t p_k, struct E_K__Term* p_y) { return ({ __auto_type s0 = p_h; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; f_K__unify(p_eff__Region, p_s, ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o1->tag = 0; o1->u.C_K__Var.f_n = (v_n_0 + p_k); o1; }), p_y); }) : s0->tag == 2 ? ({ f_K__unify(p_eff__Region, p_s, p_h, p_y); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_hs_1 = s0->u.C_K__Con.f_args; ({ __auto_type s2 = f_K__walk(p_s, p_y); s2->tag == 0 ? ({ __auto_type v_m_2 = s2->u.C_K__Var.f_n; f_K__bind(p_eff__Region, p_s, v_m_2, f_K__shift(p_eff__Region, p_h, p_k)); }) : s2->tag == 1 ? ({ __auto_type v_g_2 = s2->u.C_K__Con.f_f; __auto_type v_ys_3 = s2->u.C_K__Con.f_args; (f_Sym__eq(v_f_0, v_g_2) ? f_K__unifyAllOff(p_eff__Region, p_s, v_hs_1, p_k, v_ys_3) : (&N_Coll__None__Coll__IMap_1_K__Term)); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }); }); } +static struct E_Coll__Option__Coll__IMap_1_K__Term* f_K__unifyAllOff(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_hs, int64_t p_k, struct E_Coll__List__K__Term* p_ys) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__IMap_1_K__Term* o0 = (struct E_Coll__Option__Coll__IMap_1_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__IMap_1_K__Term, u) + sizeof(((struct E_Coll__Option__Coll__IMap_1_K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_s; o0; }); }) : ({ (&N_Coll__None__Coll__IMap_1_K__Term); }); }); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_ht_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = f_K__unifyOff(p_eff__Region, p_s, v_h_0, p_k, v_y_2); s4->tag == 0 ? ({ (&N_Coll__None__Coll__IMap_1_K__Term); }) : ({ __auto_type v_s2_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = v_s2_4; struct E_Coll__List__K__Term* t2 = v_ht_1; int64_t t3 = p_k; struct E_Coll__List__K__Term* t4 = v_yt_3; p_eff__Region = t0; p_s = t1; p_hs = t2; p_k = t3; p_ys = t4; goto srs_tail; (struct E_Coll__Option__Coll__IMap_1_K__Term*){0}; }); }); }); }); }); }); }); } +static struct E_K__Step* f_K__picks(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rs, struct E_Sym__Sym* p_rel, struct E_Coll__List__K__Term* p_args, struct E_K__State* p_st, struct E_Coll__List__K__Goal* p_rest, struct E_Coll__List__K__Branch* p_out, int64_t p_cost) { srs_tail: return ({ __auto_type s0 = p_rs; s0->tag == 0 ? ({ ({ struct E_K__Step* o0 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o0->tag = 3; o0->u.C_K__Split.f_bs = f_Coll__rev__K__Branch(p_eff__Region, p_out); o0->u.C_K__Split.f_cost = p_cost; o0; }); }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_h_0; ({ __auto_type v_f_2 = s2->u.C_K__Rule.f_rel; __auto_type v_head_3 = s2->u.C_K__Rule.f_head; __auto_type v_body_4 = s2->u.C_K__Rule.f_body; __auto_type v_nv_5 = s2->u.C_K__Rule.f_nvars; ({ __auto_type res_ = ({ __auto_type s6 = p_st; ({ __auto_type v_s_6 = s6->u.C_K__State.f_s; __auto_type v_ns_7 = s6->u.C_K__State.f_neq; __auto_type v_ds_8 = s6->u.C_K__State.f_dom; __auto_type v_fs_9 = s6->u.C_K__State.f_fd; __auto_type v_nx_10 = s6->u.C_K__State.f_next; ({ __auto_type res_ = ((!f_Sym__eq(v_f_2, p_rel)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__K__Term* t3 = p_args; struct E_K__State* t4 = p_st; struct E_Coll__List__K__Goal* t5 = p_rest; struct E_Coll__List__K__Branch* t6 = p_out; int64_t t7 = p_cost; p_eff__Region = t0; p_rs = t1; p_rel = t2; p_args = t3; p_st = t4; p_rest = t5; p_out = t6; p_cost = t7; goto srs_tail; (struct E_K__Step*){0}; }) : ({ __auto_type s11 = f_K__post(p_eff__Region, p_st, p_args, f_K__unifyAllOff(p_eff__Region, v_s_6, v_head_3, v_nx_10, p_args)); s11->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__K__Term* t3 = p_args; struct E_K__State* t4 = p_st; struct E_Coll__List__K__Goal* t5 = p_rest; struct E_Coll__List__K__Branch* t6 = p_out; int64_t t7 = (p_cost + ((int64_t)1)); p_eff__Region = t0; p_rs = t1; p_rel = t2; p_args = t3; p_st = t4; p_rest = t5; p_out = t6; p_cost = t7; goto srs_tail; (struct E_K__Step*){0}; }); }) : ({ __auto_type v_st2_11 = s11->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s12 = v_st2_11; ({ __auto_type v_s2_12 = s12->u.C_K__State.f_s; __auto_type v_ns2_13 = s12->u.C_K__State.f_neq; __auto_type v_ds2_14 = s12->u.C_K__State.f_dom; __auto_type v_fs2_15 = s12->u.C_K__State.f_fd; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__Rule* t1 = v_t_1; struct E_Sym__Sym* t2 = p_rel; struct E_Coll__List__K__Term* t3 = p_args; struct E_K__State* t4 = p_st; struct E_Coll__List__K__Goal* t5 = p_rest; struct E_Coll__List__K__Branch* t6 = ({ struct E_Coll__List__K__Branch* o16 = (struct E_Coll__List__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o16 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o16->tag = 0; o16->u.C_K__Branch.f_st = ({ struct E_K__State* o16 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o16->tag = 0; o16->u.C_K__State.f_s = v_s2_12; o16->u.C_K__State.f_neq = v_ns2_13; o16->u.C_K__State.f_dom = v_ds2_14; o16->u.C_K__State.f_fd = v_fs2_15; o16->u.C_K__State.f_next = (v_nx_10 + v_nv_5); o16; }); o16->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o16 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o16->tag = 1; o16->u.C_Coll__Cons.f_h = f_K__shiftGoal(p_eff__Region, v_body_4, v_nx_10); o16->u.C_Coll__Cons.f_t = p_rest; o16; }); o16; }); o16->u.C_Coll__Cons.f_t = p_out; o16; }); int64_t t7 = (p_cost + ((int64_t)1)); p_eff__Region = t0; p_rs = t1; p_rel = t2; p_args = t3; p_st = t4; p_rest = t5; p_out = t6; p_cost = t7; goto srs_tail; (struct E_K__Step*){0}; }); res_; }); }); }); res_; }); }); })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__K__State* f_K__settled(srs_cap* p_eff__Region, struct E_Coll__Option__K__State* p_c) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ (&N_Coll__None__K__State); }) : ({ __auto_type v_st_0 = s0->u.C_Coll__Some.f_v; f_K__settleFrom(p_eff__Region, v_st_0, (&N_Coll__Nil__K__Fd)); }); }); } +static struct E_K__Step* f_K__onward(srs_cap* p_eff__Region, struct E_Coll__Option__K__State* p_c, struct E_Coll__List__K__Goal* p_rest) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ (&N_K__Dead); }) : ({ __auto_type v_st_0 = s0->u.C_Coll__Some.f_v; ({ struct E_K__Step* o1 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o1->tag = 2; o1->u.C_K__More.f_b = ({ struct E_K__Branch* o1 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o1->tag = 0; o1->u.C_K__Branch.f_st = v_st_0; o1->u.C_K__Branch.f_gs = p_rest; o1; }); o1; }); }); }); } +static struct E_K__Step* f_K__kstep(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_K__Branch* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_b; ({ __auto_type v_st_0 = s0->u.C_K__Branch.f_st; __auto_type v_gs_1 = s0->u.C_K__Branch.f_gs; ({ __auto_type res_ = ({ __auto_type s2 = v_st_0; ({ __auto_type v_s_2 = s2->u.C_K__State.f_s; __auto_type v_ns_3 = s2->u.C_K__State.f_neq; __auto_type v_ds_4 = s2->u.C_K__State.f_dom; __auto_type v_fs_5 = s2->u.C_K__State.f_fd; __auto_type v_nx_6 = s2->u.C_K__State.f_next; ({ __auto_type res_ = ({ __auto_type s7 = v_gs_1; s7->tag == 0 ? ({ ({ struct E_K__Step* o7 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Done))); o7->tag = 0; o7->u.C_K__Done.f_st = v_st_0; o7; }); }) : ({ __auto_type v_g_7 = s7->u.C_Coll__Cons.f_h; __auto_type v_rest_8 = s7->u.C_Coll__Cons.f_t; ({ __auto_type s9 = v_g_7; s9->tag == 0 ? ({ ({ struct E_K__Step* o9 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o9->tag = 2; o9->u.C_K__More.f_b = ({ struct E_K__Branch* o9 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o9->tag = 0; o9->u.C_K__Branch.f_st = v_st_0; o9->u.C_K__Branch.f_gs = v_rest_8; o9; }); o9; }); }) : s9->tag == 1 ? ({ __auto_type v_a_9 = s9->u.C_K__Eq.f_a; __auto_type v_c_10 = s9->u.C_K__Eq.f_b; f_K__onward(p_eff__Region, f_K__post(p_eff__Region, v_st_0, ({ struct E_Coll__List__K__Term* o11 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_a_9; o11->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Term* o11 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_c_10; o11->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Term); o11; }); o11; }), f_K__unify(p_eff__Region, v_s_2, v_a_9, v_c_10)), v_rest_8); }) : s9->tag == 5 ? ({ __auto_type v_a_9 = s9->u.C_K__Diseq.f_a; __auto_type v_c_10 = s9->u.C_K__Diseq.f_b; f_K__onward(p_eff__Region, f_K__addNeq(p_eff__Region, v_st_0, v_a_9, v_c_10), v_rest_8); }) : s9->tag == 6 ? ({ __auto_type v_x_9 = s9->u.C_K__In.f_x; __auto_type v_xs_10 = s9->u.C_K__In.f_d; f_K__onward(p_eff__Region, f_K__settled(p_eff__Region, f_K__meet(p_eff__Region, v_st_0, v_x_9, v_xs_10)), v_rest_8); }) : s9->tag == 7 ? ({ __auto_type v_c_9 = s9->u.C_K__Post.f_c; f_K__onward(p_eff__Region, f_K__settleFrom(p_eff__Region, ({ struct E_K__State* o10 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o10->tag = 0; o10->u.C_K__State.f_s = v_s_2; o10->u.C_K__State.f_neq = v_ns_3; o10->u.C_K__State.f_dom = v_ds_4; o10->u.C_K__State.f_fd = f_K__watch(p_eff__Region, v_s_2, v_fs_5, v_c_9); o10->u.C_K__State.f_next = v_nx_6; o10; }), ({ struct E_Coll__List__K__Fd* o10 = (struct E_Coll__List__K__Fd*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Fd, u) + sizeof(((struct E_Coll__List__K__Fd*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = v_c_9; o10->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Fd); o10; })), v_rest_8); }) : s9->tag == 8 ? ({ __auto_type v_xs_9 = s9->u.C_K__Label.f_xs; ({ __auto_type s10 = f_K__pickVar(p_eff__Region, v_st_0, v_xs_9, (&N_K__NoPick)); s10->tag == 0 ? ({ ({ struct E_K__Step* o10 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o10->tag = 2; o10->u.C_K__More.f_b = ({ struct E_K__Branch* o10 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o10->tag = 0; o10->u.C_K__Branch.f_st = v_st_0; o10->u.C_K__Branch.f_gs = v_rest_8; o10; }); o10; }); }) : ({ __auto_type v_t_10 = s10->u.C_K__Pick.f_t; __auto_type v_d_11 = s10->u.C_K__Pick.f_d; ({ struct E_K__Step* o12 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o12->tag = 3; o12->u.C_K__Split.f_bs = f_K__labelBranches(p_eff__Region, v_st_0, v_t_10, f_K__ints(p_eff__Region, v_d_11), v_gs_1, (&N_Coll__Nil__K__Branch)); o12->u.C_K__Split.f_cost = f_K__domSize(v_d_11); o12; }); }); }); }) : s9->tag == 2 ? ({ __auto_type v_x_9 = s9->u.C_K__Conj.f_g; __auto_type v_y_10 = s9->u.C_K__Conj.f_h; ({ struct E_K__Step* o11 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__More))); o11->tag = 2; o11->u.C_K__More.f_b = ({ struct E_K__Branch* o11 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o11->tag = 0; o11->u.C_K__Branch.f_st = v_st_0; o11->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_x_9; o11->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_y_10; o11->u.C_Coll__Cons.f_t = v_rest_8; o11; }); o11; }); o11; }); o11; }); }) : s9->tag == 3 ? ({ __auto_type v_x_9 = s9->u.C_K__Disj.f_g; __auto_type v_y_10 = s9->u.C_K__Disj.f_h; ({ struct E_K__Step* o11 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o11->tag = 3; o11->u.C_K__Split.f_bs = ({ struct E_Coll__List__K__Branch* o11 = (struct E_Coll__List__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o11 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o11->tag = 0; o11->u.C_K__Branch.f_st = v_st_0; o11->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_x_9; o11->u.C_Coll__Cons.f_t = v_rest_8; o11; }); o11; }); o11->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__K__Branch* o11 = (struct E_Coll__List__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_K__Branch* o11 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o11->tag = 0; o11->u.C_K__Branch.f_st = v_st_0; o11->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o11 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = v_y_10; o11->u.C_Coll__Cons.f_t = v_rest_8; o11; }); o11; }); o11->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Branch); o11; }); o11; }); o11->u.C_K__Split.f_cost = ((int64_t)1); o11; }); }) : ({ __auto_type v_f_9 = s9->u.C_K__Call.f_rel; __auto_type v_args_10 = s9->u.C_K__Call.f_args; ({ __auto_type s11 = f_Coll__node__Coll__List_1_K__Rule(p_ix, f_Sym__hash(v_f_9)); s11->tag == 0 ? ({ ({ struct E_K__Step* o11 = (struct E_K__Step*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Step, u) + sizeof(((struct E_K__Step*)0)->u.C_K__Split))); o11->tag = 3; o11->u.C_K__Split.f_bs = (&N_Coll__Nil__K__Branch); o11->u.C_K__Split.f_cost = ((int64_t)0); o11; }); }) : ({ __auto_type v_rs_11 = s11->u.C_Coll__Bin.f_v; f_K__picks(p_eff__Region, v_rs_11, v_f_9, v_args_10, v_st_0, v_rest_8, (&N_Coll__Nil__K__Branch), ((int64_t)0)); }); }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } static struct E_Coll__IMap__Coll__List_1_K__Rule* f_Coll__node__Coll__List_1_K__Rule(struct E_Coll__IMap__Coll__List_1_K__Rule* p_m, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_m; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_k2_0 = s0->u.C_Coll__Bin.f_k; __auto_type v_l_1 = s0->u.C_Coll__Bin.f_l; __auto_type v_r2_2 = s0->u.C_Coll__Bin.f_r; ((p_k < v_k2_0) ? ({ struct E_Coll__IMap__Coll__List_1_K__Rule* t0 = v_l_1; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Rule*){0}; }) : ((p_k > v_k2_0) ? ({ struct E_Coll__IMap__Coll__List_1_K__Rule* t0 = v_r2_2; int64_t t1 = p_k; p_m = t0; p_k = t1; goto srs_tail; (struct E_Coll__IMap__Coll__List_1_K__Rule*){0}; }) : p_m)); }); }); } -static struct E_K__Run* f_K__loop(srs_cap* p_r, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_Coll__Option__K__Branch* p_cur, struct E_Queue__Queue__K__Branch* p_q, int64_t p_fuel, int64_t p_limit, struct E_Coll__List__K__State* p_found, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_cur; s0->tag == 0 ? ({ ({ __auto_type s0 = f_Queue__pop__K__Branch(p_r, p_q); s0->tag == 0 ? ({ ({ struct E_K__Run* o0 = (struct E_K__Run*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Run, u) + sizeof(((struct E_K__Run*)0)->u.C_K__Run))); o0->tag = 0; o0->u.C_K__Run.f_answers = f_Coll__rev__K__State(p_r, p_found); o0->u.C_K__Run.f_status = (&N_K__Ended); o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Queue__Got.f_x; __auto_type v_rest_1 = s0->u.C_Queue__Got.f_rest; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = ({ struct E_Coll__Option__K__Branch* o2 = (struct E_Coll__Option__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Branch, u) + sizeof(((struct E_Coll__Option__K__Branch*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_b_0; o2; }); struct E_Queue__Queue__K__Branch* t3 = v_rest_1; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_r = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; }); }); }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_K__kstep(p_r, p_ix, v_b_0); s1->tag == 0 ? ({ __auto_type v_st_1 = s1->u.C_K__Done.f_st; (((p_n + ((int64_t)1)) >= p_limit) ? ({ struct E_K__Run* o2 = (struct E_K__Run*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Run, u) + sizeof(((struct E_K__Run*)0)->u.C_K__Run))); o2->tag = 0; o2->u.C_K__Run.f_answers = f_Coll__rev__K__State(p_r, ({ struct E_Coll__List__K__State* o2 = (struct E_Coll__List__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__State, u) + sizeof(((struct E_Coll__List__K__State*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_st_1; o2->u.C_Coll__Cons.f_t = p_found; o2; })); o2->u.C_K__Run.f_status = (&N_K__Limit); o2; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = (&N_Coll__None__K__Branch); struct E_Queue__Queue__K__Branch* t3 = p_q; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = ({ struct E_Coll__List__K__State* o2 = (struct E_Coll__List__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__State, u) + sizeof(((struct E_Coll__List__K__State*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_st_1; o2->u.C_Coll__Cons.f_t = p_found; o2; }); int64_t t7 = (p_n + ((int64_t)1)); p_r = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; })); }) : s1->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = (&N_Coll__None__K__Branch); struct E_Queue__Queue__K__Branch* t3 = p_q; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_r = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; }); }) : s1->tag == 2 ? ({ __auto_type v_b2_1 = s1->u.C_K__More.f_b; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = ({ struct E_Coll__Option__K__Branch* o2 = (struct E_Coll__Option__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Branch, u) + sizeof(((struct E_Coll__Option__K__Branch*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_b2_1; o2; }); struct E_Queue__Queue__K__Branch* t3 = p_q; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_r = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; }); }) : ({ __auto_type v_bs_1 = s1->u.C_K__Split.f_bs; __auto_type v_cost_2 = s1->u.C_K__Split.f_cost; ((v_cost_2 > p_fuel) ? ({ struct E_K__Run* o3 = (struct E_K__Run*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Run, u) + sizeof(((struct E_K__Run*)0)->u.C_K__Run))); o3->tag = 0; o3->u.C_K__Run.f_answers = f_Coll__rev__K__State(p_r, p_found); o3->u.C_K__Run.f_status = (&N_K__NoFuel); o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = (&N_Coll__None__K__Branch); struct E_Queue__Queue__K__Branch* t3 = f_Queue__pushAll__K__Branch(p_r, p_q, v_bs_1); int64_t t4 = (p_fuel - v_cost_2); int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_r = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; })); }); }); }); }); } -static struct E_Queue__Popped__K__Branch* f_Queue__pop__K__Branch(srs_cap* p_r, struct E_Queue__Queue__K__Branch* p_q) { return ({ __auto_type res_ = ({ __auto_type s0 = p_q; ({ __auto_type v_f_0 = s0->u.C_Queue__Queue.f_front; __auto_type v_b_1 = s0->u.C_Queue__Queue.f_back; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_t_3 = s2->u.C_Coll__Cons.f_t; ({ struct E_Queue__Popped__K__Branch* o4 = (struct E_Queue__Popped__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Queue__Popped__K__Branch, u) + sizeof(((struct E_Queue__Popped__K__Branch*)0)->u.C_Queue__Got))); o4->tag = 1; o4->u.C_Queue__Got.f_x = v_x_2; o4->u.C_Queue__Got.f_rest = ({ struct E_Queue__Queue__K__Branch* o4 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o4->tag = 0; o4->u.C_Queue__Queue.f_front = v_t_3; o4->u.C_Queue__Queue.f_back = v_b_1; o4; }); o4; }); }) : ({ ({ __auto_type s2 = f_Coll__rev__K__Branch(p_r, v_b_1); s2->tag == 0 ? ({ (&N_Queue__Empty__K__Branch); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_t_3 = s2->u.C_Coll__Cons.f_t; ({ struct E_Queue__Popped__K__Branch* o4 = (struct E_Queue__Popped__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Queue__Popped__K__Branch, u) + sizeof(((struct E_Queue__Popped__K__Branch*)0)->u.C_Queue__Got))); o4->tag = 1; o4->u.C_Queue__Got.f_x = v_x_2; o4->u.C_Queue__Got.f_rest = ({ struct E_Queue__Queue__K__Branch* o4 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o4->tag = 0; o4->u.C_Queue__Queue.f_front = v_t_3; o4->u.C_Queue__Queue.f_back = (&N_Coll__Nil__K__Branch); o4; }); o4; }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__K__State* f_Coll__rev__K__State(srs_cap* p_r, struct E_Coll__List__K__State* p_xs) { return f_Coll__revOnto__K__State(p_r, p_xs, (&N_Coll__Nil__K__State)); } -static struct E_Coll__List__K__State* f_Coll__revOnto__K__State(srs_cap* p_r, struct E_Coll__List__K__State* p_xs, struct E_Coll__List__K__State* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__K__State* t1 = v_t_1; struct E_Coll__List__K__State* t2 = ({ struct E_Coll__List__K__State* o2 = (struct E_Coll__List__K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__State, u) + sizeof(((struct E_Coll__List__K__State*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__State*){0}; }); }); }); } -static struct E_Queue__Queue__K__Branch* f_Queue__pushAll__K__Branch(srs_cap* p_r, struct E_Queue__Queue__K__Branch* p_q, struct E_Coll__List__K__Branch* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_q; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Queue__Queue__K__Branch* t1 = f_Queue__push__K__Branch(p_r, p_q, v_x_0); struct E_Coll__List__K__Branch* t2 = v_t_1; p_r = t0; p_q = t1; p_xs = t2; goto srs_tail; (struct E_Queue__Queue__K__Branch*){0}; }); }); }); } -static struct E_Queue__Queue__K__Branch* f_Queue__push__K__Branch(srs_cap* p_r, struct E_Queue__Queue__K__Branch* p_q, struct E_K__Branch* p_x) { return ({ __auto_type res_ = ({ __auto_type s0 = p_q; ({ __auto_type v_f_0 = s0->u.C_Queue__Queue.f_front; __auto_type v_b_1 = s0->u.C_Queue__Queue.f_back; ({ __auto_type res_ = ({ struct E_Queue__Queue__K__Branch* o2 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o2->tag = 0; o2->u.C_Queue__Queue.f_front = v_f_0; o2->u.C_Queue__Queue.f_back = ({ struct E_Coll__List__K__Branch* o2 = (struct E_Coll__List__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = p_x; o2->u.C_Coll__Cons.f_t = v_b_1; o2; }); o2; }); res_; }); }); }); res_; }); } -static struct E_K__Run* f_K__solve(srs_cap* p_r, struct E_Coll__List__K__Rule* p_rules, struct E_K__Goal* p_g, int64_t p_nvars, int64_t p_fuel, int64_t p_limit) { return ({ __auto_type res_ = f_K__loop(p_r, f_K__index(p_r, p_rules), ({ struct E_Coll__Option__K__Branch* o0 = (struct E_Coll__Option__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Branch, u) + sizeof(((struct E_Coll__Option__K__Branch*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_K__Branch* o0 = (struct E_K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o0->tag = 0; o0->u.C_K__Branch.f_st = ({ struct E_K__State* o0 = (struct E_K__State*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o0->tag = 0; o0->u.C_K__State.f_s = (&N_Coll__Tip__K__Term); o0->u.C_K__State.f_neq = (&N_Coll__Nil__K__Neq); o0->u.C_K__State.f_dom = (&N_Coll__Tip__K__Dom); o0->u.C_K__State.f_fd = ({ struct E_K__Props* o0 = (struct E_K__Props*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o0->tag = 0; o0->u.C_K__Props.f_fix = (&N_Coll__Tip__Coll__List_1_K__Fd); o0->u.C_K__Props.f_any = (&N_Coll__Tip__Coll__List_1_K__Fd); o0->u.C_K__Props.f_evs = (&N_Coll__Nil__K__Ev); o0; }); o0->u.C_K__State.f_next = p_nvars; o0; }); o0->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o0 = (struct E_Coll__List__K__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_g; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Goal); o0; }); o0; }); o0; }), f_Queue__empty__K__Branch(p_r), p_fuel, p_limit, (&N_Coll__Nil__K__State), ((int64_t)0)); res_; }); } -static struct E_Queue__Queue__K__Branch* f_Queue__empty__K__Branch(srs_cap* p_r) { return ({ struct E_Queue__Queue__K__Branch* o0 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o0->tag = 0; o0->u.C_Queue__Queue.f_front = (&N_Coll__Nil__K__Branch); o0->u.C_Queue__Queue.f_back = (&N_Coll__Nil__K__Branch); o0; }); } +static struct E_K__Run* f_K__loop(srs_cap* p_eff__Region, struct E_Coll__IMap__Coll__List_1_K__Rule* p_ix, struct E_Coll__Option__K__Branch* p_cur, struct E_Queue__Queue__K__Branch* p_q, int64_t p_fuel, int64_t p_limit, struct E_Coll__List__K__State* p_found, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_cur; s0->tag == 0 ? ({ ({ __auto_type s0 = f_Queue__pop__K__Branch(p_eff__Region, p_q); s0->tag == 0 ? ({ ({ struct E_K__Run* o0 = (struct E_K__Run*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Run, u) + sizeof(((struct E_K__Run*)0)->u.C_K__Run))); o0->tag = 0; o0->u.C_K__Run.f_answers = f_Coll__rev__K__State(p_eff__Region, p_found); o0->u.C_K__Run.f_status = (&N_K__Ended); o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Queue__Got.f_x; __auto_type v_rest_1 = s0->u.C_Queue__Got.f_rest; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = ({ struct E_Coll__Option__K__Branch* o2 = (struct E_Coll__Option__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Branch, u) + sizeof(((struct E_Coll__Option__K__Branch*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_b_0; o2; }); struct E_Queue__Queue__K__Branch* t3 = v_rest_1; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_eff__Region = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; }); }); }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_K__kstep(p_eff__Region, p_ix, v_b_0); s1->tag == 0 ? ({ __auto_type v_st_1 = s1->u.C_K__Done.f_st; (((p_n + ((int64_t)1)) >= p_limit) ? ({ struct E_K__Run* o2 = (struct E_K__Run*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Run, u) + sizeof(((struct E_K__Run*)0)->u.C_K__Run))); o2->tag = 0; o2->u.C_K__Run.f_answers = f_Coll__rev__K__State(p_eff__Region, ({ struct E_Coll__List__K__State* o2 = (struct E_Coll__List__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__State, u) + sizeof(((struct E_Coll__List__K__State*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_st_1; o2->u.C_Coll__Cons.f_t = p_found; o2; })); o2->u.C_K__Run.f_status = (&N_K__Limit); o2; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = (&N_Coll__None__K__Branch); struct E_Queue__Queue__K__Branch* t3 = p_q; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = ({ struct E_Coll__List__K__State* o2 = (struct E_Coll__List__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__State, u) + sizeof(((struct E_Coll__List__K__State*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_st_1; o2->u.C_Coll__Cons.f_t = p_found; o2; }); int64_t t7 = (p_n + ((int64_t)1)); p_eff__Region = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; })); }) : s1->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = (&N_Coll__None__K__Branch); struct E_Queue__Queue__K__Branch* t3 = p_q; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_eff__Region = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; }); }) : s1->tag == 2 ? ({ __auto_type v_b2_1 = s1->u.C_K__More.f_b; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = ({ struct E_Coll__Option__K__Branch* o2 = (struct E_Coll__Option__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Branch, u) + sizeof(((struct E_Coll__Option__K__Branch*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_b2_1; o2; }); struct E_Queue__Queue__K__Branch* t3 = p_q; int64_t t4 = p_fuel; int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_eff__Region = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; }); }) : ({ __auto_type v_bs_1 = s1->u.C_K__Split.f_bs; __auto_type v_cost_2 = s1->u.C_K__Split.f_cost; ((v_cost_2 > p_fuel) ? ({ struct E_K__Run* o3 = (struct E_K__Run*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Run, u) + sizeof(((struct E_K__Run*)0)->u.C_K__Run))); o3->tag = 0; o3->u.C_K__Run.f_answers = f_Coll__rev__K__State(p_eff__Region, p_found); o3->u.C_K__Run.f_status = (&N_K__NoFuel); o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__Coll__List_1_K__Rule* t1 = p_ix; struct E_Coll__Option__K__Branch* t2 = (&N_Coll__None__K__Branch); struct E_Queue__Queue__K__Branch* t3 = f_Queue__pushAll__K__Branch(p_eff__Region, p_q, v_bs_1); int64_t t4 = (p_fuel - v_cost_2); int64_t t5 = p_limit; struct E_Coll__List__K__State* t6 = p_found; int64_t t7 = p_n; p_eff__Region = t0; p_ix = t1; p_cur = t2; p_q = t3; p_fuel = t4; p_limit = t5; p_found = t6; p_n = t7; goto srs_tail; (struct E_K__Run*){0}; })); }); }); }); }); } +static struct E_Queue__Popped__K__Branch* f_Queue__pop__K__Branch(srs_cap* p_eff__Region, struct E_Queue__Queue__K__Branch* p_q) { return ({ __auto_type res_ = ({ __auto_type s0 = p_q; ({ __auto_type v_f_0 = s0->u.C_Queue__Queue.f_front; __auto_type v_b_1 = s0->u.C_Queue__Queue.f_back; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_t_3 = s2->u.C_Coll__Cons.f_t; ({ struct E_Queue__Popped__K__Branch* o4 = (struct E_Queue__Popped__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Queue__Popped__K__Branch, u) + sizeof(((struct E_Queue__Popped__K__Branch*)0)->u.C_Queue__Got))); o4->tag = 1; o4->u.C_Queue__Got.f_x = v_x_2; o4->u.C_Queue__Got.f_rest = ({ struct E_Queue__Queue__K__Branch* o4 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o4->tag = 0; o4->u.C_Queue__Queue.f_front = v_t_3; o4->u.C_Queue__Queue.f_back = v_b_1; o4; }); o4; }); }) : ({ ({ __auto_type s2 = f_Coll__rev__K__Branch(p_eff__Region, v_b_1); s2->tag == 0 ? ({ (&N_Queue__Empty__K__Branch); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_t_3 = s2->u.C_Coll__Cons.f_t; ({ struct E_Queue__Popped__K__Branch* o4 = (struct E_Queue__Popped__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Queue__Popped__K__Branch, u) + sizeof(((struct E_Queue__Popped__K__Branch*)0)->u.C_Queue__Got))); o4->tag = 1; o4->u.C_Queue__Got.f_x = v_x_2; o4->u.C_Queue__Got.f_rest = ({ struct E_Queue__Queue__K__Branch* o4 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o4->tag = 0; o4->u.C_Queue__Queue.f_front = v_t_3; o4->u.C_Queue__Queue.f_back = (&N_Coll__Nil__K__Branch); o4; }); o4; }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__State* f_Coll__rev__K__State(srs_cap* p_eff__Region, struct E_Coll__List__K__State* p_xs) { return f_Coll__revOnto__K__State(p_eff__Region, p_xs, (&N_Coll__Nil__K__State)); } +static struct E_Coll__List__K__State* f_Coll__revOnto__K__State(srs_cap* p_eff__Region, struct E_Coll__List__K__State* p_xs, struct E_Coll__List__K__State* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__K__State* t1 = v_t_1; struct E_Coll__List__K__State* t2 = ({ struct E_Coll__List__K__State* o2 = (struct E_Coll__List__K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__State, u) + sizeof(((struct E_Coll__List__K__State*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__K__State*){0}; }); }); }); } +static struct E_Queue__Queue__K__Branch* f_Queue__pushAll__K__Branch(srs_cap* p_eff__Region, struct E_Queue__Queue__K__Branch* p_q, struct E_Coll__List__K__Branch* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_q; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Queue__Queue__K__Branch* t1 = f_Queue__push__K__Branch(p_eff__Region, p_q, v_x_0); struct E_Coll__List__K__Branch* t2 = v_t_1; p_eff__Region = t0; p_q = t1; p_xs = t2; goto srs_tail; (struct E_Queue__Queue__K__Branch*){0}; }); }); }); } +static struct E_Queue__Queue__K__Branch* f_Queue__push__K__Branch(srs_cap* p_eff__Region, struct E_Queue__Queue__K__Branch* p_q, struct E_K__Branch* p_x) { return ({ __auto_type res_ = ({ __auto_type s0 = p_q; ({ __auto_type v_f_0 = s0->u.C_Queue__Queue.f_front; __auto_type v_b_1 = s0->u.C_Queue__Queue.f_back; ({ __auto_type res_ = ({ struct E_Queue__Queue__K__Branch* o2 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o2->tag = 0; o2->u.C_Queue__Queue.f_front = v_f_0; o2->u.C_Queue__Queue.f_back = ({ struct E_Coll__List__K__Branch* o2 = (struct E_Coll__List__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Branch, u) + sizeof(((struct E_Coll__List__K__Branch*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = p_x; o2->u.C_Coll__Cons.f_t = v_b_1; o2; }); o2; }); res_; }); }); }); res_; }); } +static struct E_K__Run* f_K__solve(srs_cap* p_eff__Region, struct E_Coll__List__K__Rule* p_rules, struct E_K__Goal* p_g, int64_t p_nvars, int64_t p_fuel, int64_t p_limit) { return ({ __auto_type res_ = f_K__loop(p_eff__Region, f_K__index(p_eff__Region, p_rules), ({ struct E_Coll__Option__K__Branch* o0 = (struct E_Coll__Option__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Branch, u) + sizeof(((struct E_Coll__Option__K__Branch*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_K__Branch* o0 = (struct E_K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Branch, u) + sizeof(((struct E_K__Branch*)0)->u.C_K__Branch))); o0->tag = 0; o0->u.C_K__Branch.f_st = ({ struct E_K__State* o0 = (struct E_K__State*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__State, u) + sizeof(((struct E_K__State*)0)->u.C_K__State))); o0->tag = 0; o0->u.C_K__State.f_s = (&N_Coll__Tip__K__Term); o0->u.C_K__State.f_neq = (&N_Coll__Nil__K__Neq); o0->u.C_K__State.f_dom = (&N_Coll__Tip__K__Dom); o0->u.C_K__State.f_fd = ({ struct E_K__Props* o0 = (struct E_K__Props*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Props, u) + sizeof(((struct E_K__Props*)0)->u.C_K__Props))); o0->tag = 0; o0->u.C_K__Props.f_fix = (&N_Coll__Tip__Coll__List_1_K__Fd); o0->u.C_K__Props.f_any = (&N_Coll__Tip__Coll__List_1_K__Fd); o0->u.C_K__Props.f_evs = (&N_Coll__Nil__K__Ev); o0; }); o0->u.C_K__State.f_next = p_nvars; o0; }); o0->u.C_K__Branch.f_gs = ({ struct E_Coll__List__K__Goal* o0 = (struct E_Coll__List__K__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Goal, u) + sizeof(((struct E_Coll__List__K__Goal*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_g; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__K__Goal); o0; }); o0; }); o0; }), f_Queue__empty__K__Branch(p_eff__Region), p_fuel, p_limit, (&N_Coll__Nil__K__State), ((int64_t)0)); res_; }); } +static struct E_Queue__Queue__K__Branch* f_Queue__empty__K__Branch(srs_cap* p_eff__Region) { return ({ struct E_Queue__Queue__K__Branch* o0 = (struct E_Queue__Queue__K__Branch*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Queue__Queue__K__Branch, u) + sizeof(((struct E_Queue__Queue__K__Branch*)0)->u.C_Queue__Queue))); o0->tag = 0; o0->u.C_Queue__Queue.f_front = (&N_Coll__Nil__K__Branch); o0->u.C_Queue__Queue.f_back = (&N_Coll__Nil__K__Branch); o0; }); } static bool f_Lex__isAlpha(int64_t p_c) { return ((((p_c >= ((int64_t)97)) && (p_c <= ((int64_t)122))) || ((p_c >= ((int64_t)65)) && (p_c <= ((int64_t)90)))) || (p_c == ((int64_t)95))); } static bool f_Lex__isDigit(int64_t p_c) { return ((p_c >= ((int64_t)48)) && (p_c <= ((int64_t)57))); } static bool f_Lex__isPunct(int64_t p_c) { return ({ __auto_type res_ = ((((((((((((((((((((p_c == ((int64_t)40)) || (p_c == ((int64_t)41))) || (p_c == ((int64_t)91))) || (p_c == ((int64_t)93))) || (p_c == ((int64_t)123))) || (p_c == ((int64_t)125))) || (p_c == ((int64_t)44))) || (p_c == ((int64_t)58))) || (p_c == ((int64_t)61))) || (p_c == ((int64_t)43))) || (p_c == ((int64_t)45))) || (p_c == ((int64_t)42))) || (p_c == ((int64_t)47))) || (p_c == ((int64_t)37))) || (p_c == ((int64_t)60))) || (p_c == ((int64_t)62))) || (p_c == ((int64_t)33))) || (p_c == ((int64_t)46))) || (p_c == ((int64_t)94))) || (p_c == ((int64_t)64))); res_; }); } @@ -4553,18 +4553,18 @@ static int64_t f_Lex__digitsEnd(srs_str p_src, int64_t p_i) { srs_tail: return ( static int64_t f_Lex__litEnd(srs_str p_src, int64_t p_i, int64_t p_n, int64_t p_q) { srs_tail: return ({ __auto_type res_ = ((p_i >= p_n) ? p_i : (((Str__at(p_src, p_i) == p_q) || (Str__at(p_src, p_i) == ((int64_t)10))) ? p_i : ((Str__at(p_src, p_i) == ((int64_t)92)) ? ({ srs_str t0 = p_src; int64_t t1 = (p_i + ((int64_t)2)); int64_t t2 = p_n; int64_t t3 = p_q; p_src = t0; p_i = t1; p_n = t2; p_q = t3; goto srs_tail; (int64_t){0}; }) : ({ srs_str t0 = p_src; int64_t t1 = (p_i + ((int64_t)1)); int64_t t2 = p_n; int64_t t3 = p_q; p_src = t0; p_i = t1; p_n = t2; p_q = t3; goto srs_tail; (int64_t){0}; })))); res_; }); } static int64_t f_Lex__lineEnd(srs_str p_src, int64_t p_i, int64_t p_n) { srs_tail: return (((p_i < p_n) && (Str__at(p_src, p_i) != ((int64_t)10))) ? ({ srs_str t0 = p_src; int64_t t1 = (p_i + ((int64_t)1)); int64_t t2 = p_n; p_src = t0; p_i = t1; p_n = t2; goto srs_tail; (int64_t){0}; }) : p_i); } static int64_t f_Lex__top(struct E_Coll__List__I64* p_ind) { return ({ __auto_type s0 = p_ind; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; v_c_0; }); }); } -static struct E_Lex__Result* f_Lex__lex(srs_cap* p_r, srs_str p_src) { return f_Lex__lexFrom(p_r, p_src, ((int64_t)1)); } -static struct E_Lex__Result* f_Lex__lexFrom(srs_cap* p_r, srs_str p_src, int64_t p_line) { return f_Lex__go(p_r, p_src, Str__len(p_src), ((int64_t)0), p_line, ((int64_t)0), true, ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ((int64_t)0); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }), (&N_Coll__Nil__Lex__Tok)); } -static struct E_Lex__Result* f_Lex__go(srs_cap* p_r, srs_str p_src, int64_t p_n, int64_t p_i, int64_t p_line, int64_t p_depth, bool p_bol, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { srs_tail: return ({ __auto_type res_ = ((p_i >= p_n) ? f_Lex__finish(p_r, p_line, p_ind, p_out) : ((p_bol && (p_depth == ((int64_t)0))) ? ({ int64_t v_j_0 = f_Lex__spaces(p_src, p_i); int64_t v_col_1 = (v_j_0 - p_i); int64_t v_c_2 = Str__at(p_src, v_j_0); __auto_type res_ = ((v_c_2 == ((int64_t)9)) ? ({ struct E_Lex__Result* o3 = (struct E_Lex__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o3->tag = 1; o3->u.C_Lex__Bad.f_line = p_line; o3->u.C_Lex__Bad.f_why = (&N_Lex__Tab); o3; }) : ((((v_c_2 == (-((int64_t)1))) || (v_c_2 == ((int64_t)10))) || ((v_c_2 == ((int64_t)47)) && (Str__at(p_src, (v_j_0 + ((int64_t)1))) == ((int64_t)47)))) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = v_j_0; int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = false; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = p_out; p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : ((v_col_1 > f_Lex__top(p_ind)) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = v_j_0; int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = false; struct E_Coll__List__I64* t7 = ({ struct E_Coll__List__I64* o3 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_col_1; o3->u.C_Coll__Cons.f_t = p_ind; o3; }); struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o3 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o3 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TIndent))); o3->tag = 6; o3->u.C_Lex__TIndent.f_line = p_line; o3; }); o3->u.C_Coll__Cons.f_t = p_out; o3; }); p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : f_Lex__dedent(p_r, p_src, p_n, v_j_0, p_line, v_col_1, p_ind, p_out)))); res_; }) : ({ int64_t v_c_0 = Str__at(p_src, p_i); __auto_type res_ = ((v_c_0 == ((int64_t)10)) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = (p_line + ((int64_t)1)); int64_t t5 = p_depth; bool t6 = true; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = (((p_depth == ((int64_t)0)) && (!f_Lex__layoutLast(p_out))) ? ({ struct E_Coll__List__Lex__Tok* o1 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o1 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TNl))); o1->tag = 5; o1->u.C_Lex__TNl.f_line = p_line; o1; }); o1->u.C_Coll__Cons.f_t = p_out; o1; }) : p_out); p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (((v_c_0 == ((int64_t)32)) || (v_c_0 == ((int64_t)13))) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = p_out; p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (((v_c_0 == ((int64_t)47)) && (Str__at(p_src, (p_i + ((int64_t)1))) == ((int64_t)47))) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = f_Lex__lineEnd(p_src, p_i, p_n); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = p_out; p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (f_Lex__isAlpha(v_c_0) ? ({ int64_t v_e0_1 = f_Lex__word(p_src, p_i); int64_t v_e_2 = (((v_c_0 >= ((int64_t)65)) && (v_c_0 <= ((int64_t)90))) ? f_Lex__dotted(p_src, v_e0_1) : v_e0_1); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = v_e_2; int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o3 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o3 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TIdent))); o3->tag = 0; o3->u.C_Lex__TIdent.f_s = Str__slice(p_src, p_i, v_e_2); o3->u.C_Lex__TIdent.f_line = p_line; o3; }); o3->u.C_Coll__Cons.f_t = p_out; o3; }); p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }); res_; }) : (f_Lex__isDigit(v_c_0) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = f_Lex__digitsEnd(p_src, p_i); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o1 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o1 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TInt))); o1->tag = 1; o1->u.C_Lex__TInt.f_v = f_Lex__digits(p_src, p_i, ((int64_t)0)); o1->u.C_Lex__TInt.f_line = p_line; o1; }); o1->u.C_Coll__Cons.f_t = p_out; o1; }); p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (((v_c_0 == ((int64_t)34)) || (v_c_0 == ((int64_t)39))) ? ({ int64_t v_e_1 = f_Lex__litEnd(p_src, (p_i + ((int64_t)1)), p_n, v_c_0); __auto_type res_ = ((Str__at(p_src, v_e_1) != v_c_0) ? ({ struct E_Lex__Result* o2 = (struct E_Lex__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o2->tag = 1; o2->u.C_Lex__Bad.f_line = p_line; o2->u.C_Lex__Bad.f_why = (&N_Lex__Unterminated); o2; }) : ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (v_e_1 + ((int64_t)1)); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ((v_c_0 == ((int64_t)34)) ? ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TStr))); o2->tag = 2; o2->u.C_Lex__TStr.f_s = Str__slice(p_src, (p_i + ((int64_t)1)), v_e_1); o2->u.C_Lex__TStr.f_line = p_line; o2; }) : ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TChar))); o2->tag = 3; o2->u.C_Lex__TChar.f_s = Str__slice(p_src, (p_i + ((int64_t)1)), v_e_1); o2->u.C_Lex__TChar.f_line = p_line; o2; })); o2->u.C_Coll__Cons.f_t = p_out; o2; }); p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; })); res_; }) : ({ int64_t v_w_1 = (f_Lex__isTwo(v_c_0, Str__at(p_src, (p_i + ((int64_t)1)))) ? ((int64_t)2) : ((int64_t)1)); __auto_type res_ = (((v_w_1 == ((int64_t)1)) && (!f_Lex__isPunct(v_c_0))) ? ({ struct E_Lex__Result* o2 = (struct E_Lex__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o2->tag = 1; o2->u.C_Lex__Bad.f_line = p_line; o2->u.C_Lex__Bad.f_why = (&N_Lex__BadChar); o2; }) : ({ int64_t v_d_2 = (((v_c_0 == ((int64_t)40)) || (v_c_0 == ((int64_t)91))) ? (p_depth + ((int64_t)1)) : ((((v_c_0 == ((int64_t)41)) || (v_c_0 == ((int64_t)93))) && (p_depth > ((int64_t)0))) ? (p_depth - ((int64_t)1)) : p_depth)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (p_i + v_w_1); int64_t t4 = p_line; int64_t t5 = v_d_2; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o3 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o3 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TOp))); o3->tag = 4; o3->u.C_Lex__TOp.f_s = Str__slice(p_src, p_i, (p_i + v_w_1)); o3->u.C_Lex__TOp.f_line = p_line; o3; }); o3->u.C_Coll__Cons.f_t = p_out; o3; }); p_r = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }); res_; })); res_; }))))))); res_; }))); res_; }); } -static struct E_Lex__Result* f_Lex__dedent(srs_cap* p_r, srs_str p_src, int64_t p_n, int64_t p_j, int64_t p_line, int64_t p_col, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { srs_tail: return ({ __auto_type s0 = p_ind; s0->tag == 0 ? ({ ({ struct E_Lex__Result* o0 = (struct E_Lex__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o0->tag = 1; o0->u.C_Lex__Bad.f_line = p_line; o0->u.C_Lex__Bad.f_why = (&N_Lex__BadDedent); o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ((p_col < v_t_0) ? ({ srs_cap* t0 = p_r; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = p_j; int64_t t4 = p_line; int64_t t5 = p_col; struct E_Coll__List__I64* t6 = v_rest_1; struct E_Coll__List__Lex__Tok* t7 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TDedent))); o2->tag = 7; o2->u.C_Lex__TDedent.f_line = p_line; o2; }); o2->u.C_Coll__Cons.f_t = p_out; o2; }); p_r = t0; p_src = t1; p_n = t2; p_j = t3; p_line = t4; p_col = t5; p_ind = t6; p_out = t7; goto srs_tail; (struct E_Lex__Result*){0}; }) : ((p_col == v_t_0) ? f_Lex__go(p_r, p_src, p_n, p_j, p_line, ((int64_t)0), false, p_ind, p_out) : ({ struct E_Lex__Result* o2 = (struct E_Lex__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o2->tag = 1; o2->u.C_Lex__Bad.f_line = p_line; o2->u.C_Lex__Bad.f_why = (&N_Lex__BadDedent); o2; }))); res_; }); }); }); } -static struct E_Lex__Result* f_Lex__finish(srs_cap* p_r, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { return ({ struct E_Coll__List__Lex__Tok* v_out1_0 = ({ __auto_type s0 = p_out; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; ({ __auto_type s1 = v_t_0; s1->tag == 5 ? ({ p_out; }) : s1->tag == 7 ? ({ p_out; }) : ({ ({ struct E_Coll__List__Lex__Tok* o1 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o1 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TNl))); o1->tag = 5; o1->u.C_Lex__TNl.f_line = p_line; o1; }); o1->u.C_Coll__Cons.f_t = p_out; o1; }); }); }); }); }); __auto_type res_ = ({ struct E_Lex__Result* o1 = (struct E_Lex__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Toks))); o1->tag = 0; o1->u.C_Lex__Toks.f_ts = f_Lex__closeAll(p_r, p_line, p_ind, v_out1_0); o1; }); res_; }); } -static struct E_Coll__List__Lex__Tok* f_Lex__closeAll(srs_cap* p_r, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { srs_tail: return ({ __auto_type s0 = p_ind; s0->tag == 0 ? ({ f_Coll__rev__Lex__Tok(p_r, ({ struct E_Coll__List__Lex__Tok* o0 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o0 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TEof))); o0->tag = 8; o0->u.C_Lex__TEof.f_line = p_line; o0; }); o0->u.C_Coll__Cons.f_t = p_out; o0; })); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((v_t_0 > ((int64_t)0)) ? ({ srs_cap* t0 = p_r; int64_t t1 = p_line; struct E_Coll__List__I64* t2 = v_rest_1; struct E_Coll__List__Lex__Tok* t3 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TDedent))); o2->tag = 7; o2->u.C_Lex__TDedent.f_line = p_line; o2; }); o2->u.C_Coll__Cons.f_t = p_out; o2; }); p_r = t0; p_line = t1; p_ind = t2; p_out = t3; goto srs_tail; (struct E_Coll__List__Lex__Tok*){0}; }) : f_Coll__rev__Lex__Tok(p_r, ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TEof))); o2->tag = 8; o2->u.C_Lex__TEof.f_line = p_line; o2; }); o2->u.C_Coll__Cons.f_t = p_out; o2; }))); }); }); } -static struct E_Coll__List__Lex__Tok* f_Coll__rev__Lex__Tok(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_xs) { return f_Coll__revOnto__Lex__Tok(p_r, p_xs, (&N_Coll__Nil__Lex__Tok)); } -static struct E_Coll__List__Lex__Tok* f_Coll__revOnto__Lex__Tok(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_xs, struct E_Coll__List__Lex__Tok* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t_1; struct E_Coll__List__Lex__Tok* t2 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Lex__Tok*){0}; }); }); }); } -static struct E_K__Term* f_Mono__ground(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t) { return f_Mono__apply(p_r, p_sub, f_K__reify(p_r, p_s, p_t)); } -static struct E_K__Term* f_Mono__apply(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ __auto_type s2 = v_args_1; s2->tag == 0 ? ({ ({ __auto_type s2 = f_Ty__lookup(p_r, p_sub, v_n_0); s2->tag == 1 ? ({ __auto_type v_a_2 = s2->u.C_Coll__Some.f_v; v_a_2; }) : ({ p_t; }); }); }) : ({ ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_n_0; o2->u.C_K__Con.f_args = f_Mono__applyAll(p_r, p_sub, v_args_1, (&N_Coll__Nil__K__Term)); o2; }); }); }); }) : ({ p_t; }); }); } -static struct E_Coll__List__K__Term* f_Mono__applyAll(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Bind* t1 = p_sub; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Mono__apply(p_r, p_sub, v_t_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_sub = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } -static struct E_Coll__List__K__Term* f_Mono__groundAll(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__K__Term* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Mono__ground(p_r, p_s, p_sub, v_t_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_s = t1; p_sub = t2; p_ts = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_Lex__Result* f_Lex__lex(srs_cap* p_eff__Region, srs_str p_src) { return f_Lex__lexFrom(p_eff__Region, p_src, ((int64_t)1)); } +static struct E_Lex__Result* f_Lex__lexFrom(srs_cap* p_eff__Region, srs_str p_src, int64_t p_line) { return f_Lex__go(p_eff__Region, p_src, Str__len(p_src), ((int64_t)0), p_line, ((int64_t)0), true, ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ((int64_t)0); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }), (&N_Coll__Nil__Lex__Tok)); } +static struct E_Lex__Result* f_Lex__go(srs_cap* p_eff__Region, srs_str p_src, int64_t p_n, int64_t p_i, int64_t p_line, int64_t p_depth, bool p_bol, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { srs_tail: return ({ __auto_type res_ = ((p_i >= p_n) ? f_Lex__finish(p_eff__Region, p_line, p_ind, p_out) : ((p_bol && (p_depth == ((int64_t)0))) ? ({ int64_t v_j_0 = f_Lex__spaces(p_src, p_i); int64_t v_col_1 = (v_j_0 - p_i); int64_t v_c_2 = Str__at(p_src, v_j_0); __auto_type res_ = ((v_c_2 == ((int64_t)9)) ? ({ struct E_Lex__Result* o3 = (struct E_Lex__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o3->tag = 1; o3->u.C_Lex__Bad.f_line = p_line; o3->u.C_Lex__Bad.f_why = (&N_Lex__Tab); o3; }) : ((((v_c_2 == (-((int64_t)1))) || (v_c_2 == ((int64_t)10))) || ((v_c_2 == ((int64_t)47)) && (Str__at(p_src, (v_j_0 + ((int64_t)1))) == ((int64_t)47)))) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = v_j_0; int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = false; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = p_out; p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : ((v_col_1 > f_Lex__top(p_ind)) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = v_j_0; int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = false; struct E_Coll__List__I64* t7 = ({ struct E_Coll__List__I64* o3 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_col_1; o3->u.C_Coll__Cons.f_t = p_ind; o3; }); struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o3 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o3 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TIndent))); o3->tag = 6; o3->u.C_Lex__TIndent.f_line = p_line; o3; }); o3->u.C_Coll__Cons.f_t = p_out; o3; }); p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : f_Lex__dedent(p_eff__Region, p_src, p_n, v_j_0, p_line, v_col_1, p_ind, p_out)))); res_; }) : ({ int64_t v_c_0 = Str__at(p_src, p_i); __auto_type res_ = ((v_c_0 == ((int64_t)10)) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = (p_line + ((int64_t)1)); int64_t t5 = p_depth; bool t6 = true; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = (((p_depth == ((int64_t)0)) && (!f_Lex__layoutLast(p_out))) ? ({ struct E_Coll__List__Lex__Tok* o1 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o1 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TNl))); o1->tag = 5; o1->u.C_Lex__TNl.f_line = p_line; o1; }); o1->u.C_Coll__Cons.f_t = p_out; o1; }) : p_out); p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (((v_c_0 == ((int64_t)32)) || (v_c_0 == ((int64_t)13))) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = p_out; p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (((v_c_0 == ((int64_t)47)) && (Str__at(p_src, (p_i + ((int64_t)1))) == ((int64_t)47))) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = f_Lex__lineEnd(p_src, p_i, p_n); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = p_out; p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (f_Lex__isAlpha(v_c_0) ? ({ int64_t v_e0_1 = f_Lex__word(p_src, p_i); int64_t v_e_2 = (((v_c_0 >= ((int64_t)65)) && (v_c_0 <= ((int64_t)90))) ? f_Lex__dotted(p_src, v_e0_1) : v_e0_1); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = v_e_2; int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o3 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o3 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TIdent))); o3->tag = 0; o3->u.C_Lex__TIdent.f_s = Str__slice(p_src, p_i, v_e_2); o3->u.C_Lex__TIdent.f_line = p_line; o3; }); o3->u.C_Coll__Cons.f_t = p_out; o3; }); p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }); res_; }) : (f_Lex__isDigit(v_c_0) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = f_Lex__digitsEnd(p_src, p_i); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o1 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o1 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TInt))); o1->tag = 1; o1->u.C_Lex__TInt.f_v = f_Lex__digits(p_src, p_i, ((int64_t)0)); o1->u.C_Lex__TInt.f_line = p_line; o1; }); o1->u.C_Coll__Cons.f_t = p_out; o1; }); p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }) : (((v_c_0 == ((int64_t)34)) || (v_c_0 == ((int64_t)39))) ? ({ int64_t v_e_1 = f_Lex__litEnd(p_src, (p_i + ((int64_t)1)), p_n, v_c_0); __auto_type res_ = ((Str__at(p_src, v_e_1) != v_c_0) ? ({ struct E_Lex__Result* o2 = (struct E_Lex__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o2->tag = 1; o2->u.C_Lex__Bad.f_line = p_line; o2->u.C_Lex__Bad.f_why = (&N_Lex__Unterminated); o2; }) : ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (v_e_1 + ((int64_t)1)); int64_t t4 = p_line; int64_t t5 = p_depth; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ((v_c_0 == ((int64_t)34)) ? ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TStr))); o2->tag = 2; o2->u.C_Lex__TStr.f_s = Str__slice(p_src, (p_i + ((int64_t)1)), v_e_1); o2->u.C_Lex__TStr.f_line = p_line; o2; }) : ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TChar))); o2->tag = 3; o2->u.C_Lex__TChar.f_s = Str__slice(p_src, (p_i + ((int64_t)1)), v_e_1); o2->u.C_Lex__TChar.f_line = p_line; o2; })); o2->u.C_Coll__Cons.f_t = p_out; o2; }); p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; })); res_; }) : ({ int64_t v_w_1 = (f_Lex__isTwo(v_c_0, Str__at(p_src, (p_i + ((int64_t)1)))) ? ((int64_t)2) : ((int64_t)1)); __auto_type res_ = (((v_w_1 == ((int64_t)1)) && (!f_Lex__isPunct(v_c_0))) ? ({ struct E_Lex__Result* o2 = (struct E_Lex__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o2->tag = 1; o2->u.C_Lex__Bad.f_line = p_line; o2->u.C_Lex__Bad.f_why = (&N_Lex__BadChar); o2; }) : ({ int64_t v_d_2 = (((v_c_0 == ((int64_t)40)) || (v_c_0 == ((int64_t)91))) ? (p_depth + ((int64_t)1)) : ((((v_c_0 == ((int64_t)41)) || (v_c_0 == ((int64_t)93))) && (p_depth > ((int64_t)0))) ? (p_depth - ((int64_t)1)) : p_depth)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = (p_i + v_w_1); int64_t t4 = p_line; int64_t t5 = v_d_2; bool t6 = p_bol; struct E_Coll__List__I64* t7 = p_ind; struct E_Coll__List__Lex__Tok* t8 = ({ struct E_Coll__List__Lex__Tok* o3 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o3 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TOp))); o3->tag = 4; o3->u.C_Lex__TOp.f_s = Str__slice(p_src, p_i, (p_i + v_w_1)); o3->u.C_Lex__TOp.f_line = p_line; o3; }); o3->u.C_Coll__Cons.f_t = p_out; o3; }); p_eff__Region = t0; p_src = t1; p_n = t2; p_i = t3; p_line = t4; p_depth = t5; p_bol = t6; p_ind = t7; p_out = t8; goto srs_tail; (struct E_Lex__Result*){0}; }); res_; })); res_; }))))))); res_; }))); res_; }); } +static struct E_Lex__Result* f_Lex__dedent(srs_cap* p_eff__Region, srs_str p_src, int64_t p_n, int64_t p_j, int64_t p_line, int64_t p_col, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { srs_tail: return ({ __auto_type s0 = p_ind; s0->tag == 0 ? ({ ({ struct E_Lex__Result* o0 = (struct E_Lex__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o0->tag = 1; o0->u.C_Lex__Bad.f_line = p_line; o0->u.C_Lex__Bad.f_why = (&N_Lex__BadDedent); o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ((p_col < v_t_0) ? ({ srs_cap* t0 = p_eff__Region; srs_str t1 = p_src; int64_t t2 = p_n; int64_t t3 = p_j; int64_t t4 = p_line; int64_t t5 = p_col; struct E_Coll__List__I64* t6 = v_rest_1; struct E_Coll__List__Lex__Tok* t7 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TDedent))); o2->tag = 7; o2->u.C_Lex__TDedent.f_line = p_line; o2; }); o2->u.C_Coll__Cons.f_t = p_out; o2; }); p_eff__Region = t0; p_src = t1; p_n = t2; p_j = t3; p_line = t4; p_col = t5; p_ind = t6; p_out = t7; goto srs_tail; (struct E_Lex__Result*){0}; }) : ((p_col == v_t_0) ? f_Lex__go(p_eff__Region, p_src, p_n, p_j, p_line, ((int64_t)0), false, p_ind, p_out) : ({ struct E_Lex__Result* o2 = (struct E_Lex__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Bad))); o2->tag = 1; o2->u.C_Lex__Bad.f_line = p_line; o2->u.C_Lex__Bad.f_why = (&N_Lex__BadDedent); o2; }))); res_; }); }); }); } +static struct E_Lex__Result* f_Lex__finish(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { return ({ struct E_Coll__List__Lex__Tok* v_out1_0 = ({ __auto_type s0 = p_out; s0->tag == 0 ? ({ p_out; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; ({ __auto_type s1 = v_t_0; s1->tag == 5 ? ({ p_out; }) : s1->tag == 7 ? ({ p_out; }) : ({ ({ struct E_Coll__List__Lex__Tok* o1 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o1 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TNl))); o1->tag = 5; o1->u.C_Lex__TNl.f_line = p_line; o1; }); o1->u.C_Coll__Cons.f_t = p_out; o1; }); }); }); }); }); __auto_type res_ = ({ struct E_Lex__Result* o1 = (struct E_Lex__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Result, u) + sizeof(((struct E_Lex__Result*)0)->u.C_Lex__Toks))); o1->tag = 0; o1->u.C_Lex__Toks.f_ts = f_Lex__closeAll(p_eff__Region, p_line, p_ind, v_out1_0); o1; }); res_; }); } +static struct E_Coll__List__Lex__Tok* f_Lex__closeAll(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__I64* p_ind, struct E_Coll__List__Lex__Tok* p_out) { srs_tail: return ({ __auto_type s0 = p_ind; s0->tag == 0 ? ({ f_Coll__rev__Lex__Tok(p_eff__Region, ({ struct E_Coll__List__Lex__Tok* o0 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o0 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TEof))); o0->tag = 8; o0->u.C_Lex__TEof.f_line = p_line; o0; }); o0->u.C_Coll__Cons.f_t = p_out; o0; })); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((v_t_0 > ((int64_t)0)) ? ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_line; struct E_Coll__List__I64* t2 = v_rest_1; struct E_Coll__List__Lex__Tok* t3 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TDedent))); o2->tag = 7; o2->u.C_Lex__TDedent.f_line = p_line; o2; }); o2->u.C_Coll__Cons.f_t = p_out; o2; }); p_eff__Region = t0; p_line = t1; p_ind = t2; p_out = t3; goto srs_tail; (struct E_Coll__List__Lex__Tok*){0}; }) : f_Coll__rev__Lex__Tok(p_eff__Region, ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Lex__Tok* o2 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TEof))); o2->tag = 8; o2->u.C_Lex__TEof.f_line = p_line; o2; }); o2->u.C_Coll__Cons.f_t = p_out; o2; }))); }); }); } +static struct E_Coll__List__Lex__Tok* f_Coll__rev__Lex__Tok(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_xs) { return f_Coll__revOnto__Lex__Tok(p_eff__Region, p_xs, (&N_Coll__Nil__Lex__Tok)); } +static struct E_Coll__List__Lex__Tok* f_Coll__revOnto__Lex__Tok(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_xs, struct E_Coll__List__Lex__Tok* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t_1; struct E_Coll__List__Lex__Tok* t2 = ({ struct E_Coll__List__Lex__Tok* o2 = (struct E_Coll__List__Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Lex__Tok, u) + sizeof(((struct E_Coll__List__Lex__Tok*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Lex__Tok*){0}; }); }); }); } +static struct E_K__Term* f_Mono__ground(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t) { return f_Mono__apply(p_eff__Region, p_sub, f_K__reify(p_eff__Region, p_s, p_t)); } +static struct E_K__Term* f_Mono__apply(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ __auto_type s2 = v_args_1; s2->tag == 0 ? ({ ({ __auto_type s2 = f_Ty__lookup(p_eff__Region, p_sub, v_n_0); s2->tag == 1 ? ({ __auto_type v_a_2 = s2->u.C_Coll__Some.f_v; v_a_2; }) : ({ p_t; }); }); }) : ({ ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_n_0; o2->u.C_K__Con.f_args = f_Mono__applyAll(p_eff__Region, p_sub, v_args_1, (&N_Coll__Nil__K__Term)); o2; }); }); }); }) : ({ p_t; }); }); } +static struct E_Coll__List__K__Term* f_Mono__applyAll(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Bind* t1 = p_sub; struct E_Coll__List__K__Term* t2 = v_rest_1; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Mono__apply(p_eff__Region, p_sub, v_t_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_sub = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_Coll__List__K__Term* f_Mono__groundAll(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__K__Term* t3 = v_rest_1; struct E_Coll__List__K__Term* t4 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Mono__ground(p_eff__Region, p_s, p_sub, v_t_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_s = t1; p_sub = t2; p_ts = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } static bool f_Mono__termEq(struct E_K__Term* p_a, struct E_K__Term* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_K__Var.f_n; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ __auto_type v_n_1 = s1->u.C_K__Var.f_n; (v_m_0 == v_n_1); }) : ({ false; }); }); }) : s0->tag == 2 ? ({ __auto_type v_m_0 = s0->u.C_K__Int.f_v; ({ __auto_type s1 = p_b; s1->tag == 2 ? ({ __auto_type v_n_1 = s1->u.C_K__Int.f_v; (v_m_0 == v_n_1); }) : ({ false; }); }); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_xs_1 = s0->u.C_K__Con.f_args; ({ __auto_type s2 = p_b; s2->tag == 1 ? ({ __auto_type v_g_2 = s2->u.C_K__Con.f_f; __auto_type v_ys_3 = s2->u.C_K__Con.f_args; (f_Sym__eq(v_f_0, v_g_2) && f_Mono__termsEq(v_xs_1, v_ys_3)); }) : ({ false; }); }); }); }); } static bool f_Mono__termsEq(struct E_Coll__List__K__Term* p_xs, struct E_Coll__List__K__Term* p_ys) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ true; }) : ({ false; }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_xt_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ false; }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; (f_Mono__termEq(v_x_0, v_y_2) ? ({ struct E_Coll__List__K__Term* t0 = v_xt_1; struct E_Coll__List__K__Term* t1 = v_yt_3; p_xs = t0; p_ys = t1; goto srs_tail; (bool){0}; }) : false); }); }); }); }); } static int64_t f_Mono__thash(struct E_K__Term* p_t, int64_t p_h) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_n_0 = s0->u.C_K__Var.f_n; ((((p_h * f_D__mult()) + (v_n_0 % f_D__modulus())) + f_D__modulus()) % f_D__modulus()); }) : s0->tag == 2 ? ({ __auto_type v_n_0 = s0->u.C_K__Int.f_v; ((((p_h * f_D__mult()) + (v_n_0 % f_D__modulus())) + f_D__modulus()) % f_D__modulus()); }) : ({ __auto_type v_f_0 = s0->u.C_K__Con.f_f; __auto_type v_xs_1 = s0->u.C_K__Con.f_args; f_Mono__thashAll(v_xs_1, (((p_h * f_D__mult()) + f_Sym__hash(v_f_0)) % f_D__modulus())); }); }); } @@ -4572,560 +4572,560 @@ static int64_t f_Mono__thashAll(struct E_Coll__List__K__Term* p_ts, int64_t p_h) static int64_t f_Mono__keyHash(struct E_Mono__Key* p_k) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Mono__Call.f_f; __auto_type v_ts_1 = s0->u.C_Mono__Call.f_targs; f_Mono__thashAll(v_ts_1, (f_Sym__hash(v_f_0) % f_D__modulus())); }) : ({ __auto_type v_t_0 = s0->u.C_Mono__Goal.f_t; f_Mono__thash(v_t_0, ((int64_t)1)); }); }); } static bool f_Mono__keyEq(struct E_Mono__Key* p_a, struct E_Mono__Key* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Mono__Call.f_f; __auto_type v_xs_1 = s0->u.C_Mono__Call.f_targs; ({ __auto_type s2 = p_b; s2->tag == 0 ? ({ __auto_type v_g_2 = s2->u.C_Mono__Call.f_f; __auto_type v_ys_3 = s2->u.C_Mono__Call.f_targs; (f_Sym__eq(v_f_0, v_g_2) && f_Mono__termsEq(v_xs_1, v_ys_3)); }) : ({ false; }); }); }) : ({ __auto_type v_t_0 = s0->u.C_Mono__Goal.f_t; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ false; }) : ({ __auto_type v_u_1 = s1->u.C_Mono__Goal.f_t; f_Mono__termEq(v_t_0, v_u_1); }); }); }); }); } static bool f_Mono__inBucket(struct E_Coll__List__Mono__Key* p_ks, struct E_Mono__Key* p_k) { srs_tail: return ({ __auto_type s0 = p_ks; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Mono__keyEq(v_x_0, p_k) ? true : ({ struct E_Coll__List__Mono__Key* t0 = v_rest_1; struct E_Mono__Key* t1 = p_k; p_ks = t0; p_k = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__List__Mono__Inst* f_Mono__run(srs_cap* p_r, struct E_Ty__Result* p_res) { return ({ __auto_type res_ = ({ __auto_type s0 = p_res; ({ __auto_type v_s_0 = s0->u.C_Ty__Result.f_s; __auto_type v_fs_1 = s0->u.C_Ty__Result.f_fns; __auto_type v_gvs_2 = s0->u.C_Ty__Result.f_gvs; ({ __auto_type res_ = f_Mono__loop(p_r, ({ struct E_Mono__Cx* o3 = (struct E_Mono__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Cx, u) + sizeof(((struct E_Mono__Cx*)0)->u.C_Mono__Cx))); o3->tag = 0; o3->u.C_Mono__Cx.f_s = v_s_0; o3->u.C_Mono__Cx.f_fs = f_Mono__fnMap(p_r, v_fs_1, f_Coll__sEmpty__El__Fn(p_r)); o3->u.C_Mono__Cx.f_gvs = v_gvs_2; o3; }), f_Mono__roots(p_r, v_fs_1, (&N_Coll__Nil__Mono__Inst)), (&N_Coll__BTip__Coll__List_1_Mono__Key), (&N_Coll__Nil__Mono__Inst)); res_; }); }); }); res_; }); } -static struct E_Coll__SMap__El__Fn* f_Mono__fnMap(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_n_2 = s2->u.C_El__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__SMap__El__Fn* t2 = f_Coll__sInsert__El__Fn(p_r, p_m, v_n_2, v_f_0); p_r = t0; p_fs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__El__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Mono__Inst* f_Mono__roots(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Mono__Inst* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ f_Coll__rev__Mono__Inst(p_r, p_acc); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_tps_2 = s2->u.C_El__Fn.f_tparams; ({ __auto_type res_ = ({ __auto_type s3 = v_tps_2; s3->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__List__Mono__Inst* t2 = ({ struct E_Coll__List__Mono__Inst* o3 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Mono__Inst* o3 = (struct E_Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o3->tag = 0; o3->u.C_Mono__Inst.f_f = v_f_0; o3->u.C_Mono__Inst.f_sub = (&N_Coll__Nil__Ty__Bind); o3->u.C_Mono__Inst.f_site = (&N_Mono__Top); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_fs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__List__Mono__Inst* t2 = p_acc; p_r = t0; p_fs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Mono__Inst* f_Coll__rev__Mono__Inst(srs_cap* p_r, struct E_Coll__List__Mono__Inst* p_xs) { return f_Coll__revOnto__Mono__Inst(p_r, p_xs, (&N_Coll__Nil__Mono__Inst)); } -static struct E_Coll__List__Mono__Inst* f_Coll__revOnto__Mono__Inst(srs_cap* p_r, struct E_Coll__List__Mono__Inst* p_xs, struct E_Coll__List__Mono__Inst* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Mono__Inst* t1 = v_t_1; struct E_Coll__List__Mono__Inst* t2 = ({ struct E_Coll__List__Mono__Inst* o2 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }); }); } -static struct E_Coll__List__Mono__Inst* f_Mono__loop(srs_cap* p_r, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made, struct E_Coll__List__Mono__Inst* p_out) { srs_tail: return ({ __auto_type s0 = p_todo; s0->tag == 0 ? ({ f_Coll__rev__Mono__Inst(p_r, p_out); }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_f_2 = s2->u.C_Mono__Inst.f_f; __auto_type v_sub_3 = s2->u.C_Mono__Inst.f_sub; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_s_4 = s4->u.C_Mono__Cx.f_s; ({ __auto_type res_ = ({ __auto_type s5 = v_f_2; ({ __auto_type v_body_5 = s5->u.C_El__Fn.f_body; ({ struct E_Coll__List__Mono__Key* v_ks_6 = ({ __auto_type s6 = v_body_5; s6->tag == 0 ? ({ __auto_type v_e_6 = s6->u.C_El__Def.f_e; f_Mono__calls(p_r, v_s_4, v_sub_3, v_e_6, (&N_Coll__Nil__Mono__Key)); }) : ({ (&N_Coll__Nil__Mono__Key); }); }); __auto_type res_ = ({ __auto_type s7 = f_Mono__enqueue(p_r, p_cx, v_ks_6, v_rest_1, p_made); ({ __auto_type v_todo2_7 = s7->u.C_Mono__Grow.f_todo; __auto_type v_made2_8 = s7->u.C_Mono__Grow.f_made; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Mono__Cx* t1 = p_cx; struct E_Coll__List__Mono__Inst* t2 = v_todo2_7; struct E_Coll__BTree__Coll__List_1_Mono__Key* t3 = v_made2_8; struct E_Coll__List__Mono__Inst* t4 = ({ struct E_Coll__List__Mono__Inst* o9 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = v_i_0; o9->u.C_Coll__Cons.f_t = p_out; o9; }); p_r = t0; p_cx = t1; p_todo = t2; p_made = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Mono__Grow* f_Mono__enqueue(srs_cap* p_r, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Key* p_ks, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made) { srs_tail: return ({ __auto_type s0 = p_ks; s0->tag == 0 ? ({ ({ struct E_Mono__Grow* o0 = (struct E_Mono__Grow*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Grow, u) + sizeof(((struct E_Mono__Grow*)0)->u.C_Mono__Grow))); o0->tag = 0; o0->u.C_Mono__Grow.f_todo = p_todo; o0->u.C_Mono__Grow.f_made = p_made; o0; }); }) : ({ __auto_type v_k_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ int64_t v_h_2 = f_Mono__keyHash(v_k_0); __auto_type res_ = (f_Mono__inBucket(f_Coll__bTGetOr__Coll__List_1_Mono__Key(p_made, v_h_2, (&N_Coll__Nil__Mono__Key)), v_k_0) ? ({ srs_cap* t0 = p_r; struct E_Mono__Cx* t1 = p_cx; struct E_Coll__List__Mono__Key* t2 = v_rest_1; struct E_Coll__List__Mono__Inst* t3 = p_todo; struct E_Coll__BTree__Coll__List_1_Mono__Key* t4 = p_made; p_r = t0; p_cx = t1; p_ks = t2; p_todo = t3; p_made = t4; goto srs_tail; (struct E_Mono__Grow*){0}; }) : ({ __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_fs_3 = s3->u.C_Mono__Cx.f_fs; __auto_type v_gvs_4 = s3->u.C_Mono__Cx.f_gvs; ({ struct E_Coll__List__Mono__Inst* v_todo2_5 = ({ __auto_type s5 = v_k_0; s5->tag == 0 ? ({ __auto_type v_name_5 = s5->u.C_Mono__Call.f_f; __auto_type v_targs_6 = s5->u.C_Mono__Call.f_targs; ({ __auto_type s7 = f_Coll__sLookup__El__Fn(p_r, v_fs_3, v_name_5); s7->tag == 0 ? ({ p_todo; }) : ({ __auto_type v_f_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_f_7; ({ __auto_type v_tps_8 = s8->u.C_El__Fn.f_tparams; ({ __auto_type res_ = ({ struct E_Coll__List__Mono__Inst* o9 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Mono__Inst* o9 = (struct E_Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o9->tag = 0; o9->u.C_Mono__Inst.f_f = v_f_7; o9->u.C_Mono__Inst.f_sub = f_Ty__zipBind(p_r, v_tps_8, v_targs_6, (&N_Coll__Nil__Ty__Bind)); o9->u.C_Mono__Inst.f_site = (&N_Mono__Top); o9; }); o9->u.C_Coll__Cons.f_t = p_todo; o9; }); res_; }); }); }); res_; }); }); }); }) : ({ __auto_type v_t_5 = s5->u.C_Mono__Goal.f_t; ({ __auto_type s6 = f_Mono__pick(p_r, v_gvs_4, v_t_5, (&N_Coll__None__Mono__Match)); s6->tag == 0 ? ({ p_todo; }) : ({ __auto_type v_m_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_m_6; ({ __auto_type v_g_7 = s7->u.C_Mono__Match.f_g; __auto_type v_sub_8 = s7->u.C_Mono__Match.f_sub; ({ __auto_type res_ = ({ __auto_type s9 = v_g_7; ({ __auto_type v_gfs_9 = s9->u.C_El__Given.f_fns; ({ __auto_type res_ = f_Mono__implInsts(p_r, v_gfs_9, v_sub_8, v_t_5, p_todo); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Mono__Cx* t1 = p_cx; struct E_Coll__List__Mono__Key* t2 = v_rest_1; struct E_Coll__List__Mono__Inst* t3 = v_todo2_5; struct E_Coll__BTree__Coll__List_1_Mono__Key* t4 = f_Coll__bPushT__Mono__Key(p_r, p_made, v_h_2, v_k_0); p_r = t0; p_cx = t1; p_ks = t2; p_todo = t3; p_made = t4; goto srs_tail; (struct E_Mono__Grow*){0}; }); res_; }); }); }); res_; })); res_; }); }); }); } +static struct E_Coll__List__Mono__Inst* f_Mono__run(srs_cap* p_eff__Region, struct E_Ty__Result* p_res) { return ({ __auto_type res_ = ({ __auto_type s0 = p_res; ({ __auto_type v_s_0 = s0->u.C_Ty__Result.f_s; __auto_type v_fs_1 = s0->u.C_Ty__Result.f_fns; __auto_type v_gvs_2 = s0->u.C_Ty__Result.f_gvs; ({ __auto_type res_ = f_Mono__loop(p_eff__Region, ({ struct E_Mono__Cx* o3 = (struct E_Mono__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Cx, u) + sizeof(((struct E_Mono__Cx*)0)->u.C_Mono__Cx))); o3->tag = 0; o3->u.C_Mono__Cx.f_s = v_s_0; o3->u.C_Mono__Cx.f_fs = f_Mono__fnMap(p_eff__Region, v_fs_1, f_Coll__sEmpty__El__Fn(p_eff__Region)); o3->u.C_Mono__Cx.f_gvs = v_gvs_2; o3; }), f_Mono__roots(p_eff__Region, v_fs_1, (&N_Coll__Nil__Mono__Inst)), (&N_Coll__BTip__Coll__List_1_Mono__Key), (&N_Coll__Nil__Mono__Inst)); res_; }); }); }); res_; }); } +static struct E_Coll__SMap__El__Fn* f_Mono__fnMap(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__SMap__El__Fn* p_m) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_n_2 = s2->u.C_El__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__SMap__El__Fn* t2 = f_Coll__sInsert__El__Fn(p_eff__Region, p_m, v_n_2, v_f_0); p_eff__Region = t0; p_fs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__El__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Mono__Inst* f_Mono__roots(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Mono__Inst* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ f_Coll__rev__Mono__Inst(p_eff__Region, p_acc); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_tps_2 = s2->u.C_El__Fn.f_tparams; ({ __auto_type res_ = ({ __auto_type s3 = v_tps_2; s3->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__List__Mono__Inst* t2 = ({ struct E_Coll__List__Mono__Inst* o3 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Mono__Inst* o3 = (struct E_Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o3->tag = 0; o3->u.C_Mono__Inst.f_f = v_f_0; o3->u.C_Mono__Inst.f_sub = (&N_Coll__Nil__Ty__Bind); o3->u.C_Mono__Inst.f_site = (&N_Mono__Top); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_fs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__List__Mono__Inst* t2 = p_acc; p_eff__Region = t0; p_fs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Mono__Inst* f_Coll__rev__Mono__Inst(srs_cap* p_eff__Region, struct E_Coll__List__Mono__Inst* p_xs) { return f_Coll__revOnto__Mono__Inst(p_eff__Region, p_xs, (&N_Coll__Nil__Mono__Inst)); } +static struct E_Coll__List__Mono__Inst* f_Coll__revOnto__Mono__Inst(srs_cap* p_eff__Region, struct E_Coll__List__Mono__Inst* p_xs, struct E_Coll__List__Mono__Inst* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Mono__Inst* t1 = v_t_1; struct E_Coll__List__Mono__Inst* t2 = ({ struct E_Coll__List__Mono__Inst* o2 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }); }); } +static struct E_Coll__List__Mono__Inst* f_Mono__loop(srs_cap* p_eff__Region, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made, struct E_Coll__List__Mono__Inst* p_out) { srs_tail: return ({ __auto_type s0 = p_todo; s0->tag == 0 ? ({ f_Coll__rev__Mono__Inst(p_eff__Region, p_out); }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_f_2 = s2->u.C_Mono__Inst.f_f; __auto_type v_sub_3 = s2->u.C_Mono__Inst.f_sub; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_s_4 = s4->u.C_Mono__Cx.f_s; ({ __auto_type res_ = ({ __auto_type s5 = v_f_2; ({ __auto_type v_body_5 = s5->u.C_El__Fn.f_body; ({ struct E_Coll__List__Mono__Key* v_ks_6 = ({ __auto_type s6 = v_body_5; s6->tag == 0 ? ({ __auto_type v_e_6 = s6->u.C_El__Def.f_e; f_Mono__calls(p_eff__Region, v_s_4, v_sub_3, v_e_6, (&N_Coll__Nil__Mono__Key)); }) : ({ (&N_Coll__Nil__Mono__Key); }); }); __auto_type res_ = ({ __auto_type s7 = f_Mono__enqueue(p_eff__Region, p_cx, v_ks_6, v_rest_1, p_made); ({ __auto_type v_todo2_7 = s7->u.C_Mono__Grow.f_todo; __auto_type v_made2_8 = s7->u.C_Mono__Grow.f_made; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Mono__Cx* t1 = p_cx; struct E_Coll__List__Mono__Inst* t2 = v_todo2_7; struct E_Coll__BTree__Coll__List_1_Mono__Key* t3 = v_made2_8; struct E_Coll__List__Mono__Inst* t4 = ({ struct E_Coll__List__Mono__Inst* o9 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = v_i_0; o9->u.C_Coll__Cons.f_t = p_out; o9; }); p_eff__Region = t0; p_cx = t1; p_todo = t2; p_made = t3; p_out = t4; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Mono__Grow* f_Mono__enqueue(srs_cap* p_eff__Region, struct E_Mono__Cx* p_cx, struct E_Coll__List__Mono__Key* p_ks, struct E_Coll__List__Mono__Inst* p_todo, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_made) { srs_tail: return ({ __auto_type s0 = p_ks; s0->tag == 0 ? ({ ({ struct E_Mono__Grow* o0 = (struct E_Mono__Grow*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Grow, u) + sizeof(((struct E_Mono__Grow*)0)->u.C_Mono__Grow))); o0->tag = 0; o0->u.C_Mono__Grow.f_todo = p_todo; o0->u.C_Mono__Grow.f_made = p_made; o0; }); }) : ({ __auto_type v_k_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ int64_t v_h_2 = f_Mono__keyHash(v_k_0); __auto_type res_ = (f_Mono__inBucket(f_Coll__bTGetOr__Coll__List_1_Mono__Key(p_made, v_h_2, (&N_Coll__Nil__Mono__Key)), v_k_0) ? ({ srs_cap* t0 = p_eff__Region; struct E_Mono__Cx* t1 = p_cx; struct E_Coll__List__Mono__Key* t2 = v_rest_1; struct E_Coll__List__Mono__Inst* t3 = p_todo; struct E_Coll__BTree__Coll__List_1_Mono__Key* t4 = p_made; p_eff__Region = t0; p_cx = t1; p_ks = t2; p_todo = t3; p_made = t4; goto srs_tail; (struct E_Mono__Grow*){0}; }) : ({ __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_fs_3 = s3->u.C_Mono__Cx.f_fs; __auto_type v_gvs_4 = s3->u.C_Mono__Cx.f_gvs; ({ struct E_Coll__List__Mono__Inst* v_todo2_5 = ({ __auto_type s5 = v_k_0; s5->tag == 0 ? ({ __auto_type v_name_5 = s5->u.C_Mono__Call.f_f; __auto_type v_targs_6 = s5->u.C_Mono__Call.f_targs; ({ __auto_type s7 = f_Coll__sLookup__El__Fn(p_eff__Region, v_fs_3, v_name_5); s7->tag == 0 ? ({ p_todo; }) : ({ __auto_type v_f_7 = s7->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s8 = v_f_7; ({ __auto_type v_tps_8 = s8->u.C_El__Fn.f_tparams; ({ __auto_type res_ = ({ struct E_Coll__List__Mono__Inst* o9 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Mono__Inst* o9 = (struct E_Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o9->tag = 0; o9->u.C_Mono__Inst.f_f = v_f_7; o9->u.C_Mono__Inst.f_sub = f_Ty__zipBind(p_eff__Region, v_tps_8, v_targs_6, (&N_Coll__Nil__Ty__Bind)); o9->u.C_Mono__Inst.f_site = (&N_Mono__Top); o9; }); o9->u.C_Coll__Cons.f_t = p_todo; o9; }); res_; }); }); }); res_; }); }); }); }) : ({ __auto_type v_t_5 = s5->u.C_Mono__Goal.f_t; ({ __auto_type s6 = f_Mono__pick(p_eff__Region, v_gvs_4, v_t_5, (&N_Coll__None__Mono__Match)); s6->tag == 0 ? ({ p_todo; }) : ({ __auto_type v_m_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_m_6; ({ __auto_type v_g_7 = s7->u.C_Mono__Match.f_g; __auto_type v_sub_8 = s7->u.C_Mono__Match.f_sub; ({ __auto_type res_ = ({ __auto_type s9 = v_g_7; ({ __auto_type v_gfs_9 = s9->u.C_El__Given.f_fns; ({ __auto_type res_ = f_Mono__implInsts(p_eff__Region, v_gfs_9, v_sub_8, v_t_5, p_todo); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Mono__Cx* t1 = p_cx; struct E_Coll__List__Mono__Key* t2 = v_rest_1; struct E_Coll__List__Mono__Inst* t3 = v_todo2_5; struct E_Coll__BTree__Coll__List_1_Mono__Key* t4 = f_Coll__bPushT__Mono__Key(p_eff__Region, p_made, v_h_2, v_k_0); p_eff__Region = t0; p_cx = t1; p_ks = t2; p_todo = t3; p_made = t4; goto srs_tail; (struct E_Mono__Grow*){0}; }); res_; }); }); }); res_; })); res_; }); }); }); } static struct E_Coll__List__Mono__Key* f_Coll__bTGetOr__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_d) { return f_Coll__bValOr__Coll__List_1_Mono__Key(f_Coll__bFind__Coll__List_1_Mono__Key(p_t, p_k), p_k, p_d); } static struct E_Coll__List__Mono__Key* f_Coll__bValOr__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_n, int64_t p_k, struct E_Coll__List__Mono__Key* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bFind__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Mono__Key*){0}; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bPushT__Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Mono__Key* p_x) { return ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* v_n_0 = f_Coll__bFind__Coll__List_1_Mono__Key(p_t, p_k); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Mono__Key(v_n_0) ? f_Coll__bRep__Coll__List_1_Mono__Key(p_r, p_t, p_k, ({ struct E_Coll__List__Mono__Key* o1 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = f_Coll__bValOr__Coll__List_1_Mono__Key(v_n_0, p_k, (&N_Coll__Nil__Mono__Key)); o1; })) : f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_t, p_k, ({ struct E_Coll__List__Mono__Key* o1 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Mono__Key); o1; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bPushT__Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Mono__Key* p_x) { return ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* v_n_0 = f_Coll__bFind__Coll__List_1_Mono__Key(p_t, p_k); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Mono__Key(v_n_0) ? f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, p_t, p_k, ({ struct E_Coll__List__Mono__Key* o1 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = f_Coll__bValOr__Coll__List_1_Mono__Key(v_n_0, p_k, (&N_Coll__Nil__Mono__Key)); o1; })) : f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_t, p_k, ({ struct E_Coll__List__Mono__Key* o1 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = p_x; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Mono__Key); o1; }))); res_; }); } static bool f_Coll__bIsNode__Coll__List_1_Mono__Key(struct E_Coll__BTree__Coll__List_1_Mono__Key* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRep__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Mono__Key(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bIns__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Mono__Key(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Mono__Key(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Mono__Key(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Mono__Key(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Mono__Key(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Mono__Key(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2L__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Mono__Key(p_r, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2L__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Mono__Key* f_Coll__bSplitIns__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Mono__Key* o0 = (struct E_Coll__Split__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Mono__Key*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Mono__Key* o0 = (struct E_Coll__Split__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Mono__Key*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Mono__Key* o0 = (struct E_Coll__Split__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Mono__Key*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2R__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Mono__Key(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2R__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3A__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Mono__Key(p_r, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3A__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3B__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Mono__Key(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3B__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3C__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Mono__Key(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3C__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRootIns__Coll__List_1_Mono__Key(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Mono__Key(p_r, ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Coll__List__Mono__Inst* f_Mono__implInsts(srs_cap* p_r, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_goal, struct E_Coll__List__Mono__Inst* p_todo) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_todo; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_K__Term* t3 = p_goal; struct E_Coll__List__Mono__Inst* t4 = ({ struct E_Coll__List__Mono__Inst* o2 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Mono__Inst* o2 = (struct E_Mono__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o2->tag = 0; o2->u.C_Mono__Inst.f_f = v_f_0; o2->u.C_Mono__Inst.f_sub = p_sub; o2->u.C_Mono__Inst.f_site = ({ struct E_Mono__Site* o2 = (struct E_Mono__Site*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Site, u) + sizeof(((struct E_Mono__Site*)0)->u.C_Mono__Impl))); o2->tag = 1; o2->u.C_Mono__Impl.f_goal = p_goal; o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_todo; o2; }); p_r = t0; p_fs = t1; p_sub = t2; p_goal = t3; p_todo = t4; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }); }); } -static struct E_Coll__Option__Mono__Match* f_Mono__pick(srs_cap* p_r, struct E_Coll__List__El__Given* p_gvs, struct E_K__Term* p_t, struct E_Coll__Option__Mono__Match* p_best) { srs_tail: return ({ __auto_type s0 = p_gvs; s0->tag == 0 ? ({ p_best; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_tps_2 = s2->u.C_El__Given.f_tparams; __auto_type v_head_3 = s2->u.C_El__Given.f_head; ({ __auto_type res_ = ({ __auto_type s4 = f_Mono__matchT(p_r, v_tps_2, v_head_3, p_t, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o4 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o4; })); s4->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Given* t1 = v_rest_1; struct E_K__Term* t2 = p_t; struct E_Coll__Option__Mono__Match* t3 = p_best; p_r = t0; p_gvs = t1; p_t = t2; p_best = t3; goto srs_tail; (struct E_Coll__Option__Mono__Match*){0}; }); }) : ({ __auto_type v_sub_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Mono__Match* v_m_5 = ({ struct E_Mono__Match* o5 = (struct E_Mono__Match*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Match, u) + sizeof(((struct E_Mono__Match*)0)->u.C_Mono__Match))); o5->tag = 0; o5->u.C_Mono__Match.f_g = v_g_0; o5->u.C_Mono__Match.f_sub = v_sub_4; o5; }); __auto_type res_ = ({ __auto_type s6 = p_best; s6->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Given* t1 = v_rest_1; struct E_K__Term* t2 = p_t; struct E_Coll__Option__Mono__Match* t3 = ({ struct E_Coll__Option__Mono__Match* o6 = (struct E_Coll__Option__Mono__Match*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Mono__Match, u) + sizeof(((struct E_Coll__Option__Mono__Match*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = v_m_5; o6; }); p_r = t0; p_gvs = t1; p_t = t2; p_best = t3; goto srs_tail; (struct E_Coll__Option__Mono__Match*){0}; }); }) : ({ __auto_type v_b_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_b_6; ({ __auto_type v_bg_7 = s7->u.C_Mono__Match.f_g; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Given* t1 = v_rest_1; struct E_K__Term* t2 = p_t; struct E_Coll__Option__Mono__Match* t3 = (f_Mono__better(p_r, v_g_0, v_bg_7) ? ({ struct E_Coll__Option__Mono__Match* o8 = (struct E_Coll__Option__Mono__Match*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Mono__Match, u) + sizeof(((struct E_Coll__Option__Mono__Match*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = v_m_5; o8; }) : p_best); p_r = t0; p_gvs = t1; p_t = t2; p_best = t3; goto srs_tail; (struct E_Coll__Option__Mono__Match*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static bool f_Mono__better(srs_cap* p_r, struct E_El__Given* p_a, struct E_El__Given* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_atps_0 = s0->u.C_El__Given.f_tparams; __auto_type v_aev_1 = s0->u.C_El__Given.f_ev; __auto_type v_ah_2 = s0->u.C_El__Given.f_head; ({ __auto_type res_ = ({ __auto_type s3 = p_b; ({ __auto_type v_btps_3 = s3->u.C_El__Given.f_tparams; __auto_type v_bev_4 = s3->u.C_El__Given.f_ev; __auto_type v_bh_5 = s3->u.C_El__Given.f_head; ({ bool v_ab_6 = f_Mono__isSome(f_Mono__matchT(p_r, v_btps_3, v_bh_5, v_ah_2, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o6 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o6; }))); bool v_ba_7 = f_Mono__isSome(f_Mono__matchT(p_r, v_atps_0, v_ah_2, v_bh_5, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o7 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o7->tag = 1; o7->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o7; }))); __auto_type res_ = ((v_ab_6 && (!v_ba_7)) ? true : ((v_ab_6 && v_ba_7) ? (f_Coll__length__Sym__Sym(v_aev_1) < f_Coll__length__Sym__Sym(v_bev_4)) : false)); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRep__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o10 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Mono__Key(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bIns__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_t, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o7 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Mono__Key(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2L__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Mono__Key(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2L__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Mono__Key* f_Coll__bSplitIns__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Mono__Key* o0 = (struct E_Coll__Split__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Mono__Key*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Mono__Key* o0 = (struct E_Coll__Split__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Mono__Key*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Mono__Key* o0 = (struct E_Coll__Split__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Mono__Key*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto2R__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift2R__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3A__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Mono__Key(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3A__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3B__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3B__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bInto3C__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Mono__Key); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Mono__Key(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Mono__Key(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bLift3C__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__Split__Coll__List_1_Mono__Key* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o4 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Mono__Key* f_Coll__bRootIns__Coll__List_1_Mono__Key(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_a, int64_t p_k1, struct E_Coll__List__Mono__Key* p_v1, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_b, int64_t p_k2, struct E_Coll__List__Mono__Key* p_v2, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_c, int64_t p_k3, struct E_Coll__List__Mono__Key* p_v3, struct E_Coll__BTree__Coll__List_1_Mono__Key* p_d, int64_t p_k, struct E_Coll__List__Mono__Key* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Mono__Key(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Mono__Key* o0 = (struct E_Coll__BTree__Coll__List_1_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Mono__Key, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Mono__Key*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Coll__List__Mono__Inst* f_Mono__implInsts(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_K__Term* p_goal, struct E_Coll__List__Mono__Inst* p_todo) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_todo; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Fn* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_K__Term* t3 = p_goal; struct E_Coll__List__Mono__Inst* t4 = ({ struct E_Coll__List__Mono__Inst* o2 = (struct E_Coll__List__Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Inst, u) + sizeof(((struct E_Coll__List__Mono__Inst*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Mono__Inst* o2 = (struct E_Mono__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Inst, u) + sizeof(((struct E_Mono__Inst*)0)->u.C_Mono__Inst))); o2->tag = 0; o2->u.C_Mono__Inst.f_f = v_f_0; o2->u.C_Mono__Inst.f_sub = p_sub; o2->u.C_Mono__Inst.f_site = ({ struct E_Mono__Site* o2 = (struct E_Mono__Site*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Site, u) + sizeof(((struct E_Mono__Site*)0)->u.C_Mono__Impl))); o2->tag = 1; o2->u.C_Mono__Impl.f_goal = p_goal; o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_todo; o2; }); p_eff__Region = t0; p_fs = t1; p_sub = t2; p_goal = t3; p_todo = t4; goto srs_tail; (struct E_Coll__List__Mono__Inst*){0}; }); }); }); } +static struct E_Coll__Option__Mono__Match* f_Mono__pick(srs_cap* p_eff__Region, struct E_Coll__List__El__Given* p_gvs, struct E_K__Term* p_t, struct E_Coll__Option__Mono__Match* p_best) { srs_tail: return ({ __auto_type s0 = p_gvs; s0->tag == 0 ? ({ p_best; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_tps_2 = s2->u.C_El__Given.f_tparams; __auto_type v_head_3 = s2->u.C_El__Given.f_head; ({ __auto_type res_ = ({ __auto_type s4 = f_Mono__matchT(p_eff__Region, v_tps_2, v_head_3, p_t, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o4 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o4; })); s4->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Given* t1 = v_rest_1; struct E_K__Term* t2 = p_t; struct E_Coll__Option__Mono__Match* t3 = p_best; p_eff__Region = t0; p_gvs = t1; p_t = t2; p_best = t3; goto srs_tail; (struct E_Coll__Option__Mono__Match*){0}; }); }) : ({ __auto_type v_sub_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Mono__Match* v_m_5 = ({ struct E_Mono__Match* o5 = (struct E_Mono__Match*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Match, u) + sizeof(((struct E_Mono__Match*)0)->u.C_Mono__Match))); o5->tag = 0; o5->u.C_Mono__Match.f_g = v_g_0; o5->u.C_Mono__Match.f_sub = v_sub_4; o5; }); __auto_type res_ = ({ __auto_type s6 = p_best; s6->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Given* t1 = v_rest_1; struct E_K__Term* t2 = p_t; struct E_Coll__Option__Mono__Match* t3 = ({ struct E_Coll__Option__Mono__Match* o6 = (struct E_Coll__Option__Mono__Match*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Mono__Match, u) + sizeof(((struct E_Coll__Option__Mono__Match*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = v_m_5; o6; }); p_eff__Region = t0; p_gvs = t1; p_t = t2; p_best = t3; goto srs_tail; (struct E_Coll__Option__Mono__Match*){0}; }); }) : ({ __auto_type v_b_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_b_6; ({ __auto_type v_bg_7 = s7->u.C_Mono__Match.f_g; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Given* t1 = v_rest_1; struct E_K__Term* t2 = p_t; struct E_Coll__Option__Mono__Match* t3 = (f_Mono__better(p_eff__Region, v_g_0, v_bg_7) ? ({ struct E_Coll__Option__Mono__Match* o8 = (struct E_Coll__Option__Mono__Match*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Mono__Match, u) + sizeof(((struct E_Coll__Option__Mono__Match*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = v_m_5; o8; }) : p_best); p_eff__Region = t0; p_gvs = t1; p_t = t2; p_best = t3; goto srs_tail; (struct E_Coll__Option__Mono__Match*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static bool f_Mono__better(srs_cap* p_eff__Region, struct E_El__Given* p_a, struct E_El__Given* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_atps_0 = s0->u.C_El__Given.f_tparams; __auto_type v_aev_1 = s0->u.C_El__Given.f_ev; __auto_type v_ah_2 = s0->u.C_El__Given.f_head; ({ __auto_type res_ = ({ __auto_type s3 = p_b; ({ __auto_type v_btps_3 = s3->u.C_El__Given.f_tparams; __auto_type v_bev_4 = s3->u.C_El__Given.f_ev; __auto_type v_bh_5 = s3->u.C_El__Given.f_head; ({ bool v_ab_6 = f_Mono__isSome(f_Mono__matchT(p_eff__Region, v_btps_3, v_bh_5, v_ah_2, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o6 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o6; }))); bool v_ba_7 = f_Mono__isSome(f_Mono__matchT(p_eff__Region, v_atps_0, v_ah_2, v_bh_5, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o7 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o7->tag = 1; o7->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o7; }))); __auto_type res_ = ((v_ab_6 && (!v_ba_7)) ? true : ((v_ab_6 && v_ba_7) ? (f_Coll__length__Sym__Sym(v_aev_1) < f_Coll__length__Sym__Sym(v_bev_4)) : false)); res_; }); }); }); res_; }); }); }); res_; }); } static bool f_Mono__isSome(struct E_Coll__Option__Coll__List_1_Ty__Bind* p_o) { return ({ __auto_type s0 = p_o; s0->tag == 1 ? ({ true; }) : ({ false; }); }); } -static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchT(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_K__Term* p_p, struct E_K__Term* p_t, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc) { return ({ __auto_type s0 = p_acc; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Ty__Bind); }) : ({ __auto_type v_bs_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = p_p; s1->tag == 1 ? ({ __auto_type v_n_1 = s1->u.C_K__Con.f_f; __auto_type v_pargs_2 = s1->u.C_K__Con.f_args; ({ __auto_type res_ = (((f_Coll__length__K__Term(v_pargs_2) == ((int64_t)0)) && f_Ty__memberSym(v_n_1, p_xs)) ? ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__lookup(p_r, v_bs_0, v_n_1); s3->tag == 1 ? ({ __auto_type v_u_3 = s3->u.C_Coll__Some.f_v; (f_Mono__termEq(v_u_3, p_t) ? p_acc : (&N_Coll__None__Coll__List_1_Ty__Bind)); }) : ({ ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o3 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = ({ struct E_Coll__List__Ty__Bind* o3 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o3 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o3->tag = 0; o3->u.C_Ty__Bind.f_x = v_n_1; o3->u.C_Ty__Bind.f_t = p_t; o3; }); o3->u.C_Coll__Cons.f_t = v_bs_0; o3; }); o3; }); }); }); res_; }) : ({ __auto_type s3 = p_t; s3->tag == 1 ? ({ __auto_type v_m_3 = s3->u.C_K__Con.f_f; __auto_type v_targs_4 = s3->u.C_K__Con.f_args; ((f_Sym__eq(v_n_1, v_m_3) && (f_Coll__length__K__Term(v_pargs_2) == f_Coll__length__K__Term(v_targs_4))) ? f_Mono__matchAll(p_r, p_xs, v_pargs_2, v_targs_4, p_acc) : (&N_Coll__None__Coll__List_1_Ty__Bind)); }) : ({ (&N_Coll__None__Coll__List_1_Ty__Bind); }); })); res_; }); }) : ({ (f_Mono__termEq(p_p, p_t) ? p_acc : (&N_Coll__None__Coll__List_1_Ty__Bind)); }); }); }); }); } -static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchAll(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ps, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_prest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ts; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_trest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_xs; struct E_Coll__List__K__Term* t2 = v_prest_1; struct E_Coll__List__K__Term* t3 = v_trest_3; struct E_Coll__Option__Coll__List_1_Ty__Bind* t4 = f_Mono__matchT(p_r, p_xs, v_p_0, v_t_2, p_acc); p_r = t0; p_xs = t1; p_ps = t2; p_ts = t3; p_acc = t4; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Ty__Bind*){0}; }); }); }); }); }); } -static struct E_Coll__List__Mono__Key* f_Mono__calls(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_El__Expr* p_e, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_El__CallFn.f_f; __auto_type v_ts_1 = s0->u.C_El__CallFn.f_targs; __auto_type v_args_2 = s0->u.C_El__CallFn.f_args; ({ struct E_Coll__List__Mono__Key* v_acc2_3 = ({ __auto_type s3 = v_ts_1; s3->tag == 0 ? ({ p_acc; }) : ({ ({ struct E_Coll__List__Mono__Key* o3 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Mono__Key* o3 = (struct E_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Key, u) + sizeof(((struct E_Mono__Key*)0)->u.C_Mono__Call))); o3->tag = 0; o3->u.C_Mono__Call.f_f = v_f_0; o3->u.C_Mono__Call.f_targs = f_Mono__groundAll(p_r, p_s, p_sub, v_ts_1, (&N_Coll__Nil__K__Term)); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); }); }); __auto_type res_ = f_Mono__callsAll(p_r, p_s, p_sub, v_args_2, v_acc2_3); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_args_0 = s0->u.C_El__New.f_args; f_Mono__callsAll(p_r, p_s, p_sub, v_args_0, p_acc); }) : s0->tag == 8 ? ({ __auto_type v_ty_0 = s0->u.C_El__Op.f_ty; __auto_type v_args_1 = s0->u.C_El__Op.f_args; f_Mono__callsAll(p_r, p_s, p_sub, v_args_1, ({ struct E_Coll__List__Mono__Key* o2 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Mono__Key* o2 = (struct E_Mono__Key*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Mono__Key, u) + sizeof(((struct E_Mono__Key*)0)->u.C_Mono__Goal))); o2->tag = 1; o2->u.C_Mono__Goal.f_t = f_Mono__ground(p_r, p_s, p_sub, v_ty_0); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }) : s0->tag == 9 ? ({ __auto_type v_l_0 = s0->u.C_El__Bin.f_l; __auto_type v_rhs_1 = s0->u.C_El__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_rhs_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_r, p_s, p_sub, v_l_0, p_acc); p_r = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_x_0 = s0->u.C_El__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__Mono__Key* t4 = p_acc; p_r = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 11 ? ({ __auto_type v_c_0 = s0->u.C_El__If.f_c; __auto_type v_t_1 = s0->u.C_El__If.f_t; __auto_type v_x_2 = s0->u.C_El__If.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_x_2; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_r, p_s, p_sub, v_t_1, f_Mono__calls(p_r, p_s, p_sub, v_c_0, p_acc)); p_r = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_x_0 = s0->u.C_El__Match.f_s; __auto_type v_arms_1 = s0->u.C_El__Match.f_arms; f_Mono__armCalls(p_r, p_s, p_sub, v_arms_1, f_Mono__calls(p_r, p_s, p_sub, v_x_0, p_acc)); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_last_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__stmtCalls(p_r, p_s, p_sub, v_ss_0, p_acc); p_r = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_c_0 = s0->u.C_El__While.f_c; __auto_type v_b_1 = s0->u.C_El__While.f_body; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_b_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_r, p_s, p_sub, v_c_0, p_acc); p_r = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 15 ? ({ __auto_type v_x_0 = s0->u.C_El__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__Mono__Key* t4 = p_acc; p_r = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : ({ p_acc; }); }); } -static struct E_Coll__List__Mono__Key* f_Mono__callsAll(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Expr* t3 = v_rest_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_r, p_s, p_sub, v_x_0, p_acc); p_r = t0; p_s = t1; p_sub = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }); }); } -static struct E_Coll__List__Mono__Key* f_Mono__armCalls(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_El__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Arm* t3 = v_rest_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_r, p_s, p_sub, v_b_2, p_acc); p_r = t0; p_s = t1; p_sub = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Mono__Key* f_Mono__stmtCalls(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Mono__Key* v_acc2_2 = ({ __auto_type s2 = v_x_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_El__Val.f_e; f_Mono__calls(p_r, p_s, p_sub, v_e_2, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_e_2 = s2->u.C_El__Do.f_e; f_Mono__calls(p_r, p_s, p_sub, v_e_2, p_acc); }) : ({ __auto_type v_args_2 = s2->u.C_El__Handle.f_args; f_Mono__callsAll(p_r, p_s, p_sub, v_args_2, p_acc); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__Mono__Key* t4 = v_acc2_2; p_r = t0; p_s = t1; p_sub = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); res_; }); }); }); } -static struct E_Sym__Sym* f_Names__relSym(srs_cap* p_r, struct E_Names__Rel* p_x) { return ({ __auto_type s0 = p_x; s0->tag == 0 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"decl", 4})); }) : s0->tag == 1 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"declLine", 8})); }) : s0->tag == 2 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"declared", 8})); }) : s0->tag == 3 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"useCall", 7})); }) : s0->tag == 4 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"tyRef", 5})); }) : s0->tag == 5 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"state", 5})); }) : s0->tag == 6 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"start", 5})); }) : s0->tag == 7 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"trans", 5})); }) : s0->tag == 8 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"dropOp", 6})); }) : s0->tag == 9 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"opOf", 4})); }) : s0->tag == 10 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"isProto", 7})); }) : s0->tag == 11 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"handlerFor", 10})); }) : s0->tag == 12 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"impl", 4})); }) : s0->tag == 13 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"implArity", 9})); }) : s0->tag == 14 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"wantArity", 9})); }) : s0->tag == 15 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"same", 4})); }) : s0->tag == 16 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"dupAt", 5})); }) : s0->tag == 17 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"unknownAt", 9})); }) : s0->tag == 18 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"noTypeAt", 8})); }) : s0->tag == 19 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"badStateAt", 10})); }) : s0->tag == 20 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"noDropAt", 8})); }) : s0->tag == 21 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"noProtoAt", 9})); }) : s0->tag == 22 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"noInitAt", 8})); }) : s0->tag == 23 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"noOpAt", 6})); }) : ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"badArityAt", 10})); }); }); } -static struct E_D__Val* f_Names__nsVal(srs_cap* p_r, struct E_Names__Ns* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)0); o0; }); }) : ({ ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)1); o0; }); }); }); } -static struct E_D__Val* f_Names__i(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); } -static struct E_D__Val* f_Names__s(srs_cap* p_r, struct E_Sym__Sym* p_x) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); } -static struct E_D__Fact* f_Names__f2(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Names__f3(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Names__f5(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_d; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_e; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Names__fDecl(srs_cap* p_r, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_id) { return f_Names__f3(p_r, (&N_Names__RDecl), f_Names__nsVal(p_r, p_ns), f_Names__s(p_r, p_n), f_Names__i(p_r, p_id)); } -static struct E_D__Fact* f_Names__fDeclLine(srs_cap* p_r, int64_t p_id, int64_t p_line) { return f_Names__f2(p_r, (&N_Names__RDeclLine), f_Names__i(p_r, p_id), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fUseCall(srs_cap* p_r, struct E_Sym__Sym* p_n, int64_t p_line) { return f_Names__f2(p_r, (&N_Names__RUseCall), f_Names__s(p_r, p_n), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fTyRef(srs_cap* p_r, struct E_Sym__Sym* p_n, int64_t p_line) { return f_Names__f2(p_r, (&N_Names__RTyRef), f_Names__s(p_r, p_n), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fState(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s) { return f_Names__f2(p_r, (&N_Names__RState), f_Names__s(p_r, p_p), f_Names__s(p_r, p_s)); } -static struct E_D__Fact* f_Names__fStart(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s, int64_t p_line) { return f_Names__f3(p_r, (&N_Names__RStart), f_Names__s(p_r, p_p), f_Names__s(p_r, p_s), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fTrans(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b, int64_t p_line) { return f_Names__f5(p_r, (&N_Names__RTrans), f_Names__s(p_r, p_p), f_Names__s(p_r, p_op), f_Names__s(p_r, p_a), f_Names__s(p_r, p_b), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fDropOp(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_line) { return f_Names__f3(p_r, (&N_Names__RDropOp), f_Names__s(p_r, p_p), f_Names__s(p_r, p_op), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fOpOf(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op) { return f_Names__f2(p_r, (&N_Names__ROpOf), f_Names__s(p_r, p_p), f_Names__s(p_r, p_op)); } -static struct E_D__Fact* f_Names__fIsProto(srs_cap* p_r, struct E_Sym__Sym* p_p) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_r, (&N_Names__RIsProto)); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__s(p_r, p_p); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } -static struct E_D__Fact* f_Names__fHandlerFor(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_p, int64_t p_line) { return f_Names__f3(p_r, (&N_Names__RHandlerFor), f_Names__s(p_r, p_h), f_Names__s(p_r, p_p), f_Names__i(p_r, p_line)); } -static struct E_D__Fact* f_Names__fImpl(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f) { return f_Names__f2(p_r, (&N_Names__RImpl), f_Names__s(p_r, p_h), f_Names__s(p_r, p_f)); } -static struct E_D__Fact* f_Names__fImplArity(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f, int64_t p_n, int64_t p_line) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_r, (&N_Names__RImplArity)); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__s(p_r, p_h); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__s(p_r, p_f); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__i(p_r, p_n); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__i(p_r, p_line); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); o0; }); } -static struct E_D__Fact* f_Names__fWantArity(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_n) { return f_Names__f3(p_r, (&N_Names__RWantArity), f_Names__s(p_r, p_p), f_Names__s(p_r, p_op), f_Names__i(p_r, p_n)); } -static struct E_D__Fact* f_Names__fSameI(srs_cap* p_r, int64_t p_n) { return f_Names__f2(p_r, (&N_Names__RSame), f_Names__i(p_r, p_n), f_Names__i(p_r, p_n)); } -static struct E_Names__St* f_Names__add(srs_cap* p_r, struct E_Names__St* p_st, struct E_D__Fact* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Names__St.f_next; __auto_type v_fs_1 = s0->u.C_Names__St.f_facts; ({ __auto_type res_ = ({ struct E_Names__St* o2 = (struct E_Names__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__St, u) + sizeof(((struct E_Names__St*)0)->u.C_Names__St))); o2->tag = 0; o2->u.C_Names__St.f_next = v_n_0; o2->u.C_Names__St.f_facts = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = p_f; o2->u.C_Coll__Cons.f_t = v_fs_1; o2; }); o2; }); res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__declare(srs_cap* p_r, struct E_Names__St* p_st, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_id_0 = s0->u.C_Names__St.f_next; __auto_type v_fs_1 = s0->u.C_Names__St.f_facts; ({ __auto_type res_ = ({ struct E_Names__St* o2 = (struct E_Names__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__St, u) + sizeof(((struct E_Names__St*)0)->u.C_Names__St))); o2->tag = 0; o2->u.C_Names__St.f_next = (v_id_0 + ((int64_t)1)); o2->u.C_Names__St.f_facts = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__fSameI(p_r, v_id_0); o2->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__fDeclLine(p_r, v_id_0, p_line); o2->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__fDecl(p_r, p_ns, p_n, v_id_0); o2->u.C_Coll__Cons.f_t = v_fs_1; o2; }); o2; }); o2; }); o2; }); res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__builtins(srs_cap* p_r, struct E_Names__St* p_st) { return ({ __auto_type res_ = f_Names__declare(p_r, f_Names__declare(p_r, f_Names__declare(p_r, f_Names__declare(p_r, f_Names__declare(p_r, p_st, (&N_Names__NType), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"I64", 3})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Unit", 4})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Str", 3})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Ptr", 3})), ((int64_t)0)); res_; }); } -static struct E_Coll__List__D__Fact* f_Names__facts(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Names__decls(p_r, p_eff__Console, p_ds, f_Names__builtins(p_r, ({ struct E_Names__St* o0 = (struct E_Names__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__St, u) + sizeof(((struct E_Names__St*)0)->u.C_Names__St))); o0->tag = 0; o0->u.C_Names__St.f_next = ((int64_t)0); o0->u.C_Names__St.f_facts = (&N_Coll__Nil__D__Fact); o0; }))); ({ __auto_type v_fs_0 = s0->u.C_Names__St.f_facts; ({ __auto_type res_ = v_fs_0; res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__decls(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Names__St* t3 = f_Names__decl(p_r, p_eff__Console, v_d_0, p_st); p_r = t0; p_eff__Console = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } -static struct E_Names__St* f_Names__decl(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d, struct E_Names__St* p_st) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Fn.f_line; __auto_type v_name_2 = s1->u.C_Ast__Fn.f_name; ({ __auto_type res_ = f_Names__fn(p_r, v_f_0, (&N_Coll__Nil__Sym__Sym), f_Names__declare(p_r, p_st, (&N_Names__NCall), v_name_2, v_line_1)); res_; }); }); }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_e_0 = s0->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Enum.f_line; __auto_type v_name_2 = s1->u.C_Ast__Enum.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Enum.f_groups; __auto_type v_cases_4 = s1->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Names__cases(p_r, v_cases_4, f_Names__tparams(p_r, v_gs_3, (&N_Coll__Nil__Sym__Sym)), f_Names__declare(p_r, p_st, (&N_Names__NType), v_name_2, v_line_1)); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_p_0 = s0->u.C_Ast__DProto.f_p; f_Names__proto(p_r, p_eff__Console, v_p_0, p_st); }) : s0->tag == 3 ? ({ __auto_type v_h_0 = s0->u.C_Ast__DHandler.f_h; f_Names__handler(p_r, v_h_0, p_st); }) : s0->tag == 4 ? ({ __auto_type v_tr_0 = s0->u.C_Ast__DTrait.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_tr_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Trait.f_line; __auto_type v_name_2 = s1->u.C_Ast__Trait.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Trait.f_groups; __auto_type v_sigs_4 = s1->u.C_Ast__Trait.f_sigs; ({ __auto_type res_ = f_Names__fnsIn(p_r, v_sigs_4, f_Names__tparams(p_r, v_gs_3, (&N_Coll__Nil__Sym__Sym)), f_Names__declare(p_r, p_st, (&N_Names__NType), v_name_2, v_line_1)); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_td_0 = s0->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_td_0; ({ __auto_type v_line_1 = s1->u.C_Ast__TypeDecl.f_line; __auto_type v_name_2 = s1->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_3 = s1->u.C_Ast__TypeDecl.f_groups; __auto_type v_vals_4 = s1->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_5 = s1->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__List__Sym__Sym* v_tps_6 = f_Names__tparams(p_r, v_gs_3, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Sym__Sym* v_ls_7 = f_Names__binderNames(p_r, v_vals_4, (&N_Coll__Nil__Sym__Sym)); struct E_Names__St* v_st1_8 = f_Names__binderTys(p_r, v_vals_4, v_tps_6, f_Names__groupTys(p_r, v_gs_3, v_tps_6, f_Names__declare(p_r, p_st, (&N_Names__NType), v_name_2, v_line_1))); __auto_type res_ = ({ __auto_type s9 = v_body_5; s9->tag == 0 ? ({ __auto_type v_t_9 = s9->u.C_Ast__Alias.f_t; f_Names__tyIn(p_r, v_t_9, v_tps_6, v_ls_7, v_st1_8); }) : s9->tag == 1 ? ({ __auto_type v_s_9 = s9->u.C_Ast__TyMatch.f_scrut; __auto_type v_arms_10 = s9->u.C_Ast__TyMatch.f_arms; f_Names__tyArms(p_r, v_arms_10, v_tps_6, v_ls_7, f_Names__tyIn(p_r, v_s_9, v_tps_6, v_ls_7, v_st1_8)); }) : ({ __auto_type v_arms_9 = s9->u.C_Ast__ValMatch.f_arms; f_Names__valArms(p_r, v_arms_9, v_tps_6, v_ls_7, v_st1_8); }); }); res_; }); }); }); res_; }); }) : ({ __auto_type v_g_0 = s0->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s1 = v_g_0; ({ __auto_type v_gs_1 = s1->u.C_Ast__Given.f_groups; __auto_type v_head_2 = s1->u.C_Ast__Given.f_head; __auto_type v_fs_3 = s1->u.C_Ast__Given.f_fns; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Names__tparams(p_r, v_gs_1, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = f_Names__fnsIn(p_r, v_fs_3, v_tps_4, f_Names__ty(p_r, v_head_2, v_tps_4, p_st)); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__tyArms(srs_cap* p_r, struct E_Coll__List__Ast__TyArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__TyArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__TyArm.f_res; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__TyArm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Names__St* t4 = f_Names__tyIn(p_r, v_res_3, p_tps, p_ls, f_Names__tyIn(p_r, v_p_2, p_tps, p_ls, p_st)); p_r = t0; p_as = t1; p_tps = t2; p_ls = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__valArms(srs_cap* p_r, struct E_Coll__List__Ast__ValArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_res_2 = s2->u.C_Ast__ValArm.f_res; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__ValArm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Names__St* t4 = f_Names__tyIn(p_r, v_res_2, p_tps, p_ls, p_st); p_r = t0; p_as = t1; p_tps = t2; p_ls = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__fnsIn(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__fn(p_r, v_f_0, p_tps, p_st); p_r = t0; p_fs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Names__tparams(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Names__binderNames(p_r, v_bs_2, p_acc); p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s2->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Names__binderNames(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchT(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_K__Term* p_p, struct E_K__Term* p_t, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc) { return ({ __auto_type s0 = p_acc; s0->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Ty__Bind); }) : ({ __auto_type v_bs_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = p_p; s1->tag == 1 ? ({ __auto_type v_n_1 = s1->u.C_K__Con.f_f; __auto_type v_pargs_2 = s1->u.C_K__Con.f_args; ({ __auto_type res_ = (((f_Coll__length__K__Term(v_pargs_2) == ((int64_t)0)) && f_Ty__memberSym(v_n_1, p_xs)) ? ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__lookup(p_eff__Region, v_bs_0, v_n_1); s3->tag == 1 ? ({ __auto_type v_u_3 = s3->u.C_Coll__Some.f_v; (f_Mono__termEq(v_u_3, p_t) ? p_acc : (&N_Coll__None__Coll__List_1_Ty__Bind)); }) : ({ ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o3 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = ({ struct E_Coll__List__Ty__Bind* o3 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o3 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o3->tag = 0; o3->u.C_Ty__Bind.f_x = v_n_1; o3->u.C_Ty__Bind.f_t = p_t; o3; }); o3->u.C_Coll__Cons.f_t = v_bs_0; o3; }); o3; }); }); }); res_; }) : ({ __auto_type s3 = p_t; s3->tag == 1 ? ({ __auto_type v_m_3 = s3->u.C_K__Con.f_f; __auto_type v_targs_4 = s3->u.C_K__Con.f_args; ((f_Sym__eq(v_n_1, v_m_3) && (f_Coll__length__K__Term(v_pargs_2) == f_Coll__length__K__Term(v_targs_4))) ? f_Mono__matchAll(p_eff__Region, p_xs, v_pargs_2, v_targs_4, p_acc) : (&N_Coll__None__Coll__List_1_Ty__Bind)); }) : ({ (&N_Coll__None__Coll__List_1_Ty__Bind); }); })); res_; }); }) : ({ (f_Mono__termEq(p_p, p_t) ? p_acc : (&N_Coll__None__Coll__List_1_Ty__Bind)); }); }); }); }); } +static struct E_Coll__Option__Coll__List_1_Ty__Bind* f_Mono__matchAll(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ps, struct E_Coll__List__K__Term* p_ts, struct E_Coll__Option__Coll__List_1_Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_prest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ts; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_trest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_xs; struct E_Coll__List__K__Term* t2 = v_prest_1; struct E_Coll__List__K__Term* t3 = v_trest_3; struct E_Coll__Option__Coll__List_1_Ty__Bind* t4 = f_Mono__matchT(p_eff__Region, p_xs, v_p_0, v_t_2, p_acc); p_eff__Region = t0; p_xs = t1; p_ps = t2; p_ts = t3; p_acc = t4; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Ty__Bind*){0}; }); }); }); }); }); } +static struct E_Coll__List__Mono__Key* f_Mono__calls(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_El__Expr* p_e, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_El__CallFn.f_f; __auto_type v_ts_1 = s0->u.C_El__CallFn.f_targs; __auto_type v_args_2 = s0->u.C_El__CallFn.f_args; ({ struct E_Coll__List__Mono__Key* v_acc2_3 = ({ __auto_type s3 = v_ts_1; s3->tag == 0 ? ({ p_acc; }) : ({ ({ struct E_Coll__List__Mono__Key* o3 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Mono__Key* o3 = (struct E_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Key, u) + sizeof(((struct E_Mono__Key*)0)->u.C_Mono__Call))); o3->tag = 0; o3->u.C_Mono__Call.f_f = v_f_0; o3->u.C_Mono__Call.f_targs = f_Mono__groundAll(p_eff__Region, p_s, p_sub, v_ts_1, (&N_Coll__Nil__K__Term)); o3; }); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); }); }); __auto_type res_ = f_Mono__callsAll(p_eff__Region, p_s, p_sub, v_args_2, v_acc2_3); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_args_0 = s0->u.C_El__New.f_args; f_Mono__callsAll(p_eff__Region, p_s, p_sub, v_args_0, p_acc); }) : s0->tag == 8 ? ({ __auto_type v_ty_0 = s0->u.C_El__Op.f_ty; __auto_type v_args_1 = s0->u.C_El__Op.f_args; f_Mono__callsAll(p_eff__Region, p_s, p_sub, v_args_1, ({ struct E_Coll__List__Mono__Key* o2 = (struct E_Coll__List__Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Mono__Key, u) + sizeof(((struct E_Coll__List__Mono__Key*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Mono__Key* o2 = (struct E_Mono__Key*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Mono__Key, u) + sizeof(((struct E_Mono__Key*)0)->u.C_Mono__Goal))); o2->tag = 1; o2->u.C_Mono__Goal.f_t = f_Mono__ground(p_eff__Region, p_s, p_sub, v_ty_0); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }) : s0->tag == 9 ? ({ __auto_type v_l_0 = s0->u.C_El__Bin.f_l; __auto_type v_rhs_1 = s0->u.C_El__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_rhs_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_eff__Region, p_s, p_sub, v_l_0, p_acc); p_eff__Region = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_x_0 = s0->u.C_El__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__Mono__Key* t4 = p_acc; p_eff__Region = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 11 ? ({ __auto_type v_c_0 = s0->u.C_El__If.f_c; __auto_type v_t_1 = s0->u.C_El__If.f_t; __auto_type v_x_2 = s0->u.C_El__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_x_2; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_eff__Region, p_s, p_sub, v_t_1, f_Mono__calls(p_eff__Region, p_s, p_sub, v_c_0, p_acc)); p_eff__Region = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_x_0 = s0->u.C_El__Match.f_s; __auto_type v_arms_1 = s0->u.C_El__Match.f_arms; f_Mono__armCalls(p_eff__Region, p_s, p_sub, v_arms_1, f_Mono__calls(p_eff__Region, p_s, p_sub, v_x_0, p_acc)); }) : s0->tag == 13 ? ({ __auto_type v_ss_0 = s0->u.C_El__Block.f_stmts; __auto_type v_last_1 = s0->u.C_El__Block.f_last; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_last_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__stmtCalls(p_eff__Region, p_s, p_sub, v_ss_0, p_acc); p_eff__Region = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_c_0 = s0->u.C_El__While.f_c; __auto_type v_b_1 = s0->u.C_El__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_b_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_eff__Region, p_s, p_sub, v_c_0, p_acc); p_eff__Region = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : s0->tag == 15 ? ({ __auto_type v_x_0 = s0->u.C_El__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_El__Expr* t3 = v_x_0; struct E_Coll__List__Mono__Key* t4 = p_acc; p_eff__Region = t0; p_s = t1; p_sub = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }) : ({ p_acc; }); }); } +static struct E_Coll__List__Mono__Key* f_Mono__callsAll(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Expr* t3 = v_rest_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_eff__Region, p_s, p_sub, v_x_0, p_acc); p_eff__Region = t0; p_s = t1; p_sub = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); }); }); } +static struct E_Coll__List__Mono__Key* f_Mono__armCalls(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_El__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Arm* t3 = v_rest_1; struct E_Coll__List__Mono__Key* t4 = f_Mono__calls(p_eff__Region, p_s, p_sub, v_b_2, p_acc); p_eff__Region = t0; p_s = t1; p_sub = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Mono__Key* f_Mono__stmtCalls(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__Mono__Key* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Mono__Key* v_acc2_2 = ({ __auto_type s2 = v_x_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_El__Val.f_e; f_Mono__calls(p_eff__Region, p_s, p_sub, v_e_2, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_e_2 = s2->u.C_El__Do.f_e; f_Mono__calls(p_eff__Region, p_s, p_sub, v_e_2, p_acc); }) : ({ __auto_type v_args_2 = s2->u.C_El__Handle.f_args; f_Mono__callsAll(p_eff__Region, p_s, p_sub, v_args_2, p_acc); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = p_sub; struct E_Coll__List__El__Stmt* t3 = v_rest_1; struct E_Coll__List__Mono__Key* t4 = v_acc2_2; p_eff__Region = t0; p_s = t1; p_sub = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Mono__Key*){0}; }); res_; }); }); }); } +static struct E_Sym__Sym* f_Names__relSym(srs_cap* p_eff__Region, struct E_Names__Rel* p_x) { return ({ __auto_type s0 = p_x; s0->tag == 0 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"decl", 4})); }) : s0->tag == 1 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"declLine", 8})); }) : s0->tag == 2 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"declared", 8})); }) : s0->tag == 3 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"useCall", 7})); }) : s0->tag == 4 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"tyRef", 5})); }) : s0->tag == 5 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"state", 5})); }) : s0->tag == 6 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"start", 5})); }) : s0->tag == 7 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"trans", 5})); }) : s0->tag == 8 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"dropOp", 6})); }) : s0->tag == 9 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"opOf", 4})); }) : s0->tag == 10 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"isProto", 7})); }) : s0->tag == 11 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"handlerFor", 10})); }) : s0->tag == 12 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"impl", 4})); }) : s0->tag == 13 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"implArity", 9})); }) : s0->tag == 14 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"wantArity", 9})); }) : s0->tag == 15 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"same", 4})); }) : s0->tag == 16 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"dupAt", 5})); }) : s0->tag == 17 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"unknownAt", 9})); }) : s0->tag == 18 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"noTypeAt", 8})); }) : s0->tag == 19 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"badStateAt", 10})); }) : s0->tag == 20 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"noDropAt", 8})); }) : s0->tag == 21 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"noProtoAt", 9})); }) : s0->tag == 22 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"noInitAt", 8})); }) : s0->tag == 23 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"noOpAt", 6})); }) : ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"badArityAt", 10})); }); }); } +static struct E_D__Val* f_Names__nsVal(srs_cap* p_eff__Region, struct E_Names__Ns* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)0); o0; }); }) : ({ ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)1); o0; }); }); }); } +static struct E_D__Val* f_Names__i(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = p_n; o0; }); } +static struct E_D__Val* f_Names__s(srs_cap* p_eff__Region, struct E_Sym__Sym* p_x) { return ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_x; o0; }); } +static struct E_D__Fact* f_Names__f2(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Names__f3(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Names__f5(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_D__Val* p_a, struct E_D__Val* p_b, struct E_D__Val* p_c, struct E_D__Val* p_d, struct E_D__Val* p_e) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_b; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_c; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_d; o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_e; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Names__fDecl(srs_cap* p_eff__Region, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_id) { return f_Names__f3(p_eff__Region, (&N_Names__RDecl), f_Names__nsVal(p_eff__Region, p_ns), f_Names__s(p_eff__Region, p_n), f_Names__i(p_eff__Region, p_id)); } +static struct E_D__Fact* f_Names__fDeclLine(srs_cap* p_eff__Region, int64_t p_id, int64_t p_line) { return f_Names__f2(p_eff__Region, (&N_Names__RDeclLine), f_Names__i(p_eff__Region, p_id), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fUseCall(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n, int64_t p_line) { return f_Names__f2(p_eff__Region, (&N_Names__RUseCall), f_Names__s(p_eff__Region, p_n), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fTyRef(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n, int64_t p_line) { return f_Names__f2(p_eff__Region, (&N_Names__RTyRef), f_Names__s(p_eff__Region, p_n), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fState(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s) { return f_Names__f2(p_eff__Region, (&N_Names__RState), f_Names__s(p_eff__Region, p_p), f_Names__s(p_eff__Region, p_s)); } +static struct E_D__Fact* f_Names__fStart(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_s, int64_t p_line) { return f_Names__f3(p_eff__Region, (&N_Names__RStart), f_Names__s(p_eff__Region, p_p), f_Names__s(p_eff__Region, p_s), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fTrans(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b, int64_t p_line) { return f_Names__f5(p_eff__Region, (&N_Names__RTrans), f_Names__s(p_eff__Region, p_p), f_Names__s(p_eff__Region, p_op), f_Names__s(p_eff__Region, p_a), f_Names__s(p_eff__Region, p_b), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fDropOp(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_line) { return f_Names__f3(p_eff__Region, (&N_Names__RDropOp), f_Names__s(p_eff__Region, p_p), f_Names__s(p_eff__Region, p_op), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fOpOf(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op) { return f_Names__f2(p_eff__Region, (&N_Names__ROpOf), f_Names__s(p_eff__Region, p_p), f_Names__s(p_eff__Region, p_op)); } +static struct E_D__Fact* f_Names__fIsProto(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_eff__Region, (&N_Names__RIsProto)); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__s(p_eff__Region, p_p); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } +static struct E_D__Fact* f_Names__fHandlerFor(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_p, int64_t p_line) { return f_Names__f3(p_eff__Region, (&N_Names__RHandlerFor), f_Names__s(p_eff__Region, p_h), f_Names__s(p_eff__Region, p_p), f_Names__i(p_eff__Region, p_line)); } +static struct E_D__Fact* f_Names__fImpl(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f) { return f_Names__f2(p_eff__Region, (&N_Names__RImpl), f_Names__s(p_eff__Region, p_h), f_Names__s(p_eff__Region, p_f)); } +static struct E_D__Fact* f_Names__fImplArity(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Sym__Sym* p_f, int64_t p_n, int64_t p_line) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Names__relSym(p_eff__Region, (&N_Names__RImplArity)); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__s(p_eff__Region, p_h); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__s(p_eff__Region, p_f); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__i(p_eff__Region, p_n); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Names__i(p_eff__Region, p_line); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); o0; }); o0; }); } +static struct E_D__Fact* f_Names__fWantArity(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, int64_t p_n) { return f_Names__f3(p_eff__Region, (&N_Names__RWantArity), f_Names__s(p_eff__Region, p_p), f_Names__s(p_eff__Region, p_op), f_Names__i(p_eff__Region, p_n)); } +static struct E_D__Fact* f_Names__fSameI(srs_cap* p_eff__Region, int64_t p_n) { return f_Names__f2(p_eff__Region, (&N_Names__RSame), f_Names__i(p_eff__Region, p_n), f_Names__i(p_eff__Region, p_n)); } +static struct E_Names__St* f_Names__add(srs_cap* p_eff__Region, struct E_Names__St* p_st, struct E_D__Fact* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_n_0 = s0->u.C_Names__St.f_next; __auto_type v_fs_1 = s0->u.C_Names__St.f_facts; ({ __auto_type res_ = ({ struct E_Names__St* o2 = (struct E_Names__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__St, u) + sizeof(((struct E_Names__St*)0)->u.C_Names__St))); o2->tag = 0; o2->u.C_Names__St.f_next = v_n_0; o2->u.C_Names__St.f_facts = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = p_f; o2->u.C_Coll__Cons.f_t = v_fs_1; o2; }); o2; }); res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__declare(srs_cap* p_eff__Region, struct E_Names__St* p_st, struct E_Names__Ns* p_ns, struct E_Sym__Sym* p_n, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_id_0 = s0->u.C_Names__St.f_next; __auto_type v_fs_1 = s0->u.C_Names__St.f_facts; ({ __auto_type res_ = ({ struct E_Names__St* o2 = (struct E_Names__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__St, u) + sizeof(((struct E_Names__St*)0)->u.C_Names__St))); o2->tag = 0; o2->u.C_Names__St.f_next = (v_id_0 + ((int64_t)1)); o2->u.C_Names__St.f_facts = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__fSameI(p_eff__Region, v_id_0); o2->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__fDeclLine(p_eff__Region, v_id_0, p_line); o2->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__fDecl(p_eff__Region, p_ns, p_n, v_id_0); o2->u.C_Coll__Cons.f_t = v_fs_1; o2; }); o2; }); o2; }); o2; }); res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__builtins(srs_cap* p_eff__Region, struct E_Names__St* p_st) { return ({ __auto_type res_ = f_Names__declare(p_eff__Region, f_Names__declare(p_eff__Region, f_Names__declare(p_eff__Region, f_Names__declare(p_eff__Region, f_Names__declare(p_eff__Region, p_st, (&N_Names__NType), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Unit", 4})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Str", 3})), ((int64_t)0)), (&N_Names__NType), f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Ptr", 3})), ((int64_t)0)); res_; }); } +static struct E_Coll__List__D__Fact* f_Names__facts(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Names__decls(p_eff__Console, p_eff__Region, p_ds, f_Names__builtins(p_eff__Region, ({ struct E_Names__St* o0 = (struct E_Names__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__St, u) + sizeof(((struct E_Names__St*)0)->u.C_Names__St))); o0->tag = 0; o0->u.C_Names__St.f_next = ((int64_t)0); o0->u.C_Names__St.f_facts = (&N_Coll__Nil__D__Fact); o0; }))); ({ __auto_type v_fs_0 = s0->u.C_Names__St.f_facts; ({ __auto_type res_ = v_fs_0; res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__decls(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Names__St* t3 = f_Names__decl(p_eff__Console, p_eff__Region, v_d_0, p_st); p_eff__Console = t0; p_eff__Region = t1; p_ds = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } +static struct E_Names__St* f_Names__decl(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Ast__Decl* p_d, struct E_Names__St* p_st) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Fn.f_line; __auto_type v_name_2 = s1->u.C_Ast__Fn.f_name; ({ __auto_type res_ = f_Names__fn(p_eff__Region, v_f_0, (&N_Coll__Nil__Sym__Sym), f_Names__declare(p_eff__Region, p_st, (&N_Names__NCall), v_name_2, v_line_1)); res_; }); }); }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_e_0 = s0->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Enum.f_line; __auto_type v_name_2 = s1->u.C_Ast__Enum.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Enum.f_groups; __auto_type v_cases_4 = s1->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Names__cases(p_eff__Region, v_cases_4, f_Names__tparams(p_eff__Region, v_gs_3, (&N_Coll__Nil__Sym__Sym)), f_Names__declare(p_eff__Region, p_st, (&N_Names__NType), v_name_2, v_line_1)); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_p_0 = s0->u.C_Ast__DProto.f_p; f_Names__proto(p_eff__Console, p_eff__Region, v_p_0, p_st); }) : s0->tag == 3 ? ({ __auto_type v_h_0 = s0->u.C_Ast__DHandler.f_h; f_Names__handler(p_eff__Region, v_h_0, p_st); }) : s0->tag == 4 ? ({ __auto_type v_tr_0 = s0->u.C_Ast__DTrait.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_tr_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Trait.f_line; __auto_type v_name_2 = s1->u.C_Ast__Trait.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Trait.f_groups; __auto_type v_sigs_4 = s1->u.C_Ast__Trait.f_sigs; ({ __auto_type res_ = f_Names__fnsIn(p_eff__Region, v_sigs_4, f_Names__tparams(p_eff__Region, v_gs_3, (&N_Coll__Nil__Sym__Sym)), f_Names__declare(p_eff__Region, p_st, (&N_Names__NType), v_name_2, v_line_1)); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_td_0 = s0->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_td_0; ({ __auto_type v_line_1 = s1->u.C_Ast__TypeDecl.f_line; __auto_type v_name_2 = s1->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_3 = s1->u.C_Ast__TypeDecl.f_groups; __auto_type v_vals_4 = s1->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_5 = s1->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__List__Sym__Sym* v_tps_6 = f_Names__tparams(p_eff__Region, v_gs_3, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Sym__Sym* v_ls_7 = f_Names__binderNames(p_eff__Region, v_vals_4, (&N_Coll__Nil__Sym__Sym)); struct E_Names__St* v_st1_8 = f_Names__binderTys(p_eff__Region, v_vals_4, v_tps_6, f_Names__groupTys(p_eff__Region, v_gs_3, v_tps_6, f_Names__declare(p_eff__Region, p_st, (&N_Names__NType), v_name_2, v_line_1))); __auto_type res_ = ({ __auto_type s9 = v_body_5; s9->tag == 0 ? ({ __auto_type v_t_9 = s9->u.C_Ast__Alias.f_t; f_Names__tyIn(p_eff__Region, v_t_9, v_tps_6, v_ls_7, v_st1_8); }) : s9->tag == 1 ? ({ __auto_type v_s_9 = s9->u.C_Ast__TyMatch.f_scrut; __auto_type v_arms_10 = s9->u.C_Ast__TyMatch.f_arms; f_Names__tyArms(p_eff__Region, v_arms_10, v_tps_6, v_ls_7, f_Names__tyIn(p_eff__Region, v_s_9, v_tps_6, v_ls_7, v_st1_8)); }) : ({ __auto_type v_arms_9 = s9->u.C_Ast__ValMatch.f_arms; f_Names__valArms(p_eff__Region, v_arms_9, v_tps_6, v_ls_7, v_st1_8); }); }); res_; }); }); }); res_; }); }) : ({ __auto_type v_g_0 = s0->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s1 = v_g_0; ({ __auto_type v_gs_1 = s1->u.C_Ast__Given.f_groups; __auto_type v_head_2 = s1->u.C_Ast__Given.f_head; __auto_type v_fs_3 = s1->u.C_Ast__Given.f_fns; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Names__tparams(p_eff__Region, v_gs_1, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = f_Names__fnsIn(p_eff__Region, v_fs_3, v_tps_4, f_Names__ty(p_eff__Region, v_head_2, v_tps_4, p_st)); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__tyArms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TyArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__TyArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__TyArm.f_res; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__TyArm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Names__St* t4 = f_Names__tyIn(p_eff__Region, v_res_3, p_tps, p_ls, f_Names__tyIn(p_eff__Region, v_p_2, p_tps, p_ls, p_st)); p_eff__Region = t0; p_as = t1; p_tps = t2; p_ls = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__valArms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__ValArm* p_as, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_res_2 = s2->u.C_Ast__ValArm.f_res; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__ValArm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Names__St* t4 = f_Names__tyIn(p_eff__Region, v_res_2, p_tps, p_ls, p_st); p_eff__Region = t0; p_as = t1; p_tps = t2; p_ls = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__fnsIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__fn(p_eff__Region, v_f_0, p_tps, p_st); p_eff__Region = t0; p_fs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Names__tparams(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Names__binderNames(p_eff__Region, v_bs_2, p_acc); p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s2->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Names__binderNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } static bool f_Names__member(struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(v_h_0, p_x) ? true : ({ struct E_Sym__Sym* t0 = p_x; struct E_Coll__List__Sym__Sym* t1 = v_t_1; p_x = t0; p_xs = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Names__St* f_Names__ty(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { return f_Names__tyIn(p_r, p_t, p_tps, (&N_Coll__Nil__Sym__Sym), p_st); } -static struct E_Names__St* f_Names__tyIn(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_line_0 = s0->u.C_Ast__Ty.f_line; __auto_type v_n_1 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_2 = s0->u.C_Ast__Ty.f_args; __auto_type v_vs_3 = s0->u.C_Ast__Ty.f_vals; ({ __auto_type res_ = f_Names__exprs(p_r, v_vs_3, p_ls, p_tps, f_Names__tys(p_r, v_args_2, p_tps, (f_Names__member(v_n_1, p_tps) ? p_st : f_Names__add(p_r, p_st, f_Names__fTyRef(p_r, v_n_1, v_line_0))))); res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__tys(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__ty(p_r, v_t_0, p_tps, p_st); p_r = t0; p_ts = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } -static struct E_Names__St* f_Names__binderTys(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__ty(p_r, v_t_2, p_tps, p_st); p_r = t0; p_bs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__cases(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Case.f_line; __auto_type v_name_3 = s2->u.C_Ast__Case.f_name; __auto_type v_fields_4 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__binderTys(p_r, v_fields_4, p_tps, f_Names__declare(p_r, p_st, (&N_Names__NCall), v_name_3, v_line_2)); p_r = t0; p_cs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__fn(srs_cap* p_r, struct E_Ast__Fn* p_f, struct E_Coll__List__Sym__Sym* p_outer, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_params_1 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_2 = s0->u.C_Ast__Fn.f_ret; __auto_type v_body_3 = s0->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Names__tparams(p_r, v_gs_0, p_outer); struct E_Names__St* v_st1_5 = f_Names__ty(p_r, v_ret_2, v_tps_4, f_Names__binderTys(p_r, v_params_1, v_tps_4, f_Names__groupTys(p_r, v_gs_0, v_tps_4, p_st))); struct E_Coll__List__Sym__Sym* v_locals_6 = f_Names__binderNames(p_r, v_params_1, f_Names__evidenceNames(p_r, v_gs_0, (&N_Coll__Nil__Sym__Sym))); __auto_type res_ = ({ __auto_type s7 = v_body_3; s7->tag == 1 ? ({ v_st1_5; }) : s7->tag == 0 ? ({ __auto_type v_cs_7 = s7->u.C_Ast__Def.f_cs; __auto_type v_e_8 = s7->u.C_Ast__Def.f_e; f_Names__expr(p_r, v_e_8, v_locals_6, v_tps_4, f_Names__clauses(p_r, v_cs_7, v_locals_6, v_tps_4, v_st1_5)); }) : ({ __auto_type v_cs_7 = s7->u.C_Ast__Spec.f_cs; __auto_type v_e_8 = s7->u.C_Ast__Spec.f_e; f_Names__expr(p_r, v_e_8, v_locals_6, v_tps_4, f_Names__clauses(p_r, v_cs_7, v_locals_6, v_tps_4, v_st1_5)); }); }); res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__groupTys(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__binderTys(p_r, v_bs_2, p_tps, p_st); p_r = t0; p_gs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = p_st; p_r = t0; p_gs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = p_st; p_r = t0; p_gs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Names__evidenceNames(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Names__binderNames(p_r, v_bs_2, p_acc); p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } -static struct E_Names__St* f_Names__clauses(srs_cap* p_r, struct E_Coll__List__Ast__Clause* p_cs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__CondC.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_r, v_e_2, ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"result", 6})); o3->u.C_Coll__Cons.f_t = p_ls; o3; }), p_tps, p_st); p_r = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_line_2 = s2->u.C_Ast__ProofUsing.f_line; __auto_type v_xs_3 = s2->u.C_Ast__ProofUsing.f_xs; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__useAll(p_r, v_xs_3, v_line_2, p_st); p_r = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 2 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_r = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_r = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }); }); }); }); } -static struct E_Names__St* f_Names__useAll(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_line, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; int64_t t2 = p_line; struct E_Names__St* t3 = f_Names__add(p_r, p_st, f_Names__fUseCall(p_r, v_x_0, p_line)); p_r = t0; p_xs = t1; p_line = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } -static struct E_Names__St* f_Names__expr(srs_cap* p_r, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; (f_Names__member(v_x_1, p_ls) ? p_st : f_Names__add(p_r, p_st, f_Names__fUseCall(p_r, v_x_1, v_line_0))); }) : s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_2 = s0->u.C_Ast__Call.f_targs; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; f_Names__exprs(p_r, v_xs_3, p_ls, p_tps, f_Names__tys(p_r, v_targs_2, p_tps, f_Names__add(p_r, p_st, f_Names__fUseCall(p_r, v_f_1, v_line_0)))); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Names__exprs(p_r, v_xs_0, p_ls, p_tps, p_st); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_rhs_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_r, v_l_0, p_ls, p_tps, p_st); p_r = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_r = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_2; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_r, v_t_1, p_ls, p_tps, f_Names__expr(p_r, v_c_0, p_ls, p_tps, p_st)); p_r = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_b_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_r, v_c_0, p_ls, p_tps, p_st); p_r = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_r = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_1 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_2 = s0->u.C_Ast__Quant.f_e; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = v_b_2; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = p_ls; o3; }); struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__ty(p_r, v_t_1, p_tps, p_st); p_r = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Names__arms(p_r, v_arms_1, p_ls, p_tps, f_Names__expr(p_r, v_s_0, p_ls, p_tps, p_st)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Names__block(p_r, v_ss_0, v_last_1, p_ls, p_tps, p_st); }) : ({ p_st; }); }); } -static struct E_Names__St* f_Names__exprs(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Expr* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_r, v_x_0, p_ls, p_tps, p_st); p_r = t0; p_xs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } -static struct E_Names__St* f_Names__arms(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Arm.f_line; __auto_type v_p_3 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_4 = s2->u.C_Ast__Arm.f_body; ({ struct E_Names__St* v_st1_5 = ({ __auto_type s5 = v_p_3; s5->tag == 0 ? ({ __auto_type v_c_5 = s5->u.C_Ast__PCase.f_c; __auto_type v_binds_6 = s5->u.C_Ast__PCase.f_binds; f_Names__expr(p_r, v_b_4, f_Names__binderSyms(p_r, v_binds_6, p_ls), p_tps, f_Names__add(p_r, p_st, f_Names__fUseCall(p_r, v_c_5, v_line_2))); }) : ({ f_Names__expr(p_r, v_b_4, p_ls, p_tps, p_st); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = v_st1_5; p_r = t0; p_as = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Names__binderSyms(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } -static struct E_Names__St* f_Names__block(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ f_Names__expr(p_r, p_last, p_ls, p_tps, p_st); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_ann_3 = s2->u.C_Ast__Val.f_ann; __auto_type v_e_4 = s2->u.C_Ast__Val.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_ls; o5; }); struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__annTy(p_r, v_ann_3, p_tps, f_Names__expr(p_r, v_e_4, p_ls, p_tps, p_st)); p_r = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Var.f_x; __auto_type v_ann_3 = s2->u.C_Ast__Var.f_ann; __auto_type v_e_4 = s2->u.C_Ast__Var.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_ls; o5; }); struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__annTy(p_r, v_ann_3, p_tps, f_Names__expr(p_r, v_e_4, p_ls, p_tps, p_st)); p_r = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_line_2 = s2->u.C_Ast__Handle.f_line; __auto_type v_x_3 = s2->u.C_Ast__Handle.f_x; __auto_type v_h_4 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_5 = s2->u.C_Ast__Handle.f_args; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o6 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_x_3; o6->u.C_Coll__Cons.f_t = p_ls; o6; }); struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__exprs(p_r, v_xs_5, p_ls, p_tps, f_Names__add(p_r, p_st, f_Names__fTyRef(p_r, v_h_4, v_line_2))); p_r = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__expr(p_r, v_e_2, p_ls, p_tps, p_st); p_r = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__expr(p_r, v_e_2, p_ls, p_tps, p_st); p_r = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }); }); }); }); } -static struct E_Names__St* f_Names__annTy(srs_cap* p_r, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { return ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; f_Names__ty(p_r, v_t_0, p_tps, p_st); }); }); } -static struct E_Names__St* f_Names__proto(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Proto* p_p, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_line_0 = s0->u.C_Ast__Proto.f_line; __auto_type v_name_1 = s0->u.C_Ast__Proto.f_name; __auto_type v_states_2 = s0->u.C_Ast__Proto.f_states; __auto_type v_start_3 = s0->u.C_Ast__Proto.f_start; __auto_type v_dropOp_4 = s0->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_5 = s0->u.C_Ast__Proto.f_ops; ({ struct E_Names__St* v_st1_6 = f_Names__add(p_r, f_Names__add(p_r, f_Names__declare(p_r, p_st, (&N_Names__NType), v_name_1, v_line_0), f_Names__fIsProto(p_r, v_name_1)), f_Names__fStart(p_r, v_name_1, v_start_3, v_line_0)); struct E_Names__St* v_st2_7 = f_Names__statesF(p_r, v_name_1, v_states_2, v_st1_6); struct E_Names__St* v_st3_8 = ({ __auto_type s8 = v_dropOp_4; s8->tag == 0 ? ({ v_st2_7; }) : ({ __auto_type v_d_8 = s8->u.C_Coll__Some.f_v; f_Names__add(p_r, v_st2_7, f_Names__fDropOp(p_r, v_name_1, v_d_8, v_line_0)); }); }); __auto_type res_ = f_Names__ops(p_r, p_eff__Console, v_name_1, v_ops_5, v_st3_8); res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__statesF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Names__St* t3 = f_Names__add(p_r, p_st, f_Names__fState(p_r, p_p, v_s_0)); p_r = t0; p_p = t1; p_ss = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } -static struct E_Names__St* f_Names__ops(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Op.f_line; __auto_type v_name_3 = s2->u.C_Ast__Op.f_name; __auto_type v_params_4 = s2->u.C_Ast__Op.f_params; __auto_type v_ret_5 = s2->u.C_Ast__Op.f_ret; __auto_type v_trs_6 = s2->u.C_Ast__Op.f_trans; ({ int64_t v_n_7 = (f_Coll__length__Ast__Binder(v_params_4) + ((int64_t)1)); struct E_Names__St* v_st1_8 = f_Names__add(p_r, f_Names__add(p_r, f_Names__add(p_r, f_Names__declare(p_r, p_st, (&N_Names__NCall), f_Eff__dotted(p_r, p_eff__Console, f_Sym__str(p_p), v_name_3), v_line_2), f_Names__fOpOf(p_r, p_p, v_name_3)), f_Names__fWantArity(p_r, p_p, v_name_3, v_n_7)), f_Names__fSameI(p_r, v_n_7)); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Sym__Sym* t2 = p_p; struct E_Coll__List__Ast__Op* t3 = v_rest_1; struct E_Names__St* t4 = f_Names__transF(p_r, p_p, v_name_3, v_trs_6, v_line_2, f_Names__ty(p_r, v_ret_5, (&N_Coll__Nil__Sym__Sym), f_Names__binderTys(p_r, v_params_4, (&N_Coll__Nil__Sym__Sym), v_st1_8))); p_r = t0; p_eff__Console = t1; p_p = t2; p_os = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__transF(srs_cap* p_r, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, int64_t p_line, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_p; struct E_Sym__Sym* t2 = p_op; struct E_Coll__List__Ast__Trans* t3 = v_rest_1; int64_t t4 = p_line; struct E_Names__St* t5 = f_Names__add(p_r, p_st, f_Names__fTrans(p_r, p_p, p_op, v_a_2, v_b_3, p_line)); p_r = t0; p_p = t1; p_op = t2; p_trs = t3; p_line = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Names__St* f_Names__handler(srs_cap* p_r, struct E_Ast__Handler* p_h, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_h; ({ __auto_type v_line_0 = s0->u.C_Ast__Handler.f_line; __auto_type v_name_1 = s0->u.C_Ast__Handler.f_name; __auto_type v_p_2 = s0->u.C_Ast__Handler.f_proto; __auto_type v_fns_3 = s0->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = f_Names__hfns(p_r, v_name_1, v_fns_3, f_Names__add(p_r, f_Names__declare(p_r, p_st, (&N_Names__NType), v_name_1, v_line_0), f_Names__fHandlerFor(p_r, v_name_1, v_p_2, v_line_0))); res_; }); }); }); res_; }); } -static struct E_Names__St* f_Names__hfns(srs_cap* p_r, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_name_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_params_4 = s2->u.C_Ast__Fn.f_params; ({ int64_t v_n_5 = f_Coll__length__Ast__Binder(v_params_4); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Sym__Sym* t1 = p_h; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Names__St* t3 = f_Names__fn(p_r, v_f_0, (&N_Coll__Nil__Sym__Sym), f_Names__add(p_r, f_Names__add(p_r, f_Names__add(p_r, p_st, f_Names__fImpl(p_r, p_h, v_name_3)), f_Names__fImplArity(p_r, p_h, v_name_3, v_n_5, v_line_2)), f_Names__fSameI(p_r, v_n_5))); p_r = t0; p_h = t1; p_fs = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_D__Arg* f_Names__v(srs_cap* p_r, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o0->tag = 0; o0->u.C_D__AVar.f_n = p_n; o0; }); } -static struct E_D__Atom* f_Names__atom(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Names__relSym(p_r, p_rel); o0->u.C_D__Atom.f_args = f_Names__vars(p_r, p_xs); o0; }); } -static struct E_Coll__List__D__Arg* f_Names__vars(srs_cap* p_r, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__v(p_r, v_x_0); o2->u.C_Coll__Cons.f_t = f_Names__vars(p_r, v_rest_1); o2; }); }); }); } -static struct E_D__Lit* f_Names__pos(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Names__atom(p_r, p_rel, p_xs); o0; }); } -static struct E_D__Lit* f_Names__neg(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o0->tag = 1; o0->u.C_D__Neg.f_a = f_Names__atom(p_r, p_rel, p_xs); o0; }); } -static struct E_D__Rule* f_Names__rule(srs_cap* p_r, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Names__atom(p_r, p_rel, p_xs); o0->u.C_D__Rule.f_body = p_body; o0; }); } -static struct E_D__Arg* f_Names__callNs(srs_cap* p_r) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)0); o0; }); o0; }); } -static struct E_D__Arg* f_Names__typeNs(srs_cap* p_r) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)1); o0; }); o0; }); } -static struct E_Coll__List__D__Rule* f_Names__rules(srs_cap* p_r) { return ({ struct E_D__Rule* v_declared_0 = f_Names__rule(p_r, (&N_Names__RDeclared), f_Names__l2__I64(p_r, ((int64_t)0), ((int64_t)1)), f_Names__l1__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RDecl), f_Names__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2))))); struct E_D__Rule* v_dup_1 = f_Names__rule(p_r, (&N_Names__RDupAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)1)), f_Names__l4__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RDecl), f_Names__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)2))), f_Names__pos(p_r, (&N_Names__RDecl), f_Names__l3__I64(p_r, ((int64_t)0), ((int64_t)1), ((int64_t)3))), f_Names__neg(p_r, (&N_Names__RSame), f_Names__l2__I64(p_r, ((int64_t)2), ((int64_t)3))), f_Names__pos(p_r, (&N_Names__RDeclLine), f_Names__l2__I64(p_r, ((int64_t)2), ((int64_t)4))))); struct E_D__Rule* v_unknown_2 = ({ struct E_D__Rule* o2 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o2->tag = 0; o2->u.C_D__Rule.f_head = f_Names__atom(p_r, (&N_Names__RUnknownAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)1))); o2->u.C_D__Rule.f_body = f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RUseCall), f_Names__l2__I64(p_r, ((int64_t)1), ((int64_t)4))), ({ struct E_D__Lit* o2 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o2->tag = 1; o2->u.C_D__Neg.f_a = ({ struct E_D__Atom* o2 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o2->tag = 0; o2->u.C_D__Atom.f_rel = f_Names__relSym(p_r, (&N_Names__RDeclared)); o2->u.C_D__Atom.f_args = ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__callNs(p_r); o2->u.C_Coll__Cons.f_t = f_Names__l1__D__Arg(p_r, f_Names__v(p_r, ((int64_t)1))); o2; }); o2; }); o2; })); o2; }); struct E_D__Rule* v_noType_3 = ({ struct E_D__Rule* o3 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o3->tag = 0; o3->u.C_D__Rule.f_head = f_Names__atom(p_r, (&N_Names__RNoTypeAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)1))); o3->u.C_D__Rule.f_body = f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RTyRef), f_Names__l2__I64(p_r, ((int64_t)1), ((int64_t)4))), ({ struct E_D__Lit* o3 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o3->tag = 1; o3->u.C_D__Neg.f_a = ({ struct E_D__Atom* o3 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o3->tag = 0; o3->u.C_D__Atom.f_rel = f_Names__relSym(p_r, (&N_Names__RDeclared)); o3->u.C_D__Atom.f_args = ({ struct E_Coll__List__D__Arg* o3 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Names__typeNs(p_r); o3->u.C_Coll__Cons.f_t = f_Names__l1__D__Arg(p_r, f_Names__v(p_r, ((int64_t)1))); o3; }); o3; }); o3; })); o3; }); struct E_D__Rule* v_badStart_4 = f_Names__rule(p_r, (&N_Names__RBadStateAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)6)), f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RStart), f_Names__l3__I64(p_r, ((int64_t)5), ((int64_t)6), ((int64_t)4))), f_Names__neg(p_r, (&N_Names__RState), f_Names__l2__I64(p_r, ((int64_t)5), ((int64_t)6))))); struct E_D__Rule* v_badFrom_5 = f_Names__rule(p_r, (&N_Names__RBadStateAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)8)), f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RTrans), f_Names__l5__I64(p_r, ((int64_t)5), ((int64_t)7), ((int64_t)8), ((int64_t)9), ((int64_t)4))), f_Names__neg(p_r, (&N_Names__RState), f_Names__l2__I64(p_r, ((int64_t)5), ((int64_t)8))))); struct E_D__Rule* v_badTo_6 = f_Names__rule(p_r, (&N_Names__RBadStateAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)9)), f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RTrans), f_Names__l5__I64(p_r, ((int64_t)5), ((int64_t)7), ((int64_t)8), ((int64_t)9), ((int64_t)4))), f_Names__neg(p_r, (&N_Names__RState), f_Names__l2__I64(p_r, ((int64_t)5), ((int64_t)9))))); struct E_D__Rule* v_noDrop_7 = f_Names__rule(p_r, (&N_Names__RNoDropAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)7)), f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RDropOp), f_Names__l3__I64(p_r, ((int64_t)5), ((int64_t)7), ((int64_t)4))), f_Names__neg(p_r, (&N_Names__ROpOf), f_Names__l2__I64(p_r, ((int64_t)5), ((int64_t)7))))); struct E_D__Rule* v_noProto_8 = f_Names__rule(p_r, (&N_Names__RNoProtoAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)5)), f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RHandlerFor), f_Names__l3__I64(p_r, ((int64_t)10), ((int64_t)5), ((int64_t)4))), f_Names__neg(p_r, (&N_Names__RIsProto), f_Names__l1__I64(p_r, ((int64_t)5))))); struct E_D__Rule* v_noInit_9 = ({ struct E_D__Rule* o9 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o9->tag = 0; o9->u.C_D__Rule.f_head = f_Names__atom(p_r, (&N_Names__RNoInitAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)10))); o9->u.C_D__Rule.f_body = f_Names__l2__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RHandlerFor), f_Names__l3__I64(p_r, ((int64_t)10), ((int64_t)5), ((int64_t)4))), ({ struct E_D__Lit* o9 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o9->tag = 1; o9->u.C_D__Neg.f_a = ({ struct E_D__Atom* o9 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o9->tag = 0; o9->u.C_D__Atom.f_rel = f_Names__relSym(p_r, (&N_Names__RImpl)); o9->u.C_D__Atom.f_args = f_Names__l2__D__Arg(p_r, f_Names__v(p_r, ((int64_t)10)), ({ struct E_D__Arg* o9 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o9->tag = 1; o9->u.C_D__AVal.f_v = ({ struct E_D__Val* o9 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o9->tag = 0; o9->u.C_D__VSym.f_s = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"init", 4})); o9; }); o9; })); o9; }); o9; })); o9; }); struct E_D__Rule* v_noOp_10 = f_Names__rule(p_r, (&N_Names__RNoOpAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)7)), f_Names__l3__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RHandlerFor), f_Names__l3__I64(p_r, ((int64_t)10), ((int64_t)5), ((int64_t)4))), f_Names__pos(p_r, (&N_Names__ROpOf), f_Names__l2__I64(p_r, ((int64_t)5), ((int64_t)7))), f_Names__neg(p_r, (&N_Names__RImpl), f_Names__l2__I64(p_r, ((int64_t)10), ((int64_t)7))))); struct E_D__Rule* v_badArity_11 = f_Names__rule(p_r, (&N_Names__RBadArityAt), f_Names__l2__I64(p_r, ((int64_t)4), ((int64_t)7)), f_Names__l4__D__Lit(p_r, f_Names__pos(p_r, (&N_Names__RHandlerFor), f_Names__l3__I64(p_r, ((int64_t)10), ((int64_t)5), ((int64_t)11))), f_Names__pos(p_r, (&N_Names__RWantArity), f_Names__l3__I64(p_r, ((int64_t)5), ((int64_t)7), ((int64_t)12))), f_Names__pos(p_r, (&N_Names__RImplArity), f_Names__l4__I64(p_r, ((int64_t)10), ((int64_t)7), ((int64_t)2), ((int64_t)4))), f_Names__neg(p_r, (&N_Names__RSame), f_Names__l2__I64(p_r, ((int64_t)2), ((int64_t)12))))); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_declared_0; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_dup_1; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_unknown_2; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noType_3; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_badStart_4; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_badFrom_5; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_badTo_6; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noDrop_7; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noProto_8; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noInit_9; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noOp_10; o12->u.C_Coll__Cons.f_t = f_Names__l1__D__Rule(p_r, v_badArity_11); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); res_; }); } -static struct E_Coll__List__D__Lit* f_Names__l1__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); } -static struct E_Coll__List__D__Arg* f_Names__l1__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Arg); o0; }); } -static struct E_Coll__List__I64* f_Names__l5__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l4__I64(p_r, p_b, p_c, p_d, p_e); o0; }); } -static struct E_Coll__List__I64* f_Names__l1__I64(srs_cap* p_r, int64_t p_a) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } -static struct E_Coll__List__D__Lit* f_Names__l2__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l1__D__Lit(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Arg* f_Names__l2__D__Arg(srs_cap* p_r, struct E_D__Arg* p_a, struct E_D__Arg* p_b) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l1__D__Arg(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Lit* f_Names__l3__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l2__D__Lit(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__D__Lit* f_Names__l4__D__Lit(srs_cap* p_r, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l3__D__Lit(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__I64* f_Names__l3__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l2__I64(p_r, p_b, p_c); o0; }); } -static struct E_Coll__List__I64* f_Names__l4__I64(srs_cap* p_r, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l3__I64(p_r, p_b, p_c, p_d); o0; }); } -static struct E_Coll__List__I64* f_Names__l2__I64(srs_cap* p_r, int64_t p_a, int64_t p_b) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l1__I64(p_r, p_b); o0; }); } -static struct E_Coll__List__D__Rule* f_Names__l1__D__Rule(srs_cap* p_r, struct E_D__Rule* p_a) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o0; }); } +static struct E_Names__St* f_Names__ty(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { return f_Names__tyIn(p_eff__Region, p_t, p_tps, (&N_Coll__Nil__Sym__Sym), p_st); } +static struct E_Names__St* f_Names__tyIn(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Sym__Sym* p_ls, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_line_0 = s0->u.C_Ast__Ty.f_line; __auto_type v_n_1 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_2 = s0->u.C_Ast__Ty.f_args; __auto_type v_vs_3 = s0->u.C_Ast__Ty.f_vals; ({ __auto_type res_ = f_Names__exprs(p_eff__Region, v_vs_3, p_ls, p_tps, f_Names__tys(p_eff__Region, v_args_2, p_tps, (f_Names__member(v_n_1, p_tps) ? p_st : f_Names__add(p_eff__Region, p_st, f_Names__fTyRef(p_eff__Region, v_n_1, v_line_0))))); res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__tys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__ty(p_eff__Region, v_t_0, p_tps, p_st); p_eff__Region = t0; p_ts = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } +static struct E_Names__St* f_Names__binderTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__ty(p_eff__Region, v_t_2, p_tps, p_st); p_eff__Region = t0; p_bs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__cases(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Case.f_line; __auto_type v_name_3 = s2->u.C_Ast__Case.f_name; __auto_type v_fields_4 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__binderTys(p_eff__Region, v_fields_4, p_tps, f_Names__declare(p_eff__Region, p_st, (&N_Names__NCall), v_name_3, v_line_2)); p_eff__Region = t0; p_cs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__fn(srs_cap* p_eff__Region, struct E_Ast__Fn* p_f, struct E_Coll__List__Sym__Sym* p_outer, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_gs_0 = s0->u.C_Ast__Fn.f_groups; __auto_type v_params_1 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_2 = s0->u.C_Ast__Fn.f_ret; __auto_type v_body_3 = s0->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Names__tparams(p_eff__Region, v_gs_0, p_outer); struct E_Names__St* v_st1_5 = f_Names__ty(p_eff__Region, v_ret_2, v_tps_4, f_Names__binderTys(p_eff__Region, v_params_1, v_tps_4, f_Names__groupTys(p_eff__Region, v_gs_0, v_tps_4, p_st))); struct E_Coll__List__Sym__Sym* v_locals_6 = f_Names__binderNames(p_eff__Region, v_params_1, f_Names__evidenceNames(p_eff__Region, v_gs_0, (&N_Coll__Nil__Sym__Sym))); __auto_type res_ = ({ __auto_type s7 = v_body_3; s7->tag == 1 ? ({ v_st1_5; }) : s7->tag == 0 ? ({ __auto_type v_cs_7 = s7->u.C_Ast__Def.f_cs; __auto_type v_e_8 = s7->u.C_Ast__Def.f_e; f_Names__expr(p_eff__Region, v_e_8, v_locals_6, v_tps_4, f_Names__clauses(p_eff__Region, v_cs_7, v_locals_6, v_tps_4, v_st1_5)); }) : ({ __auto_type v_cs_7 = s7->u.C_Ast__Spec.f_cs; __auto_type v_e_8 = s7->u.C_Ast__Spec.f_e; f_Names__expr(p_eff__Region, v_e_8, v_locals_6, v_tps_4, f_Names__clauses(p_eff__Region, v_cs_7, v_locals_6, v_tps_4, v_st1_5)); }); }); res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__groupTys(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = f_Names__binderTys(p_eff__Region, v_bs_2, p_tps, p_st); p_eff__Region = t0; p_gs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = p_st; p_eff__Region = t0; p_gs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_tps; struct E_Names__St* t3 = p_st; p_eff__Region = t0; p_gs = t1; p_tps = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Names__evidenceNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Names__binderNames(p_eff__Region, v_bs_2, p_acc); p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } +static struct E_Names__St* f_Names__clauses(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Clause* p_cs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__CondC.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_eff__Region, v_e_2, ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"result", 6})); o3->u.C_Coll__Cons.f_t = p_ls; o3; }), p_tps, p_st); p_eff__Region = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_line_2 = s2->u.C_Ast__ProofUsing.f_line; __auto_type v_xs_3 = s2->u.C_Ast__ProofUsing.f_xs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__useAll(p_eff__Region, v_xs_3, v_line_2, p_st); p_eff__Region = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 2 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_eff__Region = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Clause* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_eff__Region = t0; p_cs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }); }); }); }); } +static struct E_Names__St* f_Names__useAll(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_line, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; int64_t t2 = p_line; struct E_Names__St* t3 = f_Names__add(p_eff__Region, p_st, f_Names__fUseCall(p_eff__Region, v_x_0, p_line)); p_eff__Region = t0; p_xs = t1; p_line = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } +static struct E_Names__St* f_Names__expr(srs_cap* p_eff__Region, struct E_Ast__Expr* p_e, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; (f_Names__member(v_x_1, p_ls) ? p_st : f_Names__add(p_eff__Region, p_st, f_Names__fUseCall(p_eff__Region, v_x_1, v_line_0))); }) : s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_2 = s0->u.C_Ast__Call.f_targs; __auto_type v_xs_3 = s0->u.C_Ast__Call.f_args; f_Names__exprs(p_eff__Region, v_xs_3, p_ls, p_tps, f_Names__tys(p_eff__Region, v_targs_2, p_tps, f_Names__add(p_eff__Region, p_st, f_Names__fUseCall(p_eff__Region, v_f_1, v_line_0)))); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Names__exprs(p_eff__Region, v_xs_0, p_ls, p_tps, p_st); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_rhs_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_eff__Region, v_l_0, p_ls, p_tps, p_st); p_eff__Region = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_eff__Region = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_2; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_eff__Region, v_t_1, p_ls, p_tps, f_Names__expr(p_eff__Region, v_c_0, p_ls, p_tps, p_st)); p_eff__Region = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_b_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_eff__Region, v_c_0, p_ls, p_tps, p_st); p_eff__Region = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_x_0; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = p_st; p_eff__Region = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 14 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_1 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_2 = s0->u.C_Ast__Quant.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = v_b_2; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_0; o3->u.C_Coll__Cons.f_t = p_ls; o3; }); struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__ty(p_eff__Region, v_t_1, p_tps, p_st); p_eff__Region = t0; p_e = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Names__arms(p_eff__Region, v_arms_1, p_ls, p_tps, f_Names__expr(p_eff__Region, v_s_0, p_ls, p_tps, p_st)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Names__block(p_eff__Region, v_ss_0, v_last_1, p_ls, p_tps, p_st); }) : ({ p_st; }); }); } +static struct E_Names__St* f_Names__exprs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Expr* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = f_Names__expr(p_eff__Region, v_x_0, p_ls, p_tps, p_st); p_eff__Region = t0; p_xs = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } +static struct E_Names__St* f_Names__arms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Arm.f_line; __auto_type v_p_3 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_4 = s2->u.C_Ast__Arm.f_body; ({ struct E_Names__St* v_st1_5 = ({ __auto_type s5 = v_p_3; s5->tag == 0 ? ({ __auto_type v_c_5 = s5->u.C_Ast__PCase.f_c; __auto_type v_binds_6 = s5->u.C_Ast__PCase.f_binds; f_Names__expr(p_eff__Region, v_b_4, f_Names__binderSyms(p_eff__Region, v_binds_6, p_ls), p_tps, f_Names__add(p_eff__Region, p_st, f_Names__fUseCall(p_eff__Region, v_c_5, v_line_2))); }) : ({ f_Names__expr(p_eff__Region, v_b_4, p_ls, p_tps, p_st); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_ls; struct E_Coll__List__Sym__Sym* t3 = p_tps; struct E_Names__St* t4 = v_st1_5; p_eff__Region = t0; p_as = t1; p_ls = t2; p_tps = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Names__binderSyms(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); } +static struct E_Names__St* f_Names__block(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__List__Sym__Sym* p_ls, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ f_Names__expr(p_eff__Region, p_last, p_ls, p_tps, p_st); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_ann_3 = s2->u.C_Ast__Val.f_ann; __auto_type v_e_4 = s2->u.C_Ast__Val.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_ls; o5; }); struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__annTy(p_eff__Region, v_ann_3, p_tps, f_Names__expr(p_eff__Region, v_e_4, p_ls, p_tps, p_st)); p_eff__Region = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Var.f_x; __auto_type v_ann_3 = s2->u.C_Ast__Var.f_ann; __auto_type v_e_4 = s2->u.C_Ast__Var.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_ls; o5; }); struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__annTy(p_eff__Region, v_ann_3, p_tps, f_Names__expr(p_eff__Region, v_e_4, p_ls, p_tps, p_st)); p_eff__Region = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_line_2 = s2->u.C_Ast__Handle.f_line; __auto_type v_x_3 = s2->u.C_Ast__Handle.f_x; __auto_type v_h_4 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_5 = s2->u.C_Ast__Handle.f_args; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o6 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_x_3; o6->u.C_Coll__Cons.f_t = p_ls; o6; }); struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__exprs(p_eff__Region, v_xs_5, p_ls, p_tps, f_Names__add(p_eff__Region, p_st, f_Names__fTyRef(p_eff__Region, v_h_4, v_line_2))); p_eff__Region = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__expr(p_eff__Region, v_e_2, p_ls, p_tps, p_st); p_eff__Region = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_rest_1; struct E_Ast__Expr* t2 = p_last; struct E_Coll__List__Sym__Sym* t3 = p_ls; struct E_Coll__List__Sym__Sym* t4 = p_tps; struct E_Names__St* t5 = f_Names__expr(p_eff__Region, v_e_2, p_ls, p_tps, p_st); p_eff__Region = t0; p_ss = t1; p_last = t2; p_ls = t3; p_tps = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); }); }); }); }); } +static struct E_Names__St* f_Names__annTy(srs_cap* p_eff__Region, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Sym__Sym* p_tps, struct E_Names__St* p_st) { return ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; f_Names__ty(p_eff__Region, v_t_0, p_tps, p_st); }); }); } +static struct E_Names__St* f_Names__proto(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Ast__Proto* p_p, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_p; ({ __auto_type v_line_0 = s0->u.C_Ast__Proto.f_line; __auto_type v_name_1 = s0->u.C_Ast__Proto.f_name; __auto_type v_states_2 = s0->u.C_Ast__Proto.f_states; __auto_type v_start_3 = s0->u.C_Ast__Proto.f_start; __auto_type v_dropOp_4 = s0->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_5 = s0->u.C_Ast__Proto.f_ops; ({ struct E_Names__St* v_st1_6 = f_Names__add(p_eff__Region, f_Names__add(p_eff__Region, f_Names__declare(p_eff__Region, p_st, (&N_Names__NType), v_name_1, v_line_0), f_Names__fIsProto(p_eff__Region, v_name_1)), f_Names__fStart(p_eff__Region, v_name_1, v_start_3, v_line_0)); struct E_Names__St* v_st2_7 = f_Names__statesF(p_eff__Region, v_name_1, v_states_2, v_st1_6); struct E_Names__St* v_st3_8 = ({ __auto_type s8 = v_dropOp_4; s8->tag == 0 ? ({ v_st2_7; }) : ({ __auto_type v_d_8 = s8->u.C_Coll__Some.f_v; f_Names__add(p_eff__Region, v_st2_7, f_Names__fDropOp(p_eff__Region, v_name_1, v_d_8, v_line_0)); }); }); __auto_type res_ = f_Names__ops(p_eff__Console, p_eff__Region, v_name_1, v_ops_5, v_st3_8); res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__statesF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_ss, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_p; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Names__St* t3 = f_Names__add(p_eff__Region, p_st, f_Names__fState(p_eff__Region, p_p, v_s_0)); p_eff__Region = t0; p_p = t1; p_ss = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); }); }); } +static struct E_Names__St* f_Names__ops(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Coll__List__Ast__Op* p_os, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Op.f_line; __auto_type v_name_3 = s2->u.C_Ast__Op.f_name; __auto_type v_params_4 = s2->u.C_Ast__Op.f_params; __auto_type v_ret_5 = s2->u.C_Ast__Op.f_ret; __auto_type v_trs_6 = s2->u.C_Ast__Op.f_trans; ({ int64_t v_n_7 = (f_Coll__length__Ast__Binder(v_params_4) + ((int64_t)1)); struct E_Names__St* v_st1_8 = f_Names__add(p_eff__Region, f_Names__add(p_eff__Region, f_Names__add(p_eff__Region, f_Names__declare(p_eff__Region, p_st, (&N_Names__NCall), f_Eff__dotted(p_eff__Region, p_eff__Console, f_Sym__str(p_p), v_name_3), v_line_2), f_Names__fOpOf(p_eff__Region, p_p, v_name_3)), f_Names__fWantArity(p_eff__Region, p_p, v_name_3, v_n_7)), f_Names__fSameI(p_eff__Region, v_n_7)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Sym__Sym* t2 = p_p; struct E_Coll__List__Ast__Op* t3 = v_rest_1; struct E_Names__St* t4 = f_Names__transF(p_eff__Region, p_p, v_name_3, v_trs_6, v_line_2, f_Names__ty(p_eff__Region, v_ret_5, (&N_Coll__Nil__Sym__Sym), f_Names__binderTys(p_eff__Region, v_params_4, (&N_Coll__Nil__Sym__Sym), v_st1_8))); p_eff__Console = t0; p_eff__Region = t1; p_p = t2; p_os = t3; p_st = t4; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__transF(srs_cap* p_eff__Region, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Trans* p_trs, int64_t p_line, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_a_2 = s2->u.C_Ast__Trans.f_from; __auto_type v_b_3 = s2->u.C_Ast__Trans.f_to; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_p; struct E_Sym__Sym* t2 = p_op; struct E_Coll__List__Ast__Trans* t3 = v_rest_1; int64_t t4 = p_line; struct E_Names__St* t5 = f_Names__add(p_eff__Region, p_st, f_Names__fTrans(p_eff__Region, p_p, p_op, v_a_2, v_b_3, p_line)); p_eff__Region = t0; p_p = t1; p_op = t2; p_trs = t3; p_line = t4; p_st = t5; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Names__St* f_Names__handler(srs_cap* p_eff__Region, struct E_Ast__Handler* p_h, struct E_Names__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_h; ({ __auto_type v_line_0 = s0->u.C_Ast__Handler.f_line; __auto_type v_name_1 = s0->u.C_Ast__Handler.f_name; __auto_type v_p_2 = s0->u.C_Ast__Handler.f_proto; __auto_type v_fns_3 = s0->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = f_Names__hfns(p_eff__Region, v_name_1, v_fns_3, f_Names__add(p_eff__Region, f_Names__declare(p_eff__Region, p_st, (&N_Names__NType), v_name_1, v_line_0), f_Names__fHandlerFor(p_eff__Region, v_name_1, v_p_2, v_line_0))); res_; }); }); }); res_; }); } +static struct E_Names__St* f_Names__hfns(srs_cap* p_eff__Region, struct E_Sym__Sym* p_h, struct E_Coll__List__Ast__Fn* p_fs, struct E_Names__St* p_st) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_name_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_params_4 = s2->u.C_Ast__Fn.f_params; ({ int64_t v_n_5 = f_Coll__length__Ast__Binder(v_params_4); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Sym__Sym* t1 = p_h; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Names__St* t3 = f_Names__fn(p_eff__Region, v_f_0, (&N_Coll__Nil__Sym__Sym), f_Names__add(p_eff__Region, f_Names__add(p_eff__Region, f_Names__add(p_eff__Region, p_st, f_Names__fImpl(p_eff__Region, p_h, v_name_3)), f_Names__fImplArity(p_eff__Region, p_h, v_name_3, v_n_5, v_line_2)), f_Names__fSameI(p_eff__Region, v_n_5))); p_eff__Region = t0; p_h = t1; p_fs = t2; p_st = t3; goto srs_tail; (struct E_Names__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_D__Arg* f_Names__v(srs_cap* p_eff__Region, int64_t p_n) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o0->tag = 0; o0->u.C_D__AVar.f_n = p_n; o0; }); } +static struct E_D__Atom* f_Names__atom(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Names__relSym(p_eff__Region, p_rel); o0->u.C_D__Atom.f_args = f_Names__vars(p_eff__Region, p_xs); o0; }); } +static struct E_Coll__List__D__Arg* f_Names__vars(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__v(p_eff__Region, v_x_0); o2->u.C_Coll__Cons.f_t = f_Names__vars(p_eff__Region, v_rest_1); o2; }); }); }); } +static struct E_D__Lit* f_Names__pos(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Names__atom(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_D__Lit* f_Names__neg(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o0->tag = 1; o0->u.C_D__Neg.f_a = f_Names__atom(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_D__Rule* f_Names__rule(srs_cap* p_eff__Region, struct E_Names__Rel* p_rel, struct E_Coll__List__I64* p_xs, struct E_Coll__List__D__Lit* p_body) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Names__atom(p_eff__Region, p_rel, p_xs); o0->u.C_D__Rule.f_body = p_body; o0; }); } +static struct E_D__Arg* f_Names__callNs(srs_cap* p_eff__Region) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)0); o0; }); o0; }); } +static struct E_D__Arg* f_Names__typeNs(srs_cap* p_eff__Region) { return ({ struct E_D__Arg* o0 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o0->tag = 1; o0->u.C_D__AVal.f_v = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VInt))); o0->tag = 1; o0->u.C_D__VInt.f_v = ((int64_t)1); o0; }); o0; }); } +static struct E_Coll__List__D__Rule* f_Names__rules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_declared_0 = f_Names__rule(p_eff__Region, (&N_Names__RDeclared), f_Names__l2__I64(p_eff__Region, ((int64_t)0), ((int64_t)1)), f_Names__l1__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RDecl), f_Names__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2))))); struct E_D__Rule* v_dup_1 = f_Names__rule(p_eff__Region, (&N_Names__RDupAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)1)), f_Names__l4__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RDecl), f_Names__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)2))), f_Names__pos(p_eff__Region, (&N_Names__RDecl), f_Names__l3__I64(p_eff__Region, ((int64_t)0), ((int64_t)1), ((int64_t)3))), f_Names__neg(p_eff__Region, (&N_Names__RSame), f_Names__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)3))), f_Names__pos(p_eff__Region, (&N_Names__RDeclLine), f_Names__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)4))))); struct E_D__Rule* v_unknown_2 = ({ struct E_D__Rule* o2 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o2->tag = 0; o2->u.C_D__Rule.f_head = f_Names__atom(p_eff__Region, (&N_Names__RUnknownAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)1))); o2->u.C_D__Rule.f_body = f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RUseCall), f_Names__l2__I64(p_eff__Region, ((int64_t)1), ((int64_t)4))), ({ struct E_D__Lit* o2 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o2->tag = 1; o2->u.C_D__Neg.f_a = ({ struct E_D__Atom* o2 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o2->tag = 0; o2->u.C_D__Atom.f_rel = f_Names__relSym(p_eff__Region, (&N_Names__RDeclared)); o2->u.C_D__Atom.f_args = ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Names__callNs(p_eff__Region); o2->u.C_Coll__Cons.f_t = f_Names__l1__D__Arg(p_eff__Region, f_Names__v(p_eff__Region, ((int64_t)1))); o2; }); o2; }); o2; })); o2; }); struct E_D__Rule* v_noType_3 = ({ struct E_D__Rule* o3 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o3->tag = 0; o3->u.C_D__Rule.f_head = f_Names__atom(p_eff__Region, (&N_Names__RNoTypeAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)1))); o3->u.C_D__Rule.f_body = f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RTyRef), f_Names__l2__I64(p_eff__Region, ((int64_t)1), ((int64_t)4))), ({ struct E_D__Lit* o3 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o3->tag = 1; o3->u.C_D__Neg.f_a = ({ struct E_D__Atom* o3 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o3->tag = 0; o3->u.C_D__Atom.f_rel = f_Names__relSym(p_eff__Region, (&N_Names__RDeclared)); o3->u.C_D__Atom.f_args = ({ struct E_Coll__List__D__Arg* o3 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Names__typeNs(p_eff__Region); o3->u.C_Coll__Cons.f_t = f_Names__l1__D__Arg(p_eff__Region, f_Names__v(p_eff__Region, ((int64_t)1))); o3; }); o3; }); o3; })); o3; }); struct E_D__Rule* v_badStart_4 = f_Names__rule(p_eff__Region, (&N_Names__RBadStateAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)6)), f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RStart), f_Names__l3__I64(p_eff__Region, ((int64_t)5), ((int64_t)6), ((int64_t)4))), f_Names__neg(p_eff__Region, (&N_Names__RState), f_Names__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)6))))); struct E_D__Rule* v_badFrom_5 = f_Names__rule(p_eff__Region, (&N_Names__RBadStateAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)8)), f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RTrans), f_Names__l5__I64(p_eff__Region, ((int64_t)5), ((int64_t)7), ((int64_t)8), ((int64_t)9), ((int64_t)4))), f_Names__neg(p_eff__Region, (&N_Names__RState), f_Names__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)8))))); struct E_D__Rule* v_badTo_6 = f_Names__rule(p_eff__Region, (&N_Names__RBadStateAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)9)), f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RTrans), f_Names__l5__I64(p_eff__Region, ((int64_t)5), ((int64_t)7), ((int64_t)8), ((int64_t)9), ((int64_t)4))), f_Names__neg(p_eff__Region, (&N_Names__RState), f_Names__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)9))))); struct E_D__Rule* v_noDrop_7 = f_Names__rule(p_eff__Region, (&N_Names__RNoDropAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)7)), f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RDropOp), f_Names__l3__I64(p_eff__Region, ((int64_t)5), ((int64_t)7), ((int64_t)4))), f_Names__neg(p_eff__Region, (&N_Names__ROpOf), f_Names__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)7))))); struct E_D__Rule* v_noProto_8 = f_Names__rule(p_eff__Region, (&N_Names__RNoProtoAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)5)), f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RHandlerFor), f_Names__l3__I64(p_eff__Region, ((int64_t)10), ((int64_t)5), ((int64_t)4))), f_Names__neg(p_eff__Region, (&N_Names__RIsProto), f_Names__l1__I64(p_eff__Region, ((int64_t)5))))); struct E_D__Rule* v_noInit_9 = ({ struct E_D__Rule* o9 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o9->tag = 0; o9->u.C_D__Rule.f_head = f_Names__atom(p_eff__Region, (&N_Names__RNoInitAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)10))); o9->u.C_D__Rule.f_body = f_Names__l2__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RHandlerFor), f_Names__l3__I64(p_eff__Region, ((int64_t)10), ((int64_t)5), ((int64_t)4))), ({ struct E_D__Lit* o9 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Neg))); o9->tag = 1; o9->u.C_D__Neg.f_a = ({ struct E_D__Atom* o9 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o9->tag = 0; o9->u.C_D__Atom.f_rel = f_Names__relSym(p_eff__Region, (&N_Names__RImpl)); o9->u.C_D__Atom.f_args = f_Names__l2__D__Arg(p_eff__Region, f_Names__v(p_eff__Region, ((int64_t)10)), ({ struct E_D__Arg* o9 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVal))); o9->tag = 1; o9->u.C_D__AVal.f_v = ({ struct E_D__Val* o9 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o9->tag = 0; o9->u.C_D__VSym.f_s = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"init", 4})); o9; }); o9; })); o9; }); o9; })); o9; }); struct E_D__Rule* v_noOp_10 = f_Names__rule(p_eff__Region, (&N_Names__RNoOpAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)7)), f_Names__l3__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RHandlerFor), f_Names__l3__I64(p_eff__Region, ((int64_t)10), ((int64_t)5), ((int64_t)4))), f_Names__pos(p_eff__Region, (&N_Names__ROpOf), f_Names__l2__I64(p_eff__Region, ((int64_t)5), ((int64_t)7))), f_Names__neg(p_eff__Region, (&N_Names__RImpl), f_Names__l2__I64(p_eff__Region, ((int64_t)10), ((int64_t)7))))); struct E_D__Rule* v_badArity_11 = f_Names__rule(p_eff__Region, (&N_Names__RBadArityAt), f_Names__l2__I64(p_eff__Region, ((int64_t)4), ((int64_t)7)), f_Names__l4__D__Lit(p_eff__Region, f_Names__pos(p_eff__Region, (&N_Names__RHandlerFor), f_Names__l3__I64(p_eff__Region, ((int64_t)10), ((int64_t)5), ((int64_t)11))), f_Names__pos(p_eff__Region, (&N_Names__RWantArity), f_Names__l3__I64(p_eff__Region, ((int64_t)5), ((int64_t)7), ((int64_t)12))), f_Names__pos(p_eff__Region, (&N_Names__RImplArity), f_Names__l4__I64(p_eff__Region, ((int64_t)10), ((int64_t)7), ((int64_t)2), ((int64_t)4))), f_Names__neg(p_eff__Region, (&N_Names__RSame), f_Names__l2__I64(p_eff__Region, ((int64_t)2), ((int64_t)12))))); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_declared_0; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_dup_1; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_unknown_2; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noType_3; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_badStart_4; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_badFrom_5; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_badTo_6; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noDrop_7; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noProto_8; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noInit_9; o12->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o12 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o12->tag = 1; o12->u.C_Coll__Cons.f_h = v_noOp_10; o12->u.C_Coll__Cons.f_t = f_Names__l1__D__Rule(p_eff__Region, v_badArity_11); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); o12; }); res_; }); } +static struct E_Coll__List__D__Lit* f_Names__l1__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); } +static struct E_Coll__List__D__Arg* f_Names__l1__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Arg); o0; }); } +static struct E_Coll__List__I64* f_Names__l5__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d, int64_t p_e) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l4__I64(p_eff__Region, p_b, p_c, p_d, p_e); o0; }); } +static struct E_Coll__List__I64* f_Names__l1__I64(srs_cap* p_eff__Region, int64_t p_a) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } +static struct E_Coll__List__D__Lit* f_Names__l2__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l1__D__Lit(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Arg* f_Names__l2__D__Arg(srs_cap* p_eff__Region, struct E_D__Arg* p_a, struct E_D__Arg* p_b) { return ({ struct E_Coll__List__D__Arg* o0 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l1__D__Arg(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Lit* f_Names__l3__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l2__D__Lit(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__D__Lit* f_Names__l4__D__Lit(srs_cap* p_eff__Region, struct E_D__Lit* p_a, struct E_D__Lit* p_b, struct E_D__Lit* p_c, struct E_D__Lit* p_d) { return ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l3__D__Lit(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__I64* f_Names__l3__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l2__I64(p_eff__Region, p_b, p_c); o0; }); } +static struct E_Coll__List__I64* f_Names__l4__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b, int64_t p_c, int64_t p_d) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l3__I64(p_eff__Region, p_b, p_c, p_d); o0; }); } +static struct E_Coll__List__I64* f_Names__l2__I64(srs_cap* p_eff__Region, int64_t p_a, int64_t p_b) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = f_Names__l1__I64(p_eff__Region, p_b); o0; }); } +static struct E_Coll__List__D__Rule* f_Names__l1__D__Rule(srs_cap* p_eff__Region, struct E_D__Rule* p_a) { return ({ struct E_Coll__List__D__Rule* o0 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_a; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o0; }); } static struct E_Names__Rel* f_Names__relOf(struct E_Names__Kind* p_k) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ (&N_Names__RDupAt); }) : s0->tag == 1 ? ({ (&N_Names__RUnknownAt); }) : s0->tag == 2 ? ({ (&N_Names__RNoTypeAt); }) : s0->tag == 3 ? ({ (&N_Names__RBadStateAt); }) : s0->tag == 4 ? ({ (&N_Names__RNoDropAt); }) : s0->tag == 5 ? ({ (&N_Names__RNoProtoAt); }) : s0->tag == 6 ? ({ (&N_Names__RNoInitAt); }) : s0->tag == 7 ? ({ (&N_Names__RNoOpAt); }) : ({ (&N_Names__RBadArityAt); }); }); } -static struct E_Names__Clash* f_Names__make(srs_cap* p_r, struct E_Names__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__Dup))); o0->tag = 0; o0->u.C_Names__Dup.f_line = p_line; o0->u.C_Names__Dup.f_name = p_n; o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__Unknown))); o0->tag = 1; o0->u.C_Names__Unknown.f_line = p_line; o0->u.C_Names__Unknown.f_name = p_n; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoType))); o0->tag = 2; o0->u.C_Names__NoType.f_line = p_line; o0->u.C_Names__NoType.f_name = p_n; o0; }); }) : s0->tag == 3 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__BadState))); o0->tag = 3; o0->u.C_Names__BadState.f_line = p_line; o0->u.C_Names__BadState.f_name = p_n; o0; }); }) : s0->tag == 4 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoDrop))); o0->tag = 4; o0->u.C_Names__NoDrop.f_line = p_line; o0->u.C_Names__NoDrop.f_name = p_n; o0; }); }) : s0->tag == 5 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoProto))); o0->tag = 5; o0->u.C_Names__NoProto.f_line = p_line; o0->u.C_Names__NoProto.f_name = p_n; o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoInit))); o0->tag = 6; o0->u.C_Names__NoInit.f_line = p_line; o0->u.C_Names__NoInit.f_name = p_n; o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoOp))); o0->tag = 7; o0->u.C_Names__NoOp.f_line = p_line; o0->u.C_Names__NoOp.f_name = p_n; o0; }); }) : ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__BadArity))); o0->tag = 8; o0->u.C_Names__BadArity.f_line = p_line; o0->u.C_Names__BadArity.f_name = p_n; o0; }); }); }); } -static struct E_Names__Read* f_Names__read(srs_cap* p_r, struct E_D__Model* p_m, struct E_Names__Kind* p_k, struct E_Names__Read* p_prev) { return ({ __auto_type s0 = p_prev; s0->tag == 1 ? ({ p_prev; }) : ({ __auto_type v_acc_0 = s0->u.C_Names__Got.f_cs; f_Names__readList(p_r, p_k, f_D__tuples(p_r, p_m, f_Names__relSym(p_r, f_Names__relOf(p_k))), v_acc_0); }); }); } -static struct E_Names__Read* f_Names__readList(srs_cap* p_r, struct E_Names__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Names__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Names__Read* o0 = (struct E_Names__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Read, u) + sizeof(((struct E_Names__Read*)0)->u.C_Names__Got))); o0->tag = 0; o0->u.C_Names__Got.f_cs = p_acc; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Names__clashOf(p_r, p_k, v_t_0); s2->tag == 0 ? ({ ({ struct E_Names__Read* o2 = (struct E_Names__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Read, u) + sizeof(((struct E_Names__Read*)0)->u.C_Names__IllTyped))); o2->tag = 1; o2->u.C_Names__IllTyped.f_rel = f_Names__relSym(p_r, f_Names__relOf(p_k)); o2; }); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Names__Kind* t1 = p_k; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__List__Names__Clash* t3 = ({ struct E_Coll__List__Names__Clash* o3 = (struct E_Coll__List__Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Names__Clash, u) + sizeof(((struct E_Coll__List__Names__Clash*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_c_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_k = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Names__Read*){0}; }); }); }); }); }); } -static struct E_Coll__Option__Names__Clash* f_Names__clashOf(srs_cap* p_r, struct E_Names__Kind* p_k, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_rest_1; s2->tag == 1 ? ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 0 ? ({ ({ __auto_type s4 = v_a_0; s4->tag == 1 ? ({ __auto_type v_line_4 = s4->u.C_D__VInt.f_v; ({ __auto_type s5 = v_b_2; s5->tag == 0 ? ({ __auto_type v_n_5 = s5->u.C_D__VSym.f_s; ({ struct E_Coll__Option__Names__Clash* o6 = (struct E_Coll__Option__Names__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Names__Clash, u) + sizeof(((struct E_Coll__Option__Names__Clash*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = f_Names__make(p_r, p_k, v_line_4, v_n_5); o6; }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); } -static struct E_Names__Read* f_Names__readAll(srs_cap* p_r, struct E_D__Model* p_m) { return ({ struct E_Names__Read* v_r1_0 = f_Names__read(p_r, p_m, (&N_Names__KDup), f_Names__read(p_r, p_m, (&N_Names__KUnknown), f_Names__read(p_r, p_m, (&N_Names__KNoType), ({ struct E_Names__Read* o0 = (struct E_Names__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Read, u) + sizeof(((struct E_Names__Read*)0)->u.C_Names__Got))); o0->tag = 0; o0->u.C_Names__Got.f_cs = (&N_Coll__Nil__Names__Clash); o0; })))); struct E_Names__Read* v_r2_1 = f_Names__read(p_r, p_m, (&N_Names__KBadState), f_Names__read(p_r, p_m, (&N_Names__KNoDrop), f_Names__read(p_r, p_m, (&N_Names__KNoProto), v_r1_0))); __auto_type res_ = f_Names__read(p_r, p_m, (&N_Names__KNoInit), f_Names__read(p_r, p_m, (&N_Names__KNoOp), f_Names__read(p_r, p_m, (&N_Names__KBadArity), v_r2_1))); res_; }); } -static struct E_Names__Verdict* f_Names__check(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_D__solve(p_r, f_Names__rules(p_r), f_Names__facts(p_r, p_eff__Console, p_ds)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; ({ __auto_type s1 = f_Names__readAll(p_r, v_m_0); s1->tag == 1 ? ({ __auto_type v_rel_1 = s1->u.C_Names__IllTyped.f_rel; ({ struct E_Names__Verdict* o2 = (struct E_Names__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__RulesBad))); o2->tag = 2; o2->u.C_Names__RulesBad.f_rel = v_rel_1; o2; }); }) : ({ __auto_type v_cs_1 = s1->u.C_Names__Got.f_cs; ({ __auto_type s2 = v_cs_1; s2->tag == 0 ? ({ (&N_Names__Ok); }) : ({ ({ struct E_Names__Verdict* o2 = (struct E_Names__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__Bad))); o2->tag = 1; o2->u.C_Names__Bad.f_clashes = v_cs_1; o2; }); }); }); }); }); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Names__Verdict* o1 = (struct E_Names__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__RulesBad))); o1->tag = 2; o1->u.C_Names__RulesBad.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Names__Verdict* o1 = (struct E_Names__Verdict*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__RulesBad))); o1->tag = 2; o1->u.C_Names__RulesBad.f_rel = v_rel_0; o1; }); }); }); } -static struct E_Lex__Tok* f_Parse__eof(srs_cap* p_r) { return ({ struct E_Lex__Tok* o0 = (struct E_Lex__Tok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TEof))); o0->tag = 8; o0->u.C_Lex__TEof.f_line = ((int64_t)0); o0; }); } -static struct E_Lex__Tok* f_Parse__peek(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Parse__eof(p_r); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; v_t_0; }); }); } -static struct E_Coll__List__Lex__Tok* f_Parse__next(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_ts; }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; v_rest_0; }); }); } -static struct E_Lex__Tok* f_Parse__second(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return f_Parse__peek(p_r, f_Parse__next(p_r, p_ts)); } +static struct E_Names__Clash* f_Names__make(srs_cap* p_eff__Region, struct E_Names__Kind* p_k, int64_t p_line, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__Dup))); o0->tag = 0; o0->u.C_Names__Dup.f_line = p_line; o0->u.C_Names__Dup.f_name = p_n; o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__Unknown))); o0->tag = 1; o0->u.C_Names__Unknown.f_line = p_line; o0->u.C_Names__Unknown.f_name = p_n; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoType))); o0->tag = 2; o0->u.C_Names__NoType.f_line = p_line; o0->u.C_Names__NoType.f_name = p_n; o0; }); }) : s0->tag == 3 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__BadState))); o0->tag = 3; o0->u.C_Names__BadState.f_line = p_line; o0->u.C_Names__BadState.f_name = p_n; o0; }); }) : s0->tag == 4 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoDrop))); o0->tag = 4; o0->u.C_Names__NoDrop.f_line = p_line; o0->u.C_Names__NoDrop.f_name = p_n; o0; }); }) : s0->tag == 5 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoProto))); o0->tag = 5; o0->u.C_Names__NoProto.f_line = p_line; o0->u.C_Names__NoProto.f_name = p_n; o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoInit))); o0->tag = 6; o0->u.C_Names__NoInit.f_line = p_line; o0->u.C_Names__NoInit.f_name = p_n; o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__NoOp))); o0->tag = 7; o0->u.C_Names__NoOp.f_line = p_line; o0->u.C_Names__NoOp.f_name = p_n; o0; }); }) : ({ ({ struct E_Names__Clash* o0 = (struct E_Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Clash, u) + sizeof(((struct E_Names__Clash*)0)->u.C_Names__BadArity))); o0->tag = 8; o0->u.C_Names__BadArity.f_line = p_line; o0->u.C_Names__BadArity.f_name = p_n; o0; }); }); }); } +static struct E_Names__Read* f_Names__read(srs_cap* p_eff__Region, struct E_D__Model* p_m, struct E_Names__Kind* p_k, struct E_Names__Read* p_prev) { return ({ __auto_type s0 = p_prev; s0->tag == 1 ? ({ p_prev; }) : ({ __auto_type v_acc_0 = s0->u.C_Names__Got.f_cs; f_Names__readList(p_eff__Region, p_k, f_D__tuples(p_eff__Region, p_m, f_Names__relSym(p_eff__Region, f_Names__relOf(p_k))), v_acc_0); }); }); } +static struct E_Names__Read* f_Names__readList(srs_cap* p_eff__Region, struct E_Names__Kind* p_k, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__List__Names__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Names__Read* o0 = (struct E_Names__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Read, u) + sizeof(((struct E_Names__Read*)0)->u.C_Names__Got))); o0->tag = 0; o0->u.C_Names__Got.f_cs = p_acc; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Names__clashOf(p_eff__Region, p_k, v_t_0); s2->tag == 0 ? ({ ({ struct E_Names__Read* o2 = (struct E_Names__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Read, u) + sizeof(((struct E_Names__Read*)0)->u.C_Names__IllTyped))); o2->tag = 1; o2->u.C_Names__IllTyped.f_rel = f_Names__relSym(p_eff__Region, f_Names__relOf(p_k)); o2; }); }) : ({ __auto_type v_c_2 = s2->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Names__Kind* t1 = p_k; struct E_Coll__List__Coll__List_1_D__Val* t2 = v_rest_1; struct E_Coll__List__Names__Clash* t3 = ({ struct E_Coll__List__Names__Clash* o3 = (struct E_Coll__List__Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Names__Clash, u) + sizeof(((struct E_Coll__List__Names__Clash*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_c_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_k = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Names__Read*){0}; }); }); }); }); }); } +static struct E_Coll__Option__Names__Clash* f_Names__clashOf(srs_cap* p_eff__Region, struct E_Names__Kind* p_k, struct E_Coll__List__D__Val* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_rest_1; s2->tag == 1 ? ({ __auto_type v_b_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_more_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type s4 = v_more_3; s4->tag == 0 ? ({ ({ __auto_type s4 = v_a_0; s4->tag == 1 ? ({ __auto_type v_line_4 = s4->u.C_D__VInt.f_v; ({ __auto_type s5 = v_b_2; s5->tag == 0 ? ({ __auto_type v_n_5 = s5->u.C_D__VSym.f_s; ({ struct E_Coll__Option__Names__Clash* o6 = (struct E_Coll__Option__Names__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Names__Clash, u) + sizeof(((struct E_Coll__Option__Names__Clash*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = f_Names__make(p_eff__Region, p_k, v_line_4, v_n_5); o6; }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); }) : ({ (&N_Coll__None__Names__Clash); }); }); } +static struct E_Names__Read* f_Names__readAll(srs_cap* p_eff__Region, struct E_D__Model* p_m) { return ({ struct E_Names__Read* v_r1_0 = f_Names__read(p_eff__Region, p_m, (&N_Names__KDup), f_Names__read(p_eff__Region, p_m, (&N_Names__KUnknown), f_Names__read(p_eff__Region, p_m, (&N_Names__KNoType), ({ struct E_Names__Read* o0 = (struct E_Names__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Read, u) + sizeof(((struct E_Names__Read*)0)->u.C_Names__Got))); o0->tag = 0; o0->u.C_Names__Got.f_cs = (&N_Coll__Nil__Names__Clash); o0; })))); struct E_Names__Read* v_r2_1 = f_Names__read(p_eff__Region, p_m, (&N_Names__KBadState), f_Names__read(p_eff__Region, p_m, (&N_Names__KNoDrop), f_Names__read(p_eff__Region, p_m, (&N_Names__KNoProto), v_r1_0))); __auto_type res_ = f_Names__read(p_eff__Region, p_m, (&N_Names__KNoInit), f_Names__read(p_eff__Region, p_m, (&N_Names__KNoOp), f_Names__read(p_eff__Region, p_m, (&N_Names__KBadArity), v_r2_1))); res_; }); } +static struct E_Names__Verdict* f_Names__check(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_D__solve(p_eff__Region, f_Names__rules(p_eff__Region), f_Names__facts(p_eff__Console, p_eff__Region, p_ds)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; ({ __auto_type s1 = f_Names__readAll(p_eff__Region, v_m_0); s1->tag == 1 ? ({ __auto_type v_rel_1 = s1->u.C_Names__IllTyped.f_rel; ({ struct E_Names__Verdict* o2 = (struct E_Names__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__RulesBad))); o2->tag = 2; o2->u.C_Names__RulesBad.f_rel = v_rel_1; o2; }); }) : ({ __auto_type v_cs_1 = s1->u.C_Names__Got.f_cs; ({ __auto_type s2 = v_cs_1; s2->tag == 0 ? ({ (&N_Names__Ok); }) : ({ ({ struct E_Names__Verdict* o2 = (struct E_Names__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__Bad))); o2->tag = 1; o2->u.C_Names__Bad.f_clashes = v_cs_1; o2; }); }); }); }); }); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Names__Verdict* o1 = (struct E_Names__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__RulesBad))); o1->tag = 2; o1->u.C_Names__RulesBad.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Names__Verdict* o1 = (struct E_Names__Verdict*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Names__Verdict, u) + sizeof(((struct E_Names__Verdict*)0)->u.C_Names__RulesBad))); o1->tag = 2; o1->u.C_Names__RulesBad.f_rel = v_rel_0; o1; }); }); }); } +static struct E_Lex__Tok* f_Parse__eof(srs_cap* p_eff__Region) { return ({ struct E_Lex__Tok* o0 = (struct E_Lex__Tok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Lex__Tok, u) + sizeof(((struct E_Lex__Tok*)0)->u.C_Lex__TEof))); o0->tag = 8; o0->u.C_Lex__TEof.f_line = ((int64_t)0); o0; }); } +static struct E_Lex__Tok* f_Parse__peek(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Parse__eof(p_eff__Region); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; v_t_0; }); }); } +static struct E_Coll__List__Lex__Tok* f_Parse__next(struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_ts; }) : ({ __auto_type v_rest_0 = s0->u.C_Coll__Cons.f_t; v_rest_0; }); }); } +static struct E_Lex__Tok* f_Parse__second(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return f_Parse__peek(p_eff__Region, f_Parse__next(p_ts)); } static int64_t f_Parse__lineOf(struct E_Lex__Tok* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TIdent.f_line; v_l_0; }) : s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TInt.f_line; v_l_0; }) : s0->tag == 2 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TStr.f_line; v_l_0; }) : s0->tag == 3 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TChar.f_line; v_l_0; }) : s0->tag == 4 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TOp.f_line; v_l_0; }) : s0->tag == 5 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TNl.f_line; v_l_0; }) : s0->tag == 6 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TIndent.f_line; v_l_0; }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Lex__TDedent.f_line; v_l_0; }) : ({ __auto_type v_l_0 = s0->u.C_Lex__TEof.f_line; v_l_0; }); }); } -static int64_t f_Parse__line(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return f_Parse__lineOf(f_Parse__peek(p_r, p_ts)); } +static int64_t f_Parse__line(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return f_Parse__lineOf(f_Parse__peek(p_eff__Region, p_ts)); } static bool f_Parse__opIs(struct E_Lex__Tok* p_t, srs_str p_s) { return ({ __auto_type s0 = p_t; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TOp.f_s; Str__eq(v_x_0, p_s); }) : ({ false; }); }); } static bool f_Parse__kwIs(struct E_Lex__Tok* p_t, srs_str p_s) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; Str__eq(v_x_0, p_s); }) : ({ false; }); }); } -static bool f_Parse__isOp(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return f_Parse__opIs(f_Parse__peek(p_r, p_ts), p_s); } -static bool f_Parse__isKw(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return f_Parse__kwIs(f_Parse__peek(p_r, p_ts), p_s); } -static bool f_Parse__isNl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 5 ? ({ true; }) : ({ false; }); }); } -static bool f_Parse__isIndent(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 6 ? ({ true; }) : ({ false; }); }); } -static bool f_Parse__isDedent(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 7 ? ({ true; }) : ({ false; }); }); } -static bool f_Parse__isEof(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 8 ? ({ true; }) : ({ false; }); }); } -static struct E_Coll__List__Lex__Tok* f_Parse__skipNl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { srs_tail: return (f_Parse__isNl(p_r, p_ts) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, p_ts); p_r = t0; p_ts = t1; goto srs_tail; (struct E_Coll__List__Lex__Tok*){0}; }) : p_ts); } -static struct E_Parse__R__I64* f_Parse__op(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, p_s) ? ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = p_s; o0; })); res_; }); } -static struct E_Parse__R__I64* f_Parse__kw(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return ({ __auto_type res_ = (f_Parse__isKw(p_r, p_ts, p_s) ? ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = p_s; o0; })); res_; }); } -static struct E_Parse__R__Sym__Sym* f_Parse__ident(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; ({ struct E_Parse__R__Sym__Sym* o1 = (struct E_Parse__R__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Sym__Sym, u) + sizeof(((struct E_Parse__R__Sym__Sym*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = f_Sym__of(p_r, v_x_0); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o1; }); }) : ({ ({ struct E_Parse__R__Sym__Sym* o0 = (struct E_Parse__R__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Sym__Sym, u) + sizeof(((struct E_Parse__R__Sym__Sym*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"name", 4}); o0; }); }); }); } -static struct E_Parse__R__I64* f_Parse__layoutOpen(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__op(p_r, p_ts, ((srs_str){(const uint8_t*)":", 1})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__I64* o2 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = ((f_Parse__isNl(p_r, v_t1_0) && f_Parse__isIndent(p_r, f_Parse__next(p_r, v_t1_0))) ? ({ struct E_Parse__R__I64* o1 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = f_Parse__line(p_r, v_t1_0); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, f_Parse__next(p_r, v_t1_0)); o1; }) : ({ struct E_Parse__R__I64* o1 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = f_Parse__line(p_r, v_t1_0); o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"indented block", 14}); o1; })); res_; }); }); }); } -static struct E_Coll__List__Lex__Tok* f_Parse__endLine(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return (f_Parse__isNl(p_r, p_ts) ? f_Parse__next(p_r, p_ts) : p_ts); } -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__file(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return f_Parse__decls(p_r, p_ts, (&N_Coll__Nil__Ast__Decl)); } -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__decls(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Decl* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isNl(p_r, p_ts) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, p_ts); struct E_Coll__List__Ast__Decl* t2 = p_acc; p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Decl*){0}; }) : (f_Parse__isEof(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Decl* o0 = (struct E_Parse__R__Coll__List_1_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Decl*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Decl(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = p_ts; o0; }) : ({ __auto_type s0 = f_Parse__decl(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Decl* o2 = (struct E_Parse__R__Coll__List_1_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_d_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Decl* t2 = ({ struct E_Coll__List__Ast__Decl* o2 = (struct E_Coll__List__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Decl, u) + sizeof(((struct E_Coll__List__Ast__Decl*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_d_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Decl*){0}; }); }); }))); res_; }); } -static struct E_Coll__List__Ast__Decl* f_Coll__rev__Ast__Decl(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_xs) { return f_Coll__revOnto__Ast__Decl(p_r, p_xs, (&N_Coll__Nil__Ast__Decl)); } -static struct E_Coll__List__Ast__Decl* f_Coll__revOnto__Ast__Decl(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_xs, struct E_Coll__List__Ast__Decl* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_t_1; struct E_Coll__List__Ast__Decl* t2 = ({ struct E_Coll__List__Ast__Decl* o2 = (struct E_Coll__List__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Decl, u) + sizeof(((struct E_Coll__List__Ast__Decl*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Decl*){0}; }); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__decl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"def", 3})) ? f_Parse__wrapFn(p_r, f_Parse__fn(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts), (&N_Parse__FDef))) : ((f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"extern", 6})) || f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"spec", 4}))) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__kw(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"def", 3})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; f_Parse__wrapFn(p_r, f_Parse__fn(p_r, v_t1_0, f_Parse__line(p_r, p_ts), (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"spec", 4})) ? (&N_Parse__FSpec) : (&N_Parse__FExtern)))); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"enum", 4})) ? f_Parse__enumDecl(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"protocol", 8})) ? f_Parse__proto(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"handler", 7})) ? f_Parse__handler(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"trait", 5})) ? f_Parse__traitDecl(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"given", 5})) ? f_Parse__givenDecl(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"type", 4})) ? f_Parse__typeDecl(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : ({ struct E_Parse__R__Ast__Decl* o0 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"declaration", 11}); o0; }))))))))); res_; }); } -static struct E_Parse__R__Ast__Decl* f_Parse__typeDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_r, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_gs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* v_rv_4 = (f_Parse__isOp(p_r, v_t2_3, ((srs_str){(const uint8_t*)"(", 1})) ? f_Parse__params(p_r, v_t2_3) : ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o4 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Binder); o4->u.C_Parse__Ok.f_ts = v_t2_3; o4; })); __auto_type res_ = ({ __auto_type s5 = v_rv_4; s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_vals_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t3_6 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__op(p_r, v_t3_6, ((srs_str){(const uint8_t*)"=", 1})); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o9 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_t4_7 = s7->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__typeBody(p_r, v_t4_7, v_vals_5); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o10 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_b_8 = s8->u.C_Parse__Ok.f_v; __auto_type v_t5_9 = s8->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o10 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o10->tag = 0; o10->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o10 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DType))); o10->tag = 6; o10->u.C_Ast__DType.f_t = ({ struct E_Ast__TypeDecl* o10 = (struct E_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__TypeDecl, u) + sizeof(((struct E_Ast__TypeDecl*)0)->u.C_Ast__TypeDecl))); o10->tag = 0; o10->u.C_Ast__TypeDecl.f_line = p_line; o10->u.C_Ast__TypeDecl.f_name = v_name_0; o10->u.C_Ast__TypeDecl.f_groups = v_gs_2; o10->u.C_Ast__TypeDecl.f_vals = v_vals_5; o10->u.C_Ast__TypeDecl.f_body = v_b_8; o10; }); o10; }); o10->u.C_Parse__Ok.f_ts = v_t5_9; o10; }); }); }); }); }); }); }); res_; }); }); }); }); }); } -static struct E_Parse__R__Ast__TBody* f_Parse__typeBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Binder* p_vals) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; ({ __auto_type res_ = ((f_Parse__kwIs(f_Parse__second(p_r, p_ts), ((srs_str){(const uint8_t*)"match", 5})) && f_Parse__binderNamed(p_vals, v_x_0)) ? ({ __auto_type res_ = ({ __auto_type s1 = f_Parse__armsOpen(p_r, f_Parse__next(p_r, f_Parse__next(p_r, p_ts))); s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o3 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_t1_1 = s1->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__valArms(p_r, v_t1_1, (&N_Coll__Nil__Ast__ValArm)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o4 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_as_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__TBody* o4 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__TBody* o4 = (struct E_Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__TBody, u) + sizeof(((struct E_Ast__TBody*)0)->u.C_Ast__ValMatch))); o4->tag = 2; o4->u.C_Ast__ValMatch.f_x = f_Sym__of(p_r, v_x_0); o4->u.C_Ast__ValMatch.f_arms = v_as_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t2_3; o4; }); }); }); }); }); res_; }) : f_Parse__tyBody(p_r, p_ts)); res_; }); }) : ({ f_Parse__tyBody(p_r, p_ts); }); }); } +static bool f_Parse__isOp(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return f_Parse__opIs(f_Parse__peek(p_eff__Region, p_ts), p_s); } +static bool f_Parse__isKw(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return f_Parse__kwIs(f_Parse__peek(p_eff__Region, p_ts), p_s); } +static bool f_Parse__isNl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 5 ? ({ true; }) : ({ false; }); }); } +static bool f_Parse__isIndent(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 6 ? ({ true; }) : ({ false; }); }); } +static bool f_Parse__isDedent(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 7 ? ({ true; }) : ({ false; }); }); } +static bool f_Parse__isEof(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 8 ? ({ true; }) : ({ false; }); }); } +static struct E_Coll__List__Lex__Tok* f_Parse__skipNl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { srs_tail: return (f_Parse__isNl(p_eff__Region, p_ts) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_ts); p_eff__Region = t0; p_ts = t1; goto srs_tail; (struct E_Coll__List__Lex__Tok*){0}; }) : p_ts); } +static struct E_Parse__R__I64* f_Parse__op(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, p_s) ? ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = p_s; o0; })); res_; }); } +static struct E_Parse__R__I64* f_Parse__kw(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_s) { return ({ __auto_type res_ = (f_Parse__isKw(p_eff__Region, p_ts, p_s) ? ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = p_s; o0; })); res_; }); } +static struct E_Parse__R__Sym__Sym* f_Parse__ident(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; ({ struct E_Parse__R__Sym__Sym* o1 = (struct E_Parse__R__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Sym__Sym, u) + sizeof(((struct E_Parse__R__Sym__Sym*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = f_Sym__of(p_eff__Region, v_x_0); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o1; }); }) : ({ ({ struct E_Parse__R__Sym__Sym* o0 = (struct E_Parse__R__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Sym__Sym, u) + sizeof(((struct E_Parse__R__Sym__Sym*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"name", 4}); o0; }); }); }); } +static struct E_Parse__R__I64* f_Parse__layoutOpen(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__op(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)":", 1})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__I64* o2 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = ((f_Parse__isNl(p_eff__Region, v_t1_0) && f_Parse__isIndent(p_eff__Region, f_Parse__next(v_t1_0))) ? ({ struct E_Parse__R__I64* o1 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = f_Parse__line(p_eff__Region, v_t1_0); o1->u.C_Parse__Ok.f_ts = f_Parse__next(f_Parse__next(v_t1_0)); o1; }) : ({ struct E_Parse__R__I64* o1 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, v_t1_0); o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"indented block", 14}); o1; })); res_; }); }); }); } +static struct E_Coll__List__Lex__Tok* f_Parse__endLine(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return (f_Parse__isNl(p_eff__Region, p_ts) ? f_Parse__next(p_ts) : p_ts); } +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__file(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return f_Parse__decls(p_eff__Region, p_ts, (&N_Coll__Nil__Ast__Decl)); } +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__decls(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Decl* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isNl(p_eff__Region, p_ts) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_ts); struct E_Coll__List__Ast__Decl* t2 = p_acc; p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Decl*){0}; }) : (f_Parse__isEof(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Decl* o0 = (struct E_Parse__R__Coll__List_1_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Decl*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Decl(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = p_ts; o0; }) : ({ __auto_type s0 = f_Parse__decl(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Decl* o2 = (struct E_Parse__R__Coll__List_1_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_d_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Decl* t2 = ({ struct E_Coll__List__Ast__Decl* o2 = (struct E_Coll__List__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Decl, u) + sizeof(((struct E_Coll__List__Ast__Decl*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_d_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Decl*){0}; }); }); }))); res_; }); } +static struct E_Coll__List__Ast__Decl* f_Coll__rev__Ast__Decl(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_xs) { return f_Coll__revOnto__Ast__Decl(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Decl)); } +static struct E_Coll__List__Ast__Decl* f_Coll__revOnto__Ast__Decl(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_xs, struct E_Coll__List__Ast__Decl* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_t_1; struct E_Coll__List__Ast__Decl* t2 = ({ struct E_Coll__List__Ast__Decl* o2 = (struct E_Coll__List__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Decl, u) + sizeof(((struct E_Coll__List__Ast__Decl*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Decl*){0}; }); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__decl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"def", 3})) ? f_Parse__wrapFn(p_eff__Region, f_Parse__fn(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts), (&N_Parse__FDef))) : ((f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"extern", 6})) || f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"spec", 4}))) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__kw(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"def", 3})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; f_Parse__wrapFn(p_eff__Region, f_Parse__fn(p_eff__Region, v_t1_0, f_Parse__line(p_eff__Region, p_ts), (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"spec", 4})) ? (&N_Parse__FSpec) : (&N_Parse__FExtern)))); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"enum", 4})) ? f_Parse__enumDecl(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"protocol", 8})) ? f_Parse__proto(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"handler", 7})) ? f_Parse__handler(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"trait", 5})) ? f_Parse__traitDecl(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"given", 5})) ? f_Parse__givenDecl(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"type", 4})) ? f_Parse__typeDecl(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : ({ struct E_Parse__R__Ast__Decl* o0 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"declaration", 11}); o0; }))))))))); res_; }); } +static struct E_Parse__R__Ast__Decl* f_Parse__typeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_eff__Region, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_gs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* v_rv_4 = (f_Parse__isOp(p_eff__Region, v_t2_3, ((srs_str){(const uint8_t*)"(", 1})) ? f_Parse__params(p_eff__Region, v_t2_3) : ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o4 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Binder); o4->u.C_Parse__Ok.f_ts = v_t2_3; o4; })); __auto_type res_ = ({ __auto_type s5 = v_rv_4; s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_vals_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t3_6 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__op(p_eff__Region, v_t3_6, ((srs_str){(const uint8_t*)"=", 1})); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o9 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_t4_7 = s7->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__typeBody(p_eff__Region, v_t4_7, v_vals_5); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o10 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_b_8 = s8->u.C_Parse__Ok.f_v; __auto_type v_t5_9 = s8->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o10 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o10->tag = 0; o10->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o10 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DType))); o10->tag = 6; o10->u.C_Ast__DType.f_t = ({ struct E_Ast__TypeDecl* o10 = (struct E_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__TypeDecl, u) + sizeof(((struct E_Ast__TypeDecl*)0)->u.C_Ast__TypeDecl))); o10->tag = 0; o10->u.C_Ast__TypeDecl.f_line = p_line; o10->u.C_Ast__TypeDecl.f_name = v_name_0; o10->u.C_Ast__TypeDecl.f_groups = v_gs_2; o10->u.C_Ast__TypeDecl.f_vals = v_vals_5; o10->u.C_Ast__TypeDecl.f_body = v_b_8; o10; }); o10; }); o10->u.C_Parse__Ok.f_ts = v_t5_9; o10; }); }); }); }); }); }); }); res_; }); }); }); }); }); } +static struct E_Parse__R__Ast__TBody* f_Parse__typeBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Binder* p_vals) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; ({ __auto_type res_ = ((f_Parse__kwIs(f_Parse__second(p_eff__Region, p_ts), ((srs_str){(const uint8_t*)"match", 5})) && f_Parse__binderNamed(p_vals, v_x_0)) ? ({ __auto_type res_ = ({ __auto_type s1 = f_Parse__armsOpen(p_eff__Region, f_Parse__next(f_Parse__next(p_ts))); s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o3 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_t1_1 = s1->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__valArms(p_eff__Region, v_t1_1, (&N_Coll__Nil__Ast__ValArm)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o4 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_as_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__TBody* o4 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__TBody* o4 = (struct E_Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__TBody, u) + sizeof(((struct E_Ast__TBody*)0)->u.C_Ast__ValMatch))); o4->tag = 2; o4->u.C_Ast__ValMatch.f_x = f_Sym__of(p_eff__Region, v_x_0); o4->u.C_Ast__ValMatch.f_arms = v_as_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t2_3; o4; }); }); }); }); }); res_; }) : f_Parse__tyBody(p_eff__Region, p_ts)); res_; }); }) : ({ f_Parse__tyBody(p_eff__Region, p_ts); }); }); } static bool f_Parse__binderNamed(struct E_Coll__List__Ast__Binder* p_bs, srs_str p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = (Str__eq(f_Sym__str(v_n_2), p_x) ? true : ({ struct E_Coll__List__Ast__Binder* t0 = v_rest_1; srs_str t1 = p_x; p_bs = t0; p_x = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Parse__R__Ast__TBody* f_Parse__tyBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ty(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o2 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isKw(p_r, v_t1_1, ((srs_str){(const uint8_t*)"match", 5})) ? ({ __auto_type res_ = ({ __auto_type s2 = f_Parse__armsOpen(p_r, f_Parse__next(p_r, v_t1_1)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o4 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__tyArms(p_r, v_t2_2, (&N_Coll__Nil__Ast__TyArm)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o5 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_as_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__TBody* o5 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__TBody* o5 = (struct E_Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__TBody, u) + sizeof(((struct E_Ast__TBody*)0)->u.C_Ast__TyMatch))); o5->tag = 1; o5->u.C_Ast__TyMatch.f_scrut = v_t_0; o5->u.C_Ast__TyMatch.f_arms = v_as_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Ast__TBody* o2 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__TBody* o2 = (struct E_Ast__TBody*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__TBody, u) + sizeof(((struct E_Ast__TBody*)0)->u.C_Ast__Alias))); o2->tag = 0; o2->u.C_Ast__Alias.f_t = v_t_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); res_; }); }); }); } -static struct E_Parse__R__I64* f_Parse__armsOpen(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = ((f_Parse__isNl(p_r, p_ts) && f_Parse__isIndent(p_r, f_Parse__next(p_r, p_ts))) ? ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, f_Parse__next(p_r, p_ts)); o0; }) : ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"match arms", 10}); o0; })); res_; }); } -static struct E_Parse__R__Coll__List_1_Ast__TyArm* f_Parse__tyArms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__TyArm* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o0 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__TyArm(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_r, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o2 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__ty(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o4 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_p_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_r, v_t2_3, ((srs_str){(const uint8_t*)"=>", 2})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o6 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__ty(p_r, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o7 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_res_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t4_6); struct E_Coll__List__Ast__TyArm* t2 = ({ struct E_Coll__List__Ast__TyArm* o7 = (struct E_Coll__List__Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__TyArm, u) + sizeof(((struct E_Coll__List__Ast__TyArm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__TyArm* o7 = (struct E_Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__TyArm, u) + sizeof(((struct E_Ast__TyArm*)0)->u.C_Ast__TyArm))); o7->tag = 0; o7->u.C_Ast__TyArm.f_line = v_line_0; o7->u.C_Ast__TyArm.f_pat = v_p_2; o7->u.C_Ast__TyArm.f_res = v_res_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__TyArm*){0}; }); }); }); }); }); }); }); }); })); res_; }); } -static struct E_Coll__List__Ast__TyArm* f_Coll__rev__Ast__TyArm(srs_cap* p_r, struct E_Coll__List__Ast__TyArm* p_xs) { return f_Coll__revOnto__Ast__TyArm(p_r, p_xs, (&N_Coll__Nil__Ast__TyArm)); } -static struct E_Coll__List__Ast__TyArm* f_Coll__revOnto__Ast__TyArm(srs_cap* p_r, struct E_Coll__List__Ast__TyArm* p_xs, struct E_Coll__List__Ast__TyArm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__TyArm* t1 = v_t_1; struct E_Coll__List__Ast__TyArm* t2 = ({ struct E_Coll__List__Ast__TyArm* o2 = (struct E_Coll__List__Ast__TyArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__TyArm, u) + sizeof(((struct E_Coll__List__Ast__TyArm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__TyArm*){0}; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__ValArm* f_Parse__valArms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__ValArm* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o0 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__ValArm(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_r, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o2 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__valuePat(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o4 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_p_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_r, v_t2_3, ((srs_str){(const uint8_t*)"=>", 2})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o6 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__ty(p_r, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o7 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_res_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t4_6); struct E_Coll__List__Ast__ValArm* t2 = ({ struct E_Coll__List__Ast__ValArm* o7 = (struct E_Coll__List__Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__ValArm, u) + sizeof(((struct E_Coll__List__Ast__ValArm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__ValArm* o7 = (struct E_Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__ValArm, u) + sizeof(((struct E_Ast__ValArm*)0)->u.C_Ast__ValArm))); o7->tag = 0; o7->u.C_Ast__ValArm.f_line = v_line_0; o7->u.C_Ast__ValArm.f_pat = v_p_2; o7->u.C_Ast__ValArm.f_res = v_res_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__ValArm*){0}; }); }); }); }); }); }); }); }); })); res_; }); } -static struct E_Coll__List__Ast__ValArm* f_Coll__rev__Ast__ValArm(srs_cap* p_r, struct E_Coll__List__Ast__ValArm* p_xs) { return f_Coll__revOnto__Ast__ValArm(p_r, p_xs, (&N_Coll__Nil__Ast__ValArm)); } -static struct E_Coll__List__Ast__ValArm* f_Coll__revOnto__Ast__ValArm(srs_cap* p_r, struct E_Coll__List__Ast__ValArm* p_xs, struct E_Coll__List__Ast__ValArm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__ValArm* t1 = v_t_1; struct E_Coll__List__Ast__ValArm* t2 = ({ struct E_Coll__List__Ast__ValArm* o2 = (struct E_Coll__List__Ast__ValArm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__ValArm, u) + sizeof(((struct E_Coll__List__Ast__ValArm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__ValArm*){0}; }); }); }); } -static struct E_Parse__R__Ast__VPat* f_Parse__valuePat(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Lex__TInt.f_v; ({ struct E_Parse__R__Ast__VPat* o1 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o1 = (struct E_Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VInt))); o1->tag = 0; o1->u.C_Ast__VInt.f_v = v_v_0; o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o1; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TStr.f_s; ({ struct E_Parse__R__Ast__VPat* o1 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o1 = (struct E_Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VStr))); o1->tag = 1; o1->u.C_Ast__VStr.f_s = v_s_0; o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o1; }); }) : s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; __auto_type v_line_1 = s0->u.C_Lex__TIdent.f_line; ({ __auto_type res_ = (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"true", 4})) ? ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o2 = (struct E_Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VBool))); o2->tag = 2; o2->u.C_Ast__VBool.f_v = true; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o2; }) : (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"false", 5})) ? ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o2 = (struct E_Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VBool))); o2->tag = 2; o2->u.C_Ast__VBool.f_v = false; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o2; }) : (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"_", 1})) ? ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Ast__VAny); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o2; }) : ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_line_1; o2->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a value pattern (int, string, true, false, _)", 45}); o2; })))); res_; }); }) : ({ ({ struct E_Parse__R__Ast__VPat* o0 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a value pattern (int, string, true, false, _)", 45}); o0; }); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__traitDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_r, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_gs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__layoutOpen(p_r, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o6 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__defs(p_r, v_t3_4, true, (&N_Coll__Nil__Ast__Fn)); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_sigs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DTrait))); o7->tag = 4; o7->u.C_Ast__DTrait.f_t = ({ struct E_Ast__Trait* o7 = (struct E_Ast__Trait*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Trait, u) + sizeof(((struct E_Ast__Trait*)0)->u.C_Ast__Trait))); o7->tag = 0; o7->u.C_Ast__Trait.f_line = p_line; o7->u.C_Ast__Trait.f_name = v_name_0; o7->u.C_Ast__Trait.f_groups = v_gs_2; o7->u.C_Ast__Trait.f_sigs = v_sigs_5; o7; }); o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__givenDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__groups(p_r, p_ts, (&N_Coll__Nil__Ast__Group)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_gs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__ty(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_head_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__layoutOpen(p_r, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o6 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__defs(p_r, v_t3_4, false, (&N_Coll__Nil__Ast__Fn)); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_fs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DGiven))); o7->tag = 5; o7->u.C_Ast__DGiven.f_g = ({ struct E_Ast__Given* o7 = (struct E_Ast__Given*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Given, u) + sizeof(((struct E_Ast__Given*)0)->u.C_Ast__Given))); o7->tag = 0; o7->u.C_Ast__Given.f_line = p_line; o7->u.C_Ast__Given.f_groups = v_gs_0; o7->u.C_Ast__Given.f_head = v_head_2; o7->u.C_Ast__Given.f_fns = v_fs_5; o7; }); o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Fn* f_Parse__defs(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, bool p_sig, struct E_Coll__List__Ast__Fn* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Fn* o0 = (struct E_Parse__R__Coll__List_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Fn*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Fn(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_r, p_ts, ((srs_str){(const uint8_t*)"def", 3})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Fn* o2 = (struct E_Parse__R__Coll__List_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Fn*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__fn(p_r, v_t1_1, v_line_0, (p_sig ? (&N_Parse__FExtern) : (&N_Parse__FDef))); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Fn* o4 = (struct E_Parse__R__Coll__List_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Fn*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_f_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t2_3); bool t2 = p_sig; struct E_Coll__List__Ast__Fn* t3 = ({ struct E_Coll__List__Ast__Fn* o4 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_f_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ts = t1; p_sig = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Fn*){0}; }); }); }); }); })); res_; }); } -static struct E_Coll__List__Ast__Fn* f_Coll__rev__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_xs) { return f_Coll__revOnto__Ast__Fn(p_r, p_xs, (&N_Coll__Nil__Ast__Fn)); } -static struct E_Coll__List__Ast__Fn* f_Coll__revOnto__Ast__Fn(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_xs, struct E_Coll__List__Ast__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = v_t_1; struct E_Coll__List__Ast__Fn* t2 = ({ struct E_Coll__List__Ast__Fn* o2 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Fn*){0}; }); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__wrapFn(srs_cap* p_r, struct E_Parse__R__Ast__Fn* p_rf) { return ({ __auto_type s0 = p_rf; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_f_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o2 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DFn))); o2->tag = 0; o2->u.C_Ast__DFn.f_f = v_f_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } -static struct E_Parse__R__Ast__Fn* f_Parse__fn(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Parse__FnKind* p_k) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o2 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_r, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o4 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_g1_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__params(p_r, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o6 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_ps_4 = s4->u.C_Parse__Ok.f_v; __auto_type v_t3_5 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__groups(p_r, v_t3_5, f_Coll__rev__Ast__Group(p_r, v_g1_2)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o8 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_gs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t4_7 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__op(p_r, v_t4_7, ((srs_str){(const uint8_t*)":", 1})); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o10 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_t5_8 = s8->u.C_Parse__Ok.f_ts; ({ __auto_type s9 = f_Parse__ty(p_r, v_t5_8); s9->tag == 1 ? ({ __auto_type v_l_9 = s9->u.C_Parse__Err.f_line; __auto_type v_w_10 = s9->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o11 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o11->tag = 1; o11->u.C_Parse__Err.f_line = v_l_9; o11->u.C_Parse__Err.f_want = v_w_10; o11; }); }) : ({ __auto_type v_ret_9 = s9->u.C_Parse__Ok.f_v; __auto_type v_t6_10 = s9->u.C_Parse__Ok.f_ts; ({ __auto_type s11 = f_Parse__exitFacts(p_r, v_t6_10); s11->tag == 1 ? ({ __auto_type v_l_11 = s11->u.C_Parse__Err.f_line; __auto_type v_w_12 = s11->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o13 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o13->tag = 1; o13->u.C_Parse__Err.f_line = v_l_11; o13->u.C_Parse__Err.f_want = v_w_12; o13; }); }) : ({ __auto_type v_exit_11 = s11->u.C_Parse__Ok.f_v; __auto_type v_t7_12 = s11->u.C_Parse__Ok.f_ts; f_Parse__fnBody(p_r, v_t7_12, ({ struct E_Ast__Fn* o13 = (struct E_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o13->tag = 0; o13->u.C_Ast__Fn.f_line = p_line; o13->u.C_Ast__Fn.f_name = v_name_0; o13->u.C_Ast__Fn.f_groups = v_gs_6; o13->u.C_Ast__Fn.f_params = v_ps_4; o13->u.C_Ast__Fn.f_ret = v_ret_9; o13->u.C_Ast__Fn.f_exit = v_exit_11; o13->u.C_Ast__Fn.f_body = (&N_Ast__Extern); o13; }), p_k); }); }); }); }); }); }); }); }); }); }); }); }); }); }); } -static struct E_Coll__List__Ast__Group* f_Coll__rev__Ast__Group(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_xs) { return f_Coll__revOnto__Ast__Group(p_r, p_xs, (&N_Coll__Nil__Ast__Group)); } -static struct E_Coll__List__Ast__Group* f_Coll__revOnto__Ast__Group(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_xs, struct E_Coll__List__Ast__Group* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_t_1; struct E_Coll__List__Ast__Group* t2 = ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Group*){0}; }); }); }); } -static struct E_Parse__R__Ast__Fn* f_Parse__fnBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, struct E_Parse__FnKind* p_k) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_5 = s0->u.C_Ast__Fn.f_exit; ({ __auto_type res_ = ({ __auto_type s6 = p_k; s6->tag == 1 ? ({ ({ struct E_Parse__R__Ast__Fn* o6 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = p_f; o6->u.C_Parse__Ok.f_ts = p_ts; o6; }); }) : s6->tag == 0 ? ({ f_Parse__bodyOf(p_r, p_ts, p_f, false); }) : ({ ({ __auto_type s6 = v_gs_2; s6->tag == 0 ? ({ f_Parse__bodyOf(p_r, p_ts, p_f, true); }) : ({ ({ struct E_Parse__R__Ast__Fn* o6 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_line_0; o6->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a spec def without binder groups", 32}); o6; }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Parse__R__Ast__Fn* f_Parse__bodyOf(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, bool p_spec) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_5 = s0->u.C_Ast__Fn.f_exit; ({ struct E_Parse__R__Coll__List_1_Ast__Clause* v_rc_6 = ((f_Parse__isNl(p_r, p_ts) && f_Parse__isIndent(p_r, f_Parse__next(p_r, p_ts))) ? f_Parse__clauses(p_r, f_Parse__next(p_r, f_Parse__next(p_r, p_ts)), (&N_Coll__Nil__Ast__Clause)) : ({ struct E_Parse__R__Coll__List_1_Ast__Clause* o6 = (struct E_Parse__R__Coll__List_1_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Clause, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Clause*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Clause); o6->u.C_Parse__Ok.f_ts = p_ts; o6; })); __auto_type res_ = ({ __auto_type s7 = v_rc_6; s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o9 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_cs_7 = s7->u.C_Parse__Ok.f_v; __auto_type v_t0_8 = s7->u.C_Parse__Ok.f_ts; ({ __auto_type s9 = f_Parse__op(p_r, v_t0_8, ((srs_str){(const uint8_t*)"=", 1})); s9->tag == 1 ? ({ __auto_type v_l_9 = s9->u.C_Parse__Err.f_line; __auto_type v_w_10 = s9->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o11 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o11->tag = 1; o11->u.C_Parse__Err.f_line = v_l_9; o11->u.C_Parse__Err.f_want = v_w_10; o11; }); }) : ({ __auto_type v_t1_9 = s9->u.C_Parse__Ok.f_ts; ({ __auto_type s10 = f_Parse__rhs(p_r, v_t1_9); s10->tag == 1 ? ({ __auto_type v_l_10 = s10->u.C_Parse__Err.f_line; __auto_type v_w_11 = s10->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o12 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o12->tag = 1; o12->u.C_Parse__Err.f_line = v_l_10; o12->u.C_Parse__Err.f_want = v_w_11; o12; }); }) : ({ __auto_type v_e_10 = s10->u.C_Parse__Ok.f_v; __auto_type v_t2_11 = s10->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Fn* o12 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Ok))); o12->tag = 0; o12->u.C_Parse__Ok.f_v = ({ struct E_Ast__Fn* o12 = (struct E_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o12->tag = 0; o12->u.C_Ast__Fn.f_line = v_line_0; o12->u.C_Ast__Fn.f_name = v_name_1; o12->u.C_Ast__Fn.f_groups = v_gs_2; o12->u.C_Ast__Fn.f_params = v_ps_3; o12->u.C_Ast__Fn.f_ret = v_ret_4; o12->u.C_Ast__Fn.f_exit = v_exit_5; o12->u.C_Ast__Fn.f_body = (p_spec ? ({ struct E_Ast__Body* o12 = (struct E_Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Spec))); o12->tag = 2; o12->u.C_Ast__Spec.f_cs = v_cs_7; o12->u.C_Ast__Spec.f_e = v_e_10; o12; }) : ({ struct E_Ast__Body* o12 = (struct E_Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Def))); o12->tag = 0; o12->u.C_Ast__Def.f_cs = v_cs_7; o12->u.C_Ast__Def.f_e = v_e_10; o12; })); o12; }); o12->u.C_Parse__Ok.f_ts = v_t2_11; o12; }); }); }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Parse__R__Coll__List_1_Ast__Clause* f_Parse__clauses(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Clause* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Clause* o0 = (struct E_Parse__R__Coll__List_1_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Clause, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Clause*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Clause(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__clause(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Clause* o2 = (struct E_Parse__R__Coll__List_1_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Clause, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t1_1); struct E_Coll__List__Ast__Clause* t2 = ({ struct E_Coll__List__Ast__Clause* o2 = (struct E_Coll__List__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Clause, u) + sizeof(((struct E_Coll__List__Ast__Clause*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_c_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Clause*){0}; }); }); })); res_; }); } -static struct E_Coll__List__Ast__Clause* f_Coll__rev__Ast__Clause(srs_cap* p_r, struct E_Coll__List__Ast__Clause* p_xs) { return f_Coll__revOnto__Ast__Clause(p_r, p_xs, (&N_Coll__Nil__Ast__Clause)); } -static struct E_Coll__List__Ast__Clause* f_Coll__revOnto__Ast__Clause(srs_cap* p_r, struct E_Coll__List__Ast__Clause* p_xs, struct E_Coll__List__Ast__Clause* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Clause* t1 = v_t_1; struct E_Coll__List__Ast__Clause* t2 = ({ struct E_Coll__List__Ast__Clause* o2 = (struct E_Coll__List__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Clause, u) + sizeof(((struct E_Coll__List__Ast__Clause*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Clause*){0}; }); }); }); } -static struct E_Parse__R__Ast__Clause* f_Parse__clause(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ int64_t v_line_0 = f_Parse__line(p_r, p_ts); __auto_type res_ = (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"proof", 5})) ? f_Parse__proof(p_r, f_Parse__next(p_r, p_ts), v_line_0) : ({ __auto_type s1 = f_Parse__condOf(p_r, f_Parse__peek(p_r, p_ts)); s1->tag == 0 ? ({ ({ struct E_Parse__R__Ast__Clause* o1 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = v_line_0; o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"requires, ensures, returns, decreases, invariant or proof", 57}); o1; }); }) : ({ __auto_type v_k_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = f_Parse__expr(p_r, f_Parse__next(p_r, p_ts)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o4 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_e_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t1_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Clause* o4 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o4 = (struct E_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__CondC))); o4->tag = 0; o4->u.C_Ast__CondC.f_line = v_line_0; o4->u.C_Ast__CondC.f_k = v_k_1; o4->u.C_Ast__CondC.f_e = v_e_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t1_3; o4; }); }); }); }); })); res_; }); } -static struct E_Coll__Option__Ast__Cond* f_Parse__condOf(srs_cap* p_r, struct E_Lex__Tok* p_t) { return ({ __auto_type res_ = (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"requires", 8})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Requires); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"ensures", 7})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Ensures); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"returns", 7})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Returns); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"decreases", 9})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Decreases); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"invariant", 9})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Invariant); o0; }) : (&N_Coll__None__Ast__Cond)))))); res_; }); } -static struct E_Parse__R__Ast__Clause* f_Parse__proof(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type res_ = (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"using", 5})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__nameLine(p_r, f_Parse__next(p_r, p_ts), (&N_Coll__Nil__Sym__Sym)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_xs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o2 = (struct E_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__ProofUsing))); o2->tag = 1; o2->u.C_Ast__ProofUsing.f_line = p_line; o2->u.C_Ast__ProofUsing.f_xs = v_xs_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"by", 2})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__kw(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"induction", 9})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s1 = f_Parse__ident(p_r, v_t1_0); s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o3 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_x_1 = s1->u.C_Parse__Ok.f_v; __auto_type v_t2_2 = s1->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Clause* o3 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o3 = (struct E_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__ProofInduction))); o3->tag = 2; o3->u.C_Ast__ProofInduction.f_line = p_line; o3->u.C_Ast__ProofInduction.f_x = v_x_1; o3; }); o3->u.C_Parse__Ok.f_ts = v_t2_2; o3; }); }); }); }); }); res_; }) : ({ __auto_type s0 = f_Parse__kw(p_r, p_ts, ((srs_str){(const uint8_t*)"lean", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s1 = f_Parse__peek(p_r, v_t1_0); s1->tag == 2 ? ({ __auto_type v_s_1 = s1->u.C_Lex__TStr.f_s; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o2 = (struct E_Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__ProofLean))); o2->tag = 3; o2->u.C_Ast__ProofLean.f_line = p_line; o2->u.C_Ast__ProofLean.f_s = v_s_1; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, v_t1_0); o2; }); }) : ({ ({ struct E_Parse__R__Ast__Clause* o1 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = f_Parse__line(p_r, v_t1_0); o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a string of Lean tactics", 24}); o1; }); }); }); }); }))); res_; }); } -static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__groups(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Group* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"[", 1})) ? f_Parse__moreGroups(p_r, f_Parse__binders(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"]", 1}), (&N_Coll__Nil__Ast__Binder)), (&N_Parse__GTypes), p_acc) : (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"{", 1})) ? f_Parse__moreGroups(p_r, f_Parse__binders(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"}", 1}), (&N_Coll__Nil__Ast__Binder)), (&N_Parse__GEvidence), p_acc) : (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"<", 1})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__atoms(p_r, f_Parse__next(p_r, p_ts), (&N_Coll__Nil__Ast__Atom)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Group* o2 = (struct E_Parse__R__Coll__List_1_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Group*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_as_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Group* t2 = ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Ast__Group* o2 = (struct E_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Facts))); o2->tag = 2; o2->u.C_Ast__Facts.f_atoms = v_as_0; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Group*){0}; }); }); }); res_; }) : ({ struct E_Parse__R__Coll__List_1_Ast__Group* o0 = (struct E_Parse__R__Coll__List_1_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Group*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Group(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = p_ts; o0; })))); res_; }); } -static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__moreGroups(srs_cap* p_r, struct E_Parse__R__Coll__List_1_Ast__Binder* p_rb, struct E_Parse__GKind* p_kind, struct E_Coll__List__Ast__Group* p_acc) { return ({ __auto_type s0 = p_rb; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Group* o2 = (struct E_Parse__R__Coll__List_1_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Group*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_bs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; f_Parse__groups(p_r, v_t1_1, ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Parse__groupOf(p_r, p_kind, v_bs_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }); }); } -static struct E_Ast__Group* f_Parse__groupOf(srs_cap* p_r, struct E_Parse__GKind* p_k, struct E_Coll__List__Ast__Binder* p_bs) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ({ struct E_Ast__Group* o0 = (struct E_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Types))); o0->tag = 0; o0->u.C_Ast__Types.f_bs = p_bs; o0; }); }) : ({ ({ struct E_Ast__Group* o0 = (struct E_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Evidence))); o0->tag = 1; o0->u.C_Ast__Evidence.f_bs = p_bs; o0; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__binders(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Binder* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, p_close) ? ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o0 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Binder(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o2 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)":", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o4 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ty(p_r, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o5 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Coll__List__Ast__Binder* v_acc2_5 = ({ struct E_Coll__List__Ast__Binder* o5 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ast__Binder* o5 = (struct E_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Binder, u) + sizeof(((struct E_Ast__Binder*)0)->u.C_Ast__Binder))); o5->tag = 0; o5->u.C_Ast__Binder.f_line = f_Parse__line(p_r, p_ts); o5->u.C_Ast__Binder.f_x = v_x_0; o5->u.C_Ast__Binder.f_ty = v_t_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); __auto_type res_ = (f_Parse__isOp(p_r, v_t3_4, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t3_4); srs_str t2 = p_close; struct E_Coll__List__Ast__Binder* t3 = v_acc2_5; p_r = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Binder*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t3_4; srs_str t2 = p_close; struct E_Coll__List__Ast__Binder* t3 = v_acc2_5; p_r = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Binder*){0}; })); res_; }); }); }); }); }); }); })); res_; }); } -static struct E_Coll__List__Ast__Binder* f_Coll__rev__Ast__Binder(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_xs) { return f_Coll__revOnto__Ast__Binder(p_r, p_xs, (&N_Coll__Nil__Ast__Binder)); } -static struct E_Coll__List__Ast__Binder* f_Coll__revOnto__Ast__Binder(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_xs, struct E_Coll__List__Ast__Binder* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_t_1; struct E_Coll__List__Ast__Binder* t2 = ({ struct E_Coll__List__Ast__Binder* o2 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__params(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__op(p_r, p_ts, ((srs_str){(const uint8_t*)"(", 1})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o2 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; f_Parse__binders(p_r, v_t1_0, ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Ast__Binder)); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__exitFacts(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"<", 1})) ? f_Parse__atoms(p_r, f_Parse__next(p_r, p_ts), (&N_Coll__Nil__Ast__Atom)) : ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o0 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Atom); o0->u.C_Parse__Ok.f_ts = p_ts; o0; })); res_; }); } -static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__atoms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)">", 1})) ? ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o0 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Atom(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__atom(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o2 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_a_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_1); struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Atom*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Atom*){0}; })); }); })); res_; }); } -static struct E_Parse__R__Ast__Atom* f_Parse__atom(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Atom* o2 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_rel_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Atom* o4 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__terms(p_r, v_t2_2, (&N_Coll__Nil__Ast__Term)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Atom* o5 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_xs_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Atom* o5 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__Atom* o5 = (struct E_Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Atom, u) + sizeof(((struct E_Ast__Atom*)0)->u.C_Ast__Atom))); o5->tag = 0; o5->u.C_Ast__Atom.f_line = f_Parse__line(p_r, p_ts); o5->u.C_Ast__Atom.f_rel = v_rel_0; o5->u.C_Ast__Atom.f_args = v_xs_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); }); }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Term* f_Parse__terms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Term* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)")", 1})) ? ({ struct E_Parse__R__Coll__List_1_Ast__Term* o0 = (struct E_Parse__R__Coll__List_1_Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Term, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Term*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Term(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ struct E_Parse__R__Ast__Term* v_tm_0 = ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Lex__TInt.f_v; ({ struct E_Parse__R__Ast__Term* o1 = (struct E_Parse__R__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Term, u) + sizeof(((struct E_Parse__R__Ast__Term*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__Term* o1 = (struct E_Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Term, u) + sizeof(((struct E_Ast__Term*)0)->u.C_Ast__TNum))); o1->tag = 1; o1->u.C_Ast__TNum.f_v = v_v_0; o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o1; }); }) : s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; ({ struct E_Parse__R__Ast__Term* o1 = (struct E_Parse__R__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Term, u) + sizeof(((struct E_Parse__R__Ast__Term*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__Term* o1 = (struct E_Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Term, u) + sizeof(((struct E_Ast__Term*)0)->u.C_Ast__TName))); o1->tag = 0; o1->u.C_Ast__TName.f_n = f_Sym__of(p_r, v_x_0); o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o1; }); }) : ({ ({ struct E_Parse__R__Ast__Term* o0 = (struct E_Parse__R__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Term, u) + sizeof(((struct E_Parse__R__Ast__Term*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"term", 4}); o0; }); }); }); __auto_type res_ = ({ __auto_type s1 = v_tm_0; s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Term* o3 = (struct E_Parse__R__Coll__List_1_Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Term, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Term*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_t_1 = s1->u.C_Parse__Ok.f_v; __auto_type v_t1_2 = s1->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_2, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_2); struct E_Coll__List__Ast__Term* t2 = ({ struct E_Coll__List__Ast__Term* o3 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_1; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Term*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_2; struct E_Coll__List__Ast__Term* t2 = ({ struct E_Coll__List__Ast__Term* o3 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_1; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Term*){0}; })); }); }); res_; })); res_; }); } -static struct E_Coll__List__Ast__Term* f_Coll__rev__Ast__Term(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs) { return f_Coll__revOnto__Ast__Term(p_r, p_xs, (&N_Coll__Nil__Ast__Term)); } -static struct E_Coll__List__Ast__Term* f_Coll__revOnto__Ast__Term(srs_cap* p_r, struct E_Coll__List__Ast__Term* p_xs, struct E_Coll__List__Ast__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Term* t1 = v_t_1; struct E_Coll__List__Ast__Term* t2 = ({ struct E_Coll__List__Ast__Term* o2 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Term*){0}; }); }); }); } -static struct E_Parse__R__Ast__Ty* f_Parse__ty(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o2 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__List_1_Ast__Ty* v_targs_2 = (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)"[", 1})) ? f_Parse__tys(p_r, f_Parse__next(p_r, v_t1_1), ((srs_str){(const uint8_t*)"]", 1}), (&N_Coll__Nil__Ast__Ty)) : ({ struct E_Parse__R__Coll__List_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__List_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Ty*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Ty); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); __auto_type res_ = ({ __auto_type s3 = v_targs_2; s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o5 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_args_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__List_1_Ast__Expr* v_tvals_5 = (f_Parse__isOp(p_r, v_t2_4, ((srs_str){(const uint8_t*)"(", 1})) ? f_Parse__args(p_r, v_t2_4) : ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o5 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Expr); o5->u.C_Parse__Ok.f_ts = v_t2_4; o5; })); __auto_type res_ = ({ __auto_type s6 = v_tvals_5; s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o8 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_vals_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t3_7 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isOp(p_r, v_t3_7, ((srs_str){(const uint8_t*)"^", 1})) ? ({ __auto_type res_ = ({ __auto_type s8 = f_Parse__op(p_r, f_Parse__next(p_r, v_t3_7), ((srs_str){(const uint8_t*)"<", 1})); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o10 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_t4_8 = s8->u.C_Parse__Ok.f_ts; ({ __auto_type s9 = f_Parse__names(p_r, v_t4_8, ((srs_str){(const uint8_t*)">", 1}), (&N_Coll__Nil__Sym__Sym)); s9->tag == 1 ? ({ __auto_type v_l_9 = s9->u.C_Parse__Err.f_line; __auto_type v_w_10 = s9->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o11 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o11->tag = 1; o11->u.C_Parse__Err.f_line = v_l_9; o11->u.C_Parse__Err.f_want = v_w_10; o11; }); }) : ({ __auto_type v_cs_9 = s9->u.C_Parse__Ok.f_v; __auto_type v_t5_10 = s9->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Ty* o11 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Ok))); o11->tag = 0; o11->u.C_Parse__Ok.f_v = ({ struct E_Ast__Ty* o11 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o11->tag = 0; o11->u.C_Ast__Ty.f_line = f_Parse__line(p_r, p_ts); o11->u.C_Ast__Ty.f_name = v_name_0; o11->u.C_Ast__Ty.f_args = v_args_3; o11->u.C_Ast__Ty.f_caps = ({ struct E_Ast__Caps* o11 = (struct E_Ast__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Caps, u) + sizeof(((struct E_Ast__Caps*)0)->u.C_Ast__Stated))); o11->tag = 1; o11->u.C_Ast__Stated.f_cs = v_cs_9; o11; }); o11->u.C_Ast__Ty.f_vals = v_vals_6; o11; }); o11->u.C_Parse__Ok.f_ts = v_t5_10; o11; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Ty* o8 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__Ty* o8 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o8->tag = 0; o8->u.C_Ast__Ty.f_line = f_Parse__line(p_r, p_ts); o8->u.C_Ast__Ty.f_name = v_name_0; o8->u.C_Ast__Ty.f_args = v_args_3; o8->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o8->u.C_Ast__Ty.f_vals = v_vals_6; o8; }); o8->u.C_Parse__Ok.f_ts = v_t3_7; o8; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Ty* f_Parse__tys(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Ty* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, p_close) ? ({ struct E_Parse__R__Coll__List_1_Ast__Ty* o0 = (struct E_Parse__R__Coll__List_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Ty*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Ty(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__ty(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__List_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Ty*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_1); srs_str t2 = p_close; struct E_Coll__List__Ast__Ty* t3 = ({ struct E_Coll__List__Ast__Ty* o2 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_t_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Ty*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; srs_str t2 = p_close; struct E_Coll__List__Ast__Ty* t3 = ({ struct E_Coll__List__Ast__Ty* o2 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_t_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Ty*){0}; })); }); })); res_; }); } -static struct E_Coll__List__Ast__Ty* f_Coll__rev__Ast__Ty(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_xs) { return f_Coll__revOnto__Ast__Ty(p_r, p_xs, (&N_Coll__Nil__Ast__Ty)); } -static struct E_Coll__List__Ast__Ty* f_Coll__revOnto__Ast__Ty(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_xs, struct E_Coll__List__Ast__Ty* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Ty* t1 = v_t_1; struct E_Coll__List__Ast__Ty* t2 = ({ struct E_Coll__List__Ast__Ty* o2 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Ty*){0}; }); }); }); } -static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__names(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, p_close) ? ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o0 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Sym__Sym(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o2 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_1); srs_str t2 = p_close; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; srs_str t2 = p_close; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Sym__Sym*){0}; })); }); })); res_; }); } -static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__nameLine(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o2 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_1); struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Sym__Sym*){0}; }) : ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o2 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = f_Coll__rev__Sym__Sym(p_r, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__enumDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_r, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_gs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__layoutOpen(p_r, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o6 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__cases(p_r, v_t3_4, (&N_Coll__Nil__Ast__Case)); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_cs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DEnum))); o7->tag = 1; o7->u.C_Ast__DEnum.f_e = ({ struct E_Ast__Enum* o7 = (struct E_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Enum, u) + sizeof(((struct E_Ast__Enum*)0)->u.C_Ast__Enum))); o7->tag = 0; o7->u.C_Ast__Enum.f_line = p_line; o7->u.C_Ast__Enum.f_name = v_name_0; o7->u.C_Ast__Enum.f_groups = v_gs_2; o7->u.C_Ast__Enum.f_cases = v_cs_5; o7; }); o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Case* f_Parse__cases(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Case* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Case* o0 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Case(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_r, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Case* o2 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__ident(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Case* o4 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_name_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isOp(p_r, v_t2_3, ((srs_str){(const uint8_t*)"(", 1})) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Parse__params(p_r, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Case* o6 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_fs_4 = s4->u.C_Parse__Ok.f_v; __auto_type v_t3_5 = s4->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t3_5); struct E_Coll__List__Ast__Case* t2 = ({ struct E_Coll__List__Ast__Case* o6 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ast__Case* o6 = (struct E_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Case, u) + sizeof(((struct E_Ast__Case*)0)->u.C_Ast__Case))); o6->tag = 0; o6->u.C_Ast__Case.f_line = v_line_0; o6->u.C_Ast__Case.f_name = v_name_2; o6->u.C_Ast__Case.f_fields = v_fs_4; o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Case*){0}; }); }); }); res_; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t2_3); struct E_Coll__List__Ast__Case* t2 = ({ struct E_Coll__List__Ast__Case* o4 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ast__Case* o4 = (struct E_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Case, u) + sizeof(((struct E_Ast__Case*)0)->u.C_Ast__Case))); o4->tag = 0; o4->u.C_Ast__Case.f_line = v_line_0; o4->u.C_Ast__Case.f_name = v_name_2; o4->u.C_Ast__Case.f_fields = (&N_Coll__Nil__Ast__Binder); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Case*){0}; })); res_; }); }); }); }); })); res_; }); } -static struct E_Coll__List__Ast__Case* f_Coll__rev__Ast__Case(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_xs) { return f_Coll__revOnto__Ast__Case(p_r, p_xs, (&N_Coll__Nil__Ast__Case)); } -static struct E_Coll__List__Ast__Case* f_Coll__revOnto__Ast__Case(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_xs, struct E_Coll__List__Ast__Case* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_t_1; struct E_Coll__List__Ast__Case* t2 = ({ struct E_Coll__List__Ast__Case* o2 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Case*){0}; }); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__proto(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__layoutOpen(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__items(p_r, v_t2_2, ({ struct E_Parse__Pr* o3 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o3->tag = 0; o3->u.C_Parse__Pr.f_states = (&N_Coll__Nil__Sym__Sym); o3->u.C_Parse__Pr.f_start = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"", 0})); o3->u.C_Parse__Pr.f_ends = (&N_Coll__Nil__Sym__Sym); o3->u.C_Parse__Pr.f_drop = (&N_Coll__None__Sym__Sym); o3->u.C_Parse__Pr.f_ops = (&N_Coll__Nil__Ast__Op); o3->u.C_Parse__Pr.f_rules = (&N_Coll__Nil__Ast__RuleDef); o3; })); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o5 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_pr_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = ({ __auto_type s5 = v_pr_3; ({ __auto_type v_ss_5 = s5->u.C_Parse__Pr.f_states; __auto_type v_st_6 = s5->u.C_Parse__Pr.f_start; __auto_type v_es_7 = s5->u.C_Parse__Pr.f_ends; __auto_type v_dr_8 = s5->u.C_Parse__Pr.f_drop; __auto_type v_os_9 = s5->u.C_Parse__Pr.f_ops; __auto_type v_rs_10 = s5->u.C_Parse__Pr.f_rules; ({ __auto_type res_ = ({ struct E_Parse__R__Ast__Decl* o11 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o11->tag = 0; o11->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o11 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DProto))); o11->tag = 2; o11->u.C_Ast__DProto.f_p = ({ struct E_Ast__Proto* o11 = (struct E_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Proto, u) + sizeof(((struct E_Ast__Proto*)0)->u.C_Ast__Proto))); o11->tag = 0; o11->u.C_Ast__Proto.f_line = p_line; o11->u.C_Ast__Proto.f_name = v_name_0; o11->u.C_Ast__Proto.f_states = v_ss_5; o11->u.C_Ast__Proto.f_start = v_st_6; o11->u.C_Ast__Proto.f_ends = v_es_7; o11->u.C_Ast__Proto.f_dropOp = v_dr_8; o11->u.C_Ast__Proto.f_ops = f_Coll__rev__Ast__Op(p_r, v_os_9); o11->u.C_Ast__Proto.f_rules = f_Coll__rev__Ast__RuleDef(p_r, v_rs_10); o11; }); o11; }); o11->u.C_Parse__Ok.f_ts = v_t3_4; o11; }); res_; }); }); }); res_; }); }); }); }); }); }); }); } -static struct E_Coll__List__Ast__Op* f_Coll__rev__Ast__Op(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_xs) { return f_Coll__revOnto__Ast__Op(p_r, p_xs, (&N_Coll__Nil__Ast__Op)); } -static struct E_Coll__List__Ast__Op* f_Coll__revOnto__Ast__Op(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_xs, struct E_Coll__List__Ast__Op* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Op* t1 = v_t_1; struct E_Coll__List__Ast__Op* t2 = ({ struct E_Coll__List__Ast__Op* o2 = (struct E_Coll__List__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Op, u) + sizeof(((struct E_Coll__List__Ast__Op*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Op*){0}; }); }); }); } -static struct E_Coll__List__Ast__RuleDef* f_Coll__rev__Ast__RuleDef(srs_cap* p_r, struct E_Coll__List__Ast__RuleDef* p_xs) { return f_Coll__revOnto__Ast__RuleDef(p_r, p_xs, (&N_Coll__Nil__Ast__RuleDef)); } -static struct E_Coll__List__Ast__RuleDef* f_Coll__revOnto__Ast__RuleDef(srs_cap* p_r, struct E_Coll__List__Ast__RuleDef* p_xs, struct E_Coll__List__Ast__RuleDef* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__RuleDef* t1 = v_t_1; struct E_Coll__List__Ast__RuleDef* t2 = ({ struct E_Coll__List__Ast__RuleDef* o2 = (struct E_Coll__List__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__RuleDef, u) + sizeof(((struct E_Coll__List__Ast__RuleDef*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__RuleDef*){0}; }); }); }); } -static struct E_Parse__R__Parse__Pr* f_Parse__items(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Parse__Pr* p_pr) { srs_tail: return ({ __auto_type res_ = ({ __auto_type s0 = p_pr; ({ __auto_type v_ss_0 = s0->u.C_Parse__Pr.f_states; __auto_type v_st_1 = s0->u.C_Parse__Pr.f_start; __auto_type v_es_2 = s0->u.C_Parse__Pr.f_ends; __auto_type v_dr_3 = s0->u.C_Parse__Pr.f_drop; __auto_type v_os_4 = s0->u.C_Parse__Pr.f_ops; __auto_type v_rs_5 = s0->u.C_Parse__Pr.f_rules; ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Parse__Pr* o6 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = p_pr; o6->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o6; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"state", 5})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__nameLine(p_r, f_Parse__next(p_r, p_ts), (&N_Coll__Nil__Sym__Sym)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_xs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_xs_6; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_r = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"start", 5})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__ident(p_r, f_Parse__next(p_r, p_ts)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_x_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_x_6; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_r = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"end", 3})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__nameLine(p_r, f_Parse__next(p_r, p_ts), (&N_Coll__Nil__Sym__Sym)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_xs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_xs_6; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_r = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"drop", 4})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__ident(p_r, f_Parse__next(p_r, p_ts)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_x_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = ({ struct E_Coll__Option__Sym__Sym* o8 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = v_x_6; o8; }); o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_r = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"op", 2})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__opDecl(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_o_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = ({ struct E_Coll__List__Ast__Op* o8 = (struct E_Coll__List__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Op, u) + sizeof(((struct E_Coll__List__Ast__Op*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_o_6; o8->u.C_Coll__Cons.f_t = v_os_4; o8; }); o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_r = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"rule", 4})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__kw(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"def", 3})); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_t1_6 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__ruleDecl(p_r, v_t1_6, f_Parse__line(p_r, p_ts)); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o9 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_rd_7 = s7->u.C_Parse__Ok.f_v; __auto_type v_t2_8 = s7->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t2_8); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o9 = (struct E_Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o9->tag = 0; o9->u.C_Parse__Pr.f_states = v_ss_0; o9->u.C_Parse__Pr.f_start = v_st_1; o9->u.C_Parse__Pr.f_ends = v_es_2; o9->u.C_Parse__Pr.f_drop = v_dr_3; o9->u.C_Parse__Pr.f_ops = v_os_4; o9->u.C_Parse__Pr.f_rules = ({ struct E_Coll__List__Ast__RuleDef* o9 = (struct E_Coll__List__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__RuleDef, u) + sizeof(((struct E_Coll__List__Ast__RuleDef*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = v_rd_7; o9->u.C_Coll__Cons.f_t = v_rs_5; o9; }); o9; }); p_r = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Parse__Pr* o6 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o6->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"protocol item", 13}); o6; })))))))); res_; }); }); }); res_; }); } -static struct E_Parse__R__Ast__Op* f_Parse__opDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o2 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__params(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o4 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_ps_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_r, v_t2_3, ((srs_str){(const uint8_t*)":", 1})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o6 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__ty(p_r, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o7 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_ret_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__op(p_r, v_t4_6, ((srs_str){(const uint8_t*)":", 1})); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o9 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_t5_7 = s7->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__trans(p_r, v_t5_7, (&N_Coll__Nil__Ast__Trans)); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o10 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_trs_8 = s8->u.C_Parse__Ok.f_v; __auto_type v_t6_9 = s8->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Op* o10 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Ok))); o10->tag = 0; o10->u.C_Parse__Ok.f_v = ({ struct E_Ast__Op* o10 = (struct E_Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Op, u) + sizeof(((struct E_Ast__Op*)0)->u.C_Ast__Op))); o10->tag = 0; o10->u.C_Ast__Op.f_line = p_line; o10->u.C_Ast__Op.f_name = v_name_0; o10->u.C_Ast__Op.f_params = v_ps_2; o10->u.C_Ast__Op.f_ret = v_ret_5; o10->u.C_Ast__Op.f_trans = v_trs_8; o10; }); o10->u.C_Parse__Ok.f_ts = v_t6_9; o10; }); }); }); }); }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Trans* f_Parse__trans(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Trans* p_acc) { srs_tail: return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o2 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_a_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)"-", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o4 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__op(p_r, v_t2_2, ((srs_str){(const uint8_t*)">", 1})); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o5 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t3_3 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__ident(p_r, v_t3_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o6 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_b_4 = s4->u.C_Parse__Ok.f_v; __auto_type v_t4_5 = s4->u.C_Parse__Ok.f_ts; ({ struct E_Coll__List__Ast__Trans* v_acc2_6 = ({ struct E_Coll__List__Ast__Trans* o6 = (struct E_Coll__List__Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Trans, u) + sizeof(((struct E_Coll__List__Ast__Trans*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ast__Trans* o6 = (struct E_Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Trans, u) + sizeof(((struct E_Ast__Trans*)0)->u.C_Ast__Trans))); o6->tag = 0; o6->u.C_Ast__Trans.f_from = v_a_0; o6->u.C_Ast__Trans.f_to = v_b_4; o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); __auto_type res_ = (f_Parse__isOp(p_r, v_t4_5, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t4_5); struct E_Coll__List__Ast__Trans* t2 = v_acc2_6; p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Trans*){0}; }) : ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o7 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Trans(p_r, v_acc2_6); o7->u.C_Parse__Ok.f_ts = v_t4_5; o7; })); res_; }); }); }); }); }); }); }); }); }); } -static struct E_Coll__List__Ast__Trans* f_Coll__rev__Ast__Trans(srs_cap* p_r, struct E_Coll__List__Ast__Trans* p_xs) { return f_Coll__revOnto__Ast__Trans(p_r, p_xs, (&N_Coll__Nil__Ast__Trans)); } -static struct E_Coll__List__Ast__Trans* f_Coll__revOnto__Ast__Trans(srs_cap* p_r, struct E_Coll__List__Ast__Trans* p_xs, struct E_Coll__List__Ast__Trans* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Trans* t1 = v_t_1; struct E_Coll__List__Ast__Trans* t2 = ({ struct E_Coll__List__Ast__Trans* o2 = (struct E_Coll__List__Ast__Trans*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Trans, u) + sizeof(((struct E_Coll__List__Ast__Trans*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Trans*){0}; }); }); }); } -static struct E_Parse__R__Ast__RuleDef* f_Parse__ruleDecl(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o2 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o4 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__names(p_r, v_t2_2, ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Sym__Sym)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o5 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_ps_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_r, v_t3_4, ((srs_str){(const uint8_t*)"=", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o7 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__ruleBody(p_r, v_t4_5, (&N_Coll__Nil__Ast__Atom)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o8 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_as_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__RuleDef* o8 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__RuleDef* o8 = (struct E_Ast__RuleDef*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__RuleDef, u) + sizeof(((struct E_Ast__RuleDef*)0)->u.C_Ast__RuleDef))); o8->tag = 0; o8->u.C_Ast__RuleDef.f_line = p_line; o8->u.C_Ast__RuleDef.f_name = v_name_0; o8->u.C_Ast__RuleDef.f_params = v_ps_3; o8->u.C_Ast__RuleDef.f_body = v_as_6; o8; }); o8->u.C_Parse__Ok.f_ts = v_t5_7; o8; }); }); }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__ruleBody(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type s0 = f_Parse__atom(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o2 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_a_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_1); struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Atom*){0}; }) : ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o2 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Atom(p_r, ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); }); }); } -static struct E_Parse__R__Ast__Decl* f_Parse__handler(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__kw(p_r, v_t1_1, ((srs_str){(const uint8_t*)"for", 3})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ident(p_r, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o5 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_proto_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__layoutOpen(p_r, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__defs(p_r, v_t4_5, false, (&N_Coll__Nil__Ast__Fn)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o8 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_fs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o8 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o8 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DHandler))); o8->tag = 3; o8->u.C_Ast__DHandler.f_h = ({ struct E_Ast__Handler* o8 = (struct E_Ast__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Handler, u) + sizeof(((struct E_Ast__Handler*)0)->u.C_Ast__Handler))); o8->tag = 0; o8->u.C_Ast__Handler.f_line = p_line; o8->u.C_Ast__Handler.f_name = v_name_0; o8->u.C_Ast__Handler.f_proto = v_proto_3; o8->u.C_Ast__Handler.f_fns = f_Parse__stateless(p_r, v_fs_6, p_line); o8; }); o8; }); o8->u.C_Parse__Ok.f_ts = v_t5_7; o8; }); }); }); }); }); }); }); }); }); }); }); } -static struct E_Coll__List__Ast__Fn* f_Parse__stateless(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line) { return ({ __auto_type res_ = (f_Parse__hasInit(p_fs) ? p_fs : ({ struct E_Ast__Ty* v_ptr_0 = ({ struct E_Ast__Ty* o0 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o0->tag = 0; o0->u.C_Ast__Ty.f_line = p_line; o0->u.C_Ast__Ty.f_name = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Ptr", 3})); o0->u.C_Ast__Ty.f_args = (&N_Coll__Nil__Ast__Ty); o0->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o0->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o0; }); struct E_Ast__Fn* v_init_1 = ({ struct E_Ast__Fn* o1 = (struct E_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o1->tag = 0; o1->u.C_Ast__Fn.f_line = p_line; o1->u.C_Ast__Fn.f_name = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"init", 4})); o1->u.C_Ast__Fn.f_groups = (&N_Coll__Nil__Ast__Group); o1->u.C_Ast__Fn.f_params = (&N_Coll__Nil__Ast__Binder); o1->u.C_Ast__Fn.f_ret = v_ptr_0; o1->u.C_Ast__Fn.f_exit = (&N_Coll__Nil__Ast__Atom); o1->u.C_Ast__Fn.f_body = ({ struct E_Ast__Body* o1 = (struct E_Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Def))); o1->tag = 0; o1->u.C_Ast__Def.f_cs = (&N_Coll__Nil__Ast__Clause); o1->u.C_Ast__Def.f_e = ({ struct E_Ast__Expr* o1 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Call))); o1->tag = 5; o1->u.C_Ast__Call.f_line = p_line; o1->u.C_Ast__Call.f_f = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Srs.noState", 11})); o1->u.C_Ast__Call.f_targs = (&N_Coll__Nil__Ast__Ty); o1->u.C_Ast__Call.f_chosen = (&N_Coll__Nil__Sym__Sym); o1->u.C_Ast__Call.f_args = (&N_Coll__Nil__Ast__Expr); o1; }); o1; }); o1; }); __auto_type res_ = ({ struct E_Coll__List__Ast__Fn* o2 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_init_1; o2->u.C_Coll__Cons.f_t = f_Parse__withSelf(p_r, p_fs, v_ptr_0); o2; }); res_; })); res_; }); } +static struct E_Parse__R__Ast__TBody* f_Parse__tyBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ty(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o2 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isKw(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"match", 5})) ? ({ __auto_type res_ = ({ __auto_type s2 = f_Parse__armsOpen(p_eff__Region, f_Parse__next(v_t1_1)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o4 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__tyArms(p_eff__Region, v_t2_2, (&N_Coll__Nil__Ast__TyArm)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__TBody* o5 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_as_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__TBody* o5 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__TBody* o5 = (struct E_Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__TBody, u) + sizeof(((struct E_Ast__TBody*)0)->u.C_Ast__TyMatch))); o5->tag = 1; o5->u.C_Ast__TyMatch.f_scrut = v_t_0; o5->u.C_Ast__TyMatch.f_arms = v_as_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Ast__TBody* o2 = (struct E_Parse__R__Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__TBody, u) + sizeof(((struct E_Parse__R__Ast__TBody*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__TBody* o2 = (struct E_Ast__TBody*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__TBody, u) + sizeof(((struct E_Ast__TBody*)0)->u.C_Ast__Alias))); o2->tag = 0; o2->u.C_Ast__Alias.f_t = v_t_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); res_; }); }); }); } +static struct E_Parse__R__I64* f_Parse__armsOpen(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = ((f_Parse__isNl(p_eff__Region, p_ts) && f_Parse__isIndent(p_eff__Region, f_Parse__next(p_ts))) ? ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Ok.f_ts = f_Parse__next(f_Parse__next(p_ts)); o0; }) : ({ struct E_Parse__R__I64* o0 = (struct E_Parse__R__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__I64, u) + sizeof(((struct E_Parse__R__I64*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"match arms", 10}); o0; })); res_; }); } +static struct E_Parse__R__Coll__List_1_Ast__TyArm* f_Parse__tyArms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__TyArm* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o0 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__TyArm(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o2 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__ty(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o4 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_p_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_eff__Region, v_t2_3, ((srs_str){(const uint8_t*)"=>", 2})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o6 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__ty(p_eff__Region, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__TyArm* o7 = (struct E_Parse__R__Coll__List_1_Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__TyArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__TyArm*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_res_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t4_6); struct E_Coll__List__Ast__TyArm* t2 = ({ struct E_Coll__List__Ast__TyArm* o7 = (struct E_Coll__List__Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__TyArm, u) + sizeof(((struct E_Coll__List__Ast__TyArm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__TyArm* o7 = (struct E_Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__TyArm, u) + sizeof(((struct E_Ast__TyArm*)0)->u.C_Ast__TyArm))); o7->tag = 0; o7->u.C_Ast__TyArm.f_line = v_line_0; o7->u.C_Ast__TyArm.f_pat = v_p_2; o7->u.C_Ast__TyArm.f_res = v_res_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__TyArm*){0}; }); }); }); }); }); }); }); }); })); res_; }); } +static struct E_Coll__List__Ast__TyArm* f_Coll__rev__Ast__TyArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TyArm* p_xs) { return f_Coll__revOnto__Ast__TyArm(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__TyArm)); } +static struct E_Coll__List__Ast__TyArm* f_Coll__revOnto__Ast__TyArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__TyArm* p_xs, struct E_Coll__List__Ast__TyArm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__TyArm* t1 = v_t_1; struct E_Coll__List__Ast__TyArm* t2 = ({ struct E_Coll__List__Ast__TyArm* o2 = (struct E_Coll__List__Ast__TyArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__TyArm, u) + sizeof(((struct E_Coll__List__Ast__TyArm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__TyArm*){0}; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__ValArm* f_Parse__valArms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__ValArm* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o0 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__ValArm(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o2 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__valuePat(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o4 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_p_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_eff__Region, v_t2_3, ((srs_str){(const uint8_t*)"=>", 2})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o6 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__ty(p_eff__Region, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__ValArm* o7 = (struct E_Parse__R__Coll__List_1_Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__ValArm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__ValArm*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_res_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t4_6); struct E_Coll__List__Ast__ValArm* t2 = ({ struct E_Coll__List__Ast__ValArm* o7 = (struct E_Coll__List__Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__ValArm, u) + sizeof(((struct E_Coll__List__Ast__ValArm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__ValArm* o7 = (struct E_Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__ValArm, u) + sizeof(((struct E_Ast__ValArm*)0)->u.C_Ast__ValArm))); o7->tag = 0; o7->u.C_Ast__ValArm.f_line = v_line_0; o7->u.C_Ast__ValArm.f_pat = v_p_2; o7->u.C_Ast__ValArm.f_res = v_res_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__ValArm*){0}; }); }); }); }); }); }); }); }); })); res_; }); } +static struct E_Coll__List__Ast__ValArm* f_Coll__rev__Ast__ValArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__ValArm* p_xs) { return f_Coll__revOnto__Ast__ValArm(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__ValArm)); } +static struct E_Coll__List__Ast__ValArm* f_Coll__revOnto__Ast__ValArm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__ValArm* p_xs, struct E_Coll__List__Ast__ValArm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__ValArm* t1 = v_t_1; struct E_Coll__List__Ast__ValArm* t2 = ({ struct E_Coll__List__Ast__ValArm* o2 = (struct E_Coll__List__Ast__ValArm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__ValArm, u) + sizeof(((struct E_Coll__List__Ast__ValArm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__ValArm*){0}; }); }); }); } +static struct E_Parse__R__Ast__VPat* f_Parse__valuePat(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Lex__TInt.f_v; ({ struct E_Parse__R__Ast__VPat* o1 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o1 = (struct E_Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VInt))); o1->tag = 0; o1->u.C_Ast__VInt.f_v = v_v_0; o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o1; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TStr.f_s; ({ struct E_Parse__R__Ast__VPat* o1 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o1 = (struct E_Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VStr))); o1->tag = 1; o1->u.C_Ast__VStr.f_s = v_s_0; o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o1; }); }) : s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; __auto_type v_line_1 = s0->u.C_Lex__TIdent.f_line; ({ __auto_type res_ = (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"true", 4})) ? ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o2 = (struct E_Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VBool))); o2->tag = 2; o2->u.C_Ast__VBool.f_v = true; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o2; }) : (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"false", 5})) ? ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__VPat* o2 = (struct E_Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__VPat, u) + sizeof(((struct E_Ast__VPat*)0)->u.C_Ast__VBool))); o2->tag = 2; o2->u.C_Ast__VBool.f_v = false; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o2; }) : (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"_", 1})) ? ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Ast__VAny); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o2; }) : ({ struct E_Parse__R__Ast__VPat* o2 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_line_1; o2->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a value pattern (int, string, true, false, _)", 45}); o2; })))); res_; }); }) : ({ ({ struct E_Parse__R__Ast__VPat* o0 = (struct E_Parse__R__Ast__VPat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__VPat, u) + sizeof(((struct E_Parse__R__Ast__VPat*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a value pattern (int, string, true, false, _)", 45}); o0; }); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__traitDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_eff__Region, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_gs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__layoutOpen(p_eff__Region, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o6 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__defs(p_eff__Region, v_t3_4, true, (&N_Coll__Nil__Ast__Fn)); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_sigs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DTrait))); o7->tag = 4; o7->u.C_Ast__DTrait.f_t = ({ struct E_Ast__Trait* o7 = (struct E_Ast__Trait*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Trait, u) + sizeof(((struct E_Ast__Trait*)0)->u.C_Ast__Trait))); o7->tag = 0; o7->u.C_Ast__Trait.f_line = p_line; o7->u.C_Ast__Trait.f_name = v_name_0; o7->u.C_Ast__Trait.f_groups = v_gs_2; o7->u.C_Ast__Trait.f_sigs = v_sigs_5; o7; }); o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__givenDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__groups(p_eff__Region, p_ts, (&N_Coll__Nil__Ast__Group)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_gs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__ty(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_head_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__layoutOpen(p_eff__Region, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o6 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__defs(p_eff__Region, v_t3_4, false, (&N_Coll__Nil__Ast__Fn)); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_fs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DGiven))); o7->tag = 5; o7->u.C_Ast__DGiven.f_g = ({ struct E_Ast__Given* o7 = (struct E_Ast__Given*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Given, u) + sizeof(((struct E_Ast__Given*)0)->u.C_Ast__Given))); o7->tag = 0; o7->u.C_Ast__Given.f_line = p_line; o7->u.C_Ast__Given.f_groups = v_gs_0; o7->u.C_Ast__Given.f_head = v_head_2; o7->u.C_Ast__Given.f_fns = v_fs_5; o7; }); o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Fn* f_Parse__defs(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, bool p_sig, struct E_Coll__List__Ast__Fn* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Fn* o0 = (struct E_Parse__R__Coll__List_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Fn*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Fn(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"def", 3})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Fn* o2 = (struct E_Parse__R__Coll__List_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Fn*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__fn(p_eff__Region, v_t1_1, v_line_0, (p_sig ? (&N_Parse__FExtern) : (&N_Parse__FDef))); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Fn* o4 = (struct E_Parse__R__Coll__List_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Fn*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_f_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t2_3); bool t2 = p_sig; struct E_Coll__List__Ast__Fn* t3 = ({ struct E_Coll__List__Ast__Fn* o4 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_f_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ts = t1; p_sig = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Fn*){0}; }); }); }); }); })); res_; }); } +static struct E_Coll__List__Ast__Fn* f_Coll__rev__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_xs) { return f_Coll__revOnto__Ast__Fn(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Fn)); } +static struct E_Coll__List__Ast__Fn* f_Coll__revOnto__Ast__Fn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_xs, struct E_Coll__List__Ast__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = v_t_1; struct E_Coll__List__Ast__Fn* t2 = ({ struct E_Coll__List__Ast__Fn* o2 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Fn*){0}; }); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__wrapFn(srs_cap* p_eff__Region, struct E_Parse__R__Ast__Fn* p_rf) { return ({ __auto_type s0 = p_rf; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_f_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o2 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DFn))); o2->tag = 0; o2->u.C_Ast__DFn.f_f = v_f_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } +static struct E_Parse__R__Ast__Fn* f_Parse__fn(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Parse__FnKind* p_k) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o2 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_eff__Region, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o4 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_g1_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__params(p_eff__Region, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o6 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_ps_4 = s4->u.C_Parse__Ok.f_v; __auto_type v_t3_5 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__groups(p_eff__Region, v_t3_5, f_Coll__rev__Ast__Group(p_eff__Region, v_g1_2)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o8 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_gs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t4_7 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__op(p_eff__Region, v_t4_7, ((srs_str){(const uint8_t*)":", 1})); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o10 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_t5_8 = s8->u.C_Parse__Ok.f_ts; ({ __auto_type s9 = f_Parse__ty(p_eff__Region, v_t5_8); s9->tag == 1 ? ({ __auto_type v_l_9 = s9->u.C_Parse__Err.f_line; __auto_type v_w_10 = s9->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o11 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o11->tag = 1; o11->u.C_Parse__Err.f_line = v_l_9; o11->u.C_Parse__Err.f_want = v_w_10; o11; }); }) : ({ __auto_type v_ret_9 = s9->u.C_Parse__Ok.f_v; __auto_type v_t6_10 = s9->u.C_Parse__Ok.f_ts; ({ __auto_type s11 = f_Parse__exitFacts(p_eff__Region, v_t6_10); s11->tag == 1 ? ({ __auto_type v_l_11 = s11->u.C_Parse__Err.f_line; __auto_type v_w_12 = s11->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o13 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o13->tag = 1; o13->u.C_Parse__Err.f_line = v_l_11; o13->u.C_Parse__Err.f_want = v_w_12; o13; }); }) : ({ __auto_type v_exit_11 = s11->u.C_Parse__Ok.f_v; __auto_type v_t7_12 = s11->u.C_Parse__Ok.f_ts; f_Parse__fnBody(p_eff__Region, v_t7_12, ({ struct E_Ast__Fn* o13 = (struct E_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o13->tag = 0; o13->u.C_Ast__Fn.f_line = p_line; o13->u.C_Ast__Fn.f_name = v_name_0; o13->u.C_Ast__Fn.f_groups = v_gs_6; o13->u.C_Ast__Fn.f_params = v_ps_4; o13->u.C_Ast__Fn.f_ret = v_ret_9; o13->u.C_Ast__Fn.f_exit = v_exit_11; o13->u.C_Ast__Fn.f_body = (&N_Ast__Extern); o13; }), p_k); }); }); }); }); }); }); }); }); }); }); }); }); }); }); } +static struct E_Coll__List__Ast__Group* f_Coll__rev__Ast__Group(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_xs) { return f_Coll__revOnto__Ast__Group(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Group)); } +static struct E_Coll__List__Ast__Group* f_Coll__revOnto__Ast__Group(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_xs, struct E_Coll__List__Ast__Group* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_t_1; struct E_Coll__List__Ast__Group* t2 = ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Group*){0}; }); }); }); } +static struct E_Parse__R__Ast__Fn* f_Parse__fnBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, struct E_Parse__FnKind* p_k) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_5 = s0->u.C_Ast__Fn.f_exit; ({ __auto_type res_ = ({ __auto_type s6 = p_k; s6->tag == 1 ? ({ ({ struct E_Parse__R__Ast__Fn* o6 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = p_f; o6->u.C_Parse__Ok.f_ts = p_ts; o6; }); }) : s6->tag == 0 ? ({ f_Parse__bodyOf(p_eff__Region, p_ts, p_f, false); }) : ({ ({ __auto_type s6 = v_gs_2; s6->tag == 0 ? ({ f_Parse__bodyOf(p_eff__Region, p_ts, p_f, true); }) : ({ ({ struct E_Parse__R__Ast__Fn* o6 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_line_0; o6->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a spec def without binder groups", 32}); o6; }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Parse__R__Ast__Fn* f_Parse__bodyOf(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Ast__Fn* p_f, bool p_spec) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_5 = s0->u.C_Ast__Fn.f_exit; ({ struct E_Parse__R__Coll__List_1_Ast__Clause* v_rc_6 = ((f_Parse__isNl(p_eff__Region, p_ts) && f_Parse__isIndent(p_eff__Region, f_Parse__next(p_ts))) ? f_Parse__clauses(p_eff__Region, f_Parse__next(f_Parse__next(p_ts)), (&N_Coll__Nil__Ast__Clause)) : ({ struct E_Parse__R__Coll__List_1_Ast__Clause* o6 = (struct E_Parse__R__Coll__List_1_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Clause, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Clause*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Clause); o6->u.C_Parse__Ok.f_ts = p_ts; o6; })); __auto_type res_ = ({ __auto_type s7 = v_rc_6; s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o9 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_cs_7 = s7->u.C_Parse__Ok.f_v; __auto_type v_t0_8 = s7->u.C_Parse__Ok.f_ts; ({ __auto_type s9 = f_Parse__op(p_eff__Region, v_t0_8, ((srs_str){(const uint8_t*)"=", 1})); s9->tag == 1 ? ({ __auto_type v_l_9 = s9->u.C_Parse__Err.f_line; __auto_type v_w_10 = s9->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o11 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o11->tag = 1; o11->u.C_Parse__Err.f_line = v_l_9; o11->u.C_Parse__Err.f_want = v_w_10; o11; }); }) : ({ __auto_type v_t1_9 = s9->u.C_Parse__Ok.f_ts; ({ __auto_type s10 = f_Parse__rhs(p_eff__Region, v_t1_9); s10->tag == 1 ? ({ __auto_type v_l_10 = s10->u.C_Parse__Err.f_line; __auto_type v_w_11 = s10->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Fn* o12 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Err))); o12->tag = 1; o12->u.C_Parse__Err.f_line = v_l_10; o12->u.C_Parse__Err.f_want = v_w_11; o12; }); }) : ({ __auto_type v_e_10 = s10->u.C_Parse__Ok.f_v; __auto_type v_t2_11 = s10->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Fn* o12 = (struct E_Parse__R__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Fn, u) + sizeof(((struct E_Parse__R__Ast__Fn*)0)->u.C_Parse__Ok))); o12->tag = 0; o12->u.C_Parse__Ok.f_v = ({ struct E_Ast__Fn* o12 = (struct E_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o12->tag = 0; o12->u.C_Ast__Fn.f_line = v_line_0; o12->u.C_Ast__Fn.f_name = v_name_1; o12->u.C_Ast__Fn.f_groups = v_gs_2; o12->u.C_Ast__Fn.f_params = v_ps_3; o12->u.C_Ast__Fn.f_ret = v_ret_4; o12->u.C_Ast__Fn.f_exit = v_exit_5; o12->u.C_Ast__Fn.f_body = (p_spec ? ({ struct E_Ast__Body* o12 = (struct E_Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Spec))); o12->tag = 2; o12->u.C_Ast__Spec.f_cs = v_cs_7; o12->u.C_Ast__Spec.f_e = v_e_10; o12; }) : ({ struct E_Ast__Body* o12 = (struct E_Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Def))); o12->tag = 0; o12->u.C_Ast__Def.f_cs = v_cs_7; o12->u.C_Ast__Def.f_e = v_e_10; o12; })); o12; }); o12->u.C_Parse__Ok.f_ts = v_t2_11; o12; }); }); }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Parse__R__Coll__List_1_Ast__Clause* f_Parse__clauses(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Clause* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Clause* o0 = (struct E_Parse__R__Coll__List_1_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Clause, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Clause*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Clause(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__clause(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Clause* o2 = (struct E_Parse__R__Coll__List_1_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Clause, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t1_1); struct E_Coll__List__Ast__Clause* t2 = ({ struct E_Coll__List__Ast__Clause* o2 = (struct E_Coll__List__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Clause, u) + sizeof(((struct E_Coll__List__Ast__Clause*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_c_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Clause*){0}; }); }); })); res_; }); } +static struct E_Coll__List__Ast__Clause* f_Coll__rev__Ast__Clause(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Clause* p_xs) { return f_Coll__revOnto__Ast__Clause(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Clause)); } +static struct E_Coll__List__Ast__Clause* f_Coll__revOnto__Ast__Clause(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Clause* p_xs, struct E_Coll__List__Ast__Clause* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Clause* t1 = v_t_1; struct E_Coll__List__Ast__Clause* t2 = ({ struct E_Coll__List__Ast__Clause* o2 = (struct E_Coll__List__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Clause, u) + sizeof(((struct E_Coll__List__Ast__Clause*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Clause*){0}; }); }); }); } +static struct E_Parse__R__Ast__Clause* f_Parse__clause(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ int64_t v_line_0 = f_Parse__line(p_eff__Region, p_ts); __auto_type res_ = (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"proof", 5})) ? f_Parse__proof(p_eff__Region, f_Parse__next(p_ts), v_line_0) : ({ __auto_type s1 = f_Parse__condOf(p_eff__Region, f_Parse__peek(p_eff__Region, p_ts)); s1->tag == 0 ? ({ ({ struct E_Parse__R__Ast__Clause* o1 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = v_line_0; o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"requires, ensures, returns, decreases, invariant or proof", 57}); o1; }); }) : ({ __auto_type v_k_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type s2 = f_Parse__expr(p_eff__Region, f_Parse__next(p_ts)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o4 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_e_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t1_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Clause* o4 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o4 = (struct E_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__CondC))); o4->tag = 0; o4->u.C_Ast__CondC.f_line = v_line_0; o4->u.C_Ast__CondC.f_k = v_k_1; o4->u.C_Ast__CondC.f_e = v_e_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t1_3; o4; }); }); }); }); })); res_; }); } +static struct E_Coll__Option__Ast__Cond* f_Parse__condOf(srs_cap* p_eff__Region, struct E_Lex__Tok* p_t) { return ({ __auto_type res_ = (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"requires", 8})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Requires); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"ensures", 7})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Ensures); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"returns", 7})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Returns); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"decreases", 9})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Decreases); o0; }) : (f_Parse__kwIs(p_t, ((srs_str){(const uint8_t*)"invariant", 9})) ? ({ struct E_Coll__Option__Ast__Cond* o0 = (struct E_Coll__Option__Ast__Cond*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Cond, u) + sizeof(((struct E_Coll__Option__Ast__Cond*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = (&N_Ast__Invariant); o0; }) : (&N_Coll__None__Ast__Cond)))))); res_; }); } +static struct E_Parse__R__Ast__Clause* f_Parse__proof(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type res_ = (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"using", 5})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__nameLine(p_eff__Region, f_Parse__next(p_ts), (&N_Coll__Nil__Sym__Sym)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_xs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o2 = (struct E_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__ProofUsing))); o2->tag = 1; o2->u.C_Ast__ProofUsing.f_line = p_line; o2->u.C_Ast__ProofUsing.f_xs = v_xs_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"by", 2})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__kw(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"induction", 9})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s1 = f_Parse__ident(p_eff__Region, v_t1_0); s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o3 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_x_1 = s1->u.C_Parse__Ok.f_v; __auto_type v_t2_2 = s1->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Clause* o3 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o3 = (struct E_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__ProofInduction))); o3->tag = 2; o3->u.C_Ast__ProofInduction.f_line = p_line; o3->u.C_Ast__ProofInduction.f_x = v_x_1; o3; }); o3->u.C_Parse__Ok.f_ts = v_t2_2; o3; }); }); }); }); }); res_; }) : ({ __auto_type s0 = f_Parse__kw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"lean", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s1 = f_Parse__peek(p_eff__Region, v_t1_0); s1->tag == 2 ? ({ __auto_type v_s_1 = s1->u.C_Lex__TStr.f_s; ({ struct E_Parse__R__Ast__Clause* o2 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Clause* o2 = (struct E_Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Clause, u) + sizeof(((struct E_Ast__Clause*)0)->u.C_Ast__ProofLean))); o2->tag = 3; o2->u.C_Ast__ProofLean.f_line = p_line; o2->u.C_Ast__ProofLean.f_s = v_s_1; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(v_t1_0); o2; }); }) : ({ ({ struct E_Parse__R__Ast__Clause* o1 = (struct E_Parse__R__Ast__Clause*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Clause, u) + sizeof(((struct E_Parse__R__Ast__Clause*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, v_t1_0); o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"a string of Lean tactics", 24}); o1; }); }); }); }); }))); res_; }); } +static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__groups(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Group* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"[", 1})) ? f_Parse__moreGroups(p_eff__Region, f_Parse__binders(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"]", 1}), (&N_Coll__Nil__Ast__Binder)), (&N_Parse__GTypes), p_acc) : (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"{", 1})) ? f_Parse__moreGroups(p_eff__Region, f_Parse__binders(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"}", 1}), (&N_Coll__Nil__Ast__Binder)), (&N_Parse__GEvidence), p_acc) : (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"<", 1})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__atoms(p_eff__Region, f_Parse__next(p_ts), (&N_Coll__Nil__Ast__Atom)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Group* o2 = (struct E_Parse__R__Coll__List_1_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Group*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_as_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Group* t2 = ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Ast__Group* o2 = (struct E_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Facts))); o2->tag = 2; o2->u.C_Ast__Facts.f_atoms = v_as_0; o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Group*){0}; }); }); }); res_; }) : ({ struct E_Parse__R__Coll__List_1_Ast__Group* o0 = (struct E_Parse__R__Coll__List_1_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Group*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Group(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = p_ts; o0; })))); res_; }); } +static struct E_Parse__R__Coll__List_1_Ast__Group* f_Parse__moreGroups(srs_cap* p_eff__Region, struct E_Parse__R__Coll__List_1_Ast__Binder* p_rb, struct E_Parse__GKind* p_kind, struct E_Coll__List__Ast__Group* p_acc) { return ({ __auto_type s0 = p_rb; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Group* o2 = (struct E_Parse__R__Coll__List_1_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Group*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_bs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; f_Parse__groups(p_eff__Region, v_t1_1, ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Parse__groupOf(p_eff__Region, p_kind, v_bs_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }); }); } +static struct E_Ast__Group* f_Parse__groupOf(srs_cap* p_eff__Region, struct E_Parse__GKind* p_k, struct E_Coll__List__Ast__Binder* p_bs) { return ({ __auto_type s0 = p_k; s0->tag == 0 ? ({ ({ struct E_Ast__Group* o0 = (struct E_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Types))); o0->tag = 0; o0->u.C_Ast__Types.f_bs = p_bs; o0; }); }) : ({ ({ struct E_Ast__Group* o0 = (struct E_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Evidence))); o0->tag = 1; o0->u.C_Ast__Evidence.f_bs = p_bs; o0; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__binders(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Binder* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, p_close) ? ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o0 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Binder(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o2 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)":", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o4 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ty(p_eff__Region, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o5 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Coll__List__Ast__Binder* v_acc2_5 = ({ struct E_Coll__List__Ast__Binder* o5 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ast__Binder* o5 = (struct E_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Binder, u) + sizeof(((struct E_Ast__Binder*)0)->u.C_Ast__Binder))); o5->tag = 0; o5->u.C_Ast__Binder.f_line = f_Parse__line(p_eff__Region, p_ts); o5->u.C_Ast__Binder.f_x = v_x_0; o5->u.C_Ast__Binder.f_ty = v_t_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); __auto_type res_ = (f_Parse__isOp(p_eff__Region, v_t3_4, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t3_4); srs_str t2 = p_close; struct E_Coll__List__Ast__Binder* t3 = v_acc2_5; p_eff__Region = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Binder*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t3_4; srs_str t2 = p_close; struct E_Coll__List__Ast__Binder* t3 = v_acc2_5; p_eff__Region = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Binder*){0}; })); res_; }); }); }); }); }); }); })); res_; }); } +static struct E_Coll__List__Ast__Binder* f_Coll__rev__Ast__Binder(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_xs) { return f_Coll__revOnto__Ast__Binder(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Binder)); } +static struct E_Coll__List__Ast__Binder* f_Coll__revOnto__Ast__Binder(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_xs, struct E_Coll__List__Ast__Binder* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_t_1; struct E_Coll__List__Ast__Binder* t2 = ({ struct E_Coll__List__Ast__Binder* o2 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Binder* f_Parse__params(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__op(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"(", 1})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Binder* o2 = (struct E_Parse__R__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Binder*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; f_Parse__binders(p_eff__Region, v_t1_0, ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Ast__Binder)); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__exitFacts(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"<", 1})) ? f_Parse__atoms(p_eff__Region, f_Parse__next(p_ts), (&N_Coll__Nil__Ast__Atom)) : ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o0 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Atom); o0->u.C_Parse__Ok.f_ts = p_ts; o0; })); res_; }); } +static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__atoms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)">", 1})) ? ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o0 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Atom(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__atom(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o2 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_a_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_1); struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Atom*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Atom*){0}; })); }); })); res_; }); } +static struct E_Parse__R__Ast__Atom* f_Parse__atom(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Atom* o2 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_rel_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Atom* o4 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__terms(p_eff__Region, v_t2_2, (&N_Coll__Nil__Ast__Term)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Atom* o5 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_xs_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Atom* o5 = (struct E_Parse__R__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Atom, u) + sizeof(((struct E_Parse__R__Ast__Atom*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__Atom* o5 = (struct E_Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Atom, u) + sizeof(((struct E_Ast__Atom*)0)->u.C_Ast__Atom))); o5->tag = 0; o5->u.C_Ast__Atom.f_line = f_Parse__line(p_eff__Region, p_ts); o5->u.C_Ast__Atom.f_rel = v_rel_0; o5->u.C_Ast__Atom.f_args = v_xs_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); }); }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Term* f_Parse__terms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Term* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)")", 1})) ? ({ struct E_Parse__R__Coll__List_1_Ast__Term* o0 = (struct E_Parse__R__Coll__List_1_Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Term, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Term*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Term(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ struct E_Parse__R__Ast__Term* v_tm_0 = ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Lex__TInt.f_v; ({ struct E_Parse__R__Ast__Term* o1 = (struct E_Parse__R__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Term, u) + sizeof(((struct E_Parse__R__Ast__Term*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__Term* o1 = (struct E_Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Term, u) + sizeof(((struct E_Ast__Term*)0)->u.C_Ast__TNum))); o1->tag = 1; o1->u.C_Ast__TNum.f_v = v_v_0; o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o1; }); }) : s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; ({ struct E_Parse__R__Ast__Term* o1 = (struct E_Parse__R__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Term, u) + sizeof(((struct E_Parse__R__Ast__Term*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = ({ struct E_Ast__Term* o1 = (struct E_Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Term, u) + sizeof(((struct E_Ast__Term*)0)->u.C_Ast__TName))); o1->tag = 0; o1->u.C_Ast__TName.f_n = f_Sym__of(p_eff__Region, v_x_0); o1; }); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o1; }); }) : ({ ({ struct E_Parse__R__Ast__Term* o0 = (struct E_Parse__R__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Term, u) + sizeof(((struct E_Parse__R__Ast__Term*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"term", 4}); o0; }); }); }); __auto_type res_ = ({ __auto_type s1 = v_tm_0; s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Term* o3 = (struct E_Parse__R__Coll__List_1_Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Term, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Term*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_t_1 = s1->u.C_Parse__Ok.f_v; __auto_type v_t1_2 = s1->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_2, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_2); struct E_Coll__List__Ast__Term* t2 = ({ struct E_Coll__List__Ast__Term* o3 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_1; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Term*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_2; struct E_Coll__List__Ast__Term* t2 = ({ struct E_Coll__List__Ast__Term* o3 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_1; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Term*){0}; })); }); }); res_; })); res_; }); } +static struct E_Coll__List__Ast__Term* f_Coll__rev__Ast__Term(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_xs) { return f_Coll__revOnto__Ast__Term(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Term)); } +static struct E_Coll__List__Ast__Term* f_Coll__revOnto__Ast__Term(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Term* p_xs, struct E_Coll__List__Ast__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Term* t1 = v_t_1; struct E_Coll__List__Ast__Term* t2 = ({ struct E_Coll__List__Ast__Term* o2 = (struct E_Coll__List__Ast__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Term, u) + sizeof(((struct E_Coll__List__Ast__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Term*){0}; }); }); }); } +static struct E_Parse__R__Ast__Ty* f_Parse__ty(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o2 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__List_1_Ast__Ty* v_targs_2 = (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"[", 1})) ? f_Parse__tys(p_eff__Region, f_Parse__next(v_t1_1), ((srs_str){(const uint8_t*)"]", 1}), (&N_Coll__Nil__Ast__Ty)) : ({ struct E_Parse__R__Coll__List_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__List_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Ty*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Ty); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); __auto_type res_ = ({ __auto_type s3 = v_targs_2; s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o5 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_args_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__List_1_Ast__Expr* v_tvals_5 = (f_Parse__isOp(p_eff__Region, v_t2_4, ((srs_str){(const uint8_t*)"(", 1})) ? f_Parse__args(p_eff__Region, v_t2_4) : ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o5 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = (&N_Coll__Nil__Ast__Expr); o5->u.C_Parse__Ok.f_ts = v_t2_4; o5; })); __auto_type res_ = ({ __auto_type s6 = v_tvals_5; s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o8 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_vals_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t3_7 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, v_t3_7, ((srs_str){(const uint8_t*)"^", 1})) ? ({ __auto_type res_ = ({ __auto_type s8 = f_Parse__op(p_eff__Region, f_Parse__next(v_t3_7), ((srs_str){(const uint8_t*)"<", 1})); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o10 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_t4_8 = s8->u.C_Parse__Ok.f_ts; ({ __auto_type s9 = f_Parse__names(p_eff__Region, v_t4_8, ((srs_str){(const uint8_t*)">", 1}), (&N_Coll__Nil__Sym__Sym)); s9->tag == 1 ? ({ __auto_type v_l_9 = s9->u.C_Parse__Err.f_line; __auto_type v_w_10 = s9->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Ty* o11 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Err))); o11->tag = 1; o11->u.C_Parse__Err.f_line = v_l_9; o11->u.C_Parse__Err.f_want = v_w_10; o11; }); }) : ({ __auto_type v_cs_9 = s9->u.C_Parse__Ok.f_v; __auto_type v_t5_10 = s9->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Ty* o11 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Ok))); o11->tag = 0; o11->u.C_Parse__Ok.f_v = ({ struct E_Ast__Ty* o11 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o11->tag = 0; o11->u.C_Ast__Ty.f_line = f_Parse__line(p_eff__Region, p_ts); o11->u.C_Ast__Ty.f_name = v_name_0; o11->u.C_Ast__Ty.f_args = v_args_3; o11->u.C_Ast__Ty.f_caps = ({ struct E_Ast__Caps* o11 = (struct E_Ast__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Caps, u) + sizeof(((struct E_Ast__Caps*)0)->u.C_Ast__Stated))); o11->tag = 1; o11->u.C_Ast__Stated.f_cs = v_cs_9; o11; }); o11->u.C_Ast__Ty.f_vals = v_vals_6; o11; }); o11->u.C_Parse__Ok.f_ts = v_t5_10; o11; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Ty* o8 = (struct E_Parse__R__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Ty, u) + sizeof(((struct E_Parse__R__Ast__Ty*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__Ty* o8 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o8->tag = 0; o8->u.C_Ast__Ty.f_line = f_Parse__line(p_eff__Region, p_ts); o8->u.C_Ast__Ty.f_name = v_name_0; o8->u.C_Ast__Ty.f_args = v_args_3; o8->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o8->u.C_Ast__Ty.f_vals = v_vals_6; o8; }); o8->u.C_Parse__Ok.f_ts = v_t3_7; o8; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Ty* f_Parse__tys(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Ast__Ty* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, p_close) ? ({ struct E_Parse__R__Coll__List_1_Ast__Ty* o0 = (struct E_Parse__R__Coll__List_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Ty*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Ty(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__ty(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__List_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Ty*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_1); srs_str t2 = p_close; struct E_Coll__List__Ast__Ty* t3 = ({ struct E_Coll__List__Ast__Ty* o2 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_t_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Ty*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; srs_str t2 = p_close; struct E_Coll__List__Ast__Ty* t3 = ({ struct E_Coll__List__Ast__Ty* o2 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_t_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Ty*){0}; })); }); })); res_; }); } +static struct E_Coll__List__Ast__Ty* f_Coll__rev__Ast__Ty(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_xs) { return f_Coll__revOnto__Ast__Ty(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Ty)); } +static struct E_Coll__List__Ast__Ty* f_Coll__revOnto__Ast__Ty(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_xs, struct E_Coll__List__Ast__Ty* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Ty* t1 = v_t_1; struct E_Coll__List__Ast__Ty* t2 = ({ struct E_Coll__List__Ast__Ty* o2 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Ty*){0}; }); }); }); } +static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__names(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, srs_str p_close, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, p_close) ? ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o0 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o2 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_1); srs_str t2 = p_close; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; srs_str t2 = p_close; struct E_Coll__List__Sym__Sym* t3 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_close = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Coll__List_1_Sym__Sym*){0}; })); }); })); res_; }); } +static struct E_Parse__R__Coll__List_1_Sym__Sym* f_Parse__nameLine(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o2 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_1); struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Sym__Sym*){0}; }) : ({ struct E_Parse__R__Coll__List_1_Sym__Sym* o2 = (struct E_Parse__R__Coll__List_1_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Sym__Sym, u) + sizeof(((struct E_Parse__R__Coll__List_1_Sym__Sym*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = f_Coll__rev__Sym__Sym(p_eff__Region, ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__enumDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__groups(p_eff__Region, v_t1_1, (&N_Coll__Nil__Ast__Group)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_gs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__layoutOpen(p_eff__Region, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o6 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__cases(p_eff__Region, v_t3_4, (&N_Coll__Nil__Ast__Case)); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_cs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DEnum))); o7->tag = 1; o7->u.C_Ast__DEnum.f_e = ({ struct E_Ast__Enum* o7 = (struct E_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Enum, u) + sizeof(((struct E_Ast__Enum*)0)->u.C_Ast__Enum))); o7->tag = 0; o7->u.C_Ast__Enum.f_line = p_line; o7->u.C_Ast__Enum.f_name = v_name_0; o7->u.C_Ast__Enum.f_groups = v_gs_2; o7->u.C_Ast__Enum.f_cases = v_cs_5; o7; }); o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Case* f_Parse__cases(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Case* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Case* o0 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Case(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Case* o2 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__ident(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Case* o4 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_name_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, v_t2_3, ((srs_str){(const uint8_t*)"(", 1})) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Parse__params(p_eff__Region, v_t2_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Case* o6 = (struct E_Parse__R__Coll__List_1_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Case*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_fs_4 = s4->u.C_Parse__Ok.f_v; __auto_type v_t3_5 = s4->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t3_5); struct E_Coll__List__Ast__Case* t2 = ({ struct E_Coll__List__Ast__Case* o6 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ast__Case* o6 = (struct E_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Case, u) + sizeof(((struct E_Ast__Case*)0)->u.C_Ast__Case))); o6->tag = 0; o6->u.C_Ast__Case.f_line = v_line_0; o6->u.C_Ast__Case.f_name = v_name_2; o6->u.C_Ast__Case.f_fields = v_fs_4; o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Case*){0}; }); }); }); res_; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t2_3); struct E_Coll__List__Ast__Case* t2 = ({ struct E_Coll__List__Ast__Case* o4 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ast__Case* o4 = (struct E_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Case, u) + sizeof(((struct E_Ast__Case*)0)->u.C_Ast__Case))); o4->tag = 0; o4->u.C_Ast__Case.f_line = v_line_0; o4->u.C_Ast__Case.f_name = v_name_2; o4->u.C_Ast__Case.f_fields = (&N_Coll__Nil__Ast__Binder); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Case*){0}; })); res_; }); }); }); }); })); res_; }); } +static struct E_Coll__List__Ast__Case* f_Coll__rev__Ast__Case(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_xs) { return f_Coll__revOnto__Ast__Case(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Case)); } +static struct E_Coll__List__Ast__Case* f_Coll__revOnto__Ast__Case(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_xs, struct E_Coll__List__Ast__Case* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_t_1; struct E_Coll__List__Ast__Case* t2 = ({ struct E_Coll__List__Ast__Case* o2 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Case*){0}; }); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__proto(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__layoutOpen(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__items(p_eff__Region, v_t2_2, ({ struct E_Parse__Pr* o3 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o3->tag = 0; o3->u.C_Parse__Pr.f_states = (&N_Coll__Nil__Sym__Sym); o3->u.C_Parse__Pr.f_start = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"", 0})); o3->u.C_Parse__Pr.f_ends = (&N_Coll__Nil__Sym__Sym); o3->u.C_Parse__Pr.f_drop = (&N_Coll__None__Sym__Sym); o3->u.C_Parse__Pr.f_ops = (&N_Coll__Nil__Ast__Op); o3->u.C_Parse__Pr.f_rules = (&N_Coll__Nil__Ast__RuleDef); o3; })); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o5 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_pr_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = ({ __auto_type s5 = v_pr_3; ({ __auto_type v_ss_5 = s5->u.C_Parse__Pr.f_states; __auto_type v_st_6 = s5->u.C_Parse__Pr.f_start; __auto_type v_es_7 = s5->u.C_Parse__Pr.f_ends; __auto_type v_dr_8 = s5->u.C_Parse__Pr.f_drop; __auto_type v_os_9 = s5->u.C_Parse__Pr.f_ops; __auto_type v_rs_10 = s5->u.C_Parse__Pr.f_rules; ({ __auto_type res_ = ({ struct E_Parse__R__Ast__Decl* o11 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o11->tag = 0; o11->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o11 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DProto))); o11->tag = 2; o11->u.C_Ast__DProto.f_p = ({ struct E_Ast__Proto* o11 = (struct E_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Proto, u) + sizeof(((struct E_Ast__Proto*)0)->u.C_Ast__Proto))); o11->tag = 0; o11->u.C_Ast__Proto.f_line = p_line; o11->u.C_Ast__Proto.f_name = v_name_0; o11->u.C_Ast__Proto.f_states = v_ss_5; o11->u.C_Ast__Proto.f_start = v_st_6; o11->u.C_Ast__Proto.f_ends = v_es_7; o11->u.C_Ast__Proto.f_dropOp = v_dr_8; o11->u.C_Ast__Proto.f_ops = f_Coll__rev__Ast__Op(p_eff__Region, v_os_9); o11->u.C_Ast__Proto.f_rules = f_Coll__rev__Ast__RuleDef(p_eff__Region, v_rs_10); o11; }); o11; }); o11->u.C_Parse__Ok.f_ts = v_t3_4; o11; }); res_; }); }); }); res_; }); }); }); }); }); }); }); } +static struct E_Coll__List__Ast__Op* f_Coll__rev__Ast__Op(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_xs) { return f_Coll__revOnto__Ast__Op(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Op)); } +static struct E_Coll__List__Ast__Op* f_Coll__revOnto__Ast__Op(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_xs, struct E_Coll__List__Ast__Op* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Op* t1 = v_t_1; struct E_Coll__List__Ast__Op* t2 = ({ struct E_Coll__List__Ast__Op* o2 = (struct E_Coll__List__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Op, u) + sizeof(((struct E_Coll__List__Ast__Op*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Op*){0}; }); }); }); } +static struct E_Coll__List__Ast__RuleDef* f_Coll__rev__Ast__RuleDef(srs_cap* p_eff__Region, struct E_Coll__List__Ast__RuleDef* p_xs) { return f_Coll__revOnto__Ast__RuleDef(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__RuleDef)); } +static struct E_Coll__List__Ast__RuleDef* f_Coll__revOnto__Ast__RuleDef(srs_cap* p_eff__Region, struct E_Coll__List__Ast__RuleDef* p_xs, struct E_Coll__List__Ast__RuleDef* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__RuleDef* t1 = v_t_1; struct E_Coll__List__Ast__RuleDef* t2 = ({ struct E_Coll__List__Ast__RuleDef* o2 = (struct E_Coll__List__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__RuleDef, u) + sizeof(((struct E_Coll__List__Ast__RuleDef*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__RuleDef*){0}; }); }); }); } +static struct E_Parse__R__Parse__Pr* f_Parse__items(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Parse__Pr* p_pr) { srs_tail: return ({ __auto_type res_ = ({ __auto_type s0 = p_pr; ({ __auto_type v_ss_0 = s0->u.C_Parse__Pr.f_states; __auto_type v_st_1 = s0->u.C_Parse__Pr.f_start; __auto_type v_es_2 = s0->u.C_Parse__Pr.f_ends; __auto_type v_dr_3 = s0->u.C_Parse__Pr.f_drop; __auto_type v_os_4 = s0->u.C_Parse__Pr.f_ops; __auto_type v_rs_5 = s0->u.C_Parse__Pr.f_rules; ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Parse__Pr* o6 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = p_pr; o6->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o6; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"state", 5})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__nameLine(p_eff__Region, f_Parse__next(p_ts), (&N_Coll__Nil__Sym__Sym)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_xs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_xs_6; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_eff__Region = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"start", 5})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__ident(p_eff__Region, f_Parse__next(p_ts)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_x_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_x_6; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_eff__Region = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"end", 3})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__nameLine(p_eff__Region, f_Parse__next(p_ts), (&N_Coll__Nil__Sym__Sym)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_xs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_xs_6; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_eff__Region = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"drop", 4})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__ident(p_eff__Region, f_Parse__next(p_ts)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_x_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = ({ struct E_Coll__Option__Sym__Sym* o8 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o8->tag = 1; o8->u.C_Coll__Some.f_v = v_x_6; o8; }); o8->u.C_Parse__Pr.f_ops = v_os_4; o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_eff__Region = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"op", 2})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__opDecl(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_o_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t1_7 = s6->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t1_7); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o8 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o8->tag = 0; o8->u.C_Parse__Pr.f_states = v_ss_0; o8->u.C_Parse__Pr.f_start = v_st_1; o8->u.C_Parse__Pr.f_ends = v_es_2; o8->u.C_Parse__Pr.f_drop = v_dr_3; o8->u.C_Parse__Pr.f_ops = ({ struct E_Coll__List__Ast__Op* o8 = (struct E_Coll__List__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Op, u) + sizeof(((struct E_Coll__List__Ast__Op*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = v_o_6; o8->u.C_Coll__Cons.f_t = v_os_4; o8; }); o8->u.C_Parse__Pr.f_rules = v_rs_5; o8; }); p_eff__Region = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); res_; }) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"rule", 4})) ? ({ __auto_type res_ = ({ __auto_type s6 = f_Parse__kw(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"def", 3})); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o8 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_t1_6 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__ruleDecl(p_eff__Region, v_t1_6, f_Parse__line(p_eff__Region, p_ts)); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Parse__Pr* o9 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_rd_7 = s7->u.C_Parse__Ok.f_v; __auto_type v_t2_8 = s7->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t2_8); struct E_Parse__Pr* t2 = ({ struct E_Parse__Pr* o9 = (struct E_Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__Pr, u) + sizeof(((struct E_Parse__Pr*)0)->u.C_Parse__Pr))); o9->tag = 0; o9->u.C_Parse__Pr.f_states = v_ss_0; o9->u.C_Parse__Pr.f_start = v_st_1; o9->u.C_Parse__Pr.f_ends = v_es_2; o9->u.C_Parse__Pr.f_drop = v_dr_3; o9->u.C_Parse__Pr.f_ops = v_os_4; o9->u.C_Parse__Pr.f_rules = ({ struct E_Coll__List__Ast__RuleDef* o9 = (struct E_Coll__List__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__RuleDef, u) + sizeof(((struct E_Coll__List__Ast__RuleDef*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = v_rd_7; o9->u.C_Coll__Cons.f_t = v_rs_5; o9; }); o9; }); p_eff__Region = t0; p_ts = t1; p_pr = t2; goto srs_tail; (struct E_Parse__R__Parse__Pr*){0}; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Parse__Pr* o6 = (struct E_Parse__R__Parse__Pr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Parse__Pr, u) + sizeof(((struct E_Parse__R__Parse__Pr*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o6->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"protocol item", 13}); o6; })))))))); res_; }); }); }); res_; }); } +static struct E_Parse__R__Ast__Op* f_Parse__opDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o2 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__params(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o4 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_ps_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_eff__Region, v_t2_3, ((srs_str){(const uint8_t*)":", 1})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o6 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__ty(p_eff__Region, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o7 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_ret_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__op(p_eff__Region, v_t4_6, ((srs_str){(const uint8_t*)":", 1})); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o9 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_t5_7 = s7->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__trans(p_eff__Region, v_t5_7, (&N_Coll__Nil__Ast__Trans)); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Op* o10 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_trs_8 = s8->u.C_Parse__Ok.f_v; __auto_type v_t6_9 = s8->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Op* o10 = (struct E_Parse__R__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Op, u) + sizeof(((struct E_Parse__R__Ast__Op*)0)->u.C_Parse__Ok))); o10->tag = 0; o10->u.C_Parse__Ok.f_v = ({ struct E_Ast__Op* o10 = (struct E_Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Op, u) + sizeof(((struct E_Ast__Op*)0)->u.C_Ast__Op))); o10->tag = 0; o10->u.C_Ast__Op.f_line = p_line; o10->u.C_Ast__Op.f_name = v_name_0; o10->u.C_Ast__Op.f_params = v_ps_2; o10->u.C_Ast__Op.f_ret = v_ret_5; o10->u.C_Ast__Op.f_trans = v_trs_8; o10; }); o10->u.C_Parse__Ok.f_ts = v_t6_9; o10; }); }); }); }); }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Trans* f_Parse__trans(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Trans* p_acc) { srs_tail: return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o2 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_a_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"-", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o4 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__op(p_eff__Region, v_t2_2, ((srs_str){(const uint8_t*)">", 1})); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o5 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t3_3 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__ident(p_eff__Region, v_t3_3); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o6 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_b_4 = s4->u.C_Parse__Ok.f_v; __auto_type v_t4_5 = s4->u.C_Parse__Ok.f_ts; ({ struct E_Coll__List__Ast__Trans* v_acc2_6 = ({ struct E_Coll__List__Ast__Trans* o6 = (struct E_Coll__List__Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Trans, u) + sizeof(((struct E_Coll__List__Ast__Trans*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ast__Trans* o6 = (struct E_Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Trans, u) + sizeof(((struct E_Ast__Trans*)0)->u.C_Ast__Trans))); o6->tag = 0; o6->u.C_Ast__Trans.f_from = v_a_0; o6->u.C_Ast__Trans.f_to = v_b_4; o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); __auto_type res_ = (f_Parse__isOp(p_eff__Region, v_t4_5, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t4_5); struct E_Coll__List__Ast__Trans* t2 = v_acc2_6; p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Trans*){0}; }) : ({ struct E_Parse__R__Coll__List_1_Ast__Trans* o7 = (struct E_Parse__R__Coll__List_1_Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Trans, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Trans*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Trans(p_eff__Region, v_acc2_6); o7->u.C_Parse__Ok.f_ts = v_t4_5; o7; })); res_; }); }); }); }); }); }); }); }); }); } +static struct E_Coll__List__Ast__Trans* f_Coll__rev__Ast__Trans(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trans* p_xs) { return f_Coll__revOnto__Ast__Trans(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Trans)); } +static struct E_Coll__List__Ast__Trans* f_Coll__revOnto__Ast__Trans(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trans* p_xs, struct E_Coll__List__Ast__Trans* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Trans* t1 = v_t_1; struct E_Coll__List__Ast__Trans* t2 = ({ struct E_Coll__List__Ast__Trans* o2 = (struct E_Coll__List__Ast__Trans*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Trans, u) + sizeof(((struct E_Coll__List__Ast__Trans*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Trans*){0}; }); }); }); } +static struct E_Parse__R__Ast__RuleDef* f_Parse__ruleDecl(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o2 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o4 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__names(p_eff__Region, v_t2_2, ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Sym__Sym)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o5 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_ps_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_eff__Region, v_t3_4, ((srs_str){(const uint8_t*)"=", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o7 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__ruleBody(p_eff__Region, v_t4_5, (&N_Coll__Nil__Ast__Atom)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__RuleDef* o8 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_as_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__RuleDef* o8 = (struct E_Parse__R__Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__RuleDef, u) + sizeof(((struct E_Parse__R__Ast__RuleDef*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__RuleDef* o8 = (struct E_Ast__RuleDef*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__RuleDef, u) + sizeof(((struct E_Ast__RuleDef*)0)->u.C_Ast__RuleDef))); o8->tag = 0; o8->u.C_Ast__RuleDef.f_line = p_line; o8->u.C_Ast__RuleDef.f_name = v_name_0; o8->u.C_Ast__RuleDef.f_params = v_ps_3; o8->u.C_Ast__RuleDef.f_body = v_as_6; o8; }); o8->u.C_Parse__Ok.f_ts = v_t5_7; o8; }); }); }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Atom* f_Parse__ruleBody(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Atom* p_acc) { srs_tail: return ({ __auto_type s0 = f_Parse__atom(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o2 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_a_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_1); struct E_Coll__List__Ast__Atom* t2 = ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Atom*){0}; }) : ({ struct E_Parse__R__Coll__List_1_Ast__Atom* o2 = (struct E_Parse__R__Coll__List_1_Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Atom, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Atom*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Atom(p_eff__Region, ({ struct E_Coll__List__Ast__Atom* o2 = (struct E_Coll__List__Ast__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Atom, u) + sizeof(((struct E_Coll__List__Ast__Atom*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_a_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; })); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); }); }); } +static struct E_Parse__R__Ast__Decl* f_Parse__handler(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o2 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_name_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__kw(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"for", 3})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o4 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ident(p_eff__Region, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o5 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_proto_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__layoutOpen(p_eff__Region, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o7 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__defs(p_eff__Region, v_t4_5, false, (&N_Coll__Nil__Ast__Fn)); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Decl* o8 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_fs_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Decl* o8 = (struct E_Parse__R__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Decl, u) + sizeof(((struct E_Parse__R__Ast__Decl*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__Decl* o8 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DHandler))); o8->tag = 3; o8->u.C_Ast__DHandler.f_h = ({ struct E_Ast__Handler* o8 = (struct E_Ast__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Handler, u) + sizeof(((struct E_Ast__Handler*)0)->u.C_Ast__Handler))); o8->tag = 0; o8->u.C_Ast__Handler.f_line = p_line; o8->u.C_Ast__Handler.f_name = v_name_0; o8->u.C_Ast__Handler.f_proto = v_proto_3; o8->u.C_Ast__Handler.f_fns = f_Parse__stateless(p_eff__Region, v_fs_6, p_line); o8; }); o8; }); o8->u.C_Parse__Ok.f_ts = v_t5_7; o8; }); }); }); }); }); }); }); }); }); }); }); } +static struct E_Coll__List__Ast__Fn* f_Parse__stateless(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line) { return ({ __auto_type res_ = (f_Parse__hasInit(p_fs) ? p_fs : ({ struct E_Ast__Ty* v_ptr_0 = ({ struct E_Ast__Ty* o0 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o0->tag = 0; o0->u.C_Ast__Ty.f_line = p_line; o0->u.C_Ast__Ty.f_name = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Ptr", 3})); o0->u.C_Ast__Ty.f_args = (&N_Coll__Nil__Ast__Ty); o0->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o0->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o0; }); struct E_Ast__Fn* v_init_1 = ({ struct E_Ast__Fn* o1 = (struct E_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o1->tag = 0; o1->u.C_Ast__Fn.f_line = p_line; o1->u.C_Ast__Fn.f_name = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"init", 4})); o1->u.C_Ast__Fn.f_groups = (&N_Coll__Nil__Ast__Group); o1->u.C_Ast__Fn.f_params = (&N_Coll__Nil__Ast__Binder); o1->u.C_Ast__Fn.f_ret = v_ptr_0; o1->u.C_Ast__Fn.f_exit = (&N_Coll__Nil__Ast__Atom); o1->u.C_Ast__Fn.f_body = ({ struct E_Ast__Body* o1 = (struct E_Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Def))); o1->tag = 0; o1->u.C_Ast__Def.f_cs = (&N_Coll__Nil__Ast__Clause); o1->u.C_Ast__Def.f_e = ({ struct E_Ast__Expr* o1 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Call))); o1->tag = 5; o1->u.C_Ast__Call.f_line = p_line; o1->u.C_Ast__Call.f_f = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Srs.noState", 11})); o1->u.C_Ast__Call.f_targs = (&N_Coll__Nil__Ast__Ty); o1->u.C_Ast__Call.f_chosen = (&N_Coll__Nil__Sym__Sym); o1->u.C_Ast__Call.f_args = (&N_Coll__Nil__Ast__Expr); o1; }); o1; }); o1; }); __auto_type res_ = ({ struct E_Coll__List__Ast__Fn* o2 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_init_1; o2->u.C_Coll__Cons.f_t = f_Parse__withSelf(p_eff__Region, p_fs, v_ptr_0); o2; }); res_; })); res_; }); } static bool f_Parse__hasInit(struct E_Coll__List__Ast__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ __auto_type res_ = (Str__eq(f_Sym__str(v_n_2), ((srs_str){(const uint8_t*)"init", 4})) ? true : ({ struct E_Coll__List__Ast__Fn* t0 = v_rest_1; p_fs = t0; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ast__Fn* f_Parse__withSelf(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Ast__Ty* p_ptr) { return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ (&N_Coll__Nil__Ast__Fn); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_l_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_n_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_gs_4 = s2->u.C_Ast__Fn.f_groups; __auto_type v_ps_5 = s2->u.C_Ast__Fn.f_params; __auto_type v_ret_6 = s2->u.C_Ast__Fn.f_ret; __auto_type v_exit_7 = s2->u.C_Ast__Fn.f_exit; __auto_type v_body_8 = s2->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ struct E_Coll__List__Ast__Fn* o9 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Ast__Fn* o9 = (struct E_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o9->tag = 0; o9->u.C_Ast__Fn.f_line = v_l_2; o9->u.C_Ast__Fn.f_name = v_n_3; o9->u.C_Ast__Fn.f_groups = v_gs_4; o9->u.C_Ast__Fn.f_params = ({ struct E_Coll__List__Ast__Binder* o9 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Ast__Binder* o9 = (struct E_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Binder, u) + sizeof(((struct E_Ast__Binder*)0)->u.C_Ast__Binder))); o9->tag = 0; o9->u.C_Ast__Binder.f_line = v_l_2; o9->u.C_Ast__Binder.f_x = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"self", 4})); o9->u.C_Ast__Binder.f_ty = p_ptr; o9; }); o9->u.C_Coll__Cons.f_t = v_ps_5; o9; }); o9->u.C_Ast__Fn.f_ret = v_ret_6; o9->u.C_Ast__Fn.f_exit = v_exit_7; o9->u.C_Ast__Fn.f_body = v_body_8; o9; }); o9->u.C_Coll__Cons.f_t = f_Parse__withSelf(p_r, v_rest_1, p_ptr); o9; }); res_; }); }); }); res_; }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__rhs(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = ((f_Parse__isNl(p_r, p_ts) && f_Parse__isIndent(p_r, f_Parse__next(p_r, p_ts))) ? f_Parse__block(p_r, f_Parse__next(p_r, f_Parse__next(p_r, p_ts)), f_Parse__line(p_r, f_Parse__next(p_r, p_ts))) : f_Parse__expr(p_r, p_ts)); res_; }); } -static struct E_Parse__R__Ast__Expr* f_Parse__block(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return f_Parse__stmts(p_r, p_ts, p_line, (&N_Coll__Nil__Ast__Stmt)); } -static struct E_Parse__R__Ast__Expr* f_Parse__stmts(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc) { srs_tail: return ({ struct E_Coll__List__Lex__Tok* v_t0_0 = f_Parse__skipNl(p_r, p_ts); __auto_type res_ = (f_Parse__isDedent(p_r, v_t0_0) ? ({ struct E_Parse__R__Ast__Expr* o1 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = f_Parse__blockOf(p_r, p_line, p_acc); o1->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, v_t0_0); o1; }) : ((f_Parse__isKw(p_r, v_t0_0, ((srs_str){(const uint8_t*)"val", 3})) && f_Parse__isPatVal(p_r, f_Parse__next(p_r, v_t0_0))) ? f_Parse__patVal(p_r, f_Parse__next(p_r, v_t0_0), f_Parse__line(p_r, v_t0_0), p_line, p_acc) : ({ __auto_type s1 = f_Parse__stmt(p_r, v_t0_0); s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_s_1 = s1->u.C_Parse__Ok.f_v; __auto_type v_t1_2 = s1->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_2; int64_t t2 = p_line; struct E_Coll__List__Ast__Stmt* t3 = ({ struct E_Coll__List__Ast__Stmt* o3 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_s_1; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_ts = t1; p_line = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); }))); res_; }); } -static struct E_Ast__Expr* f_Parse__blockOf(srs_cap* p_r, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc) { return ({ __auto_type s0 = p_acc; s0->tag == 0 ? ({ ({ struct E_Ast__Expr* o0 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o0->tag = 11; o0->u.C_Ast__Block.f_line = p_line; o0->u.C_Ast__Block.f_stmts = (&N_Coll__Nil__Ast__Stmt); o0->u.C_Ast__Block.f_last = ({ struct E_Ast__Expr* o0 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Unit))); o0->tag = 3; o0->u.C_Ast__Unit.f_line = p_line; o0; }); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o3->tag = 11; o3->u.C_Ast__Block.f_line = p_line; o3->u.C_Ast__Block.f_stmts = f_Coll__rev__Ast__Stmt(p_r, v_rest_1); o3->u.C_Ast__Block.f_last = v_e_2; o3; }); }) : ({ ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o2->tag = 11; o2->u.C_Ast__Block.f_line = p_line; o2->u.C_Ast__Block.f_stmts = f_Coll__rev__Ast__Stmt(p_r, p_acc); o2->u.C_Ast__Block.f_last = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Unit))); o2->tag = 3; o2->u.C_Ast__Unit.f_line = p_line; o2; }); o2; }); }); }); }); }); } -static struct E_Coll__List__Ast__Stmt* f_Coll__rev__Ast__Stmt(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_xs) { return f_Coll__revOnto__Ast__Stmt(p_r, p_xs, (&N_Coll__Nil__Ast__Stmt)); } -static struct E_Coll__List__Ast__Stmt* f_Coll__revOnto__Ast__Stmt(srs_cap* p_r, struct E_Coll__List__Ast__Stmt* p_xs, struct E_Coll__List__Ast__Stmt* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Stmt* t1 = v_t_1; struct E_Coll__List__Ast__Stmt* t2 = ({ struct E_Coll__List__Ast__Stmt* o2 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Stmt*){0}; }); }); }); } -static bool f_Parse__isPatVal(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; (((Str__at(v_x_0, ((int64_t)0)) >= ((int64_t)65)) && (Str__at(v_x_0, ((int64_t)0)) <= ((int64_t)90))) && f_Parse__opIs(f_Parse__second(p_r, p_ts), ((srs_str){(const uint8_t*)"(", 1}))); }) : ({ false; }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__patVal(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_vline, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__names(p_r, v_t2_2, ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Sym__Sym)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_bs_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_r, v_t3_4, ((srs_str){(const uint8_t*)"=", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__rhs(p_r, v_t4_5); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_e_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__stmts(p_r, v_t5_7, p_vline, (&N_Coll__Nil__Ast__Stmt)); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o10 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_body_8 = s8->u.C_Parse__Ok.f_v; __auto_type v_t6_9 = s8->u.C_Parse__Ok.f_ts; ({ struct E_Ast__Expr* v_m_10 = ({ struct E_Ast__Expr* o10 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Match))); o10->tag = 10; o10->u.C_Ast__Match.f_line = p_vline; o10->u.C_Ast__Match.f_s = v_e_6; o10->u.C_Ast__Match.f_arms = ({ struct E_Coll__List__Ast__Arm* o10 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = ({ struct E_Ast__Arm* o10 = (struct E_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Arm, u) + sizeof(((struct E_Ast__Arm*)0)->u.C_Ast__Arm))); o10->tag = 0; o10->u.C_Ast__Arm.f_line = p_vline; o10->u.C_Ast__Arm.f_p = ({ struct E_Ast__Pat* o10 = (struct E_Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Pat, u) + sizeof(((struct E_Ast__Pat*)0)->u.C_Ast__PCase))); o10->tag = 0; o10->u.C_Ast__PCase.f_c = v_c_0; o10->u.C_Ast__PCase.f_binds = v_bs_3; o10; }); o10->u.C_Ast__Arm.f_body = v_body_8; o10; }); o10->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ast__Arm); o10; }); o10; }); __auto_type res_ = ({ struct E_Parse__R__Ast__Expr* o11 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o11->tag = 0; o11->u.C_Parse__Ok.f_v = f_Parse__blockOf(p_r, p_line, ({ struct E_Coll__List__Ast__Stmt* o11 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_Ast__Stmt* o11 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Do))); o11->tag = 3; o11->u.C_Ast__Do.f_e = v_m_10; o11; }); o11->u.C_Coll__Cons.f_t = p_acc; o11; })); o11->u.C_Parse__Ok.f_ts = v_t6_9; o11; }); res_; }); }); }); }); }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Ast__Stmt* f_Parse__stmt(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = ((f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"val", 3})) || f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"var", 3}))) ? f_Parse__valStmt(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts), f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"var", 3}))) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"handle", 6})) ? f_Parse__handleStmt(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : ((f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"invariant", 9})) || f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"decreases", 9}))) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__expr(p_r, f_Parse__next(p_r, p_ts)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Stmt* o2 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Check))); o2->tag = 4; o2->u.C_Ast__Check.f_line = f_Parse__line(p_r, p_ts); o2->u.C_Ast__Check.f_k = (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"invariant", 9})) ? (&N_Ast__LInvariant) : (&N_Ast__LDecreases)); o2->u.C_Ast__Check.f_e = v_e_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); res_; }) : ({ __auto_type s0 = f_Parse__expr(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Stmt* o2 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Do))); o2->tag = 3; o2->u.C_Ast__Do.f_e = v_e_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); })))); res_; }); } -static struct E_Parse__R__Ast__Stmt* f_Parse__valStmt(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, bool p_isVar) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* v_ann_2 = (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)":", 1})) ? f_Parse__someTy(p_r, f_Parse__ty(p_r, f_Parse__next(p_r, v_t1_1))) : ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__Option_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__Option_1_Ast__Ty*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Coll__None__Ast__Ty); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); __auto_type res_ = ({ __auto_type s3 = v_ann_2; s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o5 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_a_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_r, v_t2_4, ((srs_str){(const uint8_t*)"=", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o7 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t3_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__rhs(p_r, v_t3_5); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o8 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_e_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t4_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o8 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = (p_isVar ? ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Var))); o8->tag = 1; o8->u.C_Ast__Var.f_line = p_line; o8->u.C_Ast__Var.f_x = v_x_0; o8->u.C_Ast__Var.f_ann = v_a_3; o8->u.C_Ast__Var.f_e = v_e_6; o8; }) : ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Val))); o8->tag = 0; o8->u.C_Ast__Val.f_line = p_line; o8->u.C_Ast__Val.f_x = v_x_0; o8->u.C_Ast__Val.f_ann = v_a_3; o8->u.C_Ast__Val.f_e = v_e_6; o8; })); o8->u.C_Parse__Ok.f_ts = v_t4_7; o8; }); }); }); }); }); }); }); res_; }); }); }); } -static struct E_Parse__R__Coll__Option_1_Ast__Ty* f_Parse__someTy(srs_cap* p_r, struct E_Parse__R__Ast__Ty* p_rt) { return ({ __auto_type s0 = p_rt; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__Option_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__Option_1_Ast__Ty*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__Option_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__Option_1_Ast__Ty*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Coll__Option__Ast__Ty* o2 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_t_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } -static struct E_Parse__R__Ast__Stmt* f_Parse__handleStmt(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)"=", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o4 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ident(p_r, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o5 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_h_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__args(p_r, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o7 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_xs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o7 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Stmt* o7 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Handle))); o7->tag = 2; o7->u.C_Ast__Handle.f_line = p_line; o7->u.C_Ast__Handle.f_x = v_x_0; o7->u.C_Ast__Handle.f_h = v_h_3; o7->u.C_Ast__Handle.f_args = v_xs_5; o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__expr(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"if", 2})) ? f_Parse__ifExpr(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"while", 5})) ? f_Parse__whileExpr(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts)) : ((f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"forall", 6})) || f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"exists", 6}))) ? f_Parse__quant(p_r, f_Parse__next(p_r, p_ts), f_Parse__line(p_r, p_ts), (f_Parse__isKw(p_r, p_ts, ((srs_str){(const uint8_t*)"forall", 6})) ? (&N_Ast__Forall) : (&N_Ast__Exists))) : ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; __auto_type v_line_1 = s0->u.C_Lex__TIdent.f_line; ({ __auto_type res_ = (f_Parse__opIs(f_Parse__second(p_r, p_ts), ((srs_str){(const uint8_t*)"=", 1})) ? ({ __auto_type res_ = ({ __auto_type s2 = f_Parse__rhs(p_r, f_Parse__next(p_r, f_Parse__next(p_r, p_ts))); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_e_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t1_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o4 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Assign))); o4->tag = 13; o4->u.C_Ast__Assign.f_line = v_line_1; o4->u.C_Ast__Assign.f_x = f_Sym__of(p_r, v_x_0); o4->u.C_Ast__Assign.f_e = v_e_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t1_3; o4; }); }); }); res_; }) : f_Parse__matchOf(p_r, f_Parse__binary(p_r, p_ts, ((int64_t)0)))); res_; }); }) : ({ f_Parse__matchOf(p_r, f_Parse__binary(p_r, p_ts, ((int64_t)0))); }); })))); res_; }); } -static struct E_Parse__R__Ast__Expr* f_Parse__quant(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Ast__Q* p_q) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_r, v_t1_1, ((srs_str){(const uint8_t*)":", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ty(p_r, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_r, v_t3_4, ((srs_str){(const uint8_t*)"=>", 2})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__expr(p_r, v_t4_5); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_b_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o8 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Quant))); o8->tag = 14; o8->u.C_Ast__Quant.f_line = p_line; o8->u.C_Ast__Quant.f_q = p_q; o8->u.C_Ast__Quant.f_x = v_x_0; o8->u.C_Ast__Quant.f_t = v_t_3; o8->u.C_Ast__Quant.f_e = v_b_6; o8; }); o8->u.C_Parse__Ok.f_ts = v_t5_7; o8; }); }); }); }); }); }); }); }); }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__matchOf(srs_cap* p_r, struct E_Parse__R__Ast__Expr* p_re) { return ({ __auto_type s0 = p_re; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isKw(p_r, v_t1_1, ((srs_str){(const uint8_t*)"match", 5})) ? ({ struct E_Coll__List__Lex__Tok* v_t2_2 = f_Parse__next(p_r, v_t1_1); __auto_type res_ = ((f_Parse__isNl(p_r, v_t2_2) && f_Parse__isIndent(p_r, f_Parse__next(p_r, v_t2_2))) ? ({ __auto_type res_ = ({ __auto_type s3 = f_Parse__arms(p_r, f_Parse__next(p_r, f_Parse__next(p_r, v_t2_2)), (&N_Coll__Nil__Ast__Arm)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_as_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Match))); o5->tag = 10; o5->u.C_Ast__Match.f_line = f_Parse__line(p_r, v_t1_1); o5->u.C_Ast__Match.f_s = v_e_0; o5->u.C_Ast__Match.f_arms = v_as_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = f_Parse__line(p_r, v_t2_2); o3->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"match arms", 10}); o3; })); res_; }) : p_re); res_; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Arm* f_Parse__arms(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Arm* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_r, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o0 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Arm(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_r, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o2 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__pat(p_r, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o4 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_p_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_r, v_t2_3, ((srs_str){(const uint8_t*)"=>", 2})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o6 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__rhs(p_r, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o7 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_b_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_r, v_t4_6); struct E_Coll__List__Ast__Arm* t2 = ({ struct E_Coll__List__Ast__Arm* o7 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Arm* o7 = (struct E_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Arm, u) + sizeof(((struct E_Ast__Arm*)0)->u.C_Ast__Arm))); o7->tag = 0; o7->u.C_Ast__Arm.f_line = v_line_0; o7->u.C_Ast__Arm.f_p = v_p_2; o7->u.C_Ast__Arm.f_body = v_b_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Arm*){0}; }); }); }); }); }); }); }); }); })); res_; }); } -static struct E_Coll__List__Ast__Arm* f_Coll__rev__Ast__Arm(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_xs) { return f_Coll__revOnto__Ast__Arm(p_r, p_xs, (&N_Coll__Nil__Ast__Arm)); } -static struct E_Coll__List__Ast__Arm* f_Coll__revOnto__Ast__Arm(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_xs, struct E_Coll__List__Ast__Arm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Arm* t1 = v_t_1; struct E_Coll__List__Ast__Arm* t2 = ({ struct E_Coll__List__Ast__Arm* o2 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Arm*){0}; }); }); }); } -static struct E_Parse__R__Ast__Pat* f_Parse__pat(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ident(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Pat* o2 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (Str__eq(f_Sym__str(v_c_0), ((srs_str){(const uint8_t*)"_", 1})) ? ({ struct E_Parse__R__Ast__Pat* o2 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Ast__PAny); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }) : (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})) ? ({ __auto_type res_ = ({ __auto_type s2 = f_Parse__names(p_r, f_Parse__next(p_r, v_t1_1), ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Sym__Sym)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Pat* o4 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_bs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Pat* o4 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__Pat* o4 = (struct E_Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Pat, u) + sizeof(((struct E_Ast__Pat*)0)->u.C_Ast__PCase))); o4->tag = 0; o4->u.C_Ast__PCase.f_c = v_c_0; o4->u.C_Ast__PCase.f_binds = v_bs_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t2_3; o4; }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Pat* o2 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Pat* o2 = (struct E_Ast__Pat*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Pat, u) + sizeof(((struct E_Ast__Pat*)0)->u.C_Ast__PCase))); o2->tag = 0; o2->u.C_Ast__PCase.f_c = v_c_0; o2->u.C_Ast__PCase.f_binds = (&N_Coll__Nil__Sym__Sym); o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }))); res_; }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__ifExpr(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__expr(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__kw(p_r, v_t1_1, ((srs_str){(const uint8_t*)"then", 4})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__rhs(p_r, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Coll__List__Lex__Tok* v_t4_5 = ((f_Parse__isNl(p_r, v_t3_4) && f_Parse__kwIs(f_Parse__second(p_r, v_t3_4), ((srs_str){(const uint8_t*)"else", 4}))) ? f_Parse__next(p_r, v_t3_4) : v_t3_4); __auto_type res_ = ({ __auto_type s6 = f_Parse__kw(p_r, v_t4_5, ((srs_str){(const uint8_t*)"else", 4})); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_t5_6 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__rhs(p_r, v_t5_6); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o9 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_e_7 = s7->u.C_Parse__Ok.f_v; __auto_type v_t6_8 = s7->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o9 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o9->tag = 0; o9->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o9 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__If))); o9->tag = 9; o9->u.C_Ast__If.f_line = p_line; o9->u.C_Ast__If.f_c = v_c_0; o9->u.C_Ast__If.f_t = v_t_3; o9->u.C_Ast__If.f_e = v_e_7; o9; }); o9->u.C_Parse__Ok.f_ts = v_t6_8; o9; }); }); }); }); }); res_; }); }); }); }); }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__whileExpr(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__expr(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__kw(p_r, v_t1_1, ((srs_str){(const uint8_t*)"do", 2})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__rhs(p_r, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_b_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__While))); o5->tag = 12; o5->u.C_Ast__While.f_line = p_line; o5->u.C_Ast__While.f_c = v_c_0; o5->u.C_Ast__While.f_body = v_b_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); }); }); }); }); } -static struct E_Coll__Option__Parse__BinTok* f_Parse__binOf(srs_cap* p_r, struct E_Lex__Tok* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 4 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TOp.f_s; ({ __auto_type res_ = (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"||", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Or); o1->u.C_Parse__BinTok.f_level = ((int64_t)0); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"&&", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__And); o1->u.C_Parse__BinTok.f_level = ((int64_t)1); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"==", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Eq); o1->u.C_Parse__BinTok.f_level = ((int64_t)2); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"!=", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Ne); o1->u.C_Parse__BinTok.f_level = ((int64_t)2); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"<", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Lt); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"<=", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Le); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)">", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Gt); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)">=", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Ge); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"+", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Add); o1->u.C_Parse__BinTok.f_level = ((int64_t)4); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"-", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Sub); o1->u.C_Parse__BinTok.f_level = ((int64_t)4); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"*", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Mul); o1->u.C_Parse__BinTok.f_level = ((int64_t)5); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"/", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Div); o1->u.C_Parse__BinTok.f_level = ((int64_t)5); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"%", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Mod); o1->u.C_Parse__BinTok.f_level = ((int64_t)5); o1; }); o1; }) : (&N_Coll__None__Parse__BinTok)))))))))))))); res_; }); }) : ({ (&N_Coll__None__Parse__BinTok); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__binary(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl) { return ({ __auto_type s0 = f_Parse__unary(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_lhs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; f_Parse__binLoop(p_r, v_lhs_0, v_t1_1, p_lvl); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__binLoop(srs_cap* p_r, struct E_Ast__Expr* p_lhs, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl) { srs_tail: return ({ __auto_type s0 = f_Parse__binOf(p_r, f_Parse__peek(p_r, p_ts)); s0->tag == 0 ? ({ ({ struct E_Parse__R__Ast__Expr* o0 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = p_lhs; o0->u.C_Parse__Ok.f_ts = p_ts; o0; }); }) : ({ __auto_type v_bt_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_bt_0; ({ __auto_type v_op_1 = s1->u.C_Parse__BinTok.f_op; __auto_type v_l_2 = s1->u.C_Parse__BinTok.f_level; ({ __auto_type res_ = ((v_l_2 < p_lvl) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = p_lhs; o3->u.C_Parse__Ok.f_ts = p_ts; o3; }) : ({ __auto_type s3 = f_Parse__binary(p_r, f_Parse__next(p_r, p_ts), (v_l_2 + ((int64_t)1))); s3->tag == 1 ? ({ __auto_type v_el_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_el_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_rhs_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Ast__Expr* t1 = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bin))); o5->tag = 7; o5->u.C_Ast__Bin.f_line = f_Parse__line(p_r, p_ts); o5->u.C_Ast__Bin.f_op = v_op_1; o5->u.C_Ast__Bin.f_l = p_lhs; o5->u.C_Ast__Bin.f_rhs = v_rhs_3; o5; }); struct E_Coll__List__Lex__Tok* t2 = v_t2_4; int64_t t3 = p_lvl; p_r = t0; p_lhs = t1; p_ts = t2; p_lvl = t3; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); })); res_; }); }); }); res_; }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__unary(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"-", 1})) ? f_Parse__unOf(p_r, f_Parse__line(p_r, p_ts), (&N_Ast__Neg), f_Parse__unary(p_r, f_Parse__next(p_r, p_ts))) : (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"!", 1})) ? f_Parse__unOf(p_r, f_Parse__line(p_r, p_ts), (&N_Ast__Not), f_Parse__unary(p_r, f_Parse__next(p_r, p_ts))) : f_Parse__primary(p_r, p_ts))); res_; }); } -static struct E_Parse__R__Ast__Expr* f_Parse__unOf(srs_cap* p_r, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Parse__R__Ast__Expr* p_re) { return ({ __auto_type s0 = p_re; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Un))); o2->tag = 8; o2->u.C_Ast__Un.f_line = p_line; o2->u.C_Ast__Un.f_op = p_op; o2->u.C_Ast__Un.f_e = v_e_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } +static struct E_Coll__List__Ast__Fn* f_Parse__withSelf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Ast__Ty* p_ptr) { return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ (&N_Coll__Nil__Ast__Fn); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_l_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_n_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_gs_4 = s2->u.C_Ast__Fn.f_groups; __auto_type v_ps_5 = s2->u.C_Ast__Fn.f_params; __auto_type v_ret_6 = s2->u.C_Ast__Fn.f_ret; __auto_type v_exit_7 = s2->u.C_Ast__Fn.f_exit; __auto_type v_body_8 = s2->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ struct E_Coll__List__Ast__Fn* o9 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Ast__Fn* o9 = (struct E_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o9->tag = 0; o9->u.C_Ast__Fn.f_line = v_l_2; o9->u.C_Ast__Fn.f_name = v_n_3; o9->u.C_Ast__Fn.f_groups = v_gs_4; o9->u.C_Ast__Fn.f_params = ({ struct E_Coll__List__Ast__Binder* o9 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Ast__Binder* o9 = (struct E_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Binder, u) + sizeof(((struct E_Ast__Binder*)0)->u.C_Ast__Binder))); o9->tag = 0; o9->u.C_Ast__Binder.f_line = v_l_2; o9->u.C_Ast__Binder.f_x = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"self", 4})); o9->u.C_Ast__Binder.f_ty = p_ptr; o9; }); o9->u.C_Coll__Cons.f_t = v_ps_5; o9; }); o9->u.C_Ast__Fn.f_ret = v_ret_6; o9->u.C_Ast__Fn.f_exit = v_exit_7; o9->u.C_Ast__Fn.f_body = v_body_8; o9; }); o9->u.C_Coll__Cons.f_t = f_Parse__withSelf(p_eff__Region, v_rest_1, p_ptr); o9; }); res_; }); }); }); res_; }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__rhs(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = ((f_Parse__isNl(p_eff__Region, p_ts) && f_Parse__isIndent(p_eff__Region, f_Parse__next(p_ts))) ? f_Parse__block(p_eff__Region, f_Parse__next(f_Parse__next(p_ts)), f_Parse__line(p_eff__Region, f_Parse__next(p_ts))) : f_Parse__expr(p_eff__Region, p_ts)); res_; }); } +static struct E_Parse__R__Ast__Expr* f_Parse__block(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return f_Parse__stmts(p_eff__Region, p_ts, p_line, (&N_Coll__Nil__Ast__Stmt)); } +static struct E_Parse__R__Ast__Expr* f_Parse__stmts(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc) { srs_tail: return ({ struct E_Coll__List__Lex__Tok* v_t0_0 = f_Parse__skipNl(p_eff__Region, p_ts); __auto_type res_ = (f_Parse__isDedent(p_eff__Region, v_t0_0) ? ({ struct E_Parse__R__Ast__Expr* o1 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o1->tag = 0; o1->u.C_Parse__Ok.f_v = f_Parse__blockOf(p_eff__Region, p_line, p_acc); o1->u.C_Parse__Ok.f_ts = f_Parse__next(v_t0_0); o1; }) : ((f_Parse__isKw(p_eff__Region, v_t0_0, ((srs_str){(const uint8_t*)"val", 3})) && f_Parse__isPatVal(p_eff__Region, f_Parse__next(v_t0_0))) ? f_Parse__patVal(p_eff__Region, f_Parse__next(v_t0_0), f_Parse__line(p_eff__Region, v_t0_0), p_line, p_acc) : ({ __auto_type s1 = f_Parse__stmt(p_eff__Region, v_t0_0); s1->tag == 1 ? ({ __auto_type v_l_1 = s1->u.C_Parse__Err.f_line; __auto_type v_w_2 = s1->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = v_l_1; o3->u.C_Parse__Err.f_want = v_w_2; o3; }); }) : ({ __auto_type v_s_1 = s1->u.C_Parse__Ok.f_v; __auto_type v_t1_2 = s1->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_2; int64_t t2 = p_line; struct E_Coll__List__Ast__Stmt* t3 = ({ struct E_Coll__List__Ast__Stmt* o3 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_s_1; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_ts = t1; p_line = t2; p_acc = t3; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); }))); res_; }); } +static struct E_Ast__Expr* f_Parse__blockOf(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc) { return ({ __auto_type s0 = p_acc; s0->tag == 0 ? ({ ({ struct E_Ast__Expr* o0 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o0->tag = 11; o0->u.C_Ast__Block.f_line = p_line; o0->u.C_Ast__Block.f_stmts = (&N_Coll__Nil__Ast__Stmt); o0->u.C_Ast__Block.f_last = ({ struct E_Ast__Expr* o0 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Unit))); o0->tag = 3; o0->u.C_Ast__Unit.f_line = p_line; o0; }); o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o3->tag = 11; o3->u.C_Ast__Block.f_line = p_line; o3->u.C_Ast__Block.f_stmts = f_Coll__rev__Ast__Stmt(p_eff__Region, v_rest_1); o3->u.C_Ast__Block.f_last = v_e_2; o3; }); }) : ({ ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o2->tag = 11; o2->u.C_Ast__Block.f_line = p_line; o2->u.C_Ast__Block.f_stmts = f_Coll__rev__Ast__Stmt(p_eff__Region, p_acc); o2->u.C_Ast__Block.f_last = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Unit))); o2->tag = 3; o2->u.C_Ast__Unit.f_line = p_line; o2; }); o2; }); }); }); }); }); } +static struct E_Coll__List__Ast__Stmt* f_Coll__rev__Ast__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_xs) { return f_Coll__revOnto__Ast__Stmt(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Stmt)); } +static struct E_Coll__List__Ast__Stmt* f_Coll__revOnto__Ast__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Stmt* p_xs, struct E_Coll__List__Ast__Stmt* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Stmt* t1 = v_t_1; struct E_Coll__List__Ast__Stmt* t2 = ({ struct E_Coll__List__Ast__Stmt* o2 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Stmt*){0}; }); }); }); } +static bool f_Parse__isPatVal(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; (((Str__at(v_x_0, ((int64_t)0)) >= ((int64_t)65)) && (Str__at(v_x_0, ((int64_t)0)) <= ((int64_t)90))) && f_Parse__opIs(f_Parse__second(p_eff__Region, p_ts), ((srs_str){(const uint8_t*)"(", 1}))); }) : ({ false; }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__patVal(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_vline, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_acc) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__names(p_eff__Region, v_t2_2, ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Sym__Sym)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_bs_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_eff__Region, v_t3_4, ((srs_str){(const uint8_t*)"=", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__rhs(p_eff__Region, v_t4_5); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_e_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s8 = f_Parse__stmts(p_eff__Region, v_t5_7, p_vline, (&N_Coll__Nil__Ast__Stmt)); s8->tag == 1 ? ({ __auto_type v_l_8 = s8->u.C_Parse__Err.f_line; __auto_type v_w_9 = s8->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o10 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o10->tag = 1; o10->u.C_Parse__Err.f_line = v_l_8; o10->u.C_Parse__Err.f_want = v_w_9; o10; }); }) : ({ __auto_type v_body_8 = s8->u.C_Parse__Ok.f_v; __auto_type v_t6_9 = s8->u.C_Parse__Ok.f_ts; ({ struct E_Ast__Expr* v_m_10 = ({ struct E_Ast__Expr* o10 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Match))); o10->tag = 10; o10->u.C_Ast__Match.f_line = p_vline; o10->u.C_Ast__Match.f_s = v_e_6; o10->u.C_Ast__Match.f_arms = ({ struct E_Coll__List__Ast__Arm* o10 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = ({ struct E_Ast__Arm* o10 = (struct E_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Arm, u) + sizeof(((struct E_Ast__Arm*)0)->u.C_Ast__Arm))); o10->tag = 0; o10->u.C_Ast__Arm.f_line = p_vline; o10->u.C_Ast__Arm.f_p = ({ struct E_Ast__Pat* o10 = (struct E_Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Pat, u) + sizeof(((struct E_Ast__Pat*)0)->u.C_Ast__PCase))); o10->tag = 0; o10->u.C_Ast__PCase.f_c = v_c_0; o10->u.C_Ast__PCase.f_binds = v_bs_3; o10; }); o10->u.C_Ast__Arm.f_body = v_body_8; o10; }); o10->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ast__Arm); o10; }); o10; }); __auto_type res_ = ({ struct E_Parse__R__Ast__Expr* o11 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o11->tag = 0; o11->u.C_Parse__Ok.f_v = f_Parse__blockOf(p_eff__Region, p_line, ({ struct E_Coll__List__Ast__Stmt* o11 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_Ast__Stmt* o11 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Do))); o11->tag = 3; o11->u.C_Ast__Do.f_e = v_m_10; o11; }); o11->u.C_Coll__Cons.f_t = p_acc; o11; })); o11->u.C_Parse__Ok.f_ts = v_t6_9; o11; }); res_; }); }); }); }); }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Ast__Stmt* f_Parse__stmt(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = ((f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"val", 3})) || f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"var", 3}))) ? f_Parse__valStmt(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts), f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"var", 3}))) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"handle", 6})) ? f_Parse__handleStmt(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : ((f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"invariant", 9})) || f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"decreases", 9}))) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__expr(p_eff__Region, f_Parse__next(p_ts)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Stmt* o2 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Check))); o2->tag = 4; o2->u.C_Ast__Check.f_line = f_Parse__line(p_eff__Region, p_ts); o2->u.C_Ast__Check.f_k = (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"invariant", 9})) ? (&N_Ast__LInvariant) : (&N_Ast__LDecreases)); o2->u.C_Ast__Check.f_e = v_e_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); res_; }) : ({ __auto_type s0 = f_Parse__expr(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Stmt* o2 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Do))); o2->tag = 3; o2->u.C_Ast__Do.f_e = v_e_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); })))); res_; }); } +static struct E_Parse__R__Ast__Stmt* f_Parse__valStmt(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, bool p_isVar) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* v_ann_2 = (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)":", 1})) ? f_Parse__someTy(p_eff__Region, f_Parse__ty(p_eff__Region, f_Parse__next(v_t1_1))) : ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__Option_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__Option_1_Ast__Ty*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Coll__None__Ast__Ty); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; })); __auto_type res_ = ({ __auto_type s3 = v_ann_2; s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o5 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_a_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_eff__Region, v_t2_4, ((srs_str){(const uint8_t*)"=", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o7 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t3_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__rhs(p_eff__Region, v_t3_5); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o8 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_e_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t4_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o8 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = (p_isVar ? ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Var))); o8->tag = 1; o8->u.C_Ast__Var.f_line = p_line; o8->u.C_Ast__Var.f_x = v_x_0; o8->u.C_Ast__Var.f_ann = v_a_3; o8->u.C_Ast__Var.f_e = v_e_6; o8; }) : ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Val))); o8->tag = 0; o8->u.C_Ast__Val.f_line = p_line; o8->u.C_Ast__Val.f_x = v_x_0; o8->u.C_Ast__Val.f_ann = v_a_3; o8->u.C_Ast__Val.f_e = v_e_6; o8; })); o8->u.C_Parse__Ok.f_ts = v_t4_7; o8; }); }); }); }); }); }); }); res_; }); }); }); } +static struct E_Parse__R__Coll__Option_1_Ast__Ty* f_Parse__someTy(srs_cap* p_eff__Region, struct E_Parse__R__Ast__Ty* p_rt) { return ({ __auto_type s0 = p_rt; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__Option_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__Option_1_Ast__Ty*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Coll__Option_1_Ast__Ty* o2 = (struct E_Parse__R__Coll__Option_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Parse__R__Coll__Option_1_Ast__Ty*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Coll__Option__Ast__Ty* o2 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_t_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } +static struct E_Parse__R__Ast__Stmt* f_Parse__handleStmt(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o2 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"=", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o4 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ident(p_eff__Region, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o5 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_h_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__args(p_eff__Region, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Stmt* o7 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_xs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Stmt* o7 = (struct E_Parse__R__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Stmt, u) + sizeof(((struct E_Parse__R__Ast__Stmt*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Stmt* o7 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Handle))); o7->tag = 2; o7->u.C_Ast__Handle.f_line = p_line; o7->u.C_Ast__Handle.f_x = v_x_0; o7->u.C_Ast__Handle.f_h = v_h_3; o7->u.C_Ast__Handle.f_args = v_xs_5; o7; }); o7->u.C_Parse__Ok.f_ts = v_t4_6; o7; }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__expr(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"if", 2})) ? f_Parse__ifExpr(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"while", 5})) ? f_Parse__whileExpr(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts)) : ((f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"forall", 6})) || f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"exists", 6}))) ? f_Parse__quant(p_eff__Region, f_Parse__next(p_ts), f_Parse__line(p_eff__Region, p_ts), (f_Parse__isKw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"forall", 6})) ? (&N_Ast__Forall) : (&N_Ast__Exists))) : ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; __auto_type v_line_1 = s0->u.C_Lex__TIdent.f_line; ({ __auto_type res_ = (f_Parse__opIs(f_Parse__second(p_eff__Region, p_ts), ((srs_str){(const uint8_t*)"=", 1})) ? ({ __auto_type res_ = ({ __auto_type s2 = f_Parse__rhs(p_eff__Region, f_Parse__next(f_Parse__next(p_ts))); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_e_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t1_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o4 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Assign))); o4->tag = 13; o4->u.C_Ast__Assign.f_line = v_line_1; o4->u.C_Ast__Assign.f_x = f_Sym__of(p_eff__Region, v_x_0); o4->u.C_Ast__Assign.f_e = v_e_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t1_3; o4; }); }); }); res_; }) : f_Parse__matchOf(p_eff__Region, f_Parse__binary(p_eff__Region, p_ts, ((int64_t)0)))); res_; }); }) : ({ f_Parse__matchOf(p_eff__Region, f_Parse__binary(p_eff__Region, p_ts, ((int64_t)0))); }); })))); res_; }); } +static struct E_Parse__R__Ast__Expr* f_Parse__quant(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Ast__Q* p_q) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_x_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__op(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)":", 1})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__ty(p_eff__Region, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_eff__Region, v_t3_4, ((srs_str){(const uint8_t*)"=>", 2})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t4_5 = s5->u.C_Parse__Ok.f_ts; ({ __auto_type s6 = f_Parse__expr(p_eff__Region, v_t4_5); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_b_6 = s6->u.C_Parse__Ok.f_v; __auto_type v_t5_7 = s6->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o8->tag = 0; o8->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o8 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Quant))); o8->tag = 14; o8->u.C_Ast__Quant.f_line = p_line; o8->u.C_Ast__Quant.f_q = p_q; o8->u.C_Ast__Quant.f_x = v_x_0; o8->u.C_Ast__Quant.f_t = v_t_3; o8->u.C_Ast__Quant.f_e = v_b_6; o8; }); o8->u.C_Parse__Ok.f_ts = v_t5_7; o8; }); }); }); }); }); }); }); }); }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__matchOf(srs_cap* p_eff__Region, struct E_Parse__R__Ast__Expr* p_re) { return ({ __auto_type s0 = p_re; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (f_Parse__isKw(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"match", 5})) ? ({ struct E_Coll__List__Lex__Tok* v_t2_2 = f_Parse__next(v_t1_1); __auto_type res_ = ((f_Parse__isNl(p_eff__Region, v_t2_2) && f_Parse__isIndent(p_eff__Region, f_Parse__next(v_t2_2))) ? ({ __auto_type res_ = ({ __auto_type s3 = f_Parse__arms(p_eff__Region, f_Parse__next(f_Parse__next(v_t2_2)), (&N_Coll__Nil__Ast__Arm)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_as_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Match))); o5->tag = 10; o5->u.C_Ast__Match.f_line = f_Parse__line(p_eff__Region, v_t1_1); o5->u.C_Ast__Match.f_s = v_e_0; o5->u.C_Ast__Match.f_arms = v_as_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o3->tag = 1; o3->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, v_t2_2); o3->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"match arms", 10}); o3; })); res_; }) : p_re); res_; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Arm* f_Parse__arms(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Arm* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isDedent(p_eff__Region, p_ts) ? ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o0 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Arm(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__kw(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"case", 4})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o2 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_line_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__pat(p_eff__Region, v_t1_1); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o4 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_p_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s4 = f_Parse__op(p_eff__Region, v_t2_3, ((srs_str){(const uint8_t*)"=>", 2})); s4->tag == 1 ? ({ __auto_type v_l_4 = s4->u.C_Parse__Err.f_line; __auto_type v_w_5 = s4->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o6 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o6->tag = 1; o6->u.C_Parse__Err.f_line = v_l_4; o6->u.C_Parse__Err.f_want = v_w_5; o6; }); }) : ({ __auto_type v_t3_4 = s4->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__rhs(p_eff__Region, v_t3_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Arm* o7 = (struct E_Parse__R__Coll__List_1_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Arm*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_b_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t4_6 = s5->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__endLine(p_eff__Region, v_t4_6); struct E_Coll__List__Ast__Arm* t2 = ({ struct E_Coll__List__Ast__Arm* o7 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Arm* o7 = (struct E_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Arm, u) + sizeof(((struct E_Ast__Arm*)0)->u.C_Ast__Arm))); o7->tag = 0; o7->u.C_Ast__Arm.f_line = v_line_0; o7->u.C_Ast__Arm.f_p = v_p_2; o7->u.C_Ast__Arm.f_body = v_b_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Arm*){0}; }); }); }); }); }); }); }); }); })); res_; }); } +static struct E_Coll__List__Ast__Arm* f_Coll__rev__Ast__Arm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_xs) { return f_Coll__revOnto__Ast__Arm(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Arm)); } +static struct E_Coll__List__Ast__Arm* f_Coll__revOnto__Ast__Arm(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_xs, struct E_Coll__List__Ast__Arm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Arm* t1 = v_t_1; struct E_Coll__List__Ast__Arm* t2 = ({ struct E_Coll__List__Ast__Arm* o2 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Arm*){0}; }); }); }); } +static struct E_Parse__R__Ast__Pat* f_Parse__pat(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__ident(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Pat* o2 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type res_ = (Str__eq(f_Sym__str(v_c_0), ((srs_str){(const uint8_t*)"_", 1})) ? ({ struct E_Parse__R__Ast__Pat* o2 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = (&N_Ast__PAny); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }) : (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"(", 1})) ? ({ __auto_type res_ = ({ __auto_type s2 = f_Parse__names(p_eff__Region, f_Parse__next(v_t1_1), ((srs_str){(const uint8_t*)")", 1}), (&N_Coll__Nil__Sym__Sym)); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Pat* o4 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_bs_2 = s2->u.C_Parse__Ok.f_v; __auto_type v_t2_3 = s2->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Pat* o4 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Ok))); o4->tag = 0; o4->u.C_Parse__Ok.f_v = ({ struct E_Ast__Pat* o4 = (struct E_Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Pat, u) + sizeof(((struct E_Ast__Pat*)0)->u.C_Ast__PCase))); o4->tag = 0; o4->u.C_Ast__PCase.f_c = v_c_0; o4->u.C_Ast__PCase.f_binds = v_bs_2; o4; }); o4->u.C_Parse__Ok.f_ts = v_t2_3; o4; }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Pat* o2 = (struct E_Parse__R__Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Pat, u) + sizeof(((struct E_Parse__R__Ast__Pat*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Pat* o2 = (struct E_Ast__Pat*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Pat, u) + sizeof(((struct E_Ast__Pat*)0)->u.C_Ast__PCase))); o2->tag = 0; o2->u.C_Ast__PCase.f_c = v_c_0; o2->u.C_Ast__PCase.f_binds = (&N_Coll__Nil__Sym__Sym); o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }))); res_; }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__ifExpr(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__expr(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__kw(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"then", 4})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__rhs(p_eff__Region, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_t_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Coll__List__Lex__Tok* v_t4_5 = ((f_Parse__isNl(p_eff__Region, v_t3_4) && f_Parse__kwIs(f_Parse__second(p_eff__Region, v_t3_4), ((srs_str){(const uint8_t*)"else", 4}))) ? f_Parse__next(v_t3_4) : v_t3_4); __auto_type res_ = ({ __auto_type s6 = f_Parse__kw(p_eff__Region, v_t4_5, ((srs_str){(const uint8_t*)"else", 4})); s6->tag == 1 ? ({ __auto_type v_l_6 = s6->u.C_Parse__Err.f_line; __auto_type v_w_7 = s6->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o8 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o8->tag = 1; o8->u.C_Parse__Err.f_line = v_l_6; o8->u.C_Parse__Err.f_want = v_w_7; o8; }); }) : ({ __auto_type v_t5_6 = s6->u.C_Parse__Ok.f_ts; ({ __auto_type s7 = f_Parse__rhs(p_eff__Region, v_t5_6); s7->tag == 1 ? ({ __auto_type v_l_7 = s7->u.C_Parse__Err.f_line; __auto_type v_w_8 = s7->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o9 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o9->tag = 1; o9->u.C_Parse__Err.f_line = v_l_7; o9->u.C_Parse__Err.f_want = v_w_8; o9; }); }) : ({ __auto_type v_e_7 = s7->u.C_Parse__Ok.f_v; __auto_type v_t6_8 = s7->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o9 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o9->tag = 0; o9->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o9 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__If))); o9->tag = 9; o9->u.C_Ast__If.f_line = p_line; o9->u.C_Ast__If.f_c = v_c_0; o9->u.C_Ast__If.f_t = v_t_3; o9->u.C_Ast__If.f_e = v_e_7; o9; }); o9->u.C_Parse__Ok.f_ts = v_t6_8; o9; }); }); }); }); }); res_; }); }); }); }); }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__whileExpr(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line) { return ({ __auto_type s0 = f_Parse__expr(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_c_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ __auto_type s2 = f_Parse__kw(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)"do", 2})); s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Parse__Err.f_line; __auto_type v_w_3 = s2->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o4 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o4->tag = 1; o4->u.C_Parse__Err.f_line = v_l_2; o4->u.C_Parse__Err.f_want = v_w_3; o4; }); }) : ({ __auto_type v_t2_2 = s2->u.C_Parse__Ok.f_ts; ({ __auto_type s3 = f_Parse__rhs(p_eff__Region, v_t2_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_b_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t3_4 = s3->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o5->tag = 0; o5->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__While))); o5->tag = 12; o5->u.C_Ast__While.f_line = p_line; o5->u.C_Ast__While.f_c = v_c_0; o5->u.C_Ast__While.f_body = v_b_3; o5; }); o5->u.C_Parse__Ok.f_ts = v_t3_4; o5; }); }); }); }); }); }); }); } +static struct E_Coll__Option__Parse__BinTok* f_Parse__binOf(srs_cap* p_eff__Region, struct E_Lex__Tok* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 4 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TOp.f_s; ({ __auto_type res_ = (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"||", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Or); o1->u.C_Parse__BinTok.f_level = ((int64_t)0); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"&&", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__And); o1->u.C_Parse__BinTok.f_level = ((int64_t)1); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"==", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Eq); o1->u.C_Parse__BinTok.f_level = ((int64_t)2); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"!=", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Ne); o1->u.C_Parse__BinTok.f_level = ((int64_t)2); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"<", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Lt); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"<=", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Le); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)">", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Gt); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)">=", 2})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Ge); o1->u.C_Parse__BinTok.f_level = ((int64_t)3); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"+", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Add); o1->u.C_Parse__BinTok.f_level = ((int64_t)4); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"-", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Sub); o1->u.C_Parse__BinTok.f_level = ((int64_t)4); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"*", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Mul); o1->u.C_Parse__BinTok.f_level = ((int64_t)5); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"/", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Div); o1->u.C_Parse__BinTok.f_level = ((int64_t)5); o1; }); o1; }) : (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"%", 1})) ? ({ struct E_Coll__Option__Parse__BinTok* o1 = (struct E_Coll__Option__Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Parse__BinTok, u) + sizeof(((struct E_Coll__Option__Parse__BinTok*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Parse__BinTok* o1 = (struct E_Parse__BinTok*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__BinTok, u) + sizeof(((struct E_Parse__BinTok*)0)->u.C_Parse__BinTok))); o1->tag = 0; o1->u.C_Parse__BinTok.f_op = (&N_Ast__Mod); o1->u.C_Parse__BinTok.f_level = ((int64_t)5); o1; }); o1; }) : (&N_Coll__None__Parse__BinTok)))))))))))))); res_; }); }) : ({ (&N_Coll__None__Parse__BinTok); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__binary(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl) { return ({ __auto_type s0 = f_Parse__unary(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_lhs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; f_Parse__binLoop(p_eff__Region, v_lhs_0, v_t1_1, p_lvl); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__binLoop(srs_cap* p_eff__Region, struct E_Ast__Expr* p_lhs, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_lvl) { srs_tail: return ({ __auto_type s0 = f_Parse__binOf(p_eff__Region, f_Parse__peek(p_eff__Region, p_ts)); s0->tag == 0 ? ({ ({ struct E_Parse__R__Ast__Expr* o0 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = p_lhs; o0->u.C_Parse__Ok.f_ts = p_ts; o0; }); }) : ({ __auto_type v_bt_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_bt_0; ({ __auto_type v_op_1 = s1->u.C_Parse__BinTok.f_op; __auto_type v_l_2 = s1->u.C_Parse__BinTok.f_level; ({ __auto_type res_ = ((v_l_2 < p_lvl) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = p_lhs; o3->u.C_Parse__Ok.f_ts = p_ts; o3; }) : ({ __auto_type s3 = f_Parse__binary(p_eff__Region, f_Parse__next(p_ts), (v_l_2 + ((int64_t)1))); s3->tag == 1 ? ({ __auto_type v_el_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_el_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_rhs_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Ast__Expr* t1 = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bin))); o5->tag = 7; o5->u.C_Ast__Bin.f_line = f_Parse__line(p_eff__Region, p_ts); o5->u.C_Ast__Bin.f_op = v_op_1; o5->u.C_Ast__Bin.f_l = p_lhs; o5->u.C_Ast__Bin.f_rhs = v_rhs_3; o5; }); struct E_Coll__List__Lex__Tok* t2 = v_t2_4; int64_t t3 = p_lvl; p_eff__Region = t0; p_lhs = t1; p_ts = t2; p_lvl = t3; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); })); res_; }); }); }); res_; }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__unary(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"-", 1})) ? f_Parse__unOf(p_eff__Region, f_Parse__line(p_eff__Region, p_ts), (&N_Ast__Neg), f_Parse__unary(p_eff__Region, f_Parse__next(p_ts))) : (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"!", 1})) ? f_Parse__unOf(p_eff__Region, f_Parse__line(p_eff__Region, p_ts), (&N_Ast__Not), f_Parse__unary(p_eff__Region, f_Parse__next(p_ts))) : f_Parse__primary(p_eff__Region, p_ts))); res_; }); } +static struct E_Parse__R__Ast__Expr* f_Parse__unOf(srs_cap* p_eff__Region, int64_t p_line, struct E_Ast__UnOp* p_op, struct E_Parse__R__Ast__Expr* p_re) { return ({ __auto_type s0 = p_re; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Un))); o2->tag = 8; o2->u.C_Ast__Un.f_line = p_line; o2->u.C_Ast__Un.f_op = p_op; o2->u.C_Ast__Un.f_e = v_e_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } static int64_t f_Parse__charValue(srs_str p_s) { return ({ __auto_type res_ = ((Str__len(p_s) == ((int64_t)1)) ? Str__at(p_s, ((int64_t)0)) : ({ int64_t v_c_0 = Str__at(p_s, ((int64_t)1)); __auto_type res_ = ((v_c_0 == ((int64_t)110)) ? ((int64_t)10) : ((v_c_0 == ((int64_t)116)) ? ((int64_t)9) : ((v_c_0 == ((int64_t)114)) ? ((int64_t)13) : ((v_c_0 == ((int64_t)48)) ? ((int64_t)0) : v_c_0)))); res_; })); res_; }); } -static struct E_Parse__R__Ast__Expr* f_Parse__primary(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Lex__TInt.f_v; __auto_type v_line_1 = s0->u.C_Lex__TInt.f_line; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Int))); o2->tag = 0; o2->u.C_Ast__Int.f_line = v_line_1; o2->u.C_Ast__Int.f_v = v_v_0; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o2; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TStr.f_s; __auto_type v_line_1 = s0->u.C_Lex__TStr.f_line; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Str))); o2->tag = 2; o2->u.C_Ast__Str.f_line = v_line_1; o2->u.C_Ast__Str.f_s = v_s_0; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o2; }); }) : s0->tag == 3 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TChar.f_s; __auto_type v_line_1 = s0->u.C_Lex__TChar.f_line; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Int))); o2->tag = 0; o2->u.C_Ast__Int.f_line = v_line_1; o2->u.C_Ast__Int.f_v = f_Parse__charValue(v_s_0); o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o2; }); }) : s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; __auto_type v_line_1 = s0->u.C_Lex__TIdent.f_line; ({ struct E_Coll__List__Lex__Tok* v_t1_2 = f_Parse__next(p_r, p_ts); __auto_type res_ = (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"true", 4})) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bool))); o3->tag = 1; o3->u.C_Ast__Bool.f_line = v_line_1; o3->u.C_Ast__Bool.f_v = true; o3; }); o3->u.C_Parse__Ok.f_ts = v_t1_2; o3; }) : (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"false", 5})) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bool))); o3->tag = 1; o3->u.C_Ast__Bool.f_line = v_line_1; o3->u.C_Ast__Bool.f_v = false; o3; }); o3->u.C_Parse__Ok.f_ts = v_t1_2; o3; }) : (f_Parse__isOp(p_r, v_t1_2, ((srs_str){(const uint8_t*)"(", 1})) ? f_Parse__callOf(p_r, v_line_1, f_Sym__of(p_r, v_x_0), (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Sym__Sym), f_Parse__args(p_r, v_t1_2)) : ((f_Parse__isOp(p_r, v_t1_2, ((srs_str){(const uint8_t*)"[", 1})) || f_Parse__isOp(p_r, v_t1_2, ((srs_str){(const uint8_t*)"{", 1}))) ? f_Parse__callGroups(p_r, v_t1_2, v_line_1, f_Sym__of(p_r, v_x_0), (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Sym__Sym)) : (f_Parse__isOp(p_r, v_t1_2, ((srs_str){(const uint8_t*)".", 1})) ? ({ __auto_type res_ = ({ __auto_type s3 = f_Parse__ident(p_r, f_Parse__next(p_r, v_t1_2)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_op_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__args(p_r, v_t2_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_xs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t3_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Method))); o7->tag = 6; o7->u.C_Ast__Method.f_line = v_line_1; o7->u.C_Ast__Method.f_recv = f_Sym__of(p_r, v_x_0); o7->u.C_Ast__Method.f_op = v_op_3; o7->u.C_Ast__Method.f_args = v_xs_5; o7; }); o7->u.C_Parse__Ok.f_ts = v_t3_6; o7; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Name))); o3->tag = 4; o3->u.C_Ast__Name.f_line = v_line_1; o3->u.C_Ast__Name.f_n = f_Sym__of(p_r, v_x_0); o3; }); o3->u.C_Parse__Ok.f_ts = v_t1_2; o3; })))))); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TOp.f_s; __auto_type v_line_1 = s0->u.C_Lex__TOp.f_line; ({ __auto_type res_ = (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"(", 1})) ? ({ struct E_Coll__List__Lex__Tok* v_t1_2 = f_Parse__next(p_r, p_ts); __auto_type res_ = (f_Parse__isOp(p_r, v_t1_2, ((srs_str){(const uint8_t*)")", 1})) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Unit))); o3->tag = 3; o3->u.C_Ast__Unit.f_line = v_line_1; o3; }); o3->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, v_t1_2); o3; }) : ({ __auto_type s3 = f_Parse__expr(p_r, v_t1_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_e_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_r, v_t2_4, ((srs_str){(const uint8_t*)")", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t3_5 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o6 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = v_e_3; o6->u.C_Parse__Ok.f_ts = v_t3_5; o6; }); }); }); }); })); res_; }) : ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_line_1; o2->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"expression", 10}); o2; })); res_; }); }) : ({ ({ struct E_Parse__R__Ast__Expr* o0 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_r, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"expression", 10}); o0; }); }); }); } -static struct E_Parse__R__Ast__Expr* f_Parse__callGroups(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"[", 1})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__tys(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"]", 1}), (&N_Coll__Nil__Ast__Ty)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_tys_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; int64_t t2 = p_line; struct E_Sym__Sym* t3 = p_f; struct E_Coll__List__Ast__Ty* t4 = f_Coll__revOnto__Ast__Ty(p_r, f_Coll__rev__Ast__Ty(p_r, p_targs), v_tys_0); struct E_Coll__List__Sym__Sym* t5 = p_chosen; p_r = t0; p_ts = t1; p_line = t2; p_f = t3; p_targs = t4; p_chosen = t5; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); }); res_; }) : (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)"{", 1})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__names(p_r, f_Parse__next(p_r, p_ts), ((srs_str){(const uint8_t*)"}", 1}), (&N_Coll__Nil__Sym__Sym)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_ns_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; int64_t t2 = p_line; struct E_Sym__Sym* t3 = p_f; struct E_Coll__List__Ast__Ty* t4 = p_targs; struct E_Coll__List__Sym__Sym* t5 = f_Coll__revOnto__Sym__Sym(p_r, f_Coll__rev__Sym__Sym(p_r, p_chosen), v_ns_0); p_r = t0; p_ts = t1; p_line = t2; p_f = t3; p_targs = t4; p_chosen = t5; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); }); res_; }) : f_Parse__callOf(p_r, p_line, p_f, p_targs, p_chosen, f_Parse__args(p_r, p_ts)))); res_; }); } -static struct E_Parse__R__Ast__Expr* f_Parse__callOf(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Parse__R__Coll__List_1_Ast__Expr* p_ra) { return ({ __auto_type s0 = p_ra; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_xs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Call))); o2->tag = 5; o2->u.C_Ast__Call.f_line = p_line; o2->u.C_Ast__Call.f_f = p_f; o2->u.C_Ast__Call.f_targs = p_targs; o2->u.C_Ast__Call.f_chosen = p_chosen; o2->u.C_Ast__Call.f_args = v_xs_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__args(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__op(p_r, p_ts, ((srs_str){(const uint8_t*)"(", 1})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o2 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; f_Parse__exprs(p_r, v_t1_0, (&N_Coll__Nil__Ast__Expr)); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__exprs(srs_cap* p_r, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Expr* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_r, p_ts, ((srs_str){(const uint8_t*)")", 1})) ? ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o0 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Expr(p_r, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_r, p_ts); o0; }) : ({ __auto_type s0 = f_Parse__expr(p_r, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o2 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_r, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(p_r, v_t1_1); struct E_Coll__List__Ast__Expr* t2 = ({ struct E_Coll__List__Ast__Expr* o2 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_e_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Expr*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Expr* t2 = ({ struct E_Coll__List__Ast__Expr* o2 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_e_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Expr*){0}; })); }); })); res_; }); } -static struct E_Coll__List__Ast__Expr* f_Coll__rev__Ast__Expr(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs) { return f_Coll__revOnto__Ast__Expr(p_r, p_xs, (&N_Coll__Nil__Ast__Expr)); } -static struct E_Coll__List__Ast__Expr* f_Coll__revOnto__Ast__Expr(srs_cap* p_r, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Expr* t1 = v_t_1; struct E_Coll__List__Ast__Expr* t2 = ({ struct E_Coll__List__Ast__Expr* o2 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Expr*){0}; }); }); }); } -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__source(srs_cap* p_r, srs_str p_src) { return f_Parse__sourceFrom(p_r, p_src, ((int64_t)1)); } -static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__sourceFrom(srs_cap* p_r, srs_str p_src, int64_t p_line) { return ({ __auto_type s0 = f_Lex__lexFrom(p_r, p_src, p_line); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Lex__Bad.f_line; ({ struct E_Parse__R__Coll__List_1_Ast__Decl* o1 = (struct E_Parse__R__Coll__List_1_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Decl*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = v_l_0; o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"lexable source", 14}); o1; }); }) : ({ __auto_type v_ts_0 = s0->u.C_Lex__Toks.f_ts; f_Parse__file(p_r, v_ts_0); }); }); } -static struct E_Sym__Sym* f_Pure__relSym(srs_cap* p_r, struct E_Pure__Rel* p_rel) { return ({ __auto_type s0 = p_rel; s0->tag == 0 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"direct", 6})); }) : s0->tag == 1 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"calls", 5})); }) : s0->tag == 2 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"uses", 4})); }) : s0->tag == 3 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"handles", 7})); }) : s0->tag == 4 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"hdirect", 7})); }) : s0->tag == 5 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"hcalls", 6})); }) : s0->tag == 6 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"huses", 5})); }) : s0->tag == 7 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"impure", 6})); }) : s0->tag == 8 ? ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"effectful", 9})); }) : ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"impureH", 7})); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__primary(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__peek(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Lex__TInt.f_v; __auto_type v_line_1 = s0->u.C_Lex__TInt.f_line; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Int))); o2->tag = 0; o2->u.C_Ast__Int.f_line = v_line_1; o2->u.C_Ast__Int.f_v = v_v_0; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o2; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TStr.f_s; __auto_type v_line_1 = s0->u.C_Lex__TStr.f_line; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Str))); o2->tag = 2; o2->u.C_Ast__Str.f_line = v_line_1; o2->u.C_Ast__Str.f_s = v_s_0; o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o2; }); }) : s0->tag == 3 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TChar.f_s; __auto_type v_line_1 = s0->u.C_Lex__TChar.f_line; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Int))); o2->tag = 0; o2->u.C_Ast__Int.f_line = v_line_1; o2->u.C_Ast__Int.f_v = f_Parse__charValue(v_s_0); o2; }); o2->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o2; }); }) : s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Lex__TIdent.f_s; __auto_type v_line_1 = s0->u.C_Lex__TIdent.f_line; ({ struct E_Coll__List__Lex__Tok* v_t1_2 = f_Parse__next(p_ts); __auto_type res_ = (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"true", 4})) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bool))); o3->tag = 1; o3->u.C_Ast__Bool.f_line = v_line_1; o3->u.C_Ast__Bool.f_v = true; o3; }); o3->u.C_Parse__Ok.f_ts = v_t1_2; o3; }) : (Str__eq(v_x_0, ((srs_str){(const uint8_t*)"false", 5})) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bool))); o3->tag = 1; o3->u.C_Ast__Bool.f_line = v_line_1; o3->u.C_Ast__Bool.f_v = false; o3; }); o3->u.C_Parse__Ok.f_ts = v_t1_2; o3; }) : (f_Parse__isOp(p_eff__Region, v_t1_2, ((srs_str){(const uint8_t*)"(", 1})) ? f_Parse__callOf(p_eff__Region, v_line_1, f_Sym__of(p_eff__Region, v_x_0), (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Sym__Sym), f_Parse__args(p_eff__Region, v_t1_2)) : ((f_Parse__isOp(p_eff__Region, v_t1_2, ((srs_str){(const uint8_t*)"[", 1})) || f_Parse__isOp(p_eff__Region, v_t1_2, ((srs_str){(const uint8_t*)"{", 1}))) ? f_Parse__callGroups(p_eff__Region, v_t1_2, v_line_1, f_Sym__of(p_eff__Region, v_x_0), (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Sym__Sym)) : (f_Parse__isOp(p_eff__Region, v_t1_2, ((srs_str){(const uint8_t*)".", 1})) ? ({ __auto_type res_ = ({ __auto_type s3 = f_Parse__ident(p_eff__Region, f_Parse__next(v_t1_2)); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_op_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__args(p_eff__Region, v_t2_4); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_xs_5 = s5->u.C_Parse__Ok.f_v; __auto_type v_t3_6 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o7->tag = 0; o7->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Method))); o7->tag = 6; o7->u.C_Ast__Method.f_line = v_line_1; o7->u.C_Ast__Method.f_recv = f_Sym__of(p_eff__Region, v_x_0); o7->u.C_Ast__Method.f_op = v_op_3; o7->u.C_Ast__Method.f_args = v_xs_5; o7; }); o7->u.C_Parse__Ok.f_ts = v_t3_6; o7; }); }); }); }); }); res_; }) : ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Name))); o3->tag = 4; o3->u.C_Ast__Name.f_line = v_line_1; o3->u.C_Ast__Name.f_n = f_Sym__of(p_eff__Region, v_x_0); o3; }); o3->u.C_Parse__Ok.f_ts = v_t1_2; o3; })))))); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_s_0 = s0->u.C_Lex__TOp.f_s; __auto_type v_line_1 = s0->u.C_Lex__TOp.f_line; ({ __auto_type res_ = (Str__eq(v_s_0, ((srs_str){(const uint8_t*)"(", 1})) ? ({ struct E_Coll__List__Lex__Tok* v_t1_2 = f_Parse__next(p_ts); __auto_type res_ = (f_Parse__isOp(p_eff__Region, v_t1_2, ((srs_str){(const uint8_t*)")", 1})) ? ({ struct E_Parse__R__Ast__Expr* o3 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o3->tag = 0; o3->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o3 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Unit))); o3->tag = 3; o3->u.C_Ast__Unit.f_line = v_line_1; o3; }); o3->u.C_Parse__Ok.f_ts = f_Parse__next(v_t1_2); o3; }) : ({ __auto_type s3 = f_Parse__expr(p_eff__Region, v_t1_2); s3->tag == 1 ? ({ __auto_type v_l_3 = s3->u.C_Parse__Err.f_line; __auto_type v_w_4 = s3->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o5 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o5->tag = 1; o5->u.C_Parse__Err.f_line = v_l_3; o5->u.C_Parse__Err.f_want = v_w_4; o5; }); }) : ({ __auto_type v_e_3 = s3->u.C_Parse__Ok.f_v; __auto_type v_t2_4 = s3->u.C_Parse__Ok.f_ts; ({ __auto_type s5 = f_Parse__op(p_eff__Region, v_t2_4, ((srs_str){(const uint8_t*)")", 1})); s5->tag == 1 ? ({ __auto_type v_l_5 = s5->u.C_Parse__Err.f_line; __auto_type v_w_6 = s5->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o7 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o7->tag = 1; o7->u.C_Parse__Err.f_line = v_l_5; o7->u.C_Parse__Err.f_want = v_w_6; o7; }); }) : ({ __auto_type v_t3_5 = s5->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o6 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o6->tag = 0; o6->u.C_Parse__Ok.f_v = v_e_3; o6->u.C_Parse__Ok.f_ts = v_t3_5; o6; }); }); }); }); })); res_; }) : ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_line_1; o2->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"expression", 10}); o2; })); res_; }); }) : ({ ({ struct E_Parse__R__Ast__Expr* o0 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o0->tag = 1; o0->u.C_Parse__Err.f_line = f_Parse__line(p_eff__Region, p_ts); o0->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"expression", 10}); o0; }); }); }); } +static struct E_Parse__R__Ast__Expr* f_Parse__callGroups(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"[", 1})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__tys(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"]", 1}), (&N_Coll__Nil__Ast__Ty)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_tys_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; int64_t t2 = p_line; struct E_Sym__Sym* t3 = p_f; struct E_Coll__List__Ast__Ty* t4 = f_Coll__revOnto__Ast__Ty(p_eff__Region, f_Coll__rev__Ast__Ty(p_eff__Region, p_targs), v_tys_0); struct E_Coll__List__Sym__Sym* t5 = p_chosen; p_eff__Region = t0; p_ts = t1; p_line = t2; p_f = t3; p_targs = t4; p_chosen = t5; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); }); res_; }) : (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"{", 1})) ? ({ __auto_type res_ = ({ __auto_type s0 = f_Parse__names(p_eff__Region, f_Parse__next(p_ts), ((srs_str){(const uint8_t*)"}", 1}), (&N_Coll__Nil__Sym__Sym)); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_ns_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; int64_t t2 = p_line; struct E_Sym__Sym* t3 = p_f; struct E_Coll__List__Ast__Ty* t4 = p_targs; struct E_Coll__List__Sym__Sym* t5 = f_Coll__revOnto__Sym__Sym(p_eff__Region, f_Coll__rev__Sym__Sym(p_eff__Region, p_chosen), v_ns_0); p_eff__Region = t0; p_ts = t1; p_line = t2; p_f = t3; p_targs = t4; p_chosen = t5; goto srs_tail; (struct E_Parse__R__Ast__Expr*){0}; }); }); }); res_; }) : f_Parse__callOf(p_eff__Region, p_line, p_f, p_targs, p_chosen, f_Parse__args(p_eff__Region, p_ts)))); res_; }); } +static struct E_Parse__R__Ast__Expr* f_Parse__callOf(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Parse__R__Coll__List_1_Ast__Expr* p_ra) { return ({ __auto_type s0 = p_ra; s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_xs_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; ({ struct E_Parse__R__Ast__Expr* o2 = (struct E_Parse__R__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Ast__Expr, u) + sizeof(((struct E_Parse__R__Ast__Expr*)0)->u.C_Parse__Ok))); o2->tag = 0; o2->u.C_Parse__Ok.f_v = ({ struct E_Ast__Expr* o2 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Call))); o2->tag = 5; o2->u.C_Ast__Call.f_line = p_line; o2->u.C_Ast__Call.f_f = p_f; o2->u.C_Ast__Call.f_targs = p_targs; o2->u.C_Ast__Call.f_chosen = p_chosen; o2->u.C_Ast__Call.f_args = v_xs_0; o2; }); o2->u.C_Parse__Ok.f_ts = v_t1_1; o2; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__args(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts) { return ({ __auto_type s0 = f_Parse__op(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)"(", 1})); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o2 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_t1_0 = s0->u.C_Parse__Ok.f_ts; f_Parse__exprs(p_eff__Region, v_t1_0, (&N_Coll__Nil__Ast__Expr)); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Expr* f_Parse__exprs(srs_cap* p_eff__Region, struct E_Coll__List__Lex__Tok* p_ts, struct E_Coll__List__Ast__Expr* p_acc) { srs_tail: return ({ __auto_type res_ = (f_Parse__isOp(p_eff__Region, p_ts, ((srs_str){(const uint8_t*)")", 1})) ? ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o0 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Ok))); o0->tag = 0; o0->u.C_Parse__Ok.f_v = f_Coll__rev__Ast__Expr(p_eff__Region, p_acc); o0->u.C_Parse__Ok.f_ts = f_Parse__next(p_ts); o0; }) : ({ __auto_type s0 = f_Parse__expr(p_eff__Region, p_ts); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Parse__Err.f_line; __auto_type v_w_1 = s0->u.C_Parse__Err.f_want; ({ struct E_Parse__R__Coll__List_1_Ast__Expr* o2 = (struct E_Parse__R__Coll__List_1_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Expr*)0)->u.C_Parse__Err))); o2->tag = 1; o2->u.C_Parse__Err.f_line = v_l_0; o2->u.C_Parse__Err.f_want = v_w_1; o2; }); }) : ({ __auto_type v_e_0 = s0->u.C_Parse__Ok.f_v; __auto_type v_t1_1 = s0->u.C_Parse__Ok.f_ts; (f_Parse__isOp(p_eff__Region, v_t1_1, ((srs_str){(const uint8_t*)",", 1})) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = f_Parse__next(v_t1_1); struct E_Coll__List__Ast__Expr* t2 = ({ struct E_Coll__List__Ast__Expr* o2 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_e_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Expr*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Lex__Tok* t1 = v_t1_1; struct E_Coll__List__Ast__Expr* t2 = ({ struct E_Coll__List__Ast__Expr* o2 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_e_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_acc = t2; goto srs_tail; (struct E_Parse__R__Coll__List_1_Ast__Expr*){0}; })); }); })); res_; }); } +static struct E_Coll__List__Ast__Expr* f_Coll__rev__Ast__Expr(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs) { return f_Coll__revOnto__Ast__Expr(p_eff__Region, p_xs, (&N_Coll__Nil__Ast__Expr)); } +static struct E_Coll__List__Ast__Expr* f_Coll__revOnto__Ast__Expr(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Expr* t1 = v_t_1; struct E_Coll__List__Ast__Expr* t2 = ({ struct E_Coll__List__Ast__Expr* o2 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Expr*){0}; }); }); }); } +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__source(srs_cap* p_eff__Region, srs_str p_src) { return f_Parse__sourceFrom(p_eff__Region, p_src, ((int64_t)1)); } +static struct E_Parse__R__Coll__List_1_Ast__Decl* f_Parse__sourceFrom(srs_cap* p_eff__Region, srs_str p_src, int64_t p_line) { return ({ __auto_type s0 = f_Lex__lexFrom(p_eff__Region, p_src, p_line); s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Lex__Bad.f_line; ({ struct E_Parse__R__Coll__List_1_Ast__Decl* o1 = (struct E_Parse__R__Coll__List_1_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Parse__R__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Parse__R__Coll__List_1_Ast__Decl*)0)->u.C_Parse__Err))); o1->tag = 1; o1->u.C_Parse__Err.f_line = v_l_0; o1->u.C_Parse__Err.f_want = ((srs_str){(const uint8_t*)"lexable source", 14}); o1; }); }) : ({ __auto_type v_ts_0 = s0->u.C_Lex__Toks.f_ts; f_Parse__file(p_eff__Region, v_ts_0); }); }); } +static struct E_Sym__Sym* f_Pure__relSym(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel) { return ({ __auto_type s0 = p_rel; s0->tag == 0 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"direct", 6})); }) : s0->tag == 1 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"calls", 5})); }) : s0->tag == 2 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"uses", 4})); }) : s0->tag == 3 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"handles", 7})); }) : s0->tag == 4 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"hdirect", 7})); }) : s0->tag == 5 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"hcalls", 6})); }) : s0->tag == 6 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"huses", 5})); }) : s0->tag == 7 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"impure", 6})); }) : s0->tag == 8 ? ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"effectful", 9})); }) : ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"impureH", 7})); }); }); } static struct E_Sym__Sym* f_Pure__subj(struct E_Pure__Who* p_w) { return ({ __auto_type s0 = p_w; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Pure__Def.f_f; v_f_0; }) : ({ __auto_type v_h_0 = s0->u.C_Pure__In.f_h; v_h_0; }); }); } static struct E_Pure__Rel* f_Pure__direct(struct E_Pure__Who* p_w) { return ({ __auto_type s0 = p_w; s0->tag == 0 ? ({ (&N_Pure__RDirect); }) : ({ (&N_Pure__RHDirect); }); }); } static struct E_Pure__Rel* f_Pure__calls(struct E_Pure__Who* p_w) { return ({ __auto_type s0 = p_w; s0->tag == 0 ? ({ (&N_Pure__RCalls); }) : ({ (&N_Pure__RHCalls); }); }); } static struct E_Pure__Rel* f_Pure__uses(struct E_Pure__Who* p_w) { return ({ __auto_type s0 = p_w; s0->tag == 0 ? ({ (&N_Pure__RUses); }) : ({ (&N_Pure__RHUses); }); }); } -static struct E_D__Fact* f_Pure__f1(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Pure__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_a; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } -static struct E_D__Fact* f_Pure__f2(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Pure__relSym(p_r, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_a; o0; }); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_b; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); } -static struct E_D__Atom* f_Pure__atom(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Pure__relSym(p_r, p_rel); o0->u.C_D__Atom.f_args = f_Pure__vars(p_r, p_xs); o0; }); } -static struct E_Coll__List__D__Arg* f_Pure__vars(srs_cap* p_r, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_D__Arg* o2 = (struct E_D__Arg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o2->tag = 0; o2->u.C_D__AVar.f_n = v_x_0; o2; }); o2->u.C_Coll__Cons.f_t = f_Pure__vars(p_r, v_rest_1); o2; }); }); }); } -static struct E_D__Lit* f_Pure__pos(srs_cap* p_r, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Pure__atom(p_r, p_rel, p_xs); o0; }); } -static struct E_Coll__List__I64* f_Pure__one(srs_cap* p_r, int64_t p_x) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_x; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } -static struct E_Coll__List__I64* f_Pure__two(srs_cap* p_r, int64_t p_x, int64_t p_y) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_x; o0->u.C_Coll__Cons.f_t = f_Pure__one(p_r, p_y); o0; }); } -static struct E_D__Rule* f_Pure__rule1(srs_cap* p_r, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Pure__atom(p_r, p_h, f_Pure__one(p_r, ((int64_t)0))); o0->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Pure__pos(p_r, p_b, f_Pure__one(p_r, ((int64_t)0))); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); o0; }); } -static struct E_D__Rule* f_Pure__rule2(srs_cap* p_r, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b, struct E_Pure__Rel* p_c) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Pure__atom(p_r, p_h, f_Pure__one(p_r, ((int64_t)0))); o0->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Pure__pos(p_r, p_b, f_Pure__two(p_r, ((int64_t)0), ((int64_t)1))); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Pure__pos(p_r, p_c, f_Pure__one(p_r, ((int64_t)1))); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); o0; }); o0; }); } -static struct E_Coll__List__D__Rule* f_Pure__rules(srs_cap* p_r) { return ({ struct E_D__Rule* v_i1_0 = f_Pure__rule1(p_r, (&N_Pure__RImpure), (&N_Pure__RDirect)); struct E_D__Rule* v_i2_1 = f_Pure__rule2(p_r, (&N_Pure__RImpure), (&N_Pure__RCalls), (&N_Pure__RImpure)); struct E_D__Rule* v_i3_2 = f_Pure__rule2(p_r, (&N_Pure__RImpure), (&N_Pure__RUses), (&N_Pure__REffectful)); struct E_D__Rule* v_e1_3 = ({ struct E_D__Rule* o3 = (struct E_D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o3->tag = 0; o3->u.C_D__Rule.f_head = f_Pure__atom(p_r, (&N_Pure__REffectful), f_Pure__one(p_r, ((int64_t)0))); o3->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Pure__pos(p_r, (&N_Pure__RHandles), f_Pure__two(p_r, ((int64_t)1), ((int64_t)0))); o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Pure__pos(p_r, (&N_Pure__RImpureH), f_Pure__one(p_r, ((int64_t)1))); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o3; }); o3; }); o3; }); struct E_D__Rule* v_h1_4 = f_Pure__rule1(p_r, (&N_Pure__RImpureH), (&N_Pure__RHDirect)); struct E_D__Rule* v_h2_5 = f_Pure__rule2(p_r, (&N_Pure__RImpureH), (&N_Pure__RHCalls), (&N_Pure__RImpure)); struct E_D__Rule* v_h3_6 = f_Pure__rule2(p_r, (&N_Pure__RImpureH), (&N_Pure__RHUses), (&N_Pure__REffectful)); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_i1_0; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_i2_1; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_i3_2; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_e1_3; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_h1_4; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_h2_5; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_h3_6; o7->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o7; }); o7; }); o7; }); o7; }); o7; }); o7; }); o7; }); res_; }); } -static bool f_Pure__pureExtern(srs_cap* p_r, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = f_Pure__prim(p_r, p_n); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } -static struct E_Coll__Option__Pure__Prim* f_Pure__prim(srs_cap* p_r, struct E_Sym__Sym* p_n) { return ({ srs_str v_s_0 = f_Sym__str(p_n); __auto_type res_ = ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.len", 7})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_len", 10}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PLen); o1; }) : ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.at", 6})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_at", 9}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PAt); o1; }) : ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.slice", 9})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_slice", 12}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PSlice); o1; }) : ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.eq", 6})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_eq", 9}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PEq); o1; }) : (&N_Coll__None__Pure__Prim))))); res_; }); } -static struct E_Coll__List__D__Fact* f_Pure__facts(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows) { return f_Pure__decls(p_r, f_Pure__protos(p_r, p_ds, (&N_Coll__Nil__Sym__Sym)), f_Pure__hprotos(p_r, p_ds, f_Coll__sEmpty__Sym__Sym(p_r)), p_rows, p_ds, (&N_Coll__Nil__D__Fact)); } -static struct E_Coll__List__Sym__Sym* f_Pure__protos(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s3 = v_p_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Proto.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_n_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ds = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_ds = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } -static struct E_Coll__SMap__Sym__Sym* f_Pure__hprotos(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Sym__Sym* p_m) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Handler.f_name; __auto_type v_p_4 = s3->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Sym__Sym* t2 = f_Coll__sInsert__Sym__Sym(p_r, p_m, v_n_3, v_p_4); p_r = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Sym__Sym* t2 = p_m; p_r = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Sym__Sym*){0}; }); }); }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__decls(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Eff__Rows* t3 = p_rows; struct E_Coll__List__Ast__Decl* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__rowUses(p_r, ({ struct E_Pure__Who* o4 = (struct E_Pure__Who*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__Def))); o4->tag = 0; o4->u.C_Pure__Def.f_f = v_n_3; o4; }), f_Eff__row(p_r, p_rows, v_n_3), f_Pure__fn(p_r, p_ps, p_hp, ({ struct E_Pure__Who* o4 = (struct E_Pure__Who*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__Def))); o4->tag = 0; o4->u.C_Pure__Def.f_f = v_n_3; o4; }), v_f_2, p_acc)); p_r = t0; p_ps = t1; p_hp = t2; p_rows = t3; p_ds = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Handler.f_name; __auto_type v_p_4 = s3->u.C_Ast__Handler.f_proto; __auto_type v_fs_5 = s3->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Eff__Rows* t3 = p_rows; struct E_Coll__List__Ast__Decl* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__rowUses(p_r, ({ struct E_Pure__Who* o6 = (struct E_Pure__Who*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__In))); o6->tag = 1; o6->u.C_Pure__In.f_h = v_n_3; o6; }), f_Eff__row(p_r, p_rows, v_n_3), f_Pure__fns(p_r, p_ps, p_hp, ({ struct E_Pure__Who* o6 = (struct E_Pure__Who*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__In))); o6->tag = 1; o6->u.C_Pure__In.f_h = v_n_3; o6; }), v_fs_5, ({ struct E_Coll__List__D__Fact* o6 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = f_Pure__f2(p_r, (&N_Pure__RHandles), v_n_3, v_p_4); o6->u.C_Coll__Cons.f_t = p_acc; o6; }))); p_r = t0; p_ps = t1; p_hp = t2; p_rows = t3; p_ds = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Eff__Rows* t3 = p_rows; struct E_Coll__List__Ast__Decl* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = p_acc; p_r = t0; p_ps = t1; p_hp = t2; p_rows = t3; p_ds = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__rowUses(srs_cap* p_r, struct E_Pure__Who* p_w, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Eff__Cap.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Pure__Who* t1 = p_w; struct E_Coll__List__Eff__Cap* t2 = v_rest_1; struct E_Coll__List__D__Fact* t3 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Pure__f2(p_r, f_Pure__uses(p_w), f_Pure__subj(p_w), v_p_2); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_w = t1; p_cs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__fns(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Pure__Who* t3 = p_w; struct E_Coll__List__Ast__Fn* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__fn(p_r, p_ps, p_hp, p_w, v_f_0, p_acc); p_r = t0; p_ps = t1; p_hp = t2; p_w = t3; p_fs = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__fn(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Ast__Fn* p_f, struct E_Coll__List__D__Fact* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_n_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_body_2 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Pure__binders(p_r, p_ps, p_w, f_Ty__evidence(p_r, v_gs_1, (&N_Coll__Nil__Ast__Binder)), (&N_Coll__Nil__Sym__Sym), p_acc); ({ __auto_type v_ev_3 = s3->u.C_Pure__Ev.f_ev; __auto_type v_acc2_4 = s3->u.C_Pure__Ev.f_acc; ({ __auto_type res_ = ({ __auto_type s5 = v_body_2; s5->tag == 1 ? ({ (f_Pure__pureExtern(p_r, v_n_0) ? v_acc2_4 : ({ struct E_Coll__List__D__Fact* o5 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = f_Pure__f1(p_r, f_Pure__direct(p_w), f_Pure__subj(p_w)); o5->u.C_Coll__Cons.f_t = v_acc2_4; o5; })); }) : s5->tag == 0 ? ({ __auto_type v_e_5 = s5->u.C_Ast__Def.f_e; f_Pure__expr(p_r, p_hp, p_w, v_ev_3, v_e_5, v_acc2_4); }) : ({ __auto_type v_e_5 = s5->u.C_Ast__Spec.f_e; f_Pure__expr(p_r, p_hp, p_w, v_ev_3, v_e_5, v_acc2_4); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Pure__Ev* f_Pure__binders(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_ps, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Pure__Ev* o0 = (struct E_Pure__Ev*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Ev, u) + sizeof(((struct E_Pure__Ev*)0)->u.C_Pure__Ev))); o0->tag = 0; o0->u.C_Pure__Ev.f_ev = p_ev; o0->u.C_Pure__Ev.f_acc = p_acc; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = (f_Ty__memberSym(v_tn_4, p_ps) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Sym__Sym* t4 = p_ev; struct E_Coll__List__D__Fact* t5 = ({ struct E_Coll__List__D__Fact* o5 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = f_Pure__f2(p_r, f_Pure__uses(p_w), f_Pure__subj(p_w), v_tn_4); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_ps = t1; p_w = t2; p_bs = t3; p_ev = t4; p_acc = t5; goto srs_tail; (struct E_Pure__Ev*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_ev; o5; }); struct E_Coll__List__D__Fact* t5 = p_acc; p_r = t0; p_ps = t1; p_w = t2; p_bs = t3; p_ev = t4; p_acc = t5; goto srs_tail; (struct E_Pure__Ev*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__expr(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Ast__Expr* p_e, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ struct E_Coll__List__D__Fact* o1 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = f_Pure__f2(p_r, f_Pure__calls(p_w), f_Pure__subj(p_w), v_x_0); o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Pure__exprs(p_r, p_hp, p_w, p_ev, v_xs_1, ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Pure__f2(p_r, f_Pure__calls(p_w), f_Pure__subj(p_w), v_f_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }) : s0->tag == 6 ? ({ __auto_type v_recv_0 = s0->u.C_Ast__Method.f_recv; __auto_type v_xs_1 = s0->u.C_Ast__Method.f_args; ({ struct E_Coll__List__D__Fact* v_acc2_2 = (f_Ty__memberSym(v_recv_0, p_ev) ? ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Pure__f1(p_r, f_Pure__direct(p_w), f_Pure__subj(p_w)); o2->u.C_Coll__Cons.f_t = p_acc; o2; }) : p_acc); __auto_type res_ = f_Pure__exprs(p_r, p_hp, p_w, p_ev, v_xs_1, v_acc2_2); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_l_0, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_0; struct E_Coll__List__D__Fact* t5 = p_acc; p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_2; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_t_1, f_Pure__expr(p_r, p_hp, p_w, p_ev, v_c_0, p_acc)); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Pure__arms(p_r, p_hp, p_w, p_ev, v_arms_1, f_Pure__expr(p_r, p_hp, p_w, p_ev, v_s_0, p_acc)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_last_1; struct E_Coll__List__D__Fact* t5 = f_Pure__stmts(p_r, p_hp, p_w, p_ev, v_ss_0, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_b_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_c_0, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_0; struct E_Coll__List__D__Fact* t5 = p_acc; p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : ({ p_acc; }); }); } -static struct E_Coll__List__D__Fact* f_Pure__exprs(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_x_0, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_xs = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__arms(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Arm* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_b_2, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_as = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__D__Fact* f_Pure__stmts(srs_cap* p_r, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Val.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_e_2, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Var.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_e_2, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_h_2 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_3 = s2->u.C_Ast__Handle.f_args; ({ struct E_Coll__List__D__Fact* v_acc2_4 = ({ __auto_type s4 = f_Coll__sLookup__Sym__Sym(p_r, p_hp, v_h_2); s4->tag == 1 ? ({ __auto_type v_p_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Coll__List__D__Fact* o5 = (struct E_Coll__List__D__Fact*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = f_Pure__f2(p_r, f_Pure__uses(p_w), f_Pure__subj(p_w), v_p_4); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); }) : ({ p_acc; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__exprs(p_r, p_hp, p_w, p_ev, v_xs_3, v_acc2_4); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_e_2, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_r, p_hp, p_w, p_ev, v_e_2, p_acc); p_r = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } -static struct E_Pure__Set* f_Pure__impure(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows) { return ({ __auto_type s0 = f_D__solve(p_r, f_Pure__rules(p_r), f_Pure__facts(p_r, p_ds, p_rows)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; ({ struct E_Pure__Set* o1 = (struct E_Pure__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__Got))); o1->tag = 0; o1->u.C_Pure__Got.f_impure = f_Pure__names(p_r, f_D__tuples(p_r, v_m_0, f_Pure__relSym(p_r, (&N_Pure__RImpure))), f_Coll__sEmpty__Bool(p_r)); o1; }); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Pure__Set* o1 = (struct E_Pure__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__RulesBad))); o1->tag = 1; o1->u.C_Pure__RulesBad.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Pure__Set* o1 = (struct E_Pure__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__RulesBad))); o1->tag = 1; o1->u.C_Pure__RulesBad.f_rel = v_rel_0; o1; }); }); }); } -static struct E_Coll__SMap__Bool* f_Pure__names(srs_cap* p_r, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Bool* p_m) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; ({ __auto_type s3 = v_v_2; s3->tag == 0 ? ({ __auto_type v_n_3 = s3->u.C_D__VSym.f_s; ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__List_1_D__Val* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = f_Coll__sInsert__Bool(p_r, p_m, v_n_3, true); p_r = t0; p_ts = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__List_1_D__Val* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = p_m; p_r = t0; p_ts = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__List_1_D__Val* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = p_m; p_r = t0; p_ts = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }); }); }); }); } -static bool f_Pure__has(srs_cap* p_r, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = f_Coll__sLookup__Bool(p_r, p_m, p_n); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } -static srs_str f_Store__text(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Console->vt[5]))(p_eff__Console->self); p_eff__Console->live = 0; r_; })); (void)(f_Ast__decl(p_r, p_eff__Console, p_d)); __auto_type res_ = ({ __auto_type r_ = ((srs_str(*)(void*))(p_eff__Console->vt[6]))(p_eff__Console->self); p_eff__Console->live = 0; r_; }); res_; }); } -static int64_t f_Store__write(srs_cap* p_r, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ srs_cap v_o_4_v = { h_Srs__StoreFile_init(p_dir, v_a_0, v_b_1, v_c_2, v_d_3), vt_Srs__StoreFile, 1 }; srs_cap* v_o_4 = &v_o_4_v; (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(v_o_4->vt[0]))(v_o_4->self, p_s); r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*))(v_o_4->vt[1]))(v_o_4->self); v_o_4->live = 0; r_; }); res_; }); }); }); res_; }); } -static srs_str f_Store__read(srs_cap* p_r, srs_cap* p_eff__Store, srs_str p_dir, struct E_Hs__Dg* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = ({ __auto_type r_ = ((srs_str(*)(void*, srs_str, int64_t, int64_t, int64_t, int64_t))(p_eff__Store->vt[1]))(p_eff__Store->self, p_dir, v_a_0, v_b_1, v_c_2, v_d_3); p_eff__Store->live = 0; r_; }); res_; }); }); }); res_; }); } -static bool f_Store__same(srs_cap* p_r, srs_cap* p_eff__Console, srs_str p_entry, srs_str p_want) { return ({ __auto_type res_ = ((Str__len(p_entry) < ((int64_t)0)) ? false : ({ __auto_type s0 = f_Parse__source(p_r, p_entry); s0->tag == 0 ? ({ __auto_type v_ds_0 = s0->u.C_Parse__Ok.f_v; ({ __auto_type s1 = v_ds_0; s1->tag == 1 ? ({ __auto_type v_x_1 = s1->u.C_Coll__Cons.f_h; __auto_type v_rest_2 = s1->u.C_Coll__Cons.f_t; ({ __auto_type s3 = v_rest_2; s3->tag == 0 ? ({ Str__eq(f_Store__text(p_r, p_eff__Console, v_x_1), p_want); }) : ({ false; }); }); }) : ({ false; }); }); }) : ({ false; }); })); res_; }); } +static struct E_D__Fact* f_Pure__f1(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Pure__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_a; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); } +static struct E_D__Fact* f_Pure__f2(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return ({ struct E_D__Fact* o0 = (struct E_D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Fact, u) + sizeof(((struct E_D__Fact*)0)->u.C_D__Fact))); o0->tag = 0; o0->u.C_D__Fact.f_rel = f_Pure__relSym(p_eff__Region, p_rel); o0->u.C_D__Fact.f_vals = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_a; o0; }); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Val* o0 = (struct E_Coll__List__D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Val, u) + sizeof(((struct E_Coll__List__D__Val*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_D__Val* o0 = (struct E_D__Val*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Val, u) + sizeof(((struct E_D__Val*)0)->u.C_D__VSym))); o0->tag = 0; o0->u.C_D__VSym.f_s = p_b; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Val); o0; }); o0; }); o0; }); } +static struct E_D__Atom* f_Pure__atom(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Atom* o0 = (struct E_D__Atom*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Atom, u) + sizeof(((struct E_D__Atom*)0)->u.C_D__Atom))); o0->tag = 0; o0->u.C_D__Atom.f_rel = f_Pure__relSym(p_eff__Region, p_rel); o0->u.C_D__Atom.f_args = f_Pure__vars(p_eff__Region, p_xs); o0; }); } +static struct E_Coll__List__D__Arg* f_Pure__vars(srs_cap* p_eff__Region, struct E_Coll__List__I64* p_xs) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__Nil__D__Arg); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__D__Arg* o2 = (struct E_Coll__List__D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Arg, u) + sizeof(((struct E_Coll__List__D__Arg*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_D__Arg* o2 = (struct E_D__Arg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Arg, u) + sizeof(((struct E_D__Arg*)0)->u.C_D__AVar))); o2->tag = 0; o2->u.C_D__AVar.f_n = v_x_0; o2; }); o2->u.C_Coll__Cons.f_t = f_Pure__vars(p_eff__Region, v_rest_1); o2; }); }); }); } +static struct E_D__Lit* f_Pure__pos(srs_cap* p_eff__Region, struct E_Pure__Rel* p_rel, struct E_Coll__List__I64* p_xs) { return ({ struct E_D__Lit* o0 = (struct E_D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Lit, u) + sizeof(((struct E_D__Lit*)0)->u.C_D__Pos))); o0->tag = 0; o0->u.C_D__Pos.f_a = f_Pure__atom(p_eff__Region, p_rel, p_xs); o0; }); } +static struct E_Coll__List__I64* f_Pure__one(srs_cap* p_eff__Region, int64_t p_x) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_x; o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__I64); o0; }); } +static struct E_Coll__List__I64* f_Pure__two(srs_cap* p_eff__Region, int64_t p_x, int64_t p_y) { return ({ struct E_Coll__List__I64* o0 = (struct E_Coll__List__I64*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__I64, u) + sizeof(((struct E_Coll__List__I64*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = p_x; o0->u.C_Coll__Cons.f_t = f_Pure__one(p_eff__Region, p_y); o0; }); } +static struct E_D__Rule* f_Pure__rule1(srs_cap* p_eff__Region, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Pure__atom(p_eff__Region, p_h, f_Pure__one(p_eff__Region, ((int64_t)0))); o0->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Pure__pos(p_eff__Region, p_b, f_Pure__one(p_eff__Region, ((int64_t)0))); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); o0; }); } +static struct E_D__Rule* f_Pure__rule2(srs_cap* p_eff__Region, struct E_Pure__Rel* p_h, struct E_Pure__Rel* p_b, struct E_Pure__Rel* p_c) { return ({ struct E_D__Rule* o0 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o0->tag = 0; o0->u.C_D__Rule.f_head = f_Pure__atom(p_eff__Region, p_h, f_Pure__one(p_eff__Region, ((int64_t)0))); o0->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Pure__pos(p_eff__Region, p_b, f_Pure__two(p_eff__Region, ((int64_t)0), ((int64_t)1))); o0->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o0 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = f_Pure__pos(p_eff__Region, p_c, f_Pure__one(p_eff__Region, ((int64_t)1))); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o0; }); o0; }); o0; }); } +static struct E_Coll__List__D__Rule* f_Pure__rules(srs_cap* p_eff__Region) { return ({ struct E_D__Rule* v_i1_0 = f_Pure__rule1(p_eff__Region, (&N_Pure__RImpure), (&N_Pure__RDirect)); struct E_D__Rule* v_i2_1 = f_Pure__rule2(p_eff__Region, (&N_Pure__RImpure), (&N_Pure__RCalls), (&N_Pure__RImpure)); struct E_D__Rule* v_i3_2 = f_Pure__rule2(p_eff__Region, (&N_Pure__RImpure), (&N_Pure__RUses), (&N_Pure__REffectful)); struct E_D__Rule* v_e1_3 = ({ struct E_D__Rule* o3 = (struct E_D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_D__Rule, u) + sizeof(((struct E_D__Rule*)0)->u.C_D__Rule))); o3->tag = 0; o3->u.C_D__Rule.f_head = f_Pure__atom(p_eff__Region, (&N_Pure__REffectful), f_Pure__one(p_eff__Region, ((int64_t)0))); o3->u.C_D__Rule.f_body = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Pure__pos(p_eff__Region, (&N_Pure__RHandles), f_Pure__two(p_eff__Region, ((int64_t)1), ((int64_t)0))); o3->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Lit* o3 = (struct E_Coll__List__D__Lit*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Lit, u) + sizeof(((struct E_Coll__List__D__Lit*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Pure__pos(p_eff__Region, (&N_Pure__RImpureH), f_Pure__one(p_eff__Region, ((int64_t)1))); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Lit); o3; }); o3; }); o3; }); struct E_D__Rule* v_h1_4 = f_Pure__rule1(p_eff__Region, (&N_Pure__RImpureH), (&N_Pure__RHDirect)); struct E_D__Rule* v_h2_5 = f_Pure__rule2(p_eff__Region, (&N_Pure__RImpureH), (&N_Pure__RHCalls), (&N_Pure__RImpure)); struct E_D__Rule* v_h3_6 = f_Pure__rule2(p_eff__Region, (&N_Pure__RImpureH), (&N_Pure__RHUses), (&N_Pure__REffectful)); __auto_type res_ = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_i1_0; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_i2_1; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_i3_2; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_e1_3; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_h1_4; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_h2_5; o7->u.C_Coll__Cons.f_t = ({ struct E_Coll__List__D__Rule* o7 = (struct E_Coll__List__D__Rule*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Rule, u) + sizeof(((struct E_Coll__List__D__Rule*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_h3_6; o7->u.C_Coll__Cons.f_t = (&N_Coll__Nil__D__Rule); o7; }); o7; }); o7; }); o7; }); o7; }); o7; }); o7; }); res_; }); } +static bool f_Pure__pureExtern(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = f_Pure__prim(p_eff__Region, p_n); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } +static struct E_Coll__Option__Pure__Prim* f_Pure__prim(srs_cap* p_eff__Region, struct E_Sym__Sym* p_n) { return ({ srs_str v_s_0 = f_Sym__str(p_n); __auto_type res_ = ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.len", 7})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_len", 10}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PLen); o1; }) : ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.at", 6})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_at", 9}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PAt); o1; }) : ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.slice", 9})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_slice", 12}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PSlice); o1; }) : ((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str.eq", 6})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"rt_str_eq", 9}))) ? ({ struct E_Coll__Option__Pure__Prim* o1 = (struct E_Coll__Option__Pure__Prim*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Pure__Prim, u) + sizeof(((struct E_Coll__Option__Pure__Prim*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = (&N_Pure__PEq); o1; }) : (&N_Coll__None__Pure__Prim))))); res_; }); } +static struct E_Coll__List__D__Fact* f_Pure__facts(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows) { return f_Pure__decls(p_eff__Region, f_Pure__protos(p_eff__Region, p_ds, (&N_Coll__Nil__Sym__Sym)), f_Pure__hprotos(p_eff__Region, p_ds, f_Coll__sEmpty__Sym__Sym(p_eff__Region)), p_rows, p_ds, (&N_Coll__Nil__D__Fact)); } +static struct E_Coll__List__Sym__Sym* f_Pure__protos(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s3 = v_p_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Proto.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_n_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ds = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_ds = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } +static struct E_Coll__SMap__Sym__Sym* f_Pure__hprotos(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Sym__Sym* p_m) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Handler.f_name; __auto_type v_p_4 = s3->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Sym__Sym* t2 = f_Coll__sInsert__Sym__Sym(p_eff__Region, p_m, v_n_3, v_p_4); p_eff__Region = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Sym__Sym* t2 = p_m; p_eff__Region = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Sym__Sym*){0}; }); }); }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__decls(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Eff__Rows* t3 = p_rows; struct E_Coll__List__Ast__Decl* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__rowUses(p_eff__Region, ({ struct E_Pure__Who* o4 = (struct E_Pure__Who*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__Def))); o4->tag = 0; o4->u.C_Pure__Def.f_f = v_n_3; o4; }), f_Eff__row(p_eff__Region, p_rows, v_n_3), f_Pure__fn(p_eff__Region, p_ps, p_hp, ({ struct E_Pure__Who* o4 = (struct E_Pure__Who*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__Def))); o4->tag = 0; o4->u.C_Pure__Def.f_f = v_n_3; o4; }), v_f_2, p_acc)); p_eff__Region = t0; p_ps = t1; p_hp = t2; p_rows = t3; p_ds = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Handler.f_name; __auto_type v_p_4 = s3->u.C_Ast__Handler.f_proto; __auto_type v_fs_5 = s3->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Eff__Rows* t3 = p_rows; struct E_Coll__List__Ast__Decl* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__rowUses(p_eff__Region, ({ struct E_Pure__Who* o6 = (struct E_Pure__Who*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__In))); o6->tag = 1; o6->u.C_Pure__In.f_h = v_n_3; o6; }), f_Eff__row(p_eff__Region, p_rows, v_n_3), f_Pure__fns(p_eff__Region, p_ps, p_hp, ({ struct E_Pure__Who* o6 = (struct E_Pure__Who*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Who, u) + sizeof(((struct E_Pure__Who*)0)->u.C_Pure__In))); o6->tag = 1; o6->u.C_Pure__In.f_h = v_n_3; o6; }), v_fs_5, ({ struct E_Coll__List__D__Fact* o6 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = f_Pure__f2(p_eff__Region, (&N_Pure__RHandles), v_n_3, v_p_4); o6->u.C_Coll__Cons.f_t = p_acc; o6; }))); p_eff__Region = t0; p_ps = t1; p_hp = t2; p_rows = t3; p_ds = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Eff__Rows* t3 = p_rows; struct E_Coll__List__Ast__Decl* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = p_acc; p_eff__Region = t0; p_ps = t1; p_hp = t2; p_rows = t3; p_ds = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__rowUses(srs_cap* p_eff__Region, struct E_Pure__Who* p_w, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Eff__Cap.f_p; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Pure__Who* t1 = p_w; struct E_Coll__List__Eff__Cap* t2 = v_rest_1; struct E_Coll__List__D__Fact* t3 = ({ struct E_Coll__List__D__Fact* o3 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Pure__f2(p_eff__Region, f_Pure__uses(p_w), f_Pure__subj(p_w), v_p_2); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_w = t1; p_cs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__fns(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Coll__SMap__Sym__Sym* t2 = p_hp; struct E_Pure__Who* t3 = p_w; struct E_Coll__List__Ast__Fn* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__fn(p_eff__Region, p_ps, p_hp, p_w, v_f_0, p_acc); p_eff__Region = t0; p_ps = t1; p_hp = t2; p_w = t3; p_fs = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__fn(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Ast__Fn* p_f, struct E_Coll__List__D__Fact* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_n_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_body_2 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Pure__binders(p_eff__Region, p_ps, p_w, f_Ty__evidence(p_eff__Region, v_gs_1, (&N_Coll__Nil__Ast__Binder)), (&N_Coll__Nil__Sym__Sym), p_acc); ({ __auto_type v_ev_3 = s3->u.C_Pure__Ev.f_ev; __auto_type v_acc2_4 = s3->u.C_Pure__Ev.f_acc; ({ __auto_type res_ = ({ __auto_type s5 = v_body_2; s5->tag == 1 ? ({ (f_Pure__pureExtern(p_eff__Region, v_n_0) ? v_acc2_4 : ({ struct E_Coll__List__D__Fact* o5 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = f_Pure__f1(p_eff__Region, f_Pure__direct(p_w), f_Pure__subj(p_w)); o5->u.C_Coll__Cons.f_t = v_acc2_4; o5; })); }) : s5->tag == 0 ? ({ __auto_type v_e_5 = s5->u.C_Ast__Def.f_e; f_Pure__expr(p_eff__Region, p_hp, p_w, v_ev_3, v_e_5, v_acc2_4); }) : ({ __auto_type v_e_5 = s5->u.C_Ast__Spec.f_e; f_Pure__expr(p_eff__Region, p_hp, p_w, v_ev_3, v_e_5, v_acc2_4); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Pure__Ev* f_Pure__binders(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_ps, struct E_Pure__Who* p_w, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Pure__Ev* o0 = (struct E_Pure__Ev*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Ev, u) + sizeof(((struct E_Pure__Ev*)0)->u.C_Pure__Ev))); o0->tag = 0; o0->u.C_Pure__Ev.f_ev = p_ev; o0->u.C_Pure__Ev.f_acc = p_acc; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = (f_Ty__memberSym(v_tn_4, p_ps) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Sym__Sym* t4 = p_ev; struct E_Coll__List__D__Fact* t5 = ({ struct E_Coll__List__D__Fact* o5 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = f_Pure__f2(p_eff__Region, f_Pure__uses(p_w), f_Pure__subj(p_w), v_tn_4); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_ps = t1; p_w = t2; p_bs = t3; p_ev = t4; p_acc = t5; goto srs_tail; (struct E_Pure__Ev*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = p_ps; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_ev; o5; }); struct E_Coll__List__D__Fact* t5 = p_acc; p_eff__Region = t0; p_ps = t1; p_w = t2; p_bs = t3; p_ev = t4; p_acc = t5; goto srs_tail; (struct E_Pure__Ev*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__expr(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Ast__Expr* p_e, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ struct E_Coll__List__D__Fact* o1 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = f_Pure__f2(p_eff__Region, f_Pure__calls(p_w), f_Pure__subj(p_w), v_x_0); o1->u.C_Coll__Cons.f_t = p_acc; o1; }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Pure__exprs(p_eff__Region, p_hp, p_w, p_ev, v_xs_1, ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Pure__f2(p_eff__Region, f_Pure__calls(p_w), f_Pure__subj(p_w), v_f_0); o2->u.C_Coll__Cons.f_t = p_acc; o2; })); }) : s0->tag == 6 ? ({ __auto_type v_recv_0 = s0->u.C_Ast__Method.f_recv; __auto_type v_xs_1 = s0->u.C_Ast__Method.f_args; ({ struct E_Coll__List__D__Fact* v_acc2_2 = (f_Ty__memberSym(v_recv_0, p_ev) ? ({ struct E_Coll__List__D__Fact* o2 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Pure__f1(p_eff__Region, f_Pure__direct(p_w), f_Pure__subj(p_w)); o2->u.C_Coll__Cons.f_t = p_acc; o2; }) : p_acc); __auto_type res_ = f_Pure__exprs(p_eff__Region, p_hp, p_w, p_ev, v_xs_1, v_acc2_2); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_l_0, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_0; struct E_Coll__List__D__Fact* t5 = p_acc; p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_2; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_t_1, f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_c_0, p_acc)); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Pure__arms(p_eff__Region, p_hp, p_w, p_ev, v_arms_1, f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_s_0, p_acc)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_last_1; struct E_Coll__List__D__Fact* t5 = f_Pure__stmts(p_eff__Region, p_hp, p_w, p_ev, v_ss_0, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_b_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_c_0, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Ast__Expr* t4 = v_x_0; struct E_Coll__List__D__Fact* t5 = p_acc; p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_e = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : ({ p_acc; }); }); } +static struct E_Coll__List__D__Fact* f_Pure__exprs(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_x_0, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_xs = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__arms(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Arm* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_b_2, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_as = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__D__Fact* f_Pure__stmts(srs_cap* p_eff__Region, struct E_Coll__SMap__Sym__Sym* p_hp, struct E_Pure__Who* p_w, struct E_Coll__List__Sym__Sym* p_ev, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__D__Fact* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Val.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_e_2, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Var.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_e_2, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_h_2 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_3 = s2->u.C_Ast__Handle.f_args; ({ struct E_Coll__List__D__Fact* v_acc2_4 = ({ __auto_type s4 = f_Coll__sLookup__Sym__Sym(p_eff__Region, p_hp, v_h_2); s4->tag == 1 ? ({ __auto_type v_p_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Coll__List__D__Fact* o5 = (struct E_Coll__List__D__Fact*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__D__Fact, u) + sizeof(((struct E_Coll__List__D__Fact*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = f_Pure__f2(p_eff__Region, f_Pure__uses(p_w), f_Pure__subj(p_w), v_p_4); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); }) : ({ p_acc; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__exprs(p_eff__Region, p_hp, p_w, p_ev, v_xs_3, v_acc2_4); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_e_2, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__SMap__Sym__Sym* t1 = p_hp; struct E_Pure__Who* t2 = p_w; struct E_Coll__List__Sym__Sym* t3 = p_ev; struct E_Coll__List__Ast__Stmt* t4 = v_rest_1; struct E_Coll__List__D__Fact* t5 = f_Pure__expr(p_eff__Region, p_hp, p_w, p_ev, v_e_2, p_acc); p_eff__Region = t0; p_hp = t1; p_w = t2; p_ev = t3; p_ss = t4; p_acc = t5; goto srs_tail; (struct E_Coll__List__D__Fact*){0}; }); }); }); }); }); } +static struct E_Pure__Set* f_Pure__impure(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows) { return ({ __auto_type s0 = f_D__solve(p_eff__Region, f_Pure__rules(p_eff__Region), f_Pure__facts(p_eff__Region, p_ds, p_rows)); s0->tag == 0 ? ({ __auto_type v_m_0 = s0->u.C_D__Solved.f_m; ({ struct E_Pure__Set* o1 = (struct E_Pure__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__Got))); o1->tag = 0; o1->u.C_Pure__Got.f_impure = f_Pure__names(p_eff__Region, f_D__tuples(p_eff__Region, v_m_0, f_Pure__relSym(p_eff__Region, (&N_Pure__RImpure))), f_Coll__sEmpty__Bool(p_eff__Region)); o1; }); }) : s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_D__Unsafe.f_rel; ({ struct E_Pure__Set* o1 = (struct E_Pure__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__RulesBad))); o1->tag = 1; o1->u.C_Pure__RulesBad.f_rel = v_rel_0; o1; }); }) : ({ __auto_type v_rel_0 = s0->u.C_D__NegCycle.f_rel; ({ struct E_Pure__Set* o1 = (struct E_Pure__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__RulesBad))); o1->tag = 1; o1->u.C_Pure__RulesBad.f_rel = v_rel_0; o1; }); }); }); } +static struct E_Coll__SMap__Bool* f_Pure__names(srs_cap* p_eff__Region, struct E_Coll__List__Coll__List_1_D__Val* p_ts, struct E_Coll__SMap__Bool* p_m) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_t_0; s2->tag == 1 ? ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; ({ __auto_type s3 = v_v_2; s3->tag == 0 ? ({ __auto_type v_n_3 = s3->u.C_D__VSym.f_s; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__List_1_D__Val* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = f_Coll__sInsert__Bool(p_eff__Region, p_m, v_n_3, true); p_eff__Region = t0; p_ts = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__List_1_D__Val* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = p_m; p_eff__Region = t0; p_ts = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }); }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__List_1_D__Val* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = p_m; p_eff__Region = t0; p_ts = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); }); }); }); }); } +static bool f_Pure__has(srs_cap* p_eff__Region, struct E_Coll__SMap__Bool* p_m, struct E_Sym__Sym* p_n) { return ({ __auto_type s0 = f_Coll__sLookup__Bool(p_eff__Region, p_m, p_n); s0->tag == 1 ? ({ true; }) : ({ false; }); }); } +static srs_str f_Store__text(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Ast__Decl* p_d) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Console->vt[5]))(p_eff__Console->self); p_eff__Console->live = 0; r_; })); (void)(f_Ast__decl(p_eff__Region, p_eff__Console, p_d)); __auto_type res_ = ({ __auto_type r_ = ((srs_str(*)(void*))(p_eff__Console->vt[6]))(p_eff__Console->self); p_eff__Console->live = 0; r_; }); res_; }); } +static int64_t f_Store__write(srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ srs_cap v_o_4_v = { h_Srs__StoreFile_init(p_dir, v_a_0, v_b_1, v_c_2, v_d_3), vt_Srs__StoreFile, 1 }; srs_cap* v_o_4 = &v_o_4_v; (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(v_o_4->vt[0]))(v_o_4->self, p_s); r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*))(v_o_4->vt[1]))(v_o_4->self); v_o_4->live = 0; r_; }); res_; }); }); }); res_; }); } +static srs_str f_Store__read(srs_cap* p_eff__Store, srs_str p_dir, struct E_Hs__Dg* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_a_0 = s0->u.C_Hs__Dg.f_a; __auto_type v_b_1 = s0->u.C_Hs__Dg.f_b; __auto_type v_c_2 = s0->u.C_Hs__Dg.f_c; __auto_type v_d_3 = s0->u.C_Hs__Dg.f_d; ({ __auto_type res_ = ({ __auto_type r_ = ((srs_str(*)(void*, srs_str, int64_t, int64_t, int64_t, int64_t))(p_eff__Store->vt[1]))(p_eff__Store->self, p_dir, v_a_0, v_b_1, v_c_2, v_d_3); p_eff__Store->live = 0; r_; }); res_; }); }); }); res_; }); } +static bool f_Store__same(srs_cap* p_eff__Region, srs_cap* p_eff__Console, srs_str p_entry, srs_str p_want) { return ({ __auto_type res_ = ((Str__len(p_entry) < ((int64_t)0)) ? false : ({ __auto_type s0 = f_Parse__source(p_eff__Region, p_entry); s0->tag == 0 ? ({ __auto_type v_ds_0 = s0->u.C_Parse__Ok.f_v; ({ __auto_type s1 = v_ds_0; s1->tag == 1 ? ({ __auto_type v_x_1 = s1->u.C_Coll__Cons.f_h; __auto_type v_rest_2 = s1->u.C_Coll__Cons.f_t; ({ __auto_type s3 = v_rest_2; s3->tag == 0 ? ({ Str__eq(f_Store__text(p_eff__Region, p_eff__Console, v_x_1), p_want); }) : ({ false; }); }); }) : ({ false; }); }); }) : ({ false; }); })); res_; }); } static bool f_Store__seen(struct E_Coll__List__Hs__Dg* p_gs, struct E_Hs__Dg* p_g) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (((!f_Hs__less(p_g, v_h_0)) && (!f_Hs__less(v_h_0, p_g))) ? true : ({ struct E_Coll__List__Hs__Dg* t0 = v_rest_1; struct E_Hs__Dg* t1 = p_g; p_gs = t0; p_g = t1; goto srs_tail; (bool){0}; })); }); }); } -static int64_t f_Store__check(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Store__decls(p_r, p_eff__Store, p_eff__Console, ({ __auto_type r_ = ((srs_str(*)(void*))(p_eff__Store->vt[0]))(p_eff__Store->self); p_eff__Store->live = 0; r_; }), f_Hs__all(p_r, p_ds), p_ds, ({ struct E_Store__Tally* o0 = (struct E_Store__Tally*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o0->tag = 0; o0->u.C_Store__Tally.f_wrote = ((int64_t)0); o0->u.C_Store__Tally.f_same = ((int64_t)0); o0->u.C_Store__Tally.f_shared = ((int64_t)0); o0->u.C_Store__Tally.f_bad = ((int64_t)0); o0->u.C_Store__Tally.f_seen = (&N_Coll__Nil__Hs__Dg); o0; })); ({ __auto_type v_w_0 = s0->u.C_Store__Tally.f_wrote; __auto_type v_s_1 = s0->u.C_Store__Tally.f_same; __auto_type v_sh_2 = s0->u.C_Store__Tally.f_shared; __auto_type v_b_3 = s0->u.C_Store__Tally.f_bad; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"store: wrote ", 13})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_w_0); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", read equal ", 13})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_s_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", shared ", 9})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_sh_2); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", bad ", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_b_3); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } -static struct E_Store__Tally* f_Store__decls(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, srs_str p_dir, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds, struct E_Store__Tally* p_t) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_t; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__Option__Sym__Sym* v_n_2 = ({ __auto_type s2 = v_d_0; s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_en_3 = s3->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_en_3; o4; }); res_; }); }); }); res_; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_fname_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_fname_3; o4; }); res_; }); }); }); res_; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }); struct E_Coll__Option__Hs__Dg* v_g_3 = ({ __auto_type s3 = v_n_2; s3->tag == 1 ? ({ __auto_type v_x_3 = s3->u.C_Coll__Some.f_v; f_Coll__sLookup__Hs__Dg(p_r, p_hm, v_x_3); }) : ({ (&N_Coll__None__Hs__Dg); }); }); __auto_type res_ = ({ __auto_type s4 = v_g_3; s4->tag == 0 ? ({ ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Store; srs_cap* t2 = p_eff__Console; srs_str t3 = p_dir; struct E_Coll__SMap__Hs__Dg* t4 = p_hm; struct E_Coll__List__Ast__Decl* t5 = v_rest_1; struct E_Store__Tally* t6 = p_t; p_r = t0; p_eff__Store = t1; p_eff__Console = t2; p_dir = t3; p_hm = t4; p_ds = t5; p_t = t6; goto srs_tail; (struct E_Store__Tally*){0}; }); }) : ({ __auto_type v_h_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Store; srs_cap* t2 = p_eff__Console; srs_str t3 = p_dir; struct E_Coll__SMap__Hs__Dg* t4 = p_hm; struct E_Coll__List__Ast__Decl* t5 = v_rest_1; struct E_Store__Tally* t6 = f_Store__one(p_r, p_eff__Console, p_eff__Store, p_dir, v_h_4, f_Store__text(p_r, p_eff__Console, v_d_0), p_t); p_r = t0; p_eff__Store = t1; p_eff__Console = t2; p_dir = t3; p_hm = t4; p_ds = t5; p_t = t6; goto srs_tail; (struct E_Store__Tally*){0}; }); }); }); res_; }); }); }); } -static struct E_Store__Tally* f_Store__one(srs_cap* p_r, srs_cap* p_eff__Console, srs_cap* p_eff__Store, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_want, struct E_Store__Tally* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_w_0 = s0->u.C_Store__Tally.f_wrote; __auto_type v_s_1 = s0->u.C_Store__Tally.f_same; __auto_type v_sh_2 = s0->u.C_Store__Tally.f_shared; __auto_type v_b_3 = s0->u.C_Store__Tally.f_bad; __auto_type v_seen_4 = s0->u.C_Store__Tally.f_seen; ({ int64_t v_w2_5 = ((Str__len(f_Store__read(p_r, p_eff__Store, p_dir, p_g)) < ((int64_t)0)) ? f_Store__wrote(p_r, p_dir, p_g, p_want, v_w_0) : v_w_0); struct E_Coll__List__Hs__Dg* v_seen2_6 = ({ struct E_Coll__List__Hs__Dg* o6 = (struct E_Coll__List__Hs__Dg*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Hs__Dg, u) + sizeof(((struct E_Coll__List__Hs__Dg*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_g; o6->u.C_Coll__Cons.f_t = v_seen_4; o6; }); __auto_type res_ = (f_Store__seen(v_seen_4, p_g) ? ({ struct E_Store__Tally* o7 = (struct E_Store__Tally*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o7->tag = 0; o7->u.C_Store__Tally.f_wrote = v_w2_5; o7->u.C_Store__Tally.f_same = v_s_1; o7->u.C_Store__Tally.f_shared = (v_sh_2 + ((int64_t)1)); o7->u.C_Store__Tally.f_bad = v_b_3; o7->u.C_Store__Tally.f_seen = v_seen2_6; o7; }) : (f_Store__same(p_r, p_eff__Console, f_Store__read(p_r, p_eff__Store, p_dir, p_g), p_want) ? ({ struct E_Store__Tally* o7 = (struct E_Store__Tally*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o7->tag = 0; o7->u.C_Store__Tally.f_wrote = v_w2_5; o7->u.C_Store__Tally.f_same = (v_s_1 + ((int64_t)1)); o7->u.C_Store__Tally.f_shared = v_sh_2; o7->u.C_Store__Tally.f_bad = v_b_3; o7->u.C_Store__Tally.f_seen = v_seen2_6; o7; }) : ({ struct E_Store__Tally* o7 = (struct E_Store__Tally*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o7->tag = 0; o7->u.C_Store__Tally.f_wrote = v_w2_5; o7->u.C_Store__Tally.f_same = v_s_1; o7->u.C_Store__Tally.f_shared = v_sh_2; o7->u.C_Store__Tally.f_bad = (v_b_3 + ((int64_t)1)); o7->u.C_Store__Tally.f_seen = v_seen2_6; o7; }))); res_; }); }); }); res_; }); } -static int64_t f_Store__wrote(srs_cap* p_r, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_w) { return ({ (void)(f_Store__write(p_r, p_dir, p_g, p_s)); __auto_type res_ = (p_w + ((int64_t)1)); res_; }); } -static struct E_Sym__Sym* f_Sym__of(srs_cap* p_r, srs_str p_s) { return ({ struct E_Sym__Sym* o0 = (struct E_Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Sym__Sym, u) + sizeof(((struct E_Sym__Sym*)0)->u.C_Sym__Sym))); o0->tag = 0; o0->u.C_Sym__Sym.f_h = f_strHash(p_s); o0->u.C_Sym__Sym.f_s = p_s; o0; }); } +static int64_t f_Store__check(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Store__decls(p_eff__Store, p_eff__Console, p_eff__Region, ({ __auto_type r_ = ((srs_str(*)(void*))(p_eff__Store->vt[0]))(p_eff__Store->self); p_eff__Store->live = 0; r_; }), f_Hs__all(p_eff__Region, p_ds), p_ds, ({ struct E_Store__Tally* o0 = (struct E_Store__Tally*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o0->tag = 0; o0->u.C_Store__Tally.f_wrote = ((int64_t)0); o0->u.C_Store__Tally.f_same = ((int64_t)0); o0->u.C_Store__Tally.f_shared = ((int64_t)0); o0->u.C_Store__Tally.f_bad = ((int64_t)0); o0->u.C_Store__Tally.f_seen = (&N_Coll__Nil__Hs__Dg); o0; })); ({ __auto_type v_w_0 = s0->u.C_Store__Tally.f_wrote; __auto_type v_s_1 = s0->u.C_Store__Tally.f_same; __auto_type v_sh_2 = s0->u.C_Store__Tally.f_shared; __auto_type v_b_3 = s0->u.C_Store__Tally.f_bad; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"store: wrote ", 13})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_w_0); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", read equal ", 13})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_s_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", shared ", 9})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_sh_2); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", bad ", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[1]))(p_eff__Console->self, v_b_3); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); } +static struct E_Store__Tally* f_Store__decls(srs_cap* p_eff__Store, srs_cap* p_eff__Console, srs_cap* p_eff__Region, srs_str p_dir, struct E_Coll__SMap__Hs__Dg* p_hm, struct E_Coll__List__Ast__Decl* p_ds, struct E_Store__Tally* p_t) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_t; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__Option__Sym__Sym* v_n_2 = ({ __auto_type s2 = v_d_0; s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_en_3 = s3->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_en_3; o4; }); res_; }); }); }); res_; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_fname_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_fname_3; o4; }); res_; }); }); }); res_; }); }) : ({ (&N_Coll__None__Sym__Sym); }); }); struct E_Coll__Option__Hs__Dg* v_g_3 = ({ __auto_type s3 = v_n_2; s3->tag == 1 ? ({ __auto_type v_x_3 = s3->u.C_Coll__Some.f_v; f_Coll__sLookup__Hs__Dg(p_eff__Region, p_hm, v_x_3); }) : ({ (&N_Coll__None__Hs__Dg); }); }); __auto_type res_ = ({ __auto_type s4 = v_g_3; s4->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Store; srs_cap* t1 = p_eff__Console; srs_cap* t2 = p_eff__Region; srs_str t3 = p_dir; struct E_Coll__SMap__Hs__Dg* t4 = p_hm; struct E_Coll__List__Ast__Decl* t5 = v_rest_1; struct E_Store__Tally* t6 = p_t; p_eff__Store = t0; p_eff__Console = t1; p_eff__Region = t2; p_dir = t3; p_hm = t4; p_ds = t5; p_t = t6; goto srs_tail; (struct E_Store__Tally*){0}; }); }) : ({ __auto_type v_h_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Store; srs_cap* t1 = p_eff__Console; srs_cap* t2 = p_eff__Region; srs_str t3 = p_dir; struct E_Coll__SMap__Hs__Dg* t4 = p_hm; struct E_Coll__List__Ast__Decl* t5 = v_rest_1; struct E_Store__Tally* t6 = f_Store__one(p_eff__Console, p_eff__Store, p_eff__Region, p_dir, v_h_4, f_Store__text(p_eff__Region, p_eff__Console, v_d_0), p_t); p_eff__Store = t0; p_eff__Console = t1; p_eff__Region = t2; p_dir = t3; p_hm = t4; p_ds = t5; p_t = t6; goto srs_tail; (struct E_Store__Tally*){0}; }); }); }); res_; }); }); }); } +static struct E_Store__Tally* f_Store__one(srs_cap* p_eff__Console, srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_want, struct E_Store__Tally* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_w_0 = s0->u.C_Store__Tally.f_wrote; __auto_type v_s_1 = s0->u.C_Store__Tally.f_same; __auto_type v_sh_2 = s0->u.C_Store__Tally.f_shared; __auto_type v_b_3 = s0->u.C_Store__Tally.f_bad; __auto_type v_seen_4 = s0->u.C_Store__Tally.f_seen; ({ int64_t v_w2_5 = ((Str__len(f_Store__read(p_eff__Store, p_dir, p_g)) < ((int64_t)0)) ? f_Store__wrote(p_dir, p_g, p_want, v_w_0) : v_w_0); struct E_Coll__List__Hs__Dg* v_seen2_6 = ({ struct E_Coll__List__Hs__Dg* o6 = (struct E_Coll__List__Hs__Dg*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Hs__Dg, u) + sizeof(((struct E_Coll__List__Hs__Dg*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_g; o6->u.C_Coll__Cons.f_t = v_seen_4; o6; }); __auto_type res_ = (f_Store__seen(v_seen_4, p_g) ? ({ struct E_Store__Tally* o7 = (struct E_Store__Tally*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o7->tag = 0; o7->u.C_Store__Tally.f_wrote = v_w2_5; o7->u.C_Store__Tally.f_same = v_s_1; o7->u.C_Store__Tally.f_shared = (v_sh_2 + ((int64_t)1)); o7->u.C_Store__Tally.f_bad = v_b_3; o7->u.C_Store__Tally.f_seen = v_seen2_6; o7; }) : (f_Store__same(p_eff__Region, p_eff__Console, f_Store__read(p_eff__Store, p_dir, p_g), p_want) ? ({ struct E_Store__Tally* o7 = (struct E_Store__Tally*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o7->tag = 0; o7->u.C_Store__Tally.f_wrote = v_w2_5; o7->u.C_Store__Tally.f_same = (v_s_1 + ((int64_t)1)); o7->u.C_Store__Tally.f_shared = v_sh_2; o7->u.C_Store__Tally.f_bad = v_b_3; o7->u.C_Store__Tally.f_seen = v_seen2_6; o7; }) : ({ struct E_Store__Tally* o7 = (struct E_Store__Tally*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Store__Tally, u) + sizeof(((struct E_Store__Tally*)0)->u.C_Store__Tally))); o7->tag = 0; o7->u.C_Store__Tally.f_wrote = v_w2_5; o7->u.C_Store__Tally.f_same = v_s_1; o7->u.C_Store__Tally.f_shared = v_sh_2; o7->u.C_Store__Tally.f_bad = (v_b_3 + ((int64_t)1)); o7->u.C_Store__Tally.f_seen = v_seen2_6; o7; }))); res_; }); }); }); res_; }); } +static int64_t f_Store__wrote(srs_str p_dir, struct E_Hs__Dg* p_g, srs_str p_s, int64_t p_w) { return ({ (void)(f_Store__write(p_dir, p_g, p_s)); __auto_type res_ = (p_w + ((int64_t)1)); res_; }); } +static struct E_Sym__Sym* f_Sym__of(srs_cap* p_eff__Region, srs_str p_s) { return ({ struct E_Sym__Sym* o0 = (struct E_Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Sym__Sym, u) + sizeof(((struct E_Sym__Sym*)0)->u.C_Sym__Sym))); o0->tag = 0; o0->u.C_Sym__Sym.f_h = f_strHash(p_s); o0->u.C_Sym__Sym.f_s = p_s; o0; }); } static int64_t f_Sym__hash(struct E_Sym__Sym* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_h_0 = s0->u.C_Sym__Sym.f_h; ({ __auto_type res_ = v_h_0; res_; }); }); }); res_; }); } static srs_str f_Sym__str(struct E_Sym__Sym* p_a) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_s_0 = s0->u.C_Sym__Sym.f_s; ({ __auto_type res_ = v_s_0; res_; }); }); }); res_; }); } static bool f_Sym__eq(struct E_Sym__Sym* p_a, struct E_Sym__Sym* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_h1_0 = s0->u.C_Sym__Sym.f_h; __auto_type v_s1_1 = s0->u.C_Sym__Sym.f_s; ({ __auto_type res_ = ({ __auto_type s2 = p_b; ({ __auto_type v_h2_2 = s2->u.C_Sym__Sym.f_h; __auto_type v_s2_3 = s2->u.C_Sym__Sym.f_s; ({ __auto_type res_ = ((v_h1_0 == v_h2_2) && Str__eq(v_s1_1, v_s2_3)); res_; }); }); }); res_; }); }); }); res_; }); } static int64_t f_Tl__fuel(void) { return ((int64_t)1000); } -static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__expand(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Tl__Cx* v_cx_0 = f_Tl__cxOf(p_r, p_ds, f_Coll__sEmpty__Ast__TypeDecl(p_r), f_Coll__sEmpty__Ast__Fn(p_r)); __auto_type res_ = f_Tl__decls(p_r, v_cx_0, p_ds, (&N_Coll__Nil__Ast__Decl), (&N_Coll__Nil__Tl__Err)); res_; }); } -static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sEmpty__Ast__TypeDecl(srs_cap* p_r) { return ({ struct E_Coll__SMap__Ast__TypeDecl* o0 = (struct E_Coll__SMap__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SMap__Ast__TypeDecl*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); } -static struct E_Tl__Cx* f_Tl__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Ast__TypeDecl* p_ts, struct E_Coll__SMap__Ast__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Tl__Cx* o0 = (struct E_Tl__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Cx, u) + sizeof(((struct E_Tl__Cx*)0)->u.C_Tl__Cx))); o0->tag = 0; o0->u.C_Tl__Cx.f_ts = p_ts; o0->u.C_Tl__Cx.f_fs = p_fs; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s3 = v_td_2; ({ __auto_type v_n_3 = s3->u.C_Ast__TypeDecl.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Ast__TypeDecl* t2 = f_Coll__sInsert__Ast__TypeDecl(p_r, p_ts, v_n_3, v_td_2); struct E_Coll__SMap__Ast__Fn* t3 = p_fs; p_r = t0; p_ds = t1; p_ts = t2; p_fs = t3; goto srs_tail; (struct E_Tl__Cx*){0}; }); res_; }); }); }); res_; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Ast__TypeDecl* t2 = p_ts; struct E_Coll__SMap__Ast__Fn* t3 = f_Coll__sInsert__Ast__Fn(p_r, p_fs, v_n_3, v_f_2); p_r = t0; p_ds = t1; p_ts = t2; p_fs = t3; goto srs_tail; (struct E_Tl__Cx*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Ast__TypeDecl* t2 = p_ts; struct E_Coll__SMap__Ast__Fn* t3 = p_fs; p_r = t0; p_ds = t1; p_ts = t2; p_fs = t3; goto srs_tail; (struct E_Tl__Cx*){0}; }); }); }); }); }); } -static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sInsert__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_n_2) ? ({ struct E_Coll__SMap__Ast__TypeDecl* o3 = (struct E_Coll__SMap__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SMap__Ast__TypeDecl*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_t_0, v_h_1, f_Coll__sSet__Ast__TypeDecl(p_r, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__TypeDecl* o3 = (struct E_Coll__SMap__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SMap__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SMap__Ast__TypeDecl*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__TypeDecl* o3 = (struct E_Coll__SEntry__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SEntry__Ast__TypeDecl*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl); o3; })); o3; })); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__expand(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Tl__Cx* v_cx_0 = f_Tl__cxOf(p_eff__Region, p_ds, f_Coll__sEmpty__Ast__TypeDecl(p_eff__Region), f_Coll__sEmpty__Ast__Fn(p_eff__Region)); __auto_type res_ = f_Tl__decls(p_eff__Region, v_cx_0, p_ds, (&N_Coll__Nil__Ast__Decl), (&N_Coll__Nil__Tl__Err)); res_; }); } +static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sEmpty__Ast__TypeDecl(srs_cap* p_eff__Region) { return ({ struct E_Coll__SMap__Ast__TypeDecl* o0 = (struct E_Coll__SMap__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SMap__Ast__TypeDecl*)0)->u.C_Coll__SMap))); o0->tag = 0; o0->u.C_Coll__SMap.f_t = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); } +static struct E_Tl__Cx* f_Tl__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__Ast__TypeDecl* p_ts, struct E_Coll__SMap__Ast__Fn* p_fs) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Tl__Cx* o0 = (struct E_Tl__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Cx, u) + sizeof(((struct E_Tl__Cx*)0)->u.C_Tl__Cx))); o0->tag = 0; o0->u.C_Tl__Cx.f_ts = p_ts; o0->u.C_Tl__Cx.f_fs = p_fs; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s3 = v_td_2; ({ __auto_type v_n_3 = s3->u.C_Ast__TypeDecl.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Ast__TypeDecl* t2 = f_Coll__sInsert__Ast__TypeDecl(p_eff__Region, p_ts, v_n_3, v_td_2); struct E_Coll__SMap__Ast__Fn* t3 = p_fs; p_eff__Region = t0; p_ds = t1; p_ts = t2; p_fs = t3; goto srs_tail; (struct E_Tl__Cx*){0}; }); res_; }); }); }); res_; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Ast__TypeDecl* t2 = p_ts; struct E_Coll__SMap__Ast__Fn* t3 = f_Coll__sInsert__Ast__Fn(p_eff__Region, p_fs, v_n_3, v_f_2); p_eff__Region = t0; p_ds = t1; p_ts = t2; p_fs = t3; goto srs_tail; (struct E_Tl__Cx*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__Ast__TypeDecl* t2 = p_ts; struct E_Coll__SMap__Ast__Fn* t3 = p_fs; p_eff__Region = t0; p_ds = t1; p_ts = t2; p_fs = t3; goto srs_tail; (struct E_Tl__Cx*){0}; }); }); }); }); }); } +static struct E_Coll__SMap__Ast__TypeDecl* f_Coll__sInsert__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; ({ int64_t v_h_1 = f_Sym__hash(p_s); struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* v_n_2 = f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_t_0, v_h_1); __auto_type res_ = (f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_n_2) ? ({ struct E_Coll__SMap__Ast__TypeDecl* o3 = (struct E_Coll__SMap__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SMap__Ast__TypeDecl*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_t_0, v_h_1, f_Coll__sSet__Ast__TypeDecl(p_eff__Region, f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_n_2, v_h_1, (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl)), p_s, p_v)); o3; }) : ({ struct E_Coll__SMap__Ast__TypeDecl* o3 = (struct E_Coll__SMap__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SMap__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SMap__Ast__TypeDecl*)0)->u.C_Coll__SMap))); o3->tag = 0; o3->u.C_Coll__SMap.f_t = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_t_0, v_h_1, ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__TypeDecl* o3 = (struct E_Coll__SEntry__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SEntry__Ast__TypeDecl*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl); o3; })); o3; })); res_; }); }); }); } static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k) { srs_tail: return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B2.f_b; ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : p_t)); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B3.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : ((p_k == v_k2_3) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_b_2 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_3 = s0->u.C_Coll__B4.f_k2; __auto_type v_c_4 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_5 = s0->u.C_Coll__B4.f_k3; __auto_type v_d_6 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_a_0; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : ((p_k == v_k1_1) ? p_t : ((p_k < v_k2_3) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_b_2; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : ((p_k == v_k2_3) ? p_t : ((p_k < v_k3_5) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_c_4; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }) : ((p_k == v_k3_5) ? p_t : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* t0 = v_d_6; int64_t t1 = p_k; p_t = t0; p_k = t1; goto srs_tail; (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*){0}; }))))))); res_; }); }); }); } static bool f_Coll__bIsNode__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_n) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ false; }) : s0->tag == 1 ? ({ true; }) : s0->tag == 2 ? ({ true; }) : ({ true; }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } -static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__sSet__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__TypeDecl* o0 = (struct E_Coll__SEntry__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SEntry__Ast__TypeDecl*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__TypeDecl* o3 = (struct E_Coll__SEntry__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SEntry__Ast__TypeDecl*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__TypeDecl(p_r, v_t_1, p_s, p_v); o3; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ p_t; }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, p_k, p_v); o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k > v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = v_v1_2; o4->u.C_Coll__B2.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_b_3, p_k, p_v); o4; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, p_k, p_v); o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_b_3, p_k, p_v); o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_c_6, p_k, p_v); o7; }))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; ({ __auto_type res_ = ((p_k < v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, p_k, p_v); o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = p_v; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_b_3, p_k, p_v); o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = p_v; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k < v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_c_6, p_k, p_v); o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ((p_k == v_k3_7) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = p_v; o10->u.C_Coll__B4.f_d = v_d_9; o10; }) : ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o10 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o10->tag = 3; o10->u.C_Coll__B4.f_a = v_a_0; o10->u.C_Coll__B4.f_k1 = v_k1_1; o10->u.C_Coll__B4.f_v1 = v_v1_2; o10->u.C_Coll__B4.f_b = v_b_3; o10->u.C_Coll__B4.f_k2 = v_k2_4; o10->u.C_Coll__B4.f_v2 = v_v2_5; o10->u.C_Coll__B4.f_c = v_c_6; o10->u.C_Coll__B4.f_k3 = v_k3_7; o10->u.C_Coll__B4.f_v3 = v_v3_8; o10->u.C_Coll__B4.f_d = f_Coll__bRep__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_d_9, p_k, p_v); o10; }))))))); res_; }); }); }); } +static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__sSet__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s, struct E_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__TypeDecl* o0 = (struct E_Coll__SEntry__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SEntry__Ast__TypeDecl*)0)->u.C_Coll__SEntry))); o0->tag = 0; o0->u.C_Coll__SEntry.f_s = p_s; o0->u.C_Coll__SEntry.f_v = p_v; o0; }); o0->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = ({ struct E_Coll__SEntry__Ast__TypeDecl* o3 = (struct E_Coll__SEntry__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__SEntry__Ast__TypeDecl, u) + sizeof(((struct E_Coll__SEntry__Ast__TypeDecl*)0)->u.C_Coll__SEntry))); o3->tag = 0; o3->u.C_Coll__SEntry.f_s = p_s; o3->u.C_Coll__SEntry.f_v = p_v; o3; }); o3->u.C_Coll__Cons.f_t = v_t_1; o3; }) : ({ struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* o3 = (struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_0; o3->u.C_Coll__Cons.f_t = f_Coll__sSet__Ast__TypeDecl(p_eff__Region, v_t_1, p_s, p_v); o3; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_n, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_d) { return ({ __auto_type s0 = p_n; s0->tag == 0 ? ({ p_d; }) : s0->tag == 1 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B2.f_v1; ((p_k == v_k1_0) ? v_v1_1 : p_d); }) : s0->tag == 2 ? ({ __auto_type v_k1_0 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B3.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B3.f_v2; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : p_d)); }) : ({ __auto_type v_k1_0 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_1 = s0->u.C_Coll__B4.f_v1; __auto_type v_k2_2 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_3 = s0->u.C_Coll__B4.f_v2; __auto_type v_k3_4 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_5 = s0->u.C_Coll__B4.f_v3; ((p_k == v_k1_0) ? v_v1_1 : ((p_k == v_k2_2) ? v_v2_3 : ((p_k == v_k3_4) ? v_v3_5 : p_d))); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } -static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_b, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, p_c, p_k, p_v); o0; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } -static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_r, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_r, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } -static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__decls(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Decl* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Decl* o0 = (struct E_Tl__W__Coll__List_1_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Decl*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Decl(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__decl(p_r, p_cx, v_d_0, p_es); ({ __auto_type v_d2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ast__Decl* t3 = ({ struct E_Coll__List__Ast__Decl* o4 = (struct E_Coll__List__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Decl, u) + sizeof(((struct E_Coll__List__Ast__Decl*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_d2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Decl*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Decl* f_Tl__decl(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Decl* p_d, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s1 = f_Tl__fn(p_r, p_cx, v_f_0, p_es); ({ __auto_type v_f2_1 = s1->u.C_Tl__W.f_v; __auto_type v_es2_2 = s1->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o3 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o3->tag = 0; o3->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o3 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DFn))); o3->tag = 0; o3->u.C_Ast__DFn.f_f = v_f2_1; o3; }); o3->u.C_Tl__W.f_es = v_es2_2; o3; }); res_; }); }); }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_e_0 = s0->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Enum.f_line; __auto_type v_n_2 = s1->u.C_Ast__Enum.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Enum.f_groups; __auto_type v_cases_4 = s1->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__groups(p_r, p_cx, v_gs_3, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__cases(p_r, p_cx, v_cases_4, (&N_Coll__Nil__Ast__Case), v_es2_6); ({ __auto_type v_cs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o9 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o9 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DEnum))); o9->tag = 1; o9->u.C_Ast__DEnum.f_e = ({ struct E_Ast__Enum* o9 = (struct E_Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Enum, u) + sizeof(((struct E_Ast__Enum*)0)->u.C_Ast__Enum))); o9->tag = 0; o9->u.C_Ast__Enum.f_line = v_line_1; o9->u.C_Ast__Enum.f_name = v_n_2; o9->u.C_Ast__Enum.f_groups = v_gs2_5; o9->u.C_Ast__Enum.f_cases = v_cs2_7; o9; }); o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_p_0 = s0->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s1 = v_p_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Proto.f_line; __auto_type v_n_2 = s1->u.C_Ast__Proto.f_name; __auto_type v_sts_3 = s1->u.C_Ast__Proto.f_states; __auto_type v_st_4 = s1->u.C_Ast__Proto.f_start; __auto_type v_ends_5 = s1->u.C_Ast__Proto.f_ends; __auto_type v_dop_6 = s1->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_7 = s1->u.C_Ast__Proto.f_ops; __auto_type v_rules_8 = s1->u.C_Ast__Proto.f_rules; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__ops(p_r, p_cx, v_ops_7, (&N_Coll__Nil__Ast__Op), p_es); ({ __auto_type v_ops2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es2_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o11 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o11->tag = 0; o11->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o11 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DProto))); o11->tag = 2; o11->u.C_Ast__DProto.f_p = ({ struct E_Ast__Proto* o11 = (struct E_Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Proto, u) + sizeof(((struct E_Ast__Proto*)0)->u.C_Ast__Proto))); o11->tag = 0; o11->u.C_Ast__Proto.f_line = v_line_1; o11->u.C_Ast__Proto.f_name = v_n_2; o11->u.C_Ast__Proto.f_states = v_sts_3; o11->u.C_Ast__Proto.f_start = v_st_4; o11->u.C_Ast__Proto.f_ends = v_ends_5; o11->u.C_Ast__Proto.f_dropOp = v_dop_6; o11->u.C_Ast__Proto.f_ops = v_ops2_9; o11->u.C_Ast__Proto.f_rules = v_rules_8; o11; }); o11; }); o11->u.C_Tl__W.f_es = v_es2_10; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_h_0 = s0->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s1 = v_h_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Handler.f_line; __auto_type v_n_2 = s1->u.C_Ast__Handler.f_name; __auto_type v_p_3 = s1->u.C_Ast__Handler.f_proto; __auto_type v_fs_4 = s1->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__fns(p_r, p_cx, v_fs_4, (&N_Coll__Nil__Ast__Fn), p_es); ({ __auto_type v_fs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o7 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DHandler))); o7->tag = 3; o7->u.C_Ast__DHandler.f_h = ({ struct E_Ast__Handler* o7 = (struct E_Ast__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Handler, u) + sizeof(((struct E_Ast__Handler*)0)->u.C_Ast__Handler))); o7->tag = 0; o7->u.C_Ast__Handler.f_line = v_line_1; o7->u.C_Ast__Handler.f_name = v_n_2; o7->u.C_Ast__Handler.f_proto = v_p_3; o7->u.C_Ast__Handler.f_fns = v_fs2_5; o7; }); o7; }); o7->u.C_Tl__W.f_es = v_es2_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_t_0 = s0->u.C_Ast__DTrait.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_t_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Trait.f_line; __auto_type v_n_2 = s1->u.C_Ast__Trait.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Trait.f_groups; __auto_type v_sigs_4 = s1->u.C_Ast__Trait.f_sigs; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__groups(p_r, p_cx, v_gs_3, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__fns(p_r, p_cx, v_sigs_4, (&N_Coll__Nil__Ast__Fn), v_es2_6); ({ __auto_type v_sigs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o9 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o9 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DTrait))); o9->tag = 4; o9->u.C_Ast__DTrait.f_t = ({ struct E_Ast__Trait* o9 = (struct E_Ast__Trait*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Trait, u) + sizeof(((struct E_Ast__Trait*)0)->u.C_Ast__Trait))); o9->tag = 0; o9->u.C_Ast__Trait.f_line = v_line_1; o9->u.C_Ast__Trait.f_name = v_n_2; o9->u.C_Ast__Trait.f_groups = v_gs2_5; o9->u.C_Ast__Trait.f_sigs = v_sigs2_7; o9; }); o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 5 ? ({ __auto_type v_g_0 = s0->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s1 = v_g_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Given.f_line; __auto_type v_gs_2 = s1->u.C_Ast__Given.f_groups; __auto_type v_head_3 = s1->u.C_Ast__Given.f_head; __auto_type v_fs_4 = s1->u.C_Ast__Given.f_fns; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__groups(p_r, p_cx, v_gs_2, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_head_3, f_Tl__fuel(), v_es2_6); ({ __auto_type v_h2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__fns(p_r, p_cx, v_fs_4, (&N_Coll__Nil__Ast__Fn), v_es3_8); ({ __auto_type v_fs2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es4_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o11 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o11->tag = 0; o11->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o11 = (struct E_Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DGiven))); o11->tag = 5; o11->u.C_Ast__DGiven.f_g = ({ struct E_Ast__Given* o11 = (struct E_Ast__Given*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Given, u) + sizeof(((struct E_Ast__Given*)0)->u.C_Ast__Given))); o11->tag = 0; o11->u.C_Ast__Given.f_line = v_line_1; o11->u.C_Ast__Given.f_groups = v_gs2_5; o11->u.C_Ast__Given.f_head = v_h2_7; o11->u.C_Ast__Given.f_fns = v_fs2_9; o11; }); o11; }); o11->u.C_Tl__W.f_es = v_es4_10; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ __auto_type v_td_0 = s0->u.C_Ast__DType.f_t; ({ struct E_Tl__W__Ast__Decl* o1 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o1->tag = 0; o1->u.C_Tl__W.f_v = p_d; o1->u.C_Tl__W.f_es = f_Tl__typeDecl(p_r, v_td_0, p_es); o1; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Fn* f_Tl__fns(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Fn* o0 = (struct E_Tl__W__Coll__List_1_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Fn*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Fn(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__fn(p_r, p_cx, v_f_0, p_es); ({ __auto_type v_f2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Coll__List__Ast__Fn* t3 = ({ struct E_Coll__List__Ast__Fn* o4 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_f2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_r = t0; p_cx = t1; p_fs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Fn* f_Tl__fn(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Fn* p_f, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_n_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_5 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_6 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__groups(p_r, p_cx, v_gs_2, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es2_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__binders(p_r, p_cx, v_ps_3, (&N_Coll__Nil__Ast__Binder), v_es2_8); ({ __auto_type v_ps2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es3_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s11 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_ret_4, f_Tl__fuel(), v_es3_10); ({ __auto_type v_ret2_11 = s11->u.C_Tl__W.f_v; __auto_type v_es4_12 = s11->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s13 = f_Tl__body(p_r, p_cx, v_body_6, v_es4_12); ({ __auto_type v_b2_13 = s13->u.C_Tl__W.f_v; __auto_type v_es5_14 = s13->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Fn* o15 = (struct E_Tl__W__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Fn, u) + sizeof(((struct E_Tl__W__Ast__Fn*)0)->u.C_Tl__W))); o15->tag = 0; o15->u.C_Tl__W.f_v = ({ struct E_Ast__Fn* o15 = (struct E_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o15->tag = 0; o15->u.C_Ast__Fn.f_line = v_line_0; o15->u.C_Ast__Fn.f_name = v_n_1; o15->u.C_Ast__Fn.f_groups = v_gs2_7; o15->u.C_Ast__Fn.f_params = v_ps2_9; o15->u.C_Ast__Fn.f_ret = v_ret2_11; o15->u.C_Ast__Fn.f_exit = v_exit_5; o15->u.C_Ast__Fn.f_body = v_b2_13; o15; }); o15->u.C_Tl__W.f_es = v_es5_14; o15; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Tl__W__Ast__Body* f_Tl__body(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Body* p_b, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ __auto_type v_cs_0 = s0->u.C_Ast__Def.f_cs; __auto_type v_e_1 = s0->u.C_Ast__Def.f_e; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__expr(p_r, p_cx, v_e_1, p_es); ({ __auto_type v_e2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Body* o4 = (struct E_Tl__W__Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Body, u) + sizeof(((struct E_Tl__W__Ast__Body*)0)->u.C_Tl__W))); o4->tag = 0; o4->u.C_Tl__W.f_v = ({ struct E_Ast__Body* o4 = (struct E_Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Def))); o4->tag = 0; o4->u.C_Ast__Def.f_cs = v_cs_0; o4->u.C_Ast__Def.f_e = v_e2_2; o4; }); o4->u.C_Tl__W.f_es = v_es2_3; o4; }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_cs_0 = s0->u.C_Ast__Spec.f_cs; __auto_type v_e_1 = s0->u.C_Ast__Spec.f_e; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__expr(p_r, p_cx, v_e_1, p_es); ({ __auto_type v_e2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Body* o4 = (struct E_Tl__W__Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Body, u) + sizeof(((struct E_Tl__W__Ast__Body*)0)->u.C_Tl__W))); o4->tag = 0; o4->u.C_Tl__W.f_v = ({ struct E_Ast__Body* o4 = (struct E_Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Spec))); o4->tag = 2; o4->u.C_Ast__Spec.f_cs = v_cs_0; o4->u.C_Ast__Spec.f_e = v_e2_2; o4; }); o4->u.C_Tl__W.f_es = v_es2_3; o4; }); res_; }); }); }); res_; }); }) : ({ ({ struct E_Tl__W__Ast__Body* o0 = (struct E_Tl__W__Ast__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Body, u) + sizeof(((struct E_Tl__W__Ast__Body*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_b; o0->u.C_Tl__W.f_es = p_es; o0; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Group* f_Tl__groups(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Group* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Group* o0 = (struct E_Tl__W__Coll__List_1_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Group*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Group(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__binders(p_r, p_cx, v_bs_2, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_bs2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Coll__List__Ast__Group* t3 = ({ struct E_Coll__List__Ast__Group* o5 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ast__Group* o5 = (struct E_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Types))); o5->tag = 0; o5->u.C_Ast__Types.f_bs = v_bs2_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); struct E_Coll__List__Tl__Err* t4 = v_es2_4; p_r = t0; p_cx = t1; p_gs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Group*){0}; }); res_; }); }); }); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__binders(p_r, p_cx, v_bs_2, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_bs2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Coll__List__Ast__Group* t3 = ({ struct E_Coll__List__Ast__Group* o5 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ast__Group* o5 = (struct E_Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Evidence))); o5->tag = 1; o5->u.C_Ast__Evidence.f_bs = v_bs2_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); struct E_Coll__List__Tl__Err* t4 = v_es2_4; p_r = t0; p_cx = t1; p_gs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Group*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Coll__List__Ast__Group* t3 = ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_g_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); struct E_Coll__List__Tl__Err* t4 = p_es; p_r = t0; p_cx = t1; p_gs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Group*){0}; }); }); }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Binder* f_Tl__binders(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Binder* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Binder* o0 = (struct E_Tl__W__Coll__List_1_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Binder*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Binder(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Binder.f_line; __auto_type v_x_3 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_4 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_4, f_Tl__fuel(), p_es); ({ __auto_type v_t2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Ast__Binder* t3 = ({ struct E_Coll__List__Ast__Binder* o7 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Binder* o7 = (struct E_Ast__Binder*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Binder, u) + sizeof(((struct E_Ast__Binder*)0)->u.C_Ast__Binder))); o7->tag = 0; o7->u.C_Ast__Binder.f_line = v_line_2; o7->u.C_Ast__Binder.f_x = v_x_3; o7->u.C_Ast__Binder.f_ty = v_t2_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__Tl__Err* t4 = v_es2_6; p_r = t0; p_cx = t1; p_bs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Binder*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Case* f_Tl__cases(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Case* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Case* o0 = (struct E_Tl__W__Coll__List_1_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Case*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Case(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Case.f_line; __auto_type v_n_3 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_4 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__binders(p_r, p_cx, v_fs_4, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_fs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Case* t2 = v_rest_1; struct E_Coll__List__Ast__Case* t3 = ({ struct E_Coll__List__Ast__Case* o7 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Case* o7 = (struct E_Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Case, u) + sizeof(((struct E_Ast__Case*)0)->u.C_Ast__Case))); o7->tag = 0; o7->u.C_Ast__Case.f_line = v_line_2; o7->u.C_Ast__Case.f_name = v_n_3; o7->u.C_Ast__Case.f_fields = v_fs2_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__Tl__Err* t4 = v_es2_6; p_r = t0; p_cx = t1; p_cs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Case*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Op* f_Tl__ops(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Op* p_os, struct E_Coll__List__Ast__Op* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Op* o0 = (struct E_Tl__W__Coll__List_1_Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Op, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Op*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Op(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Op.f_line; __auto_type v_n_3 = s2->u.C_Ast__Op.f_name; __auto_type v_ps_4 = s2->u.C_Ast__Op.f_params; __auto_type v_ret_5 = s2->u.C_Ast__Op.f_ret; __auto_type v_tr_6 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__binders(p_r, p_cx, v_ps_4, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_ps2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es2_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_ret_5, f_Tl__fuel(), v_es2_8); ({ __auto_type v_ret2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es3_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Op* t2 = v_rest_1; struct E_Coll__List__Ast__Op* t3 = ({ struct E_Coll__List__Ast__Op* o11 = (struct E_Coll__List__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Op, u) + sizeof(((struct E_Coll__List__Ast__Op*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_Ast__Op* o11 = (struct E_Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Op, u) + sizeof(((struct E_Ast__Op*)0)->u.C_Ast__Op))); o11->tag = 0; o11->u.C_Ast__Op.f_line = v_line_2; o11->u.C_Ast__Op.f_name = v_n_3; o11->u.C_Ast__Op.f_params = v_ps2_7; o11->u.C_Ast__Op.f_ret = v_ret2_9; o11->u.C_Ast__Op.f_trans = v_tr_6; o11; }); o11->u.C_Coll__Cons.f_t = p_acc; o11; }); struct E_Coll__List__Tl__Err* t4 = v_es3_10; p_r = t0; p_cx = t1; p_os = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Op*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Expr* f_Tl__expr(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_2 = s0->u.C_Ast__Call.f_targs; __auto_type v_ch_3 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_4 = s0->u.C_Ast__Call.f_args; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__tys(p_r, p_cx, v_targs_2, (&N_Coll__Nil__Ast__Ty), p_es); ({ __auto_type v_ts2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__exprs(p_r, p_cx, v_xs_4, (&N_Coll__Nil__Ast__Expr), v_es2_6); ({ __auto_type v_xs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o9 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o9 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Call))); o9->tag = 5; o9->u.C_Ast__Call.f_line = v_line_0; o9->u.C_Ast__Call.f_f = v_f_1; o9->u.C_Ast__Call.f_targs = v_ts2_5; o9->u.C_Ast__Call.f_chosen = v_ch_3; o9->u.C_Ast__Call.f_args = v_xs2_7; o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; __auto_type v_recv_1 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_2 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_3 = s0->u.C_Ast__Method.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__exprs(p_r, p_cx, v_xs_3, (&N_Coll__Nil__Ast__Expr), p_es); ({ __auto_type v_xs2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o6 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o6->tag = 0; o6->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o6 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Method))); o6->tag = 6; o6->u.C_Ast__Method.f_line = v_line_0; o6->u.C_Ast__Method.f_recv = v_recv_1; o6->u.C_Ast__Method.f_op = v_op_2; o6->u.C_Ast__Method.f_args = v_xs2_4; o6; }); o6->u.C_Tl__W.f_es = v_es2_5; o6; }); res_; }); }); }); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bin.f_line; __auto_type v_op_1 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_2 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_3 = s0->u.C_Ast__Bin.f_rhs; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__expr(p_r, p_cx, v_l_2, p_es); ({ __auto_type v_l2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_r, p_cx, v_x_3, v_es2_5); ({ __auto_type v_x2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o8 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o8 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bin))); o8->tag = 7; o8->u.C_Ast__Bin.f_line = v_line_0; o8->u.C_Ast__Bin.f_op = v_op_1; o8->u.C_Ast__Bin.f_l = v_l2_4; o8->u.C_Ast__Bin.f_rhs = v_x2_6; o8; }); o8->u.C_Tl__W.f_es = v_es3_7; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Un.f_line; __auto_type v_op_1 = s0->u.C_Ast__Un.f_op; __auto_type v_x_2 = s0->u.C_Ast__Un.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_r, p_cx, v_x_2, p_es); ({ __auto_type v_x2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o5 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Un))); o5->tag = 8; o5->u.C_Ast__Un.f_line = v_line_0; o5->u.C_Ast__Un.f_op = v_op_1; o5->u.C_Ast__Un.f_e = v_x2_3; o5; }); o5->u.C_Tl__W.f_es = v_es2_4; o5; }); res_; }); }); }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__expr(p_r, p_cx, v_c_1, p_es); ({ __auto_type v_c2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_r, p_cx, v_t_2, v_es2_5); ({ __auto_type v_t2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s8 = f_Tl__expr(p_r, p_cx, v_x_3, v_es3_7); ({ __auto_type v_x2_8 = s8->u.C_Tl__W.f_v; __auto_type v_es4_9 = s8->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o10 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o10->tag = 0; o10->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o10 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__If))); o10->tag = 9; o10->u.C_Ast__If.f_line = v_line_0; o10->u.C_Ast__If.f_c = v_c2_4; o10->u.C_Ast__If.f_t = v_t2_6; o10->u.C_Ast__If.f_e = v_x2_8; o10; }); o10->u.C_Tl__W.f_es = v_es4_9; o10; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_r, p_cx, v_s_1, p_es); ({ __auto_type v_s2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__arms(p_r, p_cx, v_arms_2, (&N_Coll__Nil__Ast__Arm), v_es2_4); ({ __auto_type v_as2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es3_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o7 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Match))); o7->tag = 10; o7->u.C_Ast__Match.f_line = v_line_0; o7->u.C_Ast__Match.f_s = v_s2_3; o7->u.C_Ast__Match.f_arms = v_as2_5; o7; }); o7->u.C_Tl__W.f_es = v_es3_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Block.f_line; __auto_type v_ss_1 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_2 = s0->u.C_Ast__Block.f_last; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__stmts(p_r, p_cx, v_ss_1, (&N_Coll__Nil__Ast__Stmt), p_es); ({ __auto_type v_ss2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__expr(p_r, p_cx, v_last_2, v_es2_4); ({ __auto_type v_l2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es3_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o7 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o7->tag = 11; o7->u.C_Ast__Block.f_line = v_line_0; o7->u.C_Ast__Block.f_stmts = v_ss2_3; o7->u.C_Ast__Block.f_last = v_l2_5; o7; }); o7->u.C_Tl__W.f_es = v_es3_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_r, p_cx, v_c_1, p_es); ({ __auto_type v_c2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__expr(p_r, p_cx, v_b_2, v_es2_4); ({ __auto_type v_b2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es3_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o7 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__While))); o7->tag = 12; o7->u.C_Ast__While.f_line = v_line_0; o7->u.C_Ast__While.f_c = v_c2_3; o7->u.C_Ast__While.f_body = v_b2_5; o7; }); o7->u.C_Tl__W.f_es = v_es3_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 13 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Assign.f_line; __auto_type v_x_1 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_2 = s0->u.C_Ast__Assign.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_r, p_cx, v_v_2, p_es); ({ __auto_type v_v2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o5 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Assign))); o5->tag = 13; o5->u.C_Ast__Assign.f_line = v_line_0; o5->u.C_Ast__Assign.f_x = v_x_1; o5->u.C_Ast__Assign.f_e = v_v2_3; o5; }); o5->u.C_Tl__W.f_es = v_es2_4; o5; }); res_; }); }); }); res_; }); }) : s0->tag == 14 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Quant.f_line; __auto_type v_q_1 = s0->u.C_Ast__Quant.f_q; __auto_type v_x_2 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_3 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_4 = s0->u.C_Ast__Quant.f_e; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_3, f_Tl__fuel(), p_es); ({ __auto_type v_t2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__expr(p_r, p_cx, v_b_4, v_es2_6); ({ __auto_type v_b2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o9 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o9 = (struct E_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Quant))); o9->tag = 14; o9->u.C_Ast__Quant.f_line = v_line_0; o9->u.C_Ast__Quant.f_q = v_q_1; o9->u.C_Ast__Quant.f_x = v_x_2; o9->u.C_Ast__Quant.f_t = v_t2_5; o9->u.C_Ast__Quant.f_e = v_b2_7; o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ struct E_Tl__W__Ast__Expr* o0 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_e; o0->u.C_Tl__W.f_es = p_es; o0; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Expr* f_Tl__exprs(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Expr* o0 = (struct E_Tl__W__Coll__List_1_Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Expr*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Expr(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__expr(p_r, p_cx, v_x_0, p_es); ({ __auto_type v_x2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Expr* t2 = v_rest_1; struct E_Coll__List__Ast__Expr* t3 = ({ struct E_Coll__List__Ast__Expr* o4 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_r = t0; p_cx = t1; p_xs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Expr*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Arm* f_Tl__arms(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Ast__Arm* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Arm* o0 = (struct E_Tl__W__Coll__List_1_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Arm*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Arm(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Arm.f_line; __auto_type v_p_3 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_4 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__expr(p_r, p_cx, v_b_4, p_es); ({ __auto_type v_b2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Arm* t2 = v_rest_1; struct E_Coll__List__Ast__Arm* t3 = ({ struct E_Coll__List__Ast__Arm* o7 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Arm* o7 = (struct E_Ast__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Arm, u) + sizeof(((struct E_Ast__Arm*)0)->u.C_Ast__Arm))); o7->tag = 0; o7->u.C_Ast__Arm.f_line = v_line_2; o7->u.C_Ast__Arm.f_p = v_p_3; o7->u.C_Ast__Arm.f_body = v_b2_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__Tl__Err* t4 = v_es2_6; p_r = t0; p_cx = t1; p_as = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Arm*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Stmt* f_Tl__stmts(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Ast__Stmt* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Stmt* o0 = (struct E_Tl__W__Coll__List_1_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Stmt, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Stmt*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Stmt(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__stmt(p_r, p_cx, v_s_0, p_es); ({ __auto_type v_s2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Stmt* t2 = v_rest_1; struct E_Coll__List__Ast__Stmt* t3 = ({ struct E_Coll__List__Ast__Stmt* o4 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_s2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_r = t0; p_cx = t1; p_ss = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Stmt*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Stmt* f_Tl__stmt(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Ast__Stmt* p_s, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Val.f_line; __auto_type v_x_1 = s0->u.C_Ast__Val.f_x; __auto_type v_ann_2 = s0->u.C_Ast__Val.f_ann; __auto_type v_e_3 = s0->u.C_Ast__Val.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__ann(p_r, p_cx, v_ann_2, p_es); ({ __auto_type v_a2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_r, p_cx, v_e_3, v_es2_5); ({ __auto_type v_e2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o8 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Val))); o8->tag = 0; o8->u.C_Ast__Val.f_line = v_line_0; o8->u.C_Ast__Val.f_x = v_x_1; o8->u.C_Ast__Val.f_ann = v_a2_4; o8->u.C_Ast__Val.f_e = v_e2_6; o8; }); o8->u.C_Tl__W.f_es = v_es3_7; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Var.f_line; __auto_type v_x_1 = s0->u.C_Ast__Var.f_x; __auto_type v_ann_2 = s0->u.C_Ast__Var.f_ann; __auto_type v_e_3 = s0->u.C_Ast__Var.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__ann(p_r, p_cx, v_ann_2, p_es); ({ __auto_type v_a2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_r, p_cx, v_e_3, v_es2_5); ({ __auto_type v_e2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o8 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Var))); o8->tag = 1; o8->u.C_Ast__Var.f_line = v_line_0; o8->u.C_Ast__Var.f_x = v_x_1; o8->u.C_Ast__Var.f_ann = v_a2_4; o8->u.C_Ast__Var.f_e = v_e2_6; o8; }); o8->u.C_Tl__W.f_es = v_es3_7; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Handle.f_line; __auto_type v_x_1 = s0->u.C_Ast__Handle.f_x; __auto_type v_h_2 = s0->u.C_Ast__Handle.f_h; __auto_type v_xs_3 = s0->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__exprs(p_r, p_cx, v_xs_3, (&N_Coll__Nil__Ast__Expr), p_es); ({ __auto_type v_xs2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o6 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o6->tag = 0; o6->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o6 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Handle))); o6->tag = 2; o6->u.C_Ast__Handle.f_line = v_line_0; o6->u.C_Ast__Handle.f_x = v_x_1; o6->u.C_Ast__Handle.f_h = v_h_2; o6->u.C_Ast__Handle.f_args = v_xs2_4; o6; }); o6->u.C_Tl__W.f_es = v_es2_5; o6; }); res_; }); }); }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Do.f_e; ({ __auto_type res_ = ({ __auto_type s1 = f_Tl__expr(p_r, p_cx, v_e_0, p_es); ({ __auto_type v_e2_1 = s1->u.C_Tl__W.f_v; __auto_type v_es2_2 = s1->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o3 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o3->tag = 0; o3->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o3 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Do))); o3->tag = 3; o3->u.C_Ast__Do.f_e = v_e2_1; o3; }); o3->u.C_Tl__W.f_es = v_es2_2; o3; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Check.f_line; __auto_type v_k_1 = s0->u.C_Ast__Check.f_k; __auto_type v_e_2 = s0->u.C_Ast__Check.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_r, p_cx, v_e_2, p_es); ({ __auto_type v_e2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o5 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o5 = (struct E_Ast__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Check))); o5->tag = 4; o5->u.C_Ast__Check.f_line = v_line_0; o5->u.C_Ast__Check.f_k = v_k_1; o5->u.C_Ast__Check.f_e = v_e2_3; o5; }); o5->u.C_Tl__W.f_es = v_es2_4; o5; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Coll__Option_1_Ast__Ty* f_Tl__ann(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__Option__Ast__Ty* p_a, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__Option_1_Ast__Ty* o0 = (struct E_Tl__W__Coll__Option_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__Option_1_Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_a; o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_0, f_Tl__fuel(), p_es); ({ __auto_type v_t2_1 = s1->u.C_Tl__W.f_v; __auto_type v_es2_2 = s1->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Coll__Option_1_Ast__Ty* o3 = (struct E_Tl__W__Coll__Option_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__Option_1_Ast__Ty*)0)->u.C_Tl__W))); o3->tag = 0; o3->u.C_Tl__W.f_v = ({ struct E_Coll__Option__Ast__Ty* o3 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_t2_1; o3; }); o3->u.C_Tl__W.f_es = v_es2_2; o3; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tys(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Ty* o0 = (struct E_Tl__W__Coll__List_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Ty(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__ty(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_0, f_Tl__fuel(), p_es); ({ __auto_type v_t2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Ty* t2 = v_rest_1; struct E_Coll__List__Ast__Ty* t3 = ({ struct E_Coll__List__Ast__Ty* o4 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_t2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_r = t0; p_cx = t1; p_ts = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Ty*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Ty* f_Tl__ty(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__Ty* p_t, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_line_0 = s0->u.C_Ast__Ty.f_line; __auto_type v_n_1 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_2 = s0->u.C_Ast__Ty.f_args; __auto_type v_caps_3 = s0->u.C_Ast__Ty.f_caps; __auto_type v_vals_4 = s0->u.C_Ast__Ty.f_vals; ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = p_t; o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__Fuel))); o5->tag = 0; o5->u.C_Tl__Fuel.f_line = v_line_0; o5->u.C_Tl__Fuel.f_n = v_n_1; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }) : ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__tyArgs(p_r, p_cx, p_sub, p_cv, v_args_2, p_fuel, (&N_Coll__Nil__Ast__Ty), p_es); ({ __auto_type v_args2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = p_cx; ({ __auto_type v_tds_7 = s7->u.C_Tl__Cx.f_ts; ({ __auto_type res_ = ({ __auto_type s8 = f_Tl__btLookup(p_r, p_sub, v_n_1); s8->tag == 1 ? ({ __auto_type v_b_8 = s8->u.C_Coll__Some.f_v; ({ struct E_Tl__W__Ast__Ty* o9 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = v_b_8; o9->u.C_Tl__W.f_es = v_es2_6; o9; }); }) : ({ ({ __auto_type s8 = f_Coll__sLookup__Ast__TypeDecl(p_r, v_tds_7, v_n_1); s8->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o8 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o8 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o8->tag = 0; o8->u.C_Ast__Ty.f_line = v_line_0; o8->u.C_Ast__Ty.f_name = v_n_1; o8->u.C_Ast__Ty.f_args = v_args2_5; o8->u.C_Ast__Ty.f_caps = v_caps_3; o8->u.C_Ast__Ty.f_vals = v_vals_4; o8; }); o8->u.C_Tl__W.f_es = ((f_Coll__length__Ast__Expr(v_vals_4) == ((int64_t)0)) ? v_es2_6 : ({ struct E_Coll__List__Tl__Err* o8 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o8 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__NoVals))); o8->tag = 4; o8->u.C_Tl__NoVals.f_line = v_line_0; o8->u.C_Tl__NoVals.f_n = v_n_1; o8; }); o8->u.C_Coll__Cons.f_t = v_es2_6; o8; })); o8; }); }) : ({ __auto_type v_td_8 = s8->u.C_Coll__Some.f_v; (f_Tl__nominal(v_td_8) ? ({ struct E_Tl__W__Ast__Ty* o9 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o9 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o9->tag = 0; o9->u.C_Ast__Ty.f_line = v_line_0; o9->u.C_Ast__Ty.f_name = v_n_1; o9->u.C_Ast__Ty.f_args = v_args2_5; o9->u.C_Ast__Ty.f_caps = v_caps_3; o9->u.C_Ast__Ty.f_vals = v_vals_4; o9; }); o9->u.C_Tl__W.f_es = v_es2_6; o9; }) : f_Tl__apply(p_r, p_cx, p_cv, v_td_8, v_line_0, v_args2_5, v_caps_3, v_vals_4, p_fuel, v_es2_6)); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sLookup__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__TypeDecl(p_r, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl)), p_s); }); }); } -static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sFind__Ast__TypeDecl(srs_cap* p_r, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__TypeDecl); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__TypeDecl* o4 = (struct E_Coll__Option__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__TypeDecl, u) + sizeof(((struct E_Coll__Option__Ast__TypeDecl*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_r = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__TypeDecl*){0}; })); }); }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B2.f_k1 = p_k; o0->u.C_Coll__B2.f_v1 = p_v; o0->u.C_Coll__B2.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 1 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B2.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B2.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B2.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B2.f_b; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o4->tag = 1; o4->u.C_Coll__B2.f_a = v_a_0; o4->u.C_Coll__B2.f_k1 = v_k1_1; o4->u.C_Coll__B2.f_v1 = p_v; o4->u.C_Coll__B2.f_b = v_b_3; o4; }) : ((p_k < v_k1_1) ? f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v) : f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, p_k, p_v))); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_a_0 = s0->u.C_Coll__B3.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B3.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B3.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B3.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B3.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B3.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B3.f_c; ({ __auto_type res_ = ((p_k == v_k1_1) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = p_v; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = v_v2_5; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k == v_k2_4) ? ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o7 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o7->tag = 2; o7->u.C_Coll__B3.f_a = v_a_0; o7->u.C_Coll__B3.f_k1 = v_k1_1; o7->u.C_Coll__B3.f_v1 = v_v1_2; o7->u.C_Coll__B3.f_b = v_b_3; o7->u.C_Coll__B3.f_k2 = v_k2_4; o7->u.C_Coll__B3.f_v2 = p_v; o7->u.C_Coll__B3.f_c = v_c_6; o7; }) : ((p_k < v_k1_1) ? f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : ((p_k < v_k2_4) ? f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v) : f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, p_k, p_v))))); res_; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__B4.f_a; __auto_type v_k1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_v1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_b_3 = s0->u.C_Coll__B4.f_b; __auto_type v_k2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_v2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_c_6 = s0->u.C_Coll__B4.f_c; __auto_type v_k3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_v3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_d_9 = s0->u.C_Coll__B4.f_d; f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_a_0, v_k1_1, v_v1_2, v_b_3, v_k2_4, v_v2_5, v_c_6, v_k3_7, v_v3_8, v_d_9, p_k, p_v); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k1 = p_k; o0->u.C_Coll__B3.f_v1 = p_v; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k2 = p_k1; o0->u.C_Coll__B3.f_v2 = p_v1; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2L__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = v_l_0; o4->u.C_Coll__B3.f_k1 = v_km_1; o4->u.C_Coll__B3.f_v1 = v_vm_2; o4->u.C_Coll__B3.f_b = v_rr_3; o4->u.C_Coll__B3.f_k2 = p_k1; o4->u.C_Coll__B3.f_v2 = p_v1; o4->u.C_Coll__B3.f_c = p_b; o4; }); }); }); } +static struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type res_ = ((p_k == p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ((p_k < p_k2) ? ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }), p_k, p_v); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }) : ({ struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__Split))); o0->tag = 0; o0->u.C_Coll__Split.f_l = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__Split.f_k = p_k2; o0->u.C_Coll__Split.f_v = p_v2; o0->u.C_Coll__Split.f_r = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }), p_k, p_v); o0; }))); res_; }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B3.f_k2 = p_k; o0->u.C_Coll__B3.f_v2 = p_v; o0->u.C_Coll__B3.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_b, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_b, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift2R__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o4->tag = 2; o4->u.C_Coll__B3.f_a = p_a; o4->u.C_Coll__B3.f_k1 = p_k1; o4->u.C_Coll__B3.f_v1 = p_v1; o4->u.C_Coll__B3.f_b = v_l_0; o4->u.C_Coll__B3.f_k2 = v_km_1; o4->u.C_Coll__B3.f_v2 = v_vm_2; o4->u.C_Coll__B3.f_c = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k1 = p_k; o0->u.C_Coll__B4.f_v1 = p_v; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k2 = p_k1; o0->u.C_Coll__B4.f_v2 = p_v1; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k1, p_v1, p_b, p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k, p_v); o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3A__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = v_l_0; o4->u.C_Coll__B4.f_k1 = v_km_1; o4->u.C_Coll__B4.f_v1 = v_vm_2; o4->u.C_Coll__B4.f_b = v_rr_3; o4->u.C_Coll__B4.f_k2 = p_k1; o4->u.C_Coll__B4.f_v2 = p_v1; o4->u.C_Coll__B4.f_c = p_b; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k2 = p_k; o0->u.C_Coll__B4.f_v2 = p_v; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k3 = p_k2; o0->u.C_Coll__B4.f_v3 = p_v2; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k1, p_v1, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v), p_k2, p_v2, p_c); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_b, p_k, p_v); o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = p_c; o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3B__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = v_l_0; o4->u.C_Coll__B4.f_k2 = v_km_1; o4->u.C_Coll__B4.f_v2 = v_vm_2; o4->u.C_Coll__B4.f_c = v_rr_3; o4->u.C_Coll__B4.f_k3 = p_k2; o4->u.C_Coll__B4.f_v3 = p_v2; o4->u.C_Coll__B4.f_d = p_c; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bInto3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type s0 = p_c; s0->tag == 0 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o0->tag = 3; o0->u.C_Coll__B4.f_a = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k1 = p_k1; o0->u.C_Coll__B4.f_v1 = p_v1; o0->u.C_Coll__B4.f_b = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k2 = p_k2; o0->u.C_Coll__B4.f_v2 = p_v2; o0->u.C_Coll__B4.f_c = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0->u.C_Coll__B4.f_k3 = p_k; o0->u.C_Coll__B4.f_v3 = p_v; o0->u.C_Coll__B4.f_d = (&N_Coll__BTip__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl); o0; }); }) : s0->tag == 3 ? ({ __auto_type v_x1_0 = s0->u.C_Coll__B4.f_a; __auto_type v_y1_1 = s0->u.C_Coll__B4.f_k1; __auto_type v_z1_2 = s0->u.C_Coll__B4.f_v1; __auto_type v_x2_3 = s0->u.C_Coll__B4.f_b; __auto_type v_y2_4 = s0->u.C_Coll__B4.f_k2; __auto_type v_z2_5 = s0->u.C_Coll__B4.f_v2; __auto_type v_x3_6 = s0->u.C_Coll__B4.f_c; __auto_type v_y3_7 = s0->u.C_Coll__B4.f_k3; __auto_type v_z3_8 = s0->u.C_Coll__B4.f_v3; __auto_type v_x4_9 = s0->u.C_Coll__B4.f_d; f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_a, p_k1, p_v1, p_b, p_k2, p_v2, f_Coll__bSplitIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, v_x1_0, v_y1_1, v_z1_2, v_x2_3, v_y2_4, v_z2_5, v_x3_6, v_y3_7, v_z3_8, v_x4_9, p_k, p_v)); }) : s0->tag == 1 ? ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_c, p_k, p_v); o0; }); }) : ({ ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B3))); o0->tag = 2; o0->u.C_Coll__B3.f_a = p_a; o0->u.C_Coll__B3.f_k1 = p_k1; o0->u.C_Coll__B3.f_v1 = p_v1; o0->u.C_Coll__B3.f_b = p_b; o0->u.C_Coll__B3.f_k2 = p_k2; o0->u.C_Coll__B3.f_v2 = p_v2; o0->u.C_Coll__B3.f_c = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, p_c, p_k, p_v); o0; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bLift3C__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__Split__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_s) { return ({ __auto_type s0 = p_s; ({ __auto_type v_l_0 = s0->u.C_Coll__Split.f_l; __auto_type v_km_1 = s0->u.C_Coll__Split.f_k; __auto_type v_vm_2 = s0->u.C_Coll__Split.f_v; __auto_type v_rr_3 = s0->u.C_Coll__Split.f_r; ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o4 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B4))); o4->tag = 3; o4->u.C_Coll__B4.f_a = p_a; o4->u.C_Coll__B4.f_k1 = p_k1; o4->u.C_Coll__B4.f_v1 = p_v1; o4->u.C_Coll__B4.f_b = p_b; o4->u.C_Coll__B4.f_k2 = p_k2; o4->u.C_Coll__B4.f_v2 = p_v2; o4->u.C_Coll__B4.f_c = v_l_0; o4->u.C_Coll__B4.f_k3 = v_km_1; o4->u.C_Coll__B4.f_v3 = v_vm_2; o4->u.C_Coll__B4.f_d = v_rr_3; o4; }); }); }); } +static struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* f_Coll__bRootIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_a, int64_t p_k1, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v1, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_b, int64_t p_k2, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v2, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_c, int64_t p_k3, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v3, struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_d, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_v) { return ({ __auto_type res_ = f_Coll__bIns__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_eff__Region, ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_a; o0->u.C_Coll__B2.f_k1 = p_k1; o0->u.C_Coll__B2.f_v1 = p_v1; o0->u.C_Coll__B2.f_b = p_b; o0; }); o0->u.C_Coll__B2.f_k1 = p_k2; o0->u.C_Coll__B2.f_v1 = p_v2; o0->u.C_Coll__B2.f_b = ({ struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* o0 = (struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl, u) + sizeof(((struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl*)0)->u.C_Coll__B2))); o0->tag = 1; o0->u.C_Coll__B2.f_a = p_c; o0->u.C_Coll__B2.f_k1 = p_k3; o0->u.C_Coll__B2.f_v1 = p_v3; o0->u.C_Coll__B2.f_b = p_d; o0; }); o0; }), p_k, p_v); res_; }); } +static struct E_Tl__W__Coll__List_1_Ast__Decl* f_Tl__decls(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Decl* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Decl* o0 = (struct E_Tl__W__Coll__List_1_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Decl, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Decl*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Decl(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__decl(p_eff__Region, p_cx, v_d_0, p_es); ({ __auto_type v_d2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ast__Decl* t3 = ({ struct E_Coll__List__Ast__Decl* o4 = (struct E_Coll__List__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Decl, u) + sizeof(((struct E_Coll__List__Ast__Decl*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_d2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Decl*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Decl* f_Tl__decl(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Decl* p_d, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_d; s0->tag == 0 ? ({ __auto_type v_f_0 = s0->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s1 = f_Tl__fn(p_eff__Region, p_cx, v_f_0, p_es); ({ __auto_type v_f2_1 = s1->u.C_Tl__W.f_v; __auto_type v_es2_2 = s1->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o3 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o3->tag = 0; o3->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o3 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DFn))); o3->tag = 0; o3->u.C_Ast__DFn.f_f = v_f2_1; o3; }); o3->u.C_Tl__W.f_es = v_es2_2; o3; }); res_; }); }); }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_e_0 = s0->u.C_Ast__DEnum.f_e; ({ __auto_type res_ = ({ __auto_type s1 = v_e_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Enum.f_line; __auto_type v_n_2 = s1->u.C_Ast__Enum.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Enum.f_groups; __auto_type v_cases_4 = s1->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__groups(p_eff__Region, p_cx, v_gs_3, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__cases(p_eff__Region, p_cx, v_cases_4, (&N_Coll__Nil__Ast__Case), v_es2_6); ({ __auto_type v_cs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o9 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o9 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DEnum))); o9->tag = 1; o9->u.C_Ast__DEnum.f_e = ({ struct E_Ast__Enum* o9 = (struct E_Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Enum, u) + sizeof(((struct E_Ast__Enum*)0)->u.C_Ast__Enum))); o9->tag = 0; o9->u.C_Ast__Enum.f_line = v_line_1; o9->u.C_Ast__Enum.f_name = v_n_2; o9->u.C_Ast__Enum.f_groups = v_gs2_5; o9->u.C_Ast__Enum.f_cases = v_cs2_7; o9; }); o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_p_0 = s0->u.C_Ast__DProto.f_p; ({ __auto_type res_ = ({ __auto_type s1 = v_p_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Proto.f_line; __auto_type v_n_2 = s1->u.C_Ast__Proto.f_name; __auto_type v_sts_3 = s1->u.C_Ast__Proto.f_states; __auto_type v_st_4 = s1->u.C_Ast__Proto.f_start; __auto_type v_ends_5 = s1->u.C_Ast__Proto.f_ends; __auto_type v_dop_6 = s1->u.C_Ast__Proto.f_dropOp; __auto_type v_ops_7 = s1->u.C_Ast__Proto.f_ops; __auto_type v_rules_8 = s1->u.C_Ast__Proto.f_rules; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__ops(p_eff__Region, p_cx, v_ops_7, (&N_Coll__Nil__Ast__Op), p_es); ({ __auto_type v_ops2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es2_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o11 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o11->tag = 0; o11->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o11 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DProto))); o11->tag = 2; o11->u.C_Ast__DProto.f_p = ({ struct E_Ast__Proto* o11 = (struct E_Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Proto, u) + sizeof(((struct E_Ast__Proto*)0)->u.C_Ast__Proto))); o11->tag = 0; o11->u.C_Ast__Proto.f_line = v_line_1; o11->u.C_Ast__Proto.f_name = v_n_2; o11->u.C_Ast__Proto.f_states = v_sts_3; o11->u.C_Ast__Proto.f_start = v_st_4; o11->u.C_Ast__Proto.f_ends = v_ends_5; o11->u.C_Ast__Proto.f_dropOp = v_dop_6; o11->u.C_Ast__Proto.f_ops = v_ops2_9; o11->u.C_Ast__Proto.f_rules = v_rules_8; o11; }); o11; }); o11->u.C_Tl__W.f_es = v_es2_10; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_h_0 = s0->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s1 = v_h_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Handler.f_line; __auto_type v_n_2 = s1->u.C_Ast__Handler.f_name; __auto_type v_p_3 = s1->u.C_Ast__Handler.f_proto; __auto_type v_fs_4 = s1->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__fns(p_eff__Region, p_cx, v_fs_4, (&N_Coll__Nil__Ast__Fn), p_es); ({ __auto_type v_fs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o7 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o7 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DHandler))); o7->tag = 3; o7->u.C_Ast__DHandler.f_h = ({ struct E_Ast__Handler* o7 = (struct E_Ast__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Handler, u) + sizeof(((struct E_Ast__Handler*)0)->u.C_Ast__Handler))); o7->tag = 0; o7->u.C_Ast__Handler.f_line = v_line_1; o7->u.C_Ast__Handler.f_name = v_n_2; o7->u.C_Ast__Handler.f_proto = v_p_3; o7->u.C_Ast__Handler.f_fns = v_fs2_5; o7; }); o7; }); o7->u.C_Tl__W.f_es = v_es2_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_t_0 = s0->u.C_Ast__DTrait.f_t; ({ __auto_type res_ = ({ __auto_type s1 = v_t_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Trait.f_line; __auto_type v_n_2 = s1->u.C_Ast__Trait.f_name; __auto_type v_gs_3 = s1->u.C_Ast__Trait.f_groups; __auto_type v_sigs_4 = s1->u.C_Ast__Trait.f_sigs; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__groups(p_eff__Region, p_cx, v_gs_3, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__fns(p_eff__Region, p_cx, v_sigs_4, (&N_Coll__Nil__Ast__Fn), v_es2_6); ({ __auto_type v_sigs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o9 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o9 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DTrait))); o9->tag = 4; o9->u.C_Ast__DTrait.f_t = ({ struct E_Ast__Trait* o9 = (struct E_Ast__Trait*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Trait, u) + sizeof(((struct E_Ast__Trait*)0)->u.C_Ast__Trait))); o9->tag = 0; o9->u.C_Ast__Trait.f_line = v_line_1; o9->u.C_Ast__Trait.f_name = v_n_2; o9->u.C_Ast__Trait.f_groups = v_gs2_5; o9->u.C_Ast__Trait.f_sigs = v_sigs2_7; o9; }); o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 5 ? ({ __auto_type v_g_0 = s0->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s1 = v_g_0; ({ __auto_type v_line_1 = s1->u.C_Ast__Given.f_line; __auto_type v_gs_2 = s1->u.C_Ast__Given.f_groups; __auto_type v_head_3 = s1->u.C_Ast__Given.f_head; __auto_type v_fs_4 = s1->u.C_Ast__Given.f_fns; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__groups(p_eff__Region, p_cx, v_gs_2, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_head_3, f_Tl__fuel(), v_es2_6); ({ __auto_type v_h2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__fns(p_eff__Region, p_cx, v_fs_4, (&N_Coll__Nil__Ast__Fn), v_es3_8); ({ __auto_type v_fs2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es4_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Decl* o11 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o11->tag = 0; o11->u.C_Tl__W.f_v = ({ struct E_Ast__Decl* o11 = (struct E_Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Decl, u) + sizeof(((struct E_Ast__Decl*)0)->u.C_Ast__DGiven))); o11->tag = 5; o11->u.C_Ast__DGiven.f_g = ({ struct E_Ast__Given* o11 = (struct E_Ast__Given*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Given, u) + sizeof(((struct E_Ast__Given*)0)->u.C_Ast__Given))); o11->tag = 0; o11->u.C_Ast__Given.f_line = v_line_1; o11->u.C_Ast__Given.f_groups = v_gs2_5; o11->u.C_Ast__Given.f_head = v_h2_7; o11->u.C_Ast__Given.f_fns = v_fs2_9; o11; }); o11; }); o11->u.C_Tl__W.f_es = v_es4_10; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ __auto_type v_td_0 = s0->u.C_Ast__DType.f_t; ({ struct E_Tl__W__Ast__Decl* o1 = (struct E_Tl__W__Ast__Decl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Decl, u) + sizeof(((struct E_Tl__W__Ast__Decl*)0)->u.C_Tl__W))); o1->tag = 0; o1->u.C_Tl__W.f_v = p_d; o1->u.C_Tl__W.f_es = f_Tl__typeDecl(p_eff__Region, v_td_0, p_es); o1; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Fn* f_Tl__fns(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Fn* o0 = (struct E_Tl__W__Coll__List_1_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Fn, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Fn*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Fn(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__fn(p_eff__Region, p_cx, v_f_0, p_es); ({ __auto_type v_f2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Coll__List__Ast__Fn* t3 = ({ struct E_Coll__List__Ast__Fn* o4 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_f2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_eff__Region = t0; p_cx = t1; p_fs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Fn* f_Tl__fn(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Fn* p_f, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_n_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_exit_5 = s0->u.C_Ast__Fn.f_exit; __auto_type v_body_6 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__groups(p_eff__Region, p_cx, v_gs_2, (&N_Coll__Nil__Ast__Group), p_es); ({ __auto_type v_gs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es2_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__binders(p_eff__Region, p_cx, v_ps_3, (&N_Coll__Nil__Ast__Binder), v_es2_8); ({ __auto_type v_ps2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es3_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s11 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_ret_4, f_Tl__fuel(), v_es3_10); ({ __auto_type v_ret2_11 = s11->u.C_Tl__W.f_v; __auto_type v_es4_12 = s11->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s13 = f_Tl__body(p_eff__Region, p_cx, v_body_6, v_es4_12); ({ __auto_type v_b2_13 = s13->u.C_Tl__W.f_v; __auto_type v_es5_14 = s13->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Fn* o15 = (struct E_Tl__W__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Fn, u) + sizeof(((struct E_Tl__W__Ast__Fn*)0)->u.C_Tl__W))); o15->tag = 0; o15->u.C_Tl__W.f_v = ({ struct E_Ast__Fn* o15 = (struct E_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o15->tag = 0; o15->u.C_Ast__Fn.f_line = v_line_0; o15->u.C_Ast__Fn.f_name = v_n_1; o15->u.C_Ast__Fn.f_groups = v_gs2_7; o15->u.C_Ast__Fn.f_params = v_ps2_9; o15->u.C_Ast__Fn.f_ret = v_ret2_11; o15->u.C_Ast__Fn.f_exit = v_exit_5; o15->u.C_Ast__Fn.f_body = v_b2_13; o15; }); o15->u.C_Tl__W.f_es = v_es5_14; o15; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Tl__W__Ast__Body* f_Tl__body(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Body* p_b, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_b; s0->tag == 0 ? ({ __auto_type v_cs_0 = s0->u.C_Ast__Def.f_cs; __auto_type v_e_1 = s0->u.C_Ast__Def.f_e; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__expr(p_eff__Region, p_cx, v_e_1, p_es); ({ __auto_type v_e2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Body* o4 = (struct E_Tl__W__Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Body, u) + sizeof(((struct E_Tl__W__Ast__Body*)0)->u.C_Tl__W))); o4->tag = 0; o4->u.C_Tl__W.f_v = ({ struct E_Ast__Body* o4 = (struct E_Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Def))); o4->tag = 0; o4->u.C_Ast__Def.f_cs = v_cs_0; o4->u.C_Ast__Def.f_e = v_e2_2; o4; }); o4->u.C_Tl__W.f_es = v_es2_3; o4; }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_cs_0 = s0->u.C_Ast__Spec.f_cs; __auto_type v_e_1 = s0->u.C_Ast__Spec.f_e; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__expr(p_eff__Region, p_cx, v_e_1, p_es); ({ __auto_type v_e2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Body* o4 = (struct E_Tl__W__Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Body, u) + sizeof(((struct E_Tl__W__Ast__Body*)0)->u.C_Tl__W))); o4->tag = 0; o4->u.C_Tl__W.f_v = ({ struct E_Ast__Body* o4 = (struct E_Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Body, u) + sizeof(((struct E_Ast__Body*)0)->u.C_Ast__Spec))); o4->tag = 2; o4->u.C_Ast__Spec.f_cs = v_cs_0; o4->u.C_Ast__Spec.f_e = v_e2_2; o4; }); o4->u.C_Tl__W.f_es = v_es2_3; o4; }); res_; }); }); }); res_; }); }) : ({ ({ struct E_Tl__W__Ast__Body* o0 = (struct E_Tl__W__Ast__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Body, u) + sizeof(((struct E_Tl__W__Ast__Body*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_b; o0->u.C_Tl__W.f_es = p_es; o0; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Group* f_Tl__groups(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Group* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Group* o0 = (struct E_Tl__W__Coll__List_1_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Group, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Group*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Group(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__binders(p_eff__Region, p_cx, v_bs_2, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_bs2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Coll__List__Ast__Group* t3 = ({ struct E_Coll__List__Ast__Group* o5 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ast__Group* o5 = (struct E_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Types))); o5->tag = 0; o5->u.C_Ast__Types.f_bs = v_bs2_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); struct E_Coll__List__Tl__Err* t4 = v_es2_4; p_eff__Region = t0; p_cx = t1; p_gs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Group*){0}; }); res_; }); }); }); res_; }); }) : s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__binders(p_eff__Region, p_cx, v_bs_2, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_bs2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Coll__List__Ast__Group* t3 = ({ struct E_Coll__List__Ast__Group* o5 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ast__Group* o5 = (struct E_Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Group, u) + sizeof(((struct E_Ast__Group*)0)->u.C_Ast__Evidence))); o5->tag = 1; o5->u.C_Ast__Evidence.f_bs = v_bs2_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); struct E_Coll__List__Tl__Err* t4 = v_es2_4; p_eff__Region = t0; p_cx = t1; p_gs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Group*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Group* t2 = v_rest_1; struct E_Coll__List__Ast__Group* t3 = ({ struct E_Coll__List__Ast__Group* o2 = (struct E_Coll__List__Ast__Group*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Group, u) + sizeof(((struct E_Coll__List__Ast__Group*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_g_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); struct E_Coll__List__Tl__Err* t4 = p_es; p_eff__Region = t0; p_cx = t1; p_gs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Group*){0}; }); }); }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Binder* f_Tl__binders(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Binder* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Binder* o0 = (struct E_Tl__W__Coll__List_1_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Binder, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Binder*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Binder(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Binder.f_line; __auto_type v_x_3 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_4 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_4, f_Tl__fuel(), p_es); ({ __auto_type v_t2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Ast__Binder* t3 = ({ struct E_Coll__List__Ast__Binder* o7 = (struct E_Coll__List__Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Binder, u) + sizeof(((struct E_Coll__List__Ast__Binder*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Binder* o7 = (struct E_Ast__Binder*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Binder, u) + sizeof(((struct E_Ast__Binder*)0)->u.C_Ast__Binder))); o7->tag = 0; o7->u.C_Ast__Binder.f_line = v_line_2; o7->u.C_Ast__Binder.f_x = v_x_3; o7->u.C_Ast__Binder.f_ty = v_t2_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__Tl__Err* t4 = v_es2_6; p_eff__Region = t0; p_cx = t1; p_bs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Binder*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Case* f_Tl__cases(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Case* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Case* o0 = (struct E_Tl__W__Coll__List_1_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Case, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Case*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Case(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Case.f_line; __auto_type v_n_3 = s2->u.C_Ast__Case.f_name; __auto_type v_fs_4 = s2->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__binders(p_eff__Region, p_cx, v_fs_4, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_fs2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Case* t2 = v_rest_1; struct E_Coll__List__Ast__Case* t3 = ({ struct E_Coll__List__Ast__Case* o7 = (struct E_Coll__List__Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Case, u) + sizeof(((struct E_Coll__List__Ast__Case*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Case* o7 = (struct E_Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Case, u) + sizeof(((struct E_Ast__Case*)0)->u.C_Ast__Case))); o7->tag = 0; o7->u.C_Ast__Case.f_line = v_line_2; o7->u.C_Ast__Case.f_name = v_n_3; o7->u.C_Ast__Case.f_fields = v_fs2_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__Tl__Err* t4 = v_es2_6; p_eff__Region = t0; p_cx = t1; p_cs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Case*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Op* f_Tl__ops(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Op* p_os, struct E_Coll__List__Ast__Op* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Op* o0 = (struct E_Tl__W__Coll__List_1_Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Op, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Op*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Op(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Op.f_line; __auto_type v_n_3 = s2->u.C_Ast__Op.f_name; __auto_type v_ps_4 = s2->u.C_Ast__Op.f_params; __auto_type v_ret_5 = s2->u.C_Ast__Op.f_ret; __auto_type v_tr_6 = s2->u.C_Ast__Op.f_trans; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__binders(p_eff__Region, p_cx, v_ps_4, (&N_Coll__Nil__Ast__Binder), p_es); ({ __auto_type v_ps2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es2_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_ret_5, f_Tl__fuel(), v_es2_8); ({ __auto_type v_ret2_9 = s9->u.C_Tl__W.f_v; __auto_type v_es3_10 = s9->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Op* t2 = v_rest_1; struct E_Coll__List__Ast__Op* t3 = ({ struct E_Coll__List__Ast__Op* o11 = (struct E_Coll__List__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Op, u) + sizeof(((struct E_Coll__List__Ast__Op*)0)->u.C_Coll__Cons))); o11->tag = 1; o11->u.C_Coll__Cons.f_h = ({ struct E_Ast__Op* o11 = (struct E_Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Op, u) + sizeof(((struct E_Ast__Op*)0)->u.C_Ast__Op))); o11->tag = 0; o11->u.C_Ast__Op.f_line = v_line_2; o11->u.C_Ast__Op.f_name = v_n_3; o11->u.C_Ast__Op.f_params = v_ps2_7; o11->u.C_Ast__Op.f_ret = v_ret2_9; o11->u.C_Ast__Op.f_trans = v_tr_6; o11; }); o11->u.C_Coll__Cons.f_t = p_acc; o11; }); struct E_Coll__List__Tl__Err* t4 = v_es3_10; p_eff__Region = t0; p_cx = t1; p_os = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Op*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Expr* f_Tl__expr(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_2 = s0->u.C_Ast__Call.f_targs; __auto_type v_ch_3 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_4 = s0->u.C_Ast__Call.f_args; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__tys(p_eff__Region, p_cx, v_targs_2, (&N_Coll__Nil__Ast__Ty), p_es); ({ __auto_type v_ts2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__exprs(p_eff__Region, p_cx, v_xs_4, (&N_Coll__Nil__Ast__Expr), v_es2_6); ({ __auto_type v_xs2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o9 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o9 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Call))); o9->tag = 5; o9->u.C_Ast__Call.f_line = v_line_0; o9->u.C_Ast__Call.f_f = v_f_1; o9->u.C_Ast__Call.f_targs = v_ts2_5; o9->u.C_Ast__Call.f_chosen = v_ch_3; o9->u.C_Ast__Call.f_args = v_xs2_7; o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; __auto_type v_recv_1 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_2 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_3 = s0->u.C_Ast__Method.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__exprs(p_eff__Region, p_cx, v_xs_3, (&N_Coll__Nil__Ast__Expr), p_es); ({ __auto_type v_xs2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o6 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o6->tag = 0; o6->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o6 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Method))); o6->tag = 6; o6->u.C_Ast__Method.f_line = v_line_0; o6->u.C_Ast__Method.f_recv = v_recv_1; o6->u.C_Ast__Method.f_op = v_op_2; o6->u.C_Ast__Method.f_args = v_xs2_4; o6; }); o6->u.C_Tl__W.f_es = v_es2_5; o6; }); res_; }); }); }); res_; }); }) : s0->tag == 7 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bin.f_line; __auto_type v_op_1 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_2 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_3 = s0->u.C_Ast__Bin.f_rhs; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__expr(p_eff__Region, p_cx, v_l_2, p_es); ({ __auto_type v_l2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_eff__Region, p_cx, v_x_3, v_es2_5); ({ __auto_type v_x2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o8 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o8 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Bin))); o8->tag = 7; o8->u.C_Ast__Bin.f_line = v_line_0; o8->u.C_Ast__Bin.f_op = v_op_1; o8->u.C_Ast__Bin.f_l = v_l2_4; o8->u.C_Ast__Bin.f_rhs = v_x2_6; o8; }); o8->u.C_Tl__W.f_es = v_es3_7; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 8 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Un.f_line; __auto_type v_op_1 = s0->u.C_Ast__Un.f_op; __auto_type v_x_2 = s0->u.C_Ast__Un.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_eff__Region, p_cx, v_x_2, p_es); ({ __auto_type v_x2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o5 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Un))); o5->tag = 8; o5->u.C_Ast__Un.f_line = v_line_0; o5->u.C_Ast__Un.f_op = v_op_1; o5->u.C_Ast__Un.f_e = v_x2_3; o5; }); o5->u.C_Tl__W.f_es = v_es2_4; o5; }); res_; }); }); }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__expr(p_eff__Region, p_cx, v_c_1, p_es); ({ __auto_type v_c2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_eff__Region, p_cx, v_t_2, v_es2_5); ({ __auto_type v_t2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s8 = f_Tl__expr(p_eff__Region, p_cx, v_x_3, v_es3_7); ({ __auto_type v_x2_8 = s8->u.C_Tl__W.f_v; __auto_type v_es4_9 = s8->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o10 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o10->tag = 0; o10->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o10 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__If))); o10->tag = 9; o10->u.C_Ast__If.f_line = v_line_0; o10->u.C_Ast__If.f_c = v_c2_4; o10->u.C_Ast__If.f_t = v_t2_6; o10->u.C_Ast__If.f_e = v_x2_8; o10; }); o10->u.C_Tl__W.f_es = v_es4_9; o10; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_eff__Region, p_cx, v_s_1, p_es); ({ __auto_type v_s2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__arms(p_eff__Region, p_cx, v_arms_2, (&N_Coll__Nil__Ast__Arm), v_es2_4); ({ __auto_type v_as2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es3_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o7 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Match))); o7->tag = 10; o7->u.C_Ast__Match.f_line = v_line_0; o7->u.C_Ast__Match.f_s = v_s2_3; o7->u.C_Ast__Match.f_arms = v_as2_5; o7; }); o7->u.C_Tl__W.f_es = v_es3_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Block.f_line; __auto_type v_ss_1 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_2 = s0->u.C_Ast__Block.f_last; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__stmts(p_eff__Region, p_cx, v_ss_1, (&N_Coll__Nil__Ast__Stmt), p_es); ({ __auto_type v_ss2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__expr(p_eff__Region, p_cx, v_last_2, v_es2_4); ({ __auto_type v_l2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es3_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o7 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Block))); o7->tag = 11; o7->u.C_Ast__Block.f_line = v_line_0; o7->u.C_Ast__Block.f_stmts = v_ss2_3; o7->u.C_Ast__Block.f_last = v_l2_5; o7; }); o7->u.C_Tl__W.f_es = v_es3_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_eff__Region, p_cx, v_c_1, p_es); ({ __auto_type v_c2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__expr(p_eff__Region, p_cx, v_b_2, v_es2_4); ({ __auto_type v_b2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es3_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o7 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o7->tag = 0; o7->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o7 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__While))); o7->tag = 12; o7->u.C_Ast__While.f_line = v_line_0; o7->u.C_Ast__While.f_c = v_c2_3; o7->u.C_Ast__While.f_body = v_b2_5; o7; }); o7->u.C_Tl__W.f_es = v_es3_6; o7; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 13 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Assign.f_line; __auto_type v_x_1 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_2 = s0->u.C_Ast__Assign.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_eff__Region, p_cx, v_v_2, p_es); ({ __auto_type v_v2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o5 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o5 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Assign))); o5->tag = 13; o5->u.C_Ast__Assign.f_line = v_line_0; o5->u.C_Ast__Assign.f_x = v_x_1; o5->u.C_Ast__Assign.f_e = v_v2_3; o5; }); o5->u.C_Tl__W.f_es = v_es2_4; o5; }); res_; }); }); }); res_; }); }) : s0->tag == 14 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Quant.f_line; __auto_type v_q_1 = s0->u.C_Ast__Quant.f_q; __auto_type v_x_2 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_3 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_4 = s0->u.C_Ast__Quant.f_e; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_3, f_Tl__fuel(), p_es); ({ __auto_type v_t2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__expr(p_eff__Region, p_cx, v_b_4, v_es2_6); ({ __auto_type v_b2_7 = s7->u.C_Tl__W.f_v; __auto_type v_es3_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Expr* o9 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Expr* o9 = (struct E_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Expr, u) + sizeof(((struct E_Ast__Expr*)0)->u.C_Ast__Quant))); o9->tag = 14; o9->u.C_Ast__Quant.f_line = v_line_0; o9->u.C_Ast__Quant.f_q = v_q_1; o9->u.C_Ast__Quant.f_x = v_x_2; o9->u.C_Ast__Quant.f_t = v_t2_5; o9->u.C_Ast__Quant.f_e = v_b2_7; o9; }); o9->u.C_Tl__W.f_es = v_es3_8; o9; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ struct E_Tl__W__Ast__Expr* o0 = (struct E_Tl__W__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Expr, u) + sizeof(((struct E_Tl__W__Ast__Expr*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_e; o0->u.C_Tl__W.f_es = p_es; o0; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Expr* f_Tl__exprs(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Ast__Expr* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Expr* o0 = (struct E_Tl__W__Coll__List_1_Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Expr, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Expr*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Expr(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__expr(p_eff__Region, p_cx, v_x_0, p_es); ({ __auto_type v_x2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Expr* t2 = v_rest_1; struct E_Coll__List__Ast__Expr* t3 = ({ struct E_Coll__List__Ast__Expr* o4 = (struct E_Coll__List__Ast__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Expr, u) + sizeof(((struct E_Coll__List__Ast__Expr*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_eff__Region = t0; p_cx = t1; p_xs = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Expr*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Arm* f_Tl__arms(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Ast__Arm* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Arm* o0 = (struct E_Tl__W__Coll__List_1_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Arm, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Arm*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Arm(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Arm.f_line; __auto_type v_p_3 = s2->u.C_Ast__Arm.f_p; __auto_type v_b_4 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__expr(p_eff__Region, p_cx, v_b_4, p_es); ({ __auto_type v_b2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Arm* t2 = v_rest_1; struct E_Coll__List__Ast__Arm* t3 = ({ struct E_Coll__List__Ast__Arm* o7 = (struct E_Coll__List__Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Arm, u) + sizeof(((struct E_Coll__List__Ast__Arm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ast__Arm* o7 = (struct E_Ast__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Arm, u) + sizeof(((struct E_Ast__Arm*)0)->u.C_Ast__Arm))); o7->tag = 0; o7->u.C_Ast__Arm.f_line = v_line_2; o7->u.C_Ast__Arm.f_p = v_p_3; o7->u.C_Ast__Arm.f_body = v_b2_5; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__Tl__Err* t4 = v_es2_6; p_eff__Region = t0; p_cx = t1; p_as = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Arm*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Stmt* f_Tl__stmts(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Ast__Stmt* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Stmt* o0 = (struct E_Tl__W__Coll__List_1_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Stmt, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Stmt*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Stmt(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__stmt(p_eff__Region, p_cx, v_s_0, p_es); ({ __auto_type v_s2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Stmt* t2 = v_rest_1; struct E_Coll__List__Ast__Stmt* t3 = ({ struct E_Coll__List__Ast__Stmt* o4 = (struct E_Coll__List__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Stmt, u) + sizeof(((struct E_Coll__List__Ast__Stmt*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_s2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_eff__Region = t0; p_cx = t1; p_ss = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Stmt*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Stmt* f_Tl__stmt(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Ast__Stmt* p_s, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_s; s0->tag == 0 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Val.f_line; __auto_type v_x_1 = s0->u.C_Ast__Val.f_x; __auto_type v_ann_2 = s0->u.C_Ast__Val.f_ann; __auto_type v_e_3 = s0->u.C_Ast__Val.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__ann(p_eff__Region, p_cx, v_ann_2, p_es); ({ __auto_type v_a2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_eff__Region, p_cx, v_e_3, v_es2_5); ({ __auto_type v_e2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o8 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Val))); o8->tag = 0; o8->u.C_Ast__Val.f_line = v_line_0; o8->u.C_Ast__Val.f_x = v_x_1; o8->u.C_Ast__Val.f_ann = v_a2_4; o8->u.C_Ast__Val.f_e = v_e2_6; o8; }); o8->u.C_Tl__W.f_es = v_es3_7; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 1 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Var.f_line; __auto_type v_x_1 = s0->u.C_Ast__Var.f_x; __auto_type v_ann_2 = s0->u.C_Ast__Var.f_ann; __auto_type v_e_3 = s0->u.C_Ast__Var.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__ann(p_eff__Region, p_cx, v_ann_2, p_es); ({ __auto_type v_a2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__expr(p_eff__Region, p_cx, v_e_3, v_es2_5); ({ __auto_type v_e2_6 = s6->u.C_Tl__W.f_v; __auto_type v_es3_7 = s6->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o8 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o8 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Var))); o8->tag = 1; o8->u.C_Ast__Var.f_line = v_line_0; o8->u.C_Ast__Var.f_x = v_x_1; o8->u.C_Ast__Var.f_ann = v_a2_4; o8->u.C_Ast__Var.f_e = v_e2_6; o8; }); o8->u.C_Tl__W.f_es = v_es3_7; o8; }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Handle.f_line; __auto_type v_x_1 = s0->u.C_Ast__Handle.f_x; __auto_type v_h_2 = s0->u.C_Ast__Handle.f_h; __auto_type v_xs_3 = s0->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__exprs(p_eff__Region, p_cx, v_xs_3, (&N_Coll__Nil__Ast__Expr), p_es); ({ __auto_type v_xs2_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o6 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o6->tag = 0; o6->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o6 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Handle))); o6->tag = 2; o6->u.C_Ast__Handle.f_line = v_line_0; o6->u.C_Ast__Handle.f_x = v_x_1; o6->u.C_Ast__Handle.f_h = v_h_2; o6->u.C_Ast__Handle.f_args = v_xs2_4; o6; }); o6->u.C_Tl__W.f_es = v_es2_5; o6; }); res_; }); }); }); res_; }); }) : s0->tag == 3 ? ({ __auto_type v_e_0 = s0->u.C_Ast__Do.f_e; ({ __auto_type res_ = ({ __auto_type s1 = f_Tl__expr(p_eff__Region, p_cx, v_e_0, p_es); ({ __auto_type v_e2_1 = s1->u.C_Tl__W.f_v; __auto_type v_es2_2 = s1->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o3 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o3->tag = 0; o3->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o3 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Do))); o3->tag = 3; o3->u.C_Ast__Do.f_e = v_e2_1; o3; }); o3->u.C_Tl__W.f_es = v_es2_2; o3; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Check.f_line; __auto_type v_k_1 = s0->u.C_Ast__Check.f_k; __auto_type v_e_2 = s0->u.C_Ast__Check.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__expr(p_eff__Region, p_cx, v_e_2, p_es); ({ __auto_type v_e2_3 = s3->u.C_Tl__W.f_v; __auto_type v_es2_4 = s3->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Stmt* o5 = (struct E_Tl__W__Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Stmt, u) + sizeof(((struct E_Tl__W__Ast__Stmt*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Stmt* o5 = (struct E_Ast__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Stmt, u) + sizeof(((struct E_Ast__Stmt*)0)->u.C_Ast__Check))); o5->tag = 4; o5->u.C_Ast__Check.f_line = v_line_0; o5->u.C_Ast__Check.f_k = v_k_1; o5->u.C_Ast__Check.f_e = v_e2_3; o5; }); o5->u.C_Tl__W.f_es = v_es2_4; o5; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__Option_1_Ast__Ty* f_Tl__ann(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__Option__Ast__Ty* p_a, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__Option_1_Ast__Ty* o0 = (struct E_Tl__W__Coll__Option_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__Option_1_Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_a; o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_0, f_Tl__fuel(), p_es); ({ __auto_type v_t2_1 = s1->u.C_Tl__W.f_v; __auto_type v_es2_2 = s1->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ struct E_Tl__W__Coll__Option_1_Ast__Ty* o3 = (struct E_Tl__W__Coll__Option_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__Option_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__Option_1_Ast__Ty*)0)->u.C_Tl__W))); o3->tag = 0; o3->u.C_Tl__W.f_v = ({ struct E_Coll__Option__Ast__Ty* o3 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_t2_1; o3; }); o3->u.C_Tl__W.f_es = v_es2_2; o3; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tys(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Ty* o0 = (struct E_Tl__W__Coll__List_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Ty(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__ty(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_t_0, f_Tl__fuel(), p_es); ({ __auto_type v_t2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Ty* t2 = v_rest_1; struct E_Coll__List__Ast__Ty* t3 = ({ struct E_Coll__List__Ast__Ty* o4 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_t2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t4 = v_es2_3; p_eff__Region = t0; p_cx = t1; p_ts = t2; p_acc = t3; p_es = t4; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Ty*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Ty* f_Tl__ty(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__Ty* p_t, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_line_0 = s0->u.C_Ast__Ty.f_line; __auto_type v_n_1 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_2 = s0->u.C_Ast__Ty.f_args; __auto_type v_caps_3 = s0->u.C_Ast__Ty.f_caps; __auto_type v_vals_4 = s0->u.C_Ast__Ty.f_vals; ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = p_t; o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__Fuel))); o5->tag = 0; o5->u.C_Tl__Fuel.f_line = v_line_0; o5->u.C_Tl__Fuel.f_n = v_n_1; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }) : ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__tyArgs(p_eff__Region, p_cx, p_sub, p_cv, v_args_2, p_fuel, (&N_Coll__Nil__Ast__Ty), p_es); ({ __auto_type v_args2_5 = s5->u.C_Tl__W.f_v; __auto_type v_es2_6 = s5->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s7 = p_cx; ({ __auto_type v_tds_7 = s7->u.C_Tl__Cx.f_ts; ({ __auto_type res_ = ({ __auto_type s8 = f_Tl__btLookup(p_eff__Region, p_sub, v_n_1); s8->tag == 1 ? ({ __auto_type v_b_8 = s8->u.C_Coll__Some.f_v; ({ struct E_Tl__W__Ast__Ty* o9 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = v_b_8; o9->u.C_Tl__W.f_es = v_es2_6; o9; }); }) : ({ ({ __auto_type s8 = f_Coll__sLookup__Ast__TypeDecl(p_eff__Region, v_tds_7, v_n_1); s8->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o8 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o8->tag = 0; o8->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o8 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o8->tag = 0; o8->u.C_Ast__Ty.f_line = v_line_0; o8->u.C_Ast__Ty.f_name = v_n_1; o8->u.C_Ast__Ty.f_args = v_args2_5; o8->u.C_Ast__Ty.f_caps = v_caps_3; o8->u.C_Ast__Ty.f_vals = v_vals_4; o8; }); o8->u.C_Tl__W.f_es = ((f_Coll__length__Ast__Expr(v_vals_4) == ((int64_t)0)) ? v_es2_6 : ({ struct E_Coll__List__Tl__Err* o8 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o8 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__NoVals))); o8->tag = 4; o8->u.C_Tl__NoVals.f_line = v_line_0; o8->u.C_Tl__NoVals.f_n = v_n_1; o8; }); o8->u.C_Coll__Cons.f_t = v_es2_6; o8; })); o8; }); }) : ({ __auto_type v_td_8 = s8->u.C_Coll__Some.f_v; (f_Tl__nominal(v_td_8) ? ({ struct E_Tl__W__Ast__Ty* o9 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o9->tag = 0; o9->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o9 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o9->tag = 0; o9->u.C_Ast__Ty.f_line = v_line_0; o9->u.C_Ast__Ty.f_name = v_n_1; o9->u.C_Ast__Ty.f_args = v_args2_5; o9->u.C_Ast__Ty.f_caps = v_caps_3; o9->u.C_Ast__Ty.f_vals = v_vals_4; o9; }); o9->u.C_Tl__W.f_es = v_es2_6; o9; }) : f_Tl__apply(p_eff__Region, p_cx, p_cv, v_td_8, v_line_0, v_args2_5, v_caps_3, v_vals_4, p_fuel, v_es2_6)); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sLookup__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__SMap__Ast__TypeDecl* p_m, struct E_Sym__Sym* p_s) { return ({ __auto_type s0 = p_m; ({ __auto_type v_t_0 = s0->u.C_Coll__SMap.f_t; f_Coll__sFind__Ast__TypeDecl(p_eff__Region, f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(v_t_0, f_Sym__hash(p_s), (&N_Coll__Nil__Coll__SEntry_1_Ast__TypeDecl)), p_s); }); }); } +static struct E_Coll__Option__Ast__TypeDecl* f_Coll__sFind__Ast__TypeDecl(srs_cap* p_eff__Region, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_xs, struct E_Sym__Sym* p_s) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__TypeDecl); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_e_0; ({ __auto_type v_s2_2 = s2->u.C_Coll__SEntry.f_s; __auto_type v_v_3 = s2->u.C_Coll__SEntry.f_v; (f_Sym__eq(p_s, v_s2_2) ? ({ struct E_Coll__Option__Ast__TypeDecl* o4 = (struct E_Coll__Option__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__TypeDecl, u) + sizeof(((struct E_Coll__Option__Ast__TypeDecl*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* t1 = v_t_1; struct E_Sym__Sym* t2 = p_s; p_eff__Region = t0; p_xs = t1; p_s = t2; goto srs_tail; (struct E_Coll__Option__Ast__TypeDecl*){0}; })); }); }); }); }); } static struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* f_Coll__bTGetOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(struct E_Coll__BTree__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl* p_t, int64_t p_k, struct E_Coll__List__Coll__SEntry_1_Ast__TypeDecl* p_d) { return f_Coll__bValOr__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(f_Coll__bFind__Coll__List_1_Coll__SEntry_1_Ast__TypeDecl(p_t, p_k), p_k, p_d); } -static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tyArgs(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Ty* p_ts, int64_t p_fuel, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Ty* o0 = (struct E_Tl__W__Coll__List_1_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Ty(p_r, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__ty(p_r, p_cx, p_sub, p_cv, v_t_0, (p_fuel - ((int64_t)1)), p_es); ({ __auto_type v_t2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bt* t2 = p_sub; struct E_Coll__List__Tl__Bv* t3 = p_cv; struct E_Coll__List__Ast__Ty* t4 = v_rest_1; int64_t t5 = p_fuel; struct E_Coll__List__Ast__Ty* t6 = ({ struct E_Coll__List__Ast__Ty* o4 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_t2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t7 = v_es2_3; p_r = t0; p_cx = t1; p_sub = t2; p_cv = t3; p_ts = t4; p_fuel = t5; p_acc = t6; p_es = t7; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Ty*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__Ty* f_Tl__btLookup(srs_cap* p_r, struct E_Coll__List__Tl__Bt* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Ty); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Tl__Bt.f_x; __auto_type v_t_3 = s2->u.C_Tl__Bt.f_t; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Ast__Ty* o4 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Tl__Bt* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_r = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Ty* f_Tl__apply(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__TypeDecl* p_td, int64_t p_line, struct E_Coll__List__Ast__Ty* p_args, struct E_Ast__Caps* p_caps, struct E_Coll__List__Ast__Expr* p_vals, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_td; ({ __auto_type v_n_0 = s0->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_1 = s0->u.C_Ast__TypeDecl.f_groups; __auto_type v_vbs_2 = s0->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_3 = s0->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Ty__tparams(p_r, v_gs_1, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = (((f_Coll__length__Sym__Sym(v_tps_4) != f_Coll__length__Ast__Ty(p_args)) || (f_Coll__length__Ast__Binder(v_vbs_2) != f_Coll__length__Ast__Expr(p_vals))) ? ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o5 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o5->tag = 0; o5->u.C_Ast__Ty.f_line = p_line; o5->u.C_Ast__Ty.f_name = v_n_0; o5->u.C_Ast__Ty.f_args = p_args; o5->u.C_Ast__Ty.f_caps = p_caps; o5->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o5; }); o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__Arity))); o5->tag = 3; o5->u.C_Tl__Arity.f_line = p_line; o5->u.C_Tl__Arity.f_n = v_n_0; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }) : ({ __auto_type s5 = f_Tl__bindVals(p_r, p_cx, p_cv, v_vbs_2, p_vals, (&N_Coll__Nil__Tl__Bv)); s5->tag == 1 ? ({ ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o5 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o5->tag = 0; o5->u.C_Ast__Ty.f_line = p_line; o5->u.C_Ast__Ty.f_name = v_n_0; o5->u.C_Ast__Ty.f_args = p_args; o5->u.C_Ast__Ty.f_caps = p_caps; o5->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o5; }); o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__BadVal))); o5->tag = 2; o5->u.C_Tl__BadVal.f_line = p_line; o5->u.C_Tl__BadVal.f_n = v_n_0; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }); }) : s5->tag == 2 ? ({ ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o5 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o5->tag = 0; o5->u.C_Ast__Ty.f_line = p_line; o5->u.C_Ast__Ty.f_name = v_n_0; o5->u.C_Ast__Ty.f_args = p_args; o5->u.C_Ast__Ty.f_caps = p_caps; o5->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o5; }); o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__ArgType))); o5->tag = 5; o5->u.C_Tl__ArgType.f_line = p_line; o5->u.C_Tl__ArgType.f_n = v_n_0; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }); }) : ({ __auto_type v_cv2_5 = s5->u.C_Tl__Bound.f_cv; ({ struct E_Coll__List__Tl__Bt* v_sub_6 = f_Tl__zipBt(p_r, v_tps_4, p_args, (&N_Coll__Nil__Tl__Bt)); __auto_type res_ = ({ __auto_type s7 = f_Tl__reduce(p_r, p_cx, v_sub_6, v_cv2_5, v_n_0, p_line, v_body_3, p_fuel, p_es); ({ __auto_type v_res_7 = s7->u.C_Tl__W.f_v; __auto_type v_es2_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = v_res_7; ({ __auto_type v_rn_9 = s9->u.C_Ast__Ty.f_name; __auto_type v_rargs_10 = s9->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Ty* o11 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o11->tag = 0; o11->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o11 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o11->tag = 0; o11->u.C_Ast__Ty.f_line = p_line; o11->u.C_Ast__Ty.f_name = v_rn_9; o11->u.C_Ast__Ty.f_args = v_rargs_10; o11->u.C_Ast__Ty.f_caps = p_caps; o11->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o11; }); o11->u.C_Tl__W.f_es = v_es2_8; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); })); res_; }); }); }); res_; }); } -static struct E_Coll__List__Tl__Bt* f_Tl__zipBt(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Bt* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ts; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_trest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ast__Ty* t2 = v_trest_3; struct E_Coll__List__Tl__Bt* t3 = ({ struct E_Coll__List__Tl__Bt* o4 = (struct E_Coll__List__Tl__Bt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Bt, u) + sizeof(((struct E_Coll__List__Tl__Bt*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bt* o4 = (struct E_Tl__Bt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Bt, u) + sizeof(((struct E_Tl__Bt*)0)->u.C_Tl__Bt))); o4->tag = 0; o4->u.C_Tl__Bt.f_x = v_x_0; o4->u.C_Tl__Bt.f_t = v_t_2; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_xs = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Tl__Bt*){0}; }); }); }); }); }); } -static struct E_Tl__W__Ast__Ty* f_Tl__reduce(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__TBody* p_body, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ __auto_type v_t_0 = s0->u.C_Ast__Alias.f_t; f_Tl__ty(p_r, p_cx, p_sub, p_cv, v_t_0, (p_fuel - ((int64_t)1)), p_es); }) : s0->tag == 1 ? ({ __auto_type v_scrut_0 = s0->u.C_Ast__TyMatch.f_scrut; __auto_type v_arms_1 = s0->u.C_Ast__TyMatch.f_arms; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__ty(p_r, p_cx, p_sub, p_cv, v_scrut_0, (p_fuel - ((int64_t)1)), p_es); ({ __auto_type v_s_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = f_Tl__tyArm(p_r, p_cx, p_sub, p_cv, p_n, p_line, v_s_2, v_arms_1, p_fuel, v_es2_3); res_; }); }); }); res_; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ast__ValMatch.f_x; __auto_type v_arms_1 = s0->u.C_Ast__ValMatch.f_arms; ({ __auto_type s2 = f_Tl__bvLookup(p_r, p_cv, v_x_0); s2->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o2 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o2->tag = 0; o2->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o2 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o2->tag = 0; o2->u.C_Ast__Ty.f_line = p_line; o2->u.C_Ast__Ty.f_name = p_n; o2->u.C_Ast__Ty.f_args = (&N_Coll__Nil__Ast__Ty); o2->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o2->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o2; }); o2->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o2 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o2 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__BadVal))); o2->tag = 2; o2->u.C_Tl__BadVal.f_line = p_line; o2->u.C_Tl__BadVal.f_n = p_n; o2; }); o2->u.C_Coll__Cons.f_t = p_es; o2; }); o2; }); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Some.f_v; f_Tl__valArm(p_r, p_cx, p_sub, p_cv, p_n, p_line, v_v_2, v_arms_1, p_fuel, p_es); }); }); }); }); } -static struct E_Tl__W__Ast__Ty* f_Tl__tyArm(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__Ty* p_s, struct E_Coll__List__Ast__TyArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o0 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_s; o0->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o0 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o0 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__NoCase))); o0->tag = 1; o0->u.C_Tl__NoCase.f_line = p_line; o0->u.C_Tl__NoCase.f_n = p_n; o0; }); o0->u.C_Coll__Cons.f_t = p_es; o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_pat_2 = s2->u.C_Ast__TyArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__TyArm.f_res; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__ty(p_r, p_cx, p_sub, p_cv, v_pat_2, (p_fuel - ((int64_t)1)), p_es); ({ __auto_type v_p_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = (f_Tl__tyEq(v_p_4, p_s) ? f_Tl__ty(p_r, p_cx, p_sub, p_cv, v_res_3, (p_fuel - ((int64_t)1)), v_es2_5) : ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bt* t2 = p_sub; struct E_Coll__List__Tl__Bv* t3 = p_cv; struct E_Sym__Sym* t4 = p_n; int64_t t5 = p_line; struct E_Ast__Ty* t6 = p_s; struct E_Coll__List__Ast__TyArm* t7 = v_rest_1; int64_t t8 = p_fuel; struct E_Coll__List__Tl__Err* t9 = v_es2_5; p_r = t0; p_cx = t1; p_sub = t2; p_cv = t3; p_n = t4; p_line = t5; p_s = t6; p_arms = t7; p_fuel = t8; p_es = t9; goto srs_tail; (struct E_Tl__W__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Tl__W__Ast__Ty* f_Tl__valArm(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Tl__V* p_v, struct E_Coll__List__Ast__ValArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o0 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o0 = (struct E_Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o0->tag = 0; o0->u.C_Ast__Ty.f_line = p_line; o0->u.C_Ast__Ty.f_name = p_n; o0->u.C_Ast__Ty.f_args = (&N_Coll__Nil__Ast__Ty); o0->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o0->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o0; }); o0->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o0 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o0 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__NoCase))); o0->tag = 1; o0->u.C_Tl__NoCase.f_line = p_line; o0->u.C_Tl__NoCase.f_n = p_n; o0; }); o0->u.C_Coll__Cons.f_t = p_es; o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_pat_2 = s2->u.C_Ast__ValArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__ValArm.f_res; ({ __auto_type res_ = (f_Tl__fits(v_pat_2, p_v) ? f_Tl__ty(p_r, p_cx, p_sub, p_cv, v_res_3, (p_fuel - ((int64_t)1)), p_es) : ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bt* t2 = p_sub; struct E_Coll__List__Tl__Bv* t3 = p_cv; struct E_Sym__Sym* t4 = p_n; int64_t t5 = p_line; struct E_Tl__V* t6 = p_v; struct E_Coll__List__Ast__ValArm* t7 = v_rest_1; int64_t t8 = p_fuel; struct E_Coll__List__Tl__Err* t9 = p_es; p_r = t0; p_cx = t1; p_sub = t2; p_cv = t3; p_n = t4; p_line = t5; p_v = t6; p_arms = t7; p_fuel = t8; p_es = t9; goto srs_tail; (struct E_Tl__W__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Coll__List_1_Ast__Ty* f_Tl__tyArgs(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Ty* p_ts, int64_t p_fuel, struct E_Coll__List__Ast__Ty* p_acc, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ({ struct E_Tl__W__Coll__List_1_Ast__Ty* o0 = (struct E_Tl__W__Coll__List_1_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Coll__List_1_Ast__Ty, u) + sizeof(((struct E_Tl__W__Coll__List_1_Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = f_Coll__rev__Ast__Ty(p_eff__Region, p_acc); o0->u.C_Tl__W.f_es = p_es; o0; }); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__ty(p_eff__Region, p_cx, p_sub, p_cv, v_t_0, (p_fuel - ((int64_t)1)), p_es); ({ __auto_type v_t2_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bt* t2 = p_sub; struct E_Coll__List__Tl__Bv* t3 = p_cv; struct E_Coll__List__Ast__Ty* t4 = v_rest_1; int64_t t5 = p_fuel; struct E_Coll__List__Ast__Ty* t6 = ({ struct E_Coll__List__Ast__Ty* o4 = (struct E_Coll__List__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Ty, u) + sizeof(((struct E_Coll__List__Ast__Ty*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_t2_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); struct E_Coll__List__Tl__Err* t7 = v_es2_3; p_eff__Region = t0; p_cx = t1; p_sub = t2; p_cv = t3; p_ts = t4; p_fuel = t5; p_acc = t6; p_es = t7; goto srs_tail; (struct E_Tl__W__Coll__List_1_Ast__Ty*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__Ty* f_Tl__btLookup(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Bt* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Ty); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Tl__Bt.f_x; __auto_type v_t_3 = s2->u.C_Tl__Bt.f_t; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Ast__Ty* o4 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Tl__Bt* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_eff__Region = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Ty* f_Tl__apply(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Ast__TypeDecl* p_td, int64_t p_line, struct E_Coll__List__Ast__Ty* p_args, struct E_Ast__Caps* p_caps, struct E_Coll__List__Ast__Expr* p_vals, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_td; ({ __auto_type v_n_0 = s0->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_1 = s0->u.C_Ast__TypeDecl.f_groups; __auto_type v_vbs_2 = s0->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_3 = s0->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Ty__tparams(p_eff__Region, v_gs_1, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = (((f_Coll__length__Sym__Sym(v_tps_4) != f_Coll__length__Ast__Ty(p_args)) || (f_Coll__length__Ast__Binder(v_vbs_2) != f_Coll__length__Ast__Expr(p_vals))) ? ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o5 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o5->tag = 0; o5->u.C_Ast__Ty.f_line = p_line; o5->u.C_Ast__Ty.f_name = v_n_0; o5->u.C_Ast__Ty.f_args = p_args; o5->u.C_Ast__Ty.f_caps = p_caps; o5->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o5; }); o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__Arity))); o5->tag = 3; o5->u.C_Tl__Arity.f_line = p_line; o5->u.C_Tl__Arity.f_n = v_n_0; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }) : ({ __auto_type s5 = f_Tl__bindVals(p_eff__Region, p_cx, p_cv, v_vbs_2, p_vals, (&N_Coll__Nil__Tl__Bv)); s5->tag == 1 ? ({ ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o5 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o5->tag = 0; o5->u.C_Ast__Ty.f_line = p_line; o5->u.C_Ast__Ty.f_name = v_n_0; o5->u.C_Ast__Ty.f_args = p_args; o5->u.C_Ast__Ty.f_caps = p_caps; o5->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o5; }); o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__BadVal))); o5->tag = 2; o5->u.C_Tl__BadVal.f_line = p_line; o5->u.C_Tl__BadVal.f_n = v_n_0; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }); }) : s5->tag == 2 ? ({ ({ struct E_Tl__W__Ast__Ty* o5 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o5->tag = 0; o5->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o5 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o5->tag = 0; o5->u.C_Ast__Ty.f_line = p_line; o5->u.C_Ast__Ty.f_name = v_n_0; o5->u.C_Ast__Ty.f_args = p_args; o5->u.C_Ast__Ty.f_caps = p_caps; o5->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o5; }); o5->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__ArgType))); o5->tag = 5; o5->u.C_Tl__ArgType.f_line = p_line; o5->u.C_Tl__ArgType.f_n = v_n_0; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; }); o5; }); }) : ({ __auto_type v_cv2_5 = s5->u.C_Tl__Bound.f_cv; ({ struct E_Coll__List__Tl__Bt* v_sub_6 = f_Tl__zipBt(p_eff__Region, v_tps_4, p_args, (&N_Coll__Nil__Tl__Bt)); __auto_type res_ = ({ __auto_type s7 = f_Tl__reduce(p_eff__Region, p_cx, v_sub_6, v_cv2_5, v_n_0, p_line, v_body_3, p_fuel, p_es); ({ __auto_type v_res_7 = s7->u.C_Tl__W.f_v; __auto_type v_es2_8 = s7->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s9 = v_res_7; ({ __auto_type v_rn_9 = s9->u.C_Ast__Ty.f_name; __auto_type v_rargs_10 = s9->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ struct E_Tl__W__Ast__Ty* o11 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o11->tag = 0; o11->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o11 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o11->tag = 0; o11->u.C_Ast__Ty.f_line = p_line; o11->u.C_Ast__Ty.f_name = v_rn_9; o11->u.C_Ast__Ty.f_args = v_rargs_10; o11->u.C_Ast__Ty.f_caps = p_caps; o11->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o11; }); o11->u.C_Tl__W.f_es = v_es2_8; o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); })); res_; }); }); }); res_; }); } +static struct E_Coll__List__Tl__Bt* f_Tl__zipBt(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Bt* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ts; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_trest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ast__Ty* t2 = v_trest_3; struct E_Coll__List__Tl__Bt* t3 = ({ struct E_Coll__List__Tl__Bt* o4 = (struct E_Coll__List__Tl__Bt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Bt, u) + sizeof(((struct E_Coll__List__Tl__Bt*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bt* o4 = (struct E_Tl__Bt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Bt, u) + sizeof(((struct E_Tl__Bt*)0)->u.C_Tl__Bt))); o4->tag = 0; o4->u.C_Tl__Bt.f_x = v_x_0; o4->u.C_Tl__Bt.f_t = v_t_2; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_xs = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Tl__Bt*){0}; }); }); }); }); }); } +static struct E_Tl__W__Ast__Ty* f_Tl__reduce(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__TBody* p_body, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type s0 = p_body; s0->tag == 0 ? ({ __auto_type v_t_0 = s0->u.C_Ast__Alias.f_t; f_Tl__ty(p_eff__Region, p_cx, p_sub, p_cv, v_t_0, (p_fuel - ((int64_t)1)), p_es); }) : s0->tag == 1 ? ({ __auto_type v_scrut_0 = s0->u.C_Ast__TyMatch.f_scrut; __auto_type v_arms_1 = s0->u.C_Ast__TyMatch.f_arms; ({ __auto_type res_ = ({ __auto_type s2 = f_Tl__ty(p_eff__Region, p_cx, p_sub, p_cv, v_scrut_0, (p_fuel - ((int64_t)1)), p_es); ({ __auto_type v_s_2 = s2->u.C_Tl__W.f_v; __auto_type v_es2_3 = s2->u.C_Tl__W.f_es; ({ __auto_type res_ = f_Tl__tyArm(p_eff__Region, p_cx, p_sub, p_cv, p_n, p_line, v_s_2, v_arms_1, p_fuel, v_es2_3); res_; }); }); }); res_; }); }) : ({ __auto_type v_x_0 = s0->u.C_Ast__ValMatch.f_x; __auto_type v_arms_1 = s0->u.C_Ast__ValMatch.f_arms; ({ __auto_type s2 = f_Tl__bvLookup(p_eff__Region, p_cv, v_x_0); s2->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o2 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o2->tag = 0; o2->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o2 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o2->tag = 0; o2->u.C_Ast__Ty.f_line = p_line; o2->u.C_Ast__Ty.f_name = p_n; o2->u.C_Ast__Ty.f_args = (&N_Coll__Nil__Ast__Ty); o2->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o2->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o2; }); o2->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o2 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o2 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__BadVal))); o2->tag = 2; o2->u.C_Tl__BadVal.f_line = p_line; o2->u.C_Tl__BadVal.f_n = p_n; o2; }); o2->u.C_Coll__Cons.f_t = p_es; o2; }); o2; }); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Some.f_v; f_Tl__valArm(p_eff__Region, p_cx, p_sub, p_cv, p_n, p_line, v_v_2, v_arms_1, p_fuel, p_es); }); }); }); }); } +static struct E_Tl__W__Ast__Ty* f_Tl__tyArm(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Ast__Ty* p_s, struct E_Coll__List__Ast__TyArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o0 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = p_s; o0->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o0 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o0 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__NoCase))); o0->tag = 1; o0->u.C_Tl__NoCase.f_line = p_line; o0->u.C_Tl__NoCase.f_n = p_n; o0; }); o0->u.C_Coll__Cons.f_t = p_es; o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_pat_2 = s2->u.C_Ast__TyArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__TyArm.f_res; ({ __auto_type res_ = ({ __auto_type s4 = f_Tl__ty(p_eff__Region, p_cx, p_sub, p_cv, v_pat_2, (p_fuel - ((int64_t)1)), p_es); ({ __auto_type v_p_4 = s4->u.C_Tl__W.f_v; __auto_type v_es2_5 = s4->u.C_Tl__W.f_es; ({ __auto_type res_ = (f_Tl__tyEq(v_p_4, p_s) ? f_Tl__ty(p_eff__Region, p_cx, p_sub, p_cv, v_res_3, (p_fuel - ((int64_t)1)), v_es2_5) : ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bt* t2 = p_sub; struct E_Coll__List__Tl__Bv* t3 = p_cv; struct E_Sym__Sym* t4 = p_n; int64_t t5 = p_line; struct E_Ast__Ty* t6 = p_s; struct E_Coll__List__Ast__TyArm* t7 = v_rest_1; int64_t t8 = p_fuel; struct E_Coll__List__Tl__Err* t9 = v_es2_5; p_eff__Region = t0; p_cx = t1; p_sub = t2; p_cv = t3; p_n = t4; p_line = t5; p_s = t6; p_arms = t7; p_fuel = t8; p_es = t9; goto srs_tail; (struct E_Tl__W__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Tl__W__Ast__Ty* f_Tl__valArm(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Tl__Bv* p_cv, struct E_Sym__Sym* p_n, int64_t p_line, struct E_Tl__V* p_v, struct E_Coll__List__Ast__ValArm* p_arms, int64_t p_fuel, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ ({ struct E_Tl__W__Ast__Ty* o0 = (struct E_Tl__W__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__W__Ast__Ty, u) + sizeof(((struct E_Tl__W__Ast__Ty*)0)->u.C_Tl__W))); o0->tag = 0; o0->u.C_Tl__W.f_v = ({ struct E_Ast__Ty* o0 = (struct E_Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Ty, u) + sizeof(((struct E_Ast__Ty*)0)->u.C_Ast__Ty))); o0->tag = 0; o0->u.C_Ast__Ty.f_line = p_line; o0->u.C_Ast__Ty.f_name = p_n; o0->u.C_Ast__Ty.f_args = (&N_Coll__Nil__Ast__Ty); o0->u.C_Ast__Ty.f_caps = (&N_Ast__Inferred); o0->u.C_Ast__Ty.f_vals = (&N_Coll__Nil__Ast__Expr); o0; }); o0->u.C_Tl__W.f_es = ({ struct E_Coll__List__Tl__Err* o0 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o0 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__NoCase))); o0->tag = 1; o0->u.C_Tl__NoCase.f_line = p_line; o0->u.C_Tl__NoCase.f_n = p_n; o0; }); o0->u.C_Coll__Cons.f_t = p_es; o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_pat_2 = s2->u.C_Ast__ValArm.f_pat; __auto_type v_res_3 = s2->u.C_Ast__ValArm.f_res; ({ __auto_type res_ = (f_Tl__fits(v_pat_2, p_v) ? f_Tl__ty(p_eff__Region, p_cx, p_sub, p_cv, v_res_3, (p_fuel - ((int64_t)1)), p_es) : ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bt* t2 = p_sub; struct E_Coll__List__Tl__Bv* t3 = p_cv; struct E_Sym__Sym* t4 = p_n; int64_t t5 = p_line; struct E_Tl__V* t6 = p_v; struct E_Coll__List__Ast__ValArm* t7 = v_rest_1; int64_t t8 = p_fuel; struct E_Coll__List__Tl__Err* t9 = p_es; p_eff__Region = t0; p_cx = t1; p_sub = t2; p_cv = t3; p_n = t4; p_line = t5; p_v = t6; p_arms = t7; p_fuel = t8; p_es = t9; goto srs_tail; (struct E_Tl__W__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Tl__fits(struct E_Ast__VPat* p_p, struct E_Tl__V* p_v) { return ({ __auto_type s0 = p_p; s0->tag == 3 ? ({ true; }) : s0->tag == 0 ? ({ __auto_type v_i_0 = s0->u.C_Ast__VInt.f_v; ({ __auto_type s1 = p_v; s1->tag == 0 ? ({ __auto_type v_j_1 = s1->u.C_Tl__VI.f_v; (v_i_0 == v_j_1); }) : ({ false; }); }); }) : s0->tag == 2 ? ({ __auto_type v_b_0 = s0->u.C_Ast__VBool.f_v; ({ __auto_type s1 = p_v; s1->tag == 1 ? ({ __auto_type v_c_1 = s1->u.C_Tl__VB.f_v; (v_b_0 == v_c_1); }) : ({ false; }); }); }) : ({ __auto_type v_s_0 = s0->u.C_Ast__VStr.f_s; ({ __auto_type s1 = p_v; s1->tag == 2 ? ({ __auto_type v_u_1 = s1->u.C_Tl__VS.f_s; Str__eq(v_s_0, v_u_1); }) : ({ false; }); }); }); }); } static bool f_Tl__tyEq(struct E_Ast__Ty* p_a, struct E_Ast__Ty* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_m_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_xs_1 = s0->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ __auto_type s2 = p_b; ({ __auto_type v_n_2 = s2->u.C_Ast__Ty.f_name; __auto_type v_ys_3 = s2->u.C_Ast__Ty.f_args; ({ __auto_type res_ = (f_Sym__eq(v_m_0, v_n_2) && f_Tl__tysEq(v_xs_1, v_ys_3)); res_; }); }); }); res_; }); }); }); res_; }); } static bool f_Tl__tysEq(struct E_Coll__List__Ast__Ty* p_xs, struct E_Coll__List__Ast__Ty* p_ys) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ __auto_type s0 = p_ys; s0->tag == 0 ? ({ true; }) : ({ false; }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_xt_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ys; s2->tag == 0 ? ({ false; }) : ({ __auto_type v_y_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_yt_3 = s2->u.C_Coll__Cons.f_t; (f_Tl__tyEq(v_x_0, v_y_2) ? ({ struct E_Coll__List__Ast__Ty* t0 = v_xt_1; struct E_Coll__List__Ast__Ty* t1 = v_yt_3; p_xs = t0; p_ys = t1; goto srs_tail; (bool){0}; }) : false); }); }); }); }); } -static struct E_Tl__Vals* f_Tl__bindVals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Bv* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Tl__Vals* o0 = (struct E_Tl__Vals*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Vals, u) + sizeof(((struct E_Tl__Vals*)0)->u.C_Tl__Bound))); o0->tag = 0; o0->u.C_Tl__Bound.f_cv = p_acc; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ ({ struct E_Tl__Vals* o2 = (struct E_Tl__Vals*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Vals, u) + sizeof(((struct E_Tl__Vals*)0)->u.C_Tl__Bound))); o2->tag = 0; o2->u.C_Tl__Bound.f_cv = p_acc; o2; }); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_b_0; ({ __auto_type v_y_4 = s4->u.C_Ast__Binder.f_x; __auto_type v_t_5 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__eval(p_r, p_cx, p_cv, v_x_2, f_Tl__fuel()); s6->tag == 0 ? ({ (&N_Tl__NoValue); }) : ({ __auto_type v_v_6 = s6->u.C_Coll__Some.f_v; (f_Tl__fitsTy(v_t_5, v_v_6) ? ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_cv; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Ast__Expr* t4 = v_xrest_3; struct E_Coll__List__Tl__Bv* t5 = ({ struct E_Coll__List__Tl__Bv* o7 = (struct E_Coll__List__Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Bv, u) + sizeof(((struct E_Coll__List__Tl__Bv*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bv* o7 = (struct E_Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Bv, u) + sizeof(((struct E_Tl__Bv*)0)->u.C_Tl__Bv))); o7->tag = 0; o7->u.C_Tl__Bv.f_x = v_y_4; o7->u.C_Tl__Bv.f_v = v_v_6; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_cx = t1; p_cv = t2; p_bs = t3; p_xs = t4; p_acc = t5; goto srs_tail; (struct E_Tl__Vals*){0}; }) : (&N_Tl__Misfit)); }); }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Tl__Vals* f_Tl__bindVals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_cv, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Bv* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ ({ struct E_Tl__Vals* o0 = (struct E_Tl__Vals*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Vals, u) + sizeof(((struct E_Tl__Vals*)0)->u.C_Tl__Bound))); o0->tag = 0; o0->u.C_Tl__Bound.f_cv = p_acc; o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ ({ struct E_Tl__Vals* o2 = (struct E_Tl__Vals*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Vals, u) + sizeof(((struct E_Tl__Vals*)0)->u.C_Tl__Bound))); o2->tag = 0; o2->u.C_Tl__Bound.f_cv = p_acc; o2; }); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_b_0; ({ __auto_type v_y_4 = s4->u.C_Ast__Binder.f_x; __auto_type v_t_5 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s6 = f_Tl__eval(p_eff__Region, p_cx, p_cv, v_x_2, f_Tl__fuel()); s6->tag == 0 ? ({ (&N_Tl__NoValue); }) : ({ __auto_type v_v_6 = s6->u.C_Coll__Some.f_v; (f_Tl__fitsTy(v_t_5, v_v_6) ? ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_cv; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Ast__Expr* t4 = v_xrest_3; struct E_Coll__List__Tl__Bv* t5 = ({ struct E_Coll__List__Tl__Bv* o7 = (struct E_Coll__List__Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Bv, u) + sizeof(((struct E_Coll__List__Tl__Bv*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bv* o7 = (struct E_Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Bv, u) + sizeof(((struct E_Tl__Bv*)0)->u.C_Tl__Bv))); o7->tag = 0; o7->u.C_Tl__Bv.f_x = v_y_4; o7->u.C_Tl__Bv.f_v = v_v_6; o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_cx = t1; p_cv = t2; p_bs = t3; p_xs = t4; p_acc = t5; goto srs_tail; (struct E_Tl__Vals*){0}; }) : (&N_Tl__Misfit)); }); }); res_; }); }); }); res_; }); }); }); }); }); } static bool f_Tl__fitsTy(struct E_Ast__Ty* p_t, struct E_Tl__V* p_v) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; ({ srs_str v_s_1 = f_Sym__str(v_n_0); __auto_type res_ = ({ __auto_type s2 = p_v; s2->tag == 0 ? ({ Str__eq(v_s_1, ((srs_str){(const uint8_t*)"I64", 3})); }) : s2->tag == 1 ? ({ Str__eq(v_s_1, ((srs_str){(const uint8_t*)"Bool", 4})); }) : ({ Str__eq(v_s_1, ((srs_str){(const uint8_t*)"Str", 3})); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Tl__Err* f_Tl__typeDecl(srs_cap* p_r, struct E_Ast__TypeDecl* p_td, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_td; ({ __auto_type v_line_0 = s0->u.C_Ast__TypeDecl.f_line; __auto_type v_n_1 = s0->u.C_Ast__TypeDecl.f_name; __auto_type v_vbs_2 = s0->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_3 = s0->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__List__Tl__Err* v_es2_4 = f_Tl__binderTys(p_r, v_line_0, v_vbs_2, p_es); __auto_type res_ = ({ __auto_type s5 = v_body_3; s5->tag == 2 ? ({ __auto_type v_x_5 = s5->u.C_Ast__ValMatch.f_x; __auto_type v_arms_6 = s5->u.C_Ast__ValMatch.f_arms; ({ __auto_type s7 = f_Tl__binderTyOf(p_r, v_vbs_2, v_x_5); s7->tag == 1 ? ({ __auto_type v_t_7 = s7->u.C_Coll__Some.f_v; f_Tl__patTys(p_r, v_line_0, v_n_1, v_t_7, v_arms_6, v_es2_4); }) : ({ v_es2_4; }); }); }) : ({ v_es2_4; }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Tl__Err* f_Tl__binderTys(srs_cap* p_r, int64_t p_line, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_es; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ srs_str v_s_5 = f_Sym__str(v_tn_4); bool v_ok_6 = ((Str__eq(v_s_5, ((srs_str){(const uint8_t*)"I64", 3})) || Str__eq(v_s_5, ((srs_str){(const uint8_t*)"Bool", 4}))) || Str__eq(v_s_5, ((srs_str){(const uint8_t*)"Str", 3}))); __auto_type res_ = ({ srs_cap* t0 = p_r; int64_t t1 = p_line; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Tl__Err* t3 = (v_ok_6 ? p_es : ({ struct E_Coll__List__Tl__Err* o7 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o7 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__BinderType))); o7->tag = 6; o7->u.C_Tl__BinderType.f_line = p_line; o7->u.C_Tl__BinderType.f_x = v_x_2; o7; }); o7->u.C_Coll__Cons.f_t = p_es; o7; })); p_r = t0; p_line = t1; p_bs = t2; p_es = t3; goto srs_tail; (struct E_Coll__List__Tl__Err*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__Ty* f_Tl__binderTyOf(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Ty); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Ast__Ty* o4 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_r = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Tl__Err* f_Tl__patTys(srs_cap* p_r, int64_t p_line, struct E_Sym__Sym* p_n, struct E_Ast__Ty* p_t, struct E_Coll__List__Ast__ValArm* p_arms, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ p_es; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_al_2 = s2->u.C_Ast__ValArm.f_line; __auto_type v_p_3 = s2->u.C_Ast__ValArm.f_pat; ({ bool v_ok_4 = ({ __auto_type s4 = v_p_3; s4->tag == 3 ? ({ true; }) : s4->tag == 0 ? ({ __auto_type v_v_4 = s4->u.C_Ast__VInt.f_v; f_Tl__fitsTy(p_t, ({ struct E_Tl__V* o5 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o5->tag = 0; o5->u.C_Tl__VI.f_v = v_v_4; o5; })); }) : s4->tag == 2 ? ({ __auto_type v_v_4 = s4->u.C_Ast__VBool.f_v; f_Tl__fitsTy(p_t, ({ struct E_Tl__V* o5 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o5->tag = 1; o5->u.C_Tl__VB.f_v = v_v_4; o5; })); }) : ({ __auto_type v_v_4 = s4->u.C_Ast__VStr.f_s; f_Tl__fitsTy(p_t, ({ struct E_Tl__V* o5 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VS))); o5->tag = 2; o5->u.C_Tl__VS.f_s = v_v_4; o5; })); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; int64_t t1 = p_line; struct E_Sym__Sym* t2 = p_n; struct E_Ast__Ty* t3 = p_t; struct E_Coll__List__Ast__ValArm* t4 = v_rest_1; struct E_Coll__List__Tl__Err* t5 = (v_ok_4 ? p_es : ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__PatType))); o5->tag = 7; o5->u.C_Tl__PatType.f_line = v_al_2; o5->u.C_Tl__PatType.f_n = p_n; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; })); p_r = t0; p_line = t1; p_n = t2; p_t = t3; p_arms = t4; p_es = t5; goto srs_tail; (struct E_Coll__List__Tl__Err*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__bvLookup(srs_cap* p_r, struct E_Coll__List__Tl__Bv* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Tl__Bv.f_x; __auto_type v_v_3 = s2->u.C_Tl__Bv.f_v; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Tl__V* o4 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Tl__Bv* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_r = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__eval(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Ast__Expr* p_e, int64_t p_fuel) { srs_tail: return ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? (&N_Coll__None__Tl__V) : ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; ({ struct E_Coll__Option__Tl__V* o1 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o1 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o1->tag = 0; o1->u.C_Tl__VI.f_v = v_v_0; o1; }); o1; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; ({ struct E_Coll__Option__Tl__V* o1 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o1 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o1->tag = 1; o1->u.C_Tl__VB.f_v = v_v_0; o1; }); o1; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; ({ struct E_Coll__Option__Tl__V* o1 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o1 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VS))); o1->tag = 2; o1->u.C_Tl__VS.f_s = v_s_0; o1; }); o1; }); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ __auto_type s1 = f_Tl__bvLookup(p_r, p_env, v_x_0); s1->tag == 1 ? ({ __auto_type v_v_1 = s1->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_v_1; o2; }); }) : ({ f_Tl__call(p_r, p_cx, p_env, v_x_0, (&N_Coll__Nil__Ast__Expr), p_fuel); }); }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Tl__call(p_r, p_cx, p_env, v_f_0, v_xs_1, p_fuel); }) : s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_1 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_2 = s0->u.C_Ast__Bin.f_rhs; f_Tl__bin(p_r, v_op_0, f_Tl__eval(p_r, p_cx, p_env, v_l_1, p_fuel), f_Tl__eval(p_r, p_cx, p_env, v_x_2, p_fuel)); }) : s0->tag == 8 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Un.f_op; __auto_type v_x_1 = s0->u.C_Ast__Un.f_e; f_Tl__un(p_r, v_op_0, f_Tl__eval(p_r, p_cx, p_env, v_x_1, p_fuel)); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ __auto_type s3 = f_Tl__eval(p_r, p_cx, p_env, v_c_0, p_fuel); s3->tag == 1 ? ({ __auto_type v_cv_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type s4 = v_cv_3; s4->tag == 1 ? ({ __auto_type v_b_4 = s4->u.C_Tl__VB.f_v; (v_b_4 ? ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_env; struct E_Ast__Expr* t3 = v_t_1; int64_t t4 = p_fuel; p_r = t0; p_cx = t1; p_env = t2; p_e = t3; p_fuel = t4; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_env; struct E_Ast__Expr* t3 = v_x_2; int64_t t4 = p_fuel; p_r = t0; p_cx = t1; p_env = t2; p_e = t3; p_fuel = t4; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; })); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Tl__evalBlock(p_r, p_cx, p_env, v_ss_0, v_last_1, p_fuel); }) : ({ (&N_Coll__None__Tl__V); }); })); res_; }); } -static struct E_Coll__Option__Tl__V* f_Tl__evalBlock(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_fuel) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ f_Tl__eval(p_r, p_cx, p_env, p_last, p_fuel); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; ({ __auto_type s4 = f_Tl__eval(p_r, p_cx, p_env, v_e_3, p_fuel); s4->tag == 1 ? ({ __auto_type v_v_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = ({ struct E_Coll__List__Tl__Bv* o5 = (struct E_Coll__List__Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Bv, u) + sizeof(((struct E_Coll__List__Tl__Bv*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bv* o5 = (struct E_Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Bv, u) + sizeof(((struct E_Tl__Bv*)0)->u.C_Tl__Bv))); o5->tag = 0; o5->u.C_Tl__Bv.f_x = v_x_2; o5->u.C_Tl__Bv.f_v = v_v_4; o5; }); o5->u.C_Coll__Cons.f_t = p_env; o5; }); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; int64_t t5 = p_fuel; p_r = t0; p_cx = t1; p_env = t2; p_ss = t3; p_last = t4; p_fuel = t5; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__call(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fs_0 = s0->u.C_Tl__Cx.f_fs; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Ast__Fn(p_r, v_fs_0, p_f); s1->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_g_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_g_1; ({ __auto_type v_ps_2 = s2->u.C_Ast__Fn.f_params; __auto_type v_body_3 = s2->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ __auto_type v_b_4 = s4->u.C_Ast__Def.f_e; ({ __auto_type s5 = f_Tl__args(p_r, p_cx, p_env, v_ps_2, p_xs, p_fuel, (&N_Coll__Nil__Tl__Bv)); s5->tag == 1 ? ({ __auto_type v_env2_5 = s5->u.C_Coll__Some.f_v; f_Tl__eval(p_r, p_cx, v_env2_5, v_b_4, (p_fuel - ((int64_t)1))); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Coll__List_1_Tl__Bv* f_Tl__args(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel, struct E_Coll__List__Tl__Bv* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_Tl__Bv* o0 = (struct E_Coll__Option__Coll__List_1_Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Tl__Bv, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Tl__Bv*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_acc; o0; }); }) : ({ (&N_Coll__None__Coll__List_1_Tl__Bv); }); }); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_prest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Tl__Bv); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_p_0; ({ __auto_type v_y_4 = s4->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__eval(p_r, p_cx, p_env, v_x_2, p_fuel); s5->tag == 1 ? ({ __auto_type v_v_5 = s5->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_env; struct E_Coll__List__Ast__Binder* t3 = v_prest_1; struct E_Coll__List__Ast__Expr* t4 = v_xrest_3; int64_t t5 = p_fuel; struct E_Coll__List__Tl__Bv* t6 = ({ struct E_Coll__List__Tl__Bv* o6 = (struct E_Coll__List__Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Bv, u) + sizeof(((struct E_Coll__List__Tl__Bv*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bv* o6 = (struct E_Tl__Bv*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Bv, u) + sizeof(((struct E_Tl__Bv*)0)->u.C_Tl__Bv))); o6->tag = 0; o6->u.C_Tl__Bv.f_x = v_y_4; o6->u.C_Tl__Bv.f_v = v_v_5; o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_r = t0; p_cx = t1; p_env = t2; p_ps = t3; p_xs = t4; p_fuel = t5; p_acc = t6; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Tl__Bv*){0}; }); }) : ({ (&N_Coll__None__Coll__List_1_Tl__Bv); }); }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__bin(srs_cap* p_r, struct E_Ast__BinOp* p_op, struct E_Coll__Option__Tl__V* p_a, struct E_Coll__Option__Tl__V* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_y_1 = s1->u.C_Coll__Some.f_v; f_Tl__binV(p_r, p_op, v_x_0, v_y_1); }); }); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__binV(srs_cap* p_r, struct E_Ast__BinOp* p_op, struct E_Tl__V* p_a, struct E_Tl__V* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Tl__VI.f_v; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ __auto_type v_y_1 = s1->u.C_Tl__VI.f_v; f_Tl__binI(p_r, p_op, v_x_0, v_y_1); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Tl__VB.f_v; ({ __auto_type s1 = p_b; s1->tag == 1 ? ({ __auto_type v_y_1 = s1->u.C_Tl__VB.f_v; ({ __auto_type s2 = p_op; s2->tag == 11 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 && v_y_1); o2; }); o2; }); }) : s2->tag == 12 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 || v_y_1); o2; }); o2; }); }) : s2->tag == 9 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 == v_y_1); o2; }); o2; }); }) : s2->tag == 10 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 != v_y_1); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Tl__VS.f_s; ({ __auto_type s1 = p_b; s1->tag == 2 ? ({ __auto_type v_y_1 = s1->u.C_Tl__VS.f_s; ({ __auto_type s2 = p_op; s2->tag == 9 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = Str__eq(v_x_0, v_y_1); o2; }); o2; }); }) : s2->tag == 10 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (!Str__eq(v_x_0, v_y_1)); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__binI(srs_cap* p_r, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x + p_y); o0; }); o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x - p_y); o0; }); o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x * p_y); o0; }); o0; }); }) : s0->tag == 3 ? ({ ((p_y == ((int64_t)0)) ? (&N_Coll__None__Tl__V) : ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x / p_y); o0; }); o0; })); }) : s0->tag == 4 ? ({ ((p_y == ((int64_t)0)) ? (&N_Coll__None__Tl__V) : ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x % p_y); o0; }); o0; })); }) : s0->tag == 5 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x < p_y); o0; }); o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x <= p_y); o0; }); o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x > p_y); o0; }); o0; }); }) : s0->tag == 8 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x >= p_y); o0; }); o0; }); }) : s0->tag == 9 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x == p_y); o0; }); o0; }); }) : s0->tag == 10 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x != p_y); o0; }); o0; }); }) : ({ (&N_Coll__None__Tl__V); }); }); } -static struct E_Coll__Option__Tl__V* f_Tl__un(srs_cap* p_r, struct E_Ast__UnOp* p_op, struct E_Coll__Option__Tl__V* p_a) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = v_v_0; s1->tag == 0 ? ({ __auto_type v_x_1 = s1->u.C_Tl__VI.f_v; ({ __auto_type s2 = p_op; s2->tag == 0 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o2->tag = 0; o2->u.C_Tl__VI.f_v = (((int64_t)0) - v_x_1); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : s1->tag == 1 ? ({ __auto_type v_x_1 = s1->u.C_Tl__VB.f_v; ({ __auto_type s2 = p_op; s2->tag == 1 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (!v_x_1); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__typeGoals(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Tl__Cx* v_cx_0 = f_Tl__cxOf(p_r, p_ds, f_Coll__sEmpty__Ast__TypeDecl(p_r), f_Coll__sEmpty__Ast__Fn(p_r)); __auto_type res_ = f_Tl__declGoals(p_r, v_cx_0, p_ds, (&N_Coll__Nil__Tl__Goal)); res_; }); } -static struct E_Coll__List__Tl__Goal* f_Tl__declGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ f_Coll__rev__Tl__Goal(p_r, p_acc); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; __auto_type v_ps_4 = s3->u.C_Ast__Fn.f_params; __auto_type v_ret_5 = s3->u.C_Ast__Fn.f_ret; __auto_type v_body_6 = s3->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Tl__Goal* v_acc2_7 = f_Tl__tyGoals(p_r, p_cx, v_n_3, v_ret_5, f_Tl__bindersGoals(p_r, p_cx, v_n_3, v_ps_4, p_acc)); struct E_Coll__List__Tl__Goal* v_acc3_8 = ({ __auto_type s8 = v_body_6; s8->tag == 0 ? ({ __auto_type v_e_8 = s8->u.C_Ast__Def.f_e; f_Tl__exprGoals(p_r, p_cx, v_n_3, v_e_8, v_acc2_7); }) : s8->tag == 2 ? ({ __auto_type v_e_8 = s8->u.C_Ast__Spec.f_e; f_Tl__exprGoals(p_r, p_cx, v_n_3, v_e_8, v_acc2_7); }) : ({ v_acc2_7; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Tl__Goal* t3 = v_acc3_8; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Tl__Goal* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Coll__rev__Tl__Goal(srs_cap* p_r, struct E_Coll__List__Tl__Goal* p_xs) { return f_Coll__revOnto__Tl__Goal(p_r, p_xs, (&N_Coll__Nil__Tl__Goal)); } -static struct E_Coll__List__Tl__Goal* f_Coll__revOnto__Tl__Goal(srs_cap* p_r, struct E_Coll__List__Tl__Goal* p_xs, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Tl__Goal* t1 = v_t_1; struct E_Coll__List__Tl__Goal* t2 = ({ struct E_Coll__List__Tl__Goal* o2 = (struct E_Coll__List__Tl__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Goal, u) + sizeof(((struct E_Coll__List__Tl__Goal*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__bindersGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__tyGoals(p_r, p_cx, p_f, v_t_2, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__tyGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Ty* p_t, struct E_Coll__List__Tl__Goal* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_line_0 = s0->u.C_Ast__Ty.f_line; __auto_type v_n_1 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_2 = s0->u.C_Ast__Ty.f_args; ({ struct E_Coll__List__Tl__Goal* v_acc2_3 = f_Tl__tysGoals(p_r, p_cx, p_f, v_args_2, p_acc); __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_tds_4 = s4->u.C_Tl__Cx.f_ts; ({ __auto_type res_ = ({ __auto_type s5 = f_Coll__sLookup__Ast__TypeDecl(p_r, v_tds_4, v_n_1); s5->tag == 0 ? ({ v_acc2_3; }) : ({ __auto_type v_td_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_td_5; ({ __auto_type v_gs_6 = s6->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__tyArgs(p_r, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_args_2, f_Tl__fuel(), (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Tl__Err)); ({ __auto_type v_args2_7 = s7->u.C_Tl__W.f_v; ({ __auto_type res_ = f_Tl__evGoals(p_r, p_cx, p_f, v_line_0, f_Tl__zipBt(p_r, f_Ty__tparams(p_r, v_gs_6, (&N_Coll__Nil__Sym__Sym)), v_args2_7, (&N_Coll__Nil__Tl__Bt)), f_Ty__evidence(p_r, v_gs_6, (&N_Coll__Nil__Ast__Binder)), v_acc2_3); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Tl__Goal* f_Tl__tysGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Ty* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__tyGoals(p_r, p_cx, p_f, v_t_0, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_ts = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__evGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ev; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_bt_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__ty(p_r, p_cx, p_sub, (&N_Coll__Nil__Tl__Bv), v_bt_2, f_Tl__fuel(), (&N_Coll__Nil__Tl__Err)); ({ __auto_type v_g_3 = s3->u.C_Tl__W.f_v; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; int64_t t3 = p_line; struct E_Coll__List__Tl__Bt* t4 = p_sub; struct E_Coll__List__Ast__Binder* t5 = v_rest_1; struct E_Coll__List__Tl__Goal* t6 = ({ struct E_Coll__List__Tl__Goal* o4 = (struct E_Coll__List__Tl__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Goal, u) + sizeof(((struct E_Coll__List__Tl__Goal*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Tl__Goal* o4 = (struct E_Tl__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Tl__Goal, u) + sizeof(((struct E_Tl__Goal*)0)->u.C_Tl__Goal))); o4->tag = 0; o4->u.C_Tl__Goal.f_line = p_line; o4->u.C_Tl__Goal.f_fn = p_f; o4->u.C_Tl__Goal.f_goal = v_g_3; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_cx = t1; p_f = t2; p_line = t3; p_sub = t4; p_ev = t5; p_acc = t6; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__exprGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_targs_0 = s0->u.C_Ast__Call.f_targs; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Tl__exprsGoals(p_r, p_cx, p_f, v_xs_1, f_Tl__tysGoals(p_r, p_cx, p_f, v_targs_0, p_acc)); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Tl__exprsGoals(p_r, p_cx, p_f, v_xs_0, p_acc); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_r, p_cx, p_f, v_l_0, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_0; struct E_Coll__List__Tl__Goal* t4 = p_acc; p_r = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_2; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_r, p_cx, p_f, v_t_1, f_Tl__exprGoals(p_r, p_cx, p_f, v_c_0, p_acc)); p_r = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Tl__armsGoals(p_r, p_cx, p_f, v_arms_1, f_Tl__exprGoals(p_r, p_cx, p_f, v_s_0, p_acc)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_last_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__stmtsGoals(p_r, p_cx, p_f, v_ss_0, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_b_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_r, p_cx, p_f, v_c_0, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_0; struct E_Coll__List__Tl__Goal* t4 = p_acc; p_r = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : ({ p_acc; }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__exprsGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Expr* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_r, p_cx, p_f, v_x_0, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__armsGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Arm* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_r, p_cx, p_f, v_b_2, p_acc); p_r = t0; p_cx = t1; p_f = t2; p_as = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__stmtsGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Tl__Goal* v_acc2_2 = ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_ann_2 = s2->u.C_Ast__Val.f_ann; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; f_Tl__exprGoals(p_r, p_cx, p_f, v_e_3, f_Tl__annGoals(p_r, p_cx, p_f, v_ann_2, p_acc)); }) : s2->tag == 1 ? ({ __auto_type v_ann_2 = s2->u.C_Ast__Var.f_ann; __auto_type v_e_3 = s2->u.C_Ast__Var.f_e; f_Tl__exprGoals(p_r, p_cx, p_f, v_e_3, f_Tl__annGoals(p_r, p_cx, p_f, v_ann_2, p_acc)); }) : s2->tag == 2 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__Handle.f_args; f_Tl__exprsGoals(p_r, p_cx, p_f, v_xs_2, p_acc); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; f_Tl__exprGoals(p_r, p_cx, p_f, v_e_2, p_acc); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; f_Tl__exprGoals(p_r, p_cx, p_f, v_e_2, p_acc); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = v_acc2_2; p_r = t0; p_cx = t1; p_f = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); } -static struct E_Coll__List__Tl__Goal* f_Tl__annGoals(srs_cap* p_r, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Tl__Goal* p_acc) { return ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; f_Tl__tyGoals(p_r, p_cx, p_f, v_t_0, p_acc); }); }); } +static struct E_Coll__List__Tl__Err* f_Tl__typeDecl(srs_cap* p_eff__Region, struct E_Ast__TypeDecl* p_td, struct E_Coll__List__Tl__Err* p_es) { return ({ __auto_type res_ = ({ __auto_type s0 = p_td; ({ __auto_type v_line_0 = s0->u.C_Ast__TypeDecl.f_line; __auto_type v_n_1 = s0->u.C_Ast__TypeDecl.f_name; __auto_type v_vbs_2 = s0->u.C_Ast__TypeDecl.f_vals; __auto_type v_body_3 = s0->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__List__Tl__Err* v_es2_4 = f_Tl__binderTys(p_eff__Region, v_line_0, v_vbs_2, p_es); __auto_type res_ = ({ __auto_type s5 = v_body_3; s5->tag == 2 ? ({ __auto_type v_x_5 = s5->u.C_Ast__ValMatch.f_x; __auto_type v_arms_6 = s5->u.C_Ast__ValMatch.f_arms; ({ __auto_type s7 = f_Tl__binderTyOf(p_eff__Region, v_vbs_2, v_x_5); s7->tag == 1 ? ({ __auto_type v_t_7 = s7->u.C_Coll__Some.f_v; f_Tl__patTys(p_eff__Region, v_line_0, v_n_1, v_t_7, v_arms_6, v_es2_4); }) : ({ v_es2_4; }); }); }) : ({ v_es2_4; }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Tl__Err* f_Tl__binderTys(srs_cap* p_eff__Region, int64_t p_line, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_es; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; ({ srs_str v_s_5 = f_Sym__str(v_tn_4); bool v_ok_6 = ((Str__eq(v_s_5, ((srs_str){(const uint8_t*)"I64", 3})) || Str__eq(v_s_5, ((srs_str){(const uint8_t*)"Bool", 4}))) || Str__eq(v_s_5, ((srs_str){(const uint8_t*)"Str", 3}))); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_line; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Tl__Err* t3 = (v_ok_6 ? p_es : ({ struct E_Coll__List__Tl__Err* o7 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o7 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__BinderType))); o7->tag = 6; o7->u.C_Tl__BinderType.f_line = p_line; o7->u.C_Tl__BinderType.f_x = v_x_2; o7; }); o7->u.C_Coll__Cons.f_t = p_es; o7; })); p_eff__Region = t0; p_line = t1; p_bs = t2; p_es = t3; goto srs_tail; (struct E_Coll__List__Tl__Err*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__Ty* f_Tl__binderTyOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Ty); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Ast__Ty* o4 = (struct E_Coll__Option__Ast__Ty*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Ty, u) + sizeof(((struct E_Coll__Option__Ast__Ty*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_eff__Region = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Ast__Ty*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Tl__Err* f_Tl__patTys(srs_cap* p_eff__Region, int64_t p_line, struct E_Sym__Sym* p_n, struct E_Ast__Ty* p_t, struct E_Coll__List__Ast__ValArm* p_arms, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_arms; s0->tag == 0 ? ({ p_es; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_al_2 = s2->u.C_Ast__ValArm.f_line; __auto_type v_p_3 = s2->u.C_Ast__ValArm.f_pat; ({ bool v_ok_4 = ({ __auto_type s4 = v_p_3; s4->tag == 3 ? ({ true; }) : s4->tag == 0 ? ({ __auto_type v_v_4 = s4->u.C_Ast__VInt.f_v; f_Tl__fitsTy(p_t, ({ struct E_Tl__V* o5 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o5->tag = 0; o5->u.C_Tl__VI.f_v = v_v_4; o5; })); }) : s4->tag == 2 ? ({ __auto_type v_v_4 = s4->u.C_Ast__VBool.f_v; f_Tl__fitsTy(p_t, ({ struct E_Tl__V* o5 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o5->tag = 1; o5->u.C_Tl__VB.f_v = v_v_4; o5; })); }) : ({ __auto_type v_v_4 = s4->u.C_Ast__VStr.f_s; f_Tl__fitsTy(p_t, ({ struct E_Tl__V* o5 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VS))); o5->tag = 2; o5->u.C_Tl__VS.f_s = v_v_4; o5; })); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; int64_t t1 = p_line; struct E_Sym__Sym* t2 = p_n; struct E_Ast__Ty* t3 = p_t; struct E_Coll__List__Ast__ValArm* t4 = v_rest_1; struct E_Coll__List__Tl__Err* t5 = (v_ok_4 ? p_es : ({ struct E_Coll__List__Tl__Err* o5 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Err* o5 = (struct E_Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Err, u) + sizeof(((struct E_Tl__Err*)0)->u.C_Tl__PatType))); o5->tag = 7; o5->u.C_Tl__PatType.f_line = v_al_2; o5->u.C_Tl__PatType.f_n = p_n; o5; }); o5->u.C_Coll__Cons.f_t = p_es; o5; })); p_eff__Region = t0; p_line = t1; p_n = t2; p_t = t3; p_arms = t4; p_es = t5; goto srs_tail; (struct E_Coll__List__Tl__Err*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__bvLookup(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Bv* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Tl__Bv.f_x; __auto_type v_v_3 = s2->u.C_Tl__Bv.f_v; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__Tl__V* o4 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_v_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Tl__Bv* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_eff__Region = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__eval(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Ast__Expr* p_e, int64_t p_fuel) { srs_tail: return ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? (&N_Coll__None__Tl__V) : ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Int.f_v; ({ struct E_Coll__Option__Tl__V* o1 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o1 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o1->tag = 0; o1->u.C_Tl__VI.f_v = v_v_0; o1; }); o1; }); }) : s0->tag == 1 ? ({ __auto_type v_v_0 = s0->u.C_Ast__Bool.f_v; ({ struct E_Coll__Option__Tl__V* o1 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o1 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o1->tag = 1; o1->u.C_Tl__VB.f_v = v_v_0; o1; }); o1; }); }) : s0->tag == 2 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Str.f_s; ({ struct E_Coll__Option__Tl__V* o1 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o1 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VS))); o1->tag = 2; o1->u.C_Tl__VS.f_s = v_s_0; o1; }); o1; }); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Name.f_n; ({ __auto_type s1 = f_Tl__bvLookup(p_eff__Region, p_env, v_x_0); s1->tag == 1 ? ({ __auto_type v_v_1 = s1->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_v_1; o2; }); }) : ({ f_Tl__call(p_eff__Region, p_cx, p_env, v_x_0, (&N_Coll__Nil__Ast__Expr), p_fuel); }); }); }) : s0->tag == 5 ? ({ __auto_type v_f_0 = s0->u.C_Ast__Call.f_f; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Tl__call(p_eff__Region, p_cx, p_env, v_f_0, v_xs_1, p_fuel); }) : s0->tag == 7 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_1 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_2 = s0->u.C_Ast__Bin.f_rhs; f_Tl__bin(p_eff__Region, v_op_0, f_Tl__eval(p_eff__Region, p_cx, p_env, v_l_1, p_fuel), f_Tl__eval(p_eff__Region, p_cx, p_env, v_x_2, p_fuel)); }) : s0->tag == 8 ? ({ __auto_type v_op_0 = s0->u.C_Ast__Un.f_op; __auto_type v_x_1 = s0->u.C_Ast__Un.f_e; f_Tl__un(p_eff__Region, v_op_0, f_Tl__eval(p_eff__Region, p_cx, p_env, v_x_1, p_fuel)); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ __auto_type s3 = f_Tl__eval(p_eff__Region, p_cx, p_env, v_c_0, p_fuel); s3->tag == 1 ? ({ __auto_type v_cv_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type s4 = v_cv_3; s4->tag == 1 ? ({ __auto_type v_b_4 = s4->u.C_Tl__VB.f_v; (v_b_4 ? ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_env; struct E_Ast__Expr* t3 = v_t_1; int64_t t4 = p_fuel; p_eff__Region = t0; p_cx = t1; p_env = t2; p_e = t3; p_fuel = t4; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_env; struct E_Ast__Expr* t3 = v_x_2; int64_t t4 = p_fuel; p_eff__Region = t0; p_cx = t1; p_env = t2; p_e = t3; p_fuel = t4; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; })); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; f_Tl__evalBlock(p_eff__Region, p_cx, p_env, v_ss_0, v_last_1, p_fuel); }) : ({ (&N_Coll__None__Tl__V); }); })); res_; }); } +static struct E_Coll__Option__Tl__V* f_Tl__evalBlock(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, int64_t p_fuel) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ f_Tl__eval(p_eff__Region, p_cx, p_env, p_last, p_fuel); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_x_2 = s2->u.C_Ast__Val.f_x; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; ({ __auto_type s4 = f_Tl__eval(p_eff__Region, p_cx, p_env, v_e_3, p_fuel); s4->tag == 1 ? ({ __auto_type v_v_4 = s4->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = ({ struct E_Coll__List__Tl__Bv* o5 = (struct E_Coll__List__Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Bv, u) + sizeof(((struct E_Coll__List__Tl__Bv*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bv* o5 = (struct E_Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Bv, u) + sizeof(((struct E_Tl__Bv*)0)->u.C_Tl__Bv))); o5->tag = 0; o5->u.C_Tl__Bv.f_x = v_x_2; o5->u.C_Tl__Bv.f_v = v_v_4; o5; }); o5->u.C_Coll__Cons.f_t = p_env; o5; }); struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Ast__Expr* t4 = p_last; int64_t t5 = p_fuel; p_eff__Region = t0; p_cx = t1; p_env = t2; p_ss = t3; p_last = t4; p_fuel = t5; goto srs_tail; (struct E_Coll__Option__Tl__V*){0}; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__call(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fs_0 = s0->u.C_Tl__Cx.f_fs; ({ __auto_type res_ = ({ __auto_type s1 = f_Coll__sLookup__Ast__Fn(p_eff__Region, v_fs_0, p_f); s1->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_g_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_g_1; ({ __auto_type v_ps_2 = s2->u.C_Ast__Fn.f_params; __auto_type v_body_3 = s2->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ __auto_type v_b_4 = s4->u.C_Ast__Def.f_e; ({ __auto_type s5 = f_Tl__args(p_eff__Region, p_cx, p_env, v_ps_2, p_xs, p_fuel, (&N_Coll__Nil__Tl__Bv)); s5->tag == 1 ? ({ __auto_type v_env2_5 = s5->u.C_Coll__Some.f_v; f_Tl__eval(p_eff__Region, p_cx, v_env2_5, v_b_4, (p_fuel - ((int64_t)1))); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Coll__List_1_Tl__Bv* f_Tl__args(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Tl__Bv* p_env, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ast__Expr* p_xs, int64_t p_fuel, struct E_Coll__List__Tl__Bv* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Coll__List_1_Tl__Bv* o0 = (struct E_Coll__Option__Coll__List_1_Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Tl__Bv, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Tl__Bv*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_acc; o0; }); }) : ({ (&N_Coll__None__Coll__List_1_Tl__Bv); }); }); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_prest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ (&N_Coll__None__Coll__List_1_Tl__Bv); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_p_0; ({ __auto_type v_y_4 = s4->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ __auto_type s5 = f_Tl__eval(p_eff__Region, p_cx, p_env, v_x_2, p_fuel); s5->tag == 1 ? ({ __auto_type v_v_5 = s5->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Tl__Bv* t2 = p_env; struct E_Coll__List__Ast__Binder* t3 = v_prest_1; struct E_Coll__List__Ast__Expr* t4 = v_xrest_3; int64_t t5 = p_fuel; struct E_Coll__List__Tl__Bv* t6 = ({ struct E_Coll__List__Tl__Bv* o6 = (struct E_Coll__List__Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Bv, u) + sizeof(((struct E_Coll__List__Tl__Bv*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Tl__Bv* o6 = (struct E_Tl__Bv*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Bv, u) + sizeof(((struct E_Tl__Bv*)0)->u.C_Tl__Bv))); o6->tag = 0; o6->u.C_Tl__Bv.f_x = v_y_4; o6->u.C_Tl__Bv.f_v = v_v_5; o6; }); o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_eff__Region = t0; p_cx = t1; p_env = t2; p_ps = t3; p_xs = t4; p_fuel = t5; p_acc = t6; goto srs_tail; (struct E_Coll__Option__Coll__List_1_Tl__Bv*){0}; }); }) : ({ (&N_Coll__None__Coll__List_1_Tl__Bv); }); }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__bin(srs_cap* p_eff__Region, struct E_Ast__BinOp* p_op, struct E_Coll__Option__Tl__V* p_a, struct E_Coll__Option__Tl__V* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_y_1 = s1->u.C_Coll__Some.f_v; f_Tl__binV(p_eff__Region, p_op, v_x_0, v_y_1); }); }); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__binV(srs_cap* p_eff__Region, struct E_Ast__BinOp* p_op, struct E_Tl__V* p_a, struct E_Tl__V* p_b) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ __auto_type v_x_0 = s0->u.C_Tl__VI.f_v; ({ __auto_type s1 = p_b; s1->tag == 0 ? ({ __auto_type v_y_1 = s1->u.C_Tl__VI.f_v; f_Tl__binI(p_eff__Region, p_op, v_x_0, v_y_1); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Tl__VB.f_v; ({ __auto_type s1 = p_b; s1->tag == 1 ? ({ __auto_type v_y_1 = s1->u.C_Tl__VB.f_v; ({ __auto_type s2 = p_op; s2->tag == 11 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 && v_y_1); o2; }); o2; }); }) : s2->tag == 12 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 || v_y_1); o2; }); o2; }); }) : s2->tag == 9 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 == v_y_1); o2; }); o2; }); }) : s2->tag == 10 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (v_x_0 != v_y_1); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ __auto_type v_x_0 = s0->u.C_Tl__VS.f_s; ({ __auto_type s1 = p_b; s1->tag == 2 ? ({ __auto_type v_y_1 = s1->u.C_Tl__VS.f_s; ({ __auto_type s2 = p_op; s2->tag == 9 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = Str__eq(v_x_0, v_y_1); o2; }); o2; }); }) : s2->tag == 10 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (!Str__eq(v_x_0, v_y_1)); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__binI(srs_cap* p_eff__Region, struct E_Ast__BinOp* p_op, int64_t p_x, int64_t p_y) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x + p_y); o0; }); o0; }); }) : s0->tag == 1 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x - p_y); o0; }); o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x * p_y); o0; }); o0; }); }) : s0->tag == 3 ? ({ ((p_y == ((int64_t)0)) ? (&N_Coll__None__Tl__V) : ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x / p_y); o0; }); o0; })); }) : s0->tag == 4 ? ({ ((p_y == ((int64_t)0)) ? (&N_Coll__None__Tl__V) : ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o0->tag = 0; o0->u.C_Tl__VI.f_v = (p_x % p_y); o0; }); o0; })); }) : s0->tag == 5 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x < p_y); o0; }); o0; }); }) : s0->tag == 6 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x <= p_y); o0; }); o0; }); }) : s0->tag == 7 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x > p_y); o0; }); o0; }); }) : s0->tag == 8 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x >= p_y); o0; }); o0; }); }) : s0->tag == 9 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x == p_y); o0; }); o0; }); }) : s0->tag == 10 ? ({ ({ struct E_Coll__Option__Tl__V* o0 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o0 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o0->tag = 1; o0->u.C_Tl__VB.f_v = (p_x != p_y); o0; }); o0; }); }) : ({ (&N_Coll__None__Tl__V); }); }); } +static struct E_Coll__Option__Tl__V* f_Tl__un(srs_cap* p_eff__Region, struct E_Ast__UnOp* p_op, struct E_Coll__Option__Tl__V* p_a) { return ({ __auto_type s0 = p_a; s0->tag == 0 ? ({ (&N_Coll__None__Tl__V); }) : ({ __auto_type v_v_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = v_v_0; s1->tag == 0 ? ({ __auto_type v_x_1 = s1->u.C_Tl__VI.f_v; ({ __auto_type s2 = p_op; s2->tag == 0 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VI))); o2->tag = 0; o2->u.C_Tl__VI.f_v = (((int64_t)0) - v_x_1); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : s1->tag == 1 ? ({ __auto_type v_x_1 = s1->u.C_Tl__VB.f_v; ({ __auto_type s2 = p_op; s2->tag == 1 ? ({ ({ struct E_Coll__Option__Tl__V* o2 = (struct E_Coll__Option__Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Tl__V, u) + sizeof(((struct E_Coll__Option__Tl__V*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = ({ struct E_Tl__V* o2 = (struct E_Tl__V*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__V, u) + sizeof(((struct E_Tl__V*)0)->u.C_Tl__VB))); o2->tag = 1; o2->u.C_Tl__VB.f_v = (!v_x_1); o2; }); o2; }); }) : ({ (&N_Coll__None__Tl__V); }); }); }) : ({ (&N_Coll__None__Tl__V); }); }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__typeGoals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ struct E_Tl__Cx* v_cx_0 = f_Tl__cxOf(p_eff__Region, p_ds, f_Coll__sEmpty__Ast__TypeDecl(p_eff__Region), f_Coll__sEmpty__Ast__Fn(p_eff__Region)); __auto_type res_ = f_Tl__declGoals(p_eff__Region, v_cx_0, p_ds, (&N_Coll__Nil__Tl__Goal)); res_; }); } +static struct E_Coll__List__Tl__Goal* f_Tl__declGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ f_Coll__rev__Tl__Goal(p_eff__Region, p_acc); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Fn.f_name; __auto_type v_ps_4 = s3->u.C_Ast__Fn.f_params; __auto_type v_ret_5 = s3->u.C_Ast__Fn.f_ret; __auto_type v_body_6 = s3->u.C_Ast__Fn.f_body; ({ struct E_Coll__List__Tl__Goal* v_acc2_7 = f_Tl__tyGoals(p_eff__Region, p_cx, v_n_3, v_ret_5, f_Tl__bindersGoals(p_eff__Region, p_cx, v_n_3, v_ps_4, p_acc)); struct E_Coll__List__Tl__Goal* v_acc3_8 = ({ __auto_type s8 = v_body_6; s8->tag == 0 ? ({ __auto_type v_e_8 = s8->u.C_Ast__Def.f_e; f_Tl__exprGoals(p_eff__Region, p_cx, v_n_3, v_e_8, v_acc2_7); }) : s8->tag == 2 ? ({ __auto_type v_e_8 = s8->u.C_Ast__Spec.f_e; f_Tl__exprGoals(p_eff__Region, p_cx, v_n_3, v_e_8, v_acc2_7); }) : ({ v_acc2_7; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Tl__Goal* t3 = v_acc3_8; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Tl__Goal* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Coll__rev__Tl__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Goal* p_xs) { return f_Coll__revOnto__Tl__Goal(p_eff__Region, p_xs, (&N_Coll__Nil__Tl__Goal)); } +static struct E_Coll__List__Tl__Goal* f_Coll__revOnto__Tl__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Goal* p_xs, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Tl__Goal* t1 = v_t_1; struct E_Coll__List__Tl__Goal* t2 = ({ struct E_Coll__List__Tl__Goal* o2 = (struct E_Coll__List__Tl__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Goal, u) + sizeof(((struct E_Coll__List__Tl__Goal*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__bindersGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Binder* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__tyGoals(p_eff__Region, p_cx, p_f, v_t_2, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_bs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__tyGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Ty* p_t, struct E_Coll__List__Tl__Goal* p_acc) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_line_0 = s0->u.C_Ast__Ty.f_line; __auto_type v_n_1 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_2 = s0->u.C_Ast__Ty.f_args; ({ struct E_Coll__List__Tl__Goal* v_acc2_3 = f_Tl__tysGoals(p_eff__Region, p_cx, p_f, v_args_2, p_acc); __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_tds_4 = s4->u.C_Tl__Cx.f_ts; ({ __auto_type res_ = ({ __auto_type s5 = f_Coll__sLookup__Ast__TypeDecl(p_eff__Region, v_tds_4, v_n_1); s5->tag == 0 ? ({ v_acc2_3; }) : ({ __auto_type v_td_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_td_5; ({ __auto_type v_gs_6 = s6->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = ({ __auto_type s7 = f_Tl__tyArgs(p_eff__Region, p_cx, (&N_Coll__Nil__Tl__Bt), (&N_Coll__Nil__Tl__Bv), v_args_2, f_Tl__fuel(), (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Tl__Err)); ({ __auto_type v_args2_7 = s7->u.C_Tl__W.f_v; ({ __auto_type res_ = f_Tl__evGoals(p_eff__Region, p_cx, p_f, v_line_0, f_Tl__zipBt(p_eff__Region, f_Ty__tparams(p_eff__Region, v_gs_6, (&N_Coll__Nil__Sym__Sym)), v_args2_7, (&N_Coll__Nil__Tl__Bt)), f_Ty__evidence(p_eff__Region, v_gs_6, (&N_Coll__Nil__Ast__Binder)), v_acc2_3); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Tl__Goal* f_Tl__tysGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Ty* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__tyGoals(p_eff__Region, p_cx, p_f, v_t_0, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_ts = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__evGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, int64_t p_line, struct E_Coll__List__Tl__Bt* p_sub, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ev; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_bt_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = f_Tl__ty(p_eff__Region, p_cx, p_sub, (&N_Coll__Nil__Tl__Bv), v_bt_2, f_Tl__fuel(), (&N_Coll__Nil__Tl__Err)); ({ __auto_type v_g_3 = s3->u.C_Tl__W.f_v; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; int64_t t3 = p_line; struct E_Coll__List__Tl__Bt* t4 = p_sub; struct E_Coll__List__Ast__Binder* t5 = v_rest_1; struct E_Coll__List__Tl__Goal* t6 = ({ struct E_Coll__List__Tl__Goal* o4 = (struct E_Coll__List__Tl__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Goal, u) + sizeof(((struct E_Coll__List__Tl__Goal*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Tl__Goal* o4 = (struct E_Tl__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Tl__Goal, u) + sizeof(((struct E_Tl__Goal*)0)->u.C_Tl__Goal))); o4->tag = 0; o4->u.C_Tl__Goal.f_line = p_line; o4->u.C_Tl__Goal.f_fn = p_f; o4->u.C_Tl__Goal.f_goal = v_g_3; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_cx = t1; p_f = t2; p_line = t3; p_sub = t4; p_ev = t5; p_acc = t6; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__exprGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Ast__Expr* p_e, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_e; s0->tag == 5 ? ({ __auto_type v_targs_0 = s0->u.C_Ast__Call.f_targs; __auto_type v_xs_1 = s0->u.C_Ast__Call.f_args; f_Tl__exprsGoals(p_eff__Region, p_cx, p_f, v_xs_1, f_Tl__tysGoals(p_eff__Region, p_cx, p_f, v_targs_0, p_acc)); }) : s0->tag == 6 ? ({ __auto_type v_xs_0 = s0->u.C_Ast__Method.f_args; f_Tl__exprsGoals(p_eff__Region, p_cx, p_f, v_xs_0, p_acc); }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_l; __auto_type v_x_1 = s0->u.C_Ast__Bin.f_rhs; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_l_0, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 8 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Un.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_0; struct E_Coll__List__Tl__Goal* t4 = p_acc; p_eff__Region = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 9 ? ({ __auto_type v_c_0 = s0->u.C_Ast__If.f_c; __auto_type v_t_1 = s0->u.C_Ast__If.f_t; __auto_type v_x_2 = s0->u.C_Ast__If.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_2; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_t_1, f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_c_0, p_acc)); p_eff__Region = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 10 ? ({ __auto_type v_s_0 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_1 = s0->u.C_Ast__Match.f_arms; f_Tl__armsGoals(p_eff__Region, p_cx, p_f, v_arms_1, f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_s_0, p_acc)); }) : s0->tag == 11 ? ({ __auto_type v_ss_0 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_1 = s0->u.C_Ast__Block.f_last; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_last_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__stmtsGoals(p_eff__Region, p_cx, p_f, v_ss_0, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 12 ? ({ __auto_type v_c_0 = s0->u.C_Ast__While.f_c; __auto_type v_b_1 = s0->u.C_Ast__While.f_body; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_b_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_c_0, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : s0->tag == 13 ? ({ __auto_type v_x_0 = s0->u.C_Ast__Assign.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Ast__Expr* t3 = v_x_0; struct E_Coll__List__Tl__Goal* t4 = p_acc; p_eff__Region = t0; p_cx = t1; p_f = t2; p_e = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }) : ({ p_acc; }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__exprsGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Expr* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_x_0, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_xs = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__armsGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_b_2 = s2->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Arm* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_b_2, p_acc); p_eff__Region = t0; p_cx = t1; p_f = t2; p_as = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__stmtsGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Coll__List__Tl__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Tl__Goal* v_acc2_2 = ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_ann_2 = s2->u.C_Ast__Val.f_ann; __auto_type v_e_3 = s2->u.C_Ast__Val.f_e; f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_e_3, f_Tl__annGoals(p_eff__Region, p_cx, p_f, v_ann_2, p_acc)); }) : s2->tag == 1 ? ({ __auto_type v_ann_2 = s2->u.C_Ast__Var.f_ann; __auto_type v_e_3 = s2->u.C_Ast__Var.f_e; f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_e_3, f_Tl__annGoals(p_eff__Region, p_cx, p_f, v_ann_2, p_acc)); }) : s2->tag == 2 ? ({ __auto_type v_xs_2 = s2->u.C_Ast__Handle.f_args; f_Tl__exprsGoals(p_eff__Region, p_cx, p_f, v_xs_2, p_acc); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_e_2, p_acc); }) : ({ __auto_type v_e_2 = s2->u.C_Ast__Check.f_e; f_Tl__exprGoals(p_eff__Region, p_cx, p_f, v_e_2, p_acc); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Tl__Cx* t1 = p_cx; struct E_Sym__Sym* t2 = p_f; struct E_Coll__List__Ast__Stmt* t3 = v_rest_1; struct E_Coll__List__Tl__Goal* t4 = v_acc2_2; p_eff__Region = t0; p_cx = t1; p_f = t2; p_ss = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Tl__Goal*){0}; }); res_; }); }); }); } +static struct E_Coll__List__Tl__Goal* f_Tl__annGoals(srs_cap* p_eff__Region, struct E_Tl__Cx* p_cx, struct E_Sym__Sym* p_f, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Coll__List__Tl__Goal* p_acc) { return ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; f_Tl__tyGoals(p_eff__Region, p_cx, p_f, v_t_0, p_acc); }); }); } static bool f_Tl__nominal(struct E_Ast__TypeDecl* p_td) { return ({ __auto_type res_ = ({ __auto_type s0 = p_td; ({ __auto_type v_gs_0 = s0->u.C_Ast__TypeDecl.f_groups; ({ __auto_type res_ = f_Tl__hasFacts(v_gs_0); res_; }); }); }); res_; }); } static bool f_Tl__hasFacts(struct E_Coll__List__Ast__Group* p_gs) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 2 ? ({ true; }) : ({ ({ struct E_Coll__List__Ast__Group* t0 = v_rest_1; p_gs = t0; goto srs_tail; (bool){0}; }); }); }); }); }); } -static struct E_K__Term* f_Ty__con(srs_cap* p_r, srs_str p_n) { return ({ struct E_K__Term* o0 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o0->tag = 1; o0->u.C_K__Con.f_f = f_Sym__of(p_r, p_n); o0->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o0; }); } -static struct E_Ty__At* f_Ty__fresh(srs_cap* p_r, struct E_Ty__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__At* o6 = (struct E_Ty__At*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__At, u) + sizeof(((struct E_Ty__At*)0)->u.C_Ty__At))); o6->tag = 0; o6->u.C_Ty__At.f_st = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = (v_n_1 + ((int64_t)1)); o6->u.C_Ty__St.f_cs = v_cs_2; o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); o6->u.C_Ty__At.f_t = ({ struct E_K__Term* o6 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o6->tag = 0; o6->u.C_K__Var.f_n = v_n_1; o6; }); o6; }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__clash(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Ty__Clash* p_c) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o6 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_c; o6->u.C_Coll__Cons.f_t = v_cs_2; o6; }); o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__expect(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ __auto_type s6 = f_K__unify(p_r, v_s_0, p_got, p_want); s6->tag == 1 ? ({ __auto_type v_s2_6 = s6->u.C_Coll__Some.f_v; ({ struct E_Ty__St* o7 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o7->tag = 0; o7->u.C_Ty__St.f_s = v_s2_6; o7->u.C_Ty__St.f_next = v_n_1; o7->u.C_Ty__St.f_cs = v_cs_2; o7->u.C_Ty__St.f_is = v_is_3; o7->u.C_Ty__St.f_gs = v_gs_4; o7->u.C_Ty__St.f_nom = v_nm_5; o7; }); }) : ({ ({ __auto_type s6 = f_Ty__widen(p_r, v_nm_5, f_K__walk(p_r, v_s_0, p_got)); s6->tag == 1 ? ({ __auto_type v_body_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type s7 = f_K__unify(p_r, v_s_0, v_body_6, p_want); s7->tag == 1 ? ({ __auto_type v_s3_7 = s7->u.C_Coll__Some.f_v; ({ struct E_Ty__St* o8 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o8->tag = 0; o8->u.C_Ty__St.f_s = v_s3_7; o8->u.C_Ty__St.f_next = v_n_1; o8->u.C_Ty__St.f_cs = v_cs_2; o8->u.C_Ty__St.f_is = v_is_3; o8->u.C_Ty__St.f_gs = v_gs_4; o8->u.C_Ty__St.f_nom = v_nm_5; o8; }); }) : ({ ({ struct E_Ty__St* o7 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o7->tag = 0; o7->u.C_Ty__St.f_s = v_s_0; o7->u.C_Ty__St.f_next = v_n_1; o7->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o7 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o7 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Mismatch))); o7->tag = 0; o7->u.C_Ty__Mismatch.f_line = p_line; o7->u.C_Ty__Mismatch.f_got = p_got; o7->u.C_Ty__Mismatch.f_want = p_want; o7; }); o7->u.C_Coll__Cons.f_t = v_cs_2; o7; }); o7->u.C_Ty__St.f_is = v_is_3; o7->u.C_Ty__St.f_gs = v_gs_4; o7->u.C_Ty__St.f_nom = v_nm_5; o7; }); }); }); }) : ({ ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o6 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Mismatch))); o6->tag = 0; o6->u.C_Ty__Mismatch.f_line = p_line; o6->u.C_Ty__Mismatch.f_got = p_got; o6->u.C_Ty__Mismatch.f_want = p_want; o6; }); o6->u.C_Coll__Cons.f_t = v_cs_2; o6; }); o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__K__Term* f_Ty__widen(srs_cap* p_r, struct E_Coll__SMap__K__Term* p_nm, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; f_Coll__sLookup__K__Term(p_r, p_nm, v_n_0); }) : ({ (&N_Coll__None__K__Term); }); }); } -static struct E_Coll__SMap__K__Term* f_Ty__nominals(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__K__Term* p_m) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s3 = v_td_2; ({ __auto_type v_n_3 = s3->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_4 = s3->u.C_Ast__TypeDecl.f_groups; __auto_type v_body_5 = s3->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__SMap__K__Term* v_m2_6 = ({ __auto_type s6 = v_body_5; s6->tag == 0 ? ({ __auto_type v_t_6 = s6->u.C_Ast__Alias.f_t; (f_Tl__hasFacts(v_gs_4) ? f_Coll__sInsert__K__Term(p_r, p_m, v_n_3, f_Ty__term(p_r, v_t_6, (&N_Coll__Nil__Ty__Bind))) : p_m); }) : ({ p_m; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__K__Term* t2 = v_m2_6; p_r = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__K__Term*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__K__Term* t2 = p_m; p_r = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__K__Term*){0}; }); }); }); }); }); } -static struct E_Ty__St* f_Ty__expectOpt(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_want; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_w_0 = s0->u.C_Coll__Some.f_v; f_Ty__expect(p_r, p_st, p_line, p_got, v_w_0); }); }); } -static struct E_Coll__Option__K__Term* f_Ty__lookup(srs_cap* p_r, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__K__Term); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_t_3 = s2->u.C_Ty__Bind.f_t; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Bind* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_r = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__K__Term*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_K__Term* f_Ty__term(srs_cap* p_r, struct E_Ast__Ty* p_t, struct E_Coll__List__Ty__Bind* p_tv) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ __auto_type s2 = v_args_1; s2->tag == 0 ? ({ ({ __auto_type s2 = f_Ty__lookup(p_r, p_tv, v_n_0); s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Coll__Some.f_v; v_x_2; }) : ({ ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_n_0; o2->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o2; }); }); }); }) : ({ ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_n_0; o2->u.C_K__Con.f_args = f_Ty__terms(p_r, v_args_1, p_tv, (&N_Coll__Nil__K__Term)); o2; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__K__Term* f_Ty__terms(srs_cap* p_r, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Ty__term(p_r, v_t_0, p_tv); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_ts = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Ty__tparams(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_r, p_acc); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Ty__names(p_r, v_bs_2, p_acc); p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s2->tag == 1 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Ty__names(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Open* f_Ty__open(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_vars) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Ty__Open* o0 = (struct E_Ty__Open*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Open, u) + sizeof(((struct E_Ty__Open*)0)->u.C_Ty__Open))); o0->tag = 0; o0->u.C_Ty__Open.f_st = p_st; o0->u.C_Ty__Open.f_tv = p_tv; o0->u.C_Ty__Open.f_vars = f_Coll__rev__K__Term(p_r, p_vars); o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__fresh(p_r, p_st); ({ __auto_type v_st1_2 = s2->u.C_Ty__At.f_st; __auto_type v_v_3 = s2->u.C_Ty__At.f_t; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__St* t1 = v_st1_2; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_0; o4->u.C_Ty__Bind.f_t = v_v_3; o4; }); o4->u.C_Coll__Cons.f_t = p_tv; o4; }); struct E_Coll__List__K__Term* t4 = ({ struct E_Coll__List__K__Term* o4 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_v_3; o4->u.C_Coll__Cons.f_t = p_vars; o4; }); p_r = t0; p_st = t1; p_xs = t2; p_tv = t3; p_vars = t4; goto srs_tail; (struct E_Ty__Open*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ty__Bind* f_Ty__rigid(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = ({ struct E_Coll__List__Ty__Bind* o2 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o2 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o2->tag = 0; o2->u.C_Ty__Bind.f_x = v_x_0; o2->u.C_Ty__Bind.f_t = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_x_0; o2->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); }); }); } -static struct E_Coll__Option__Ast__Fn* f_Ty__fnNamed(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Fn); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? ({ struct E_Coll__Option__Ast__Fn* o3 = (struct E_Coll__Option__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Fn, u) + sizeof(((struct E_Coll__Option__Ast__Fn*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_g_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_r = t0; p_fs = t1; p_f = t2; goto srs_tail; (struct E_Coll__Option__Ast__Fn*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ty__CaseOf* f_Ty__caseNamed(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ (&N_Coll__None__Ty__CaseOf); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_cases_2 = s2->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__caseIn(p_r, v_cases_2, v_e_0, p_f); s3->tag == 1 ? ({ __auto_type v_c_3 = s3->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Ty__CaseOf* o4 = (struct E_Coll__Option__Ty__CaseOf*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ty__CaseOf, u) + sizeof(((struct E_Coll__Option__Ty__CaseOf*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = ({ struct E_Ty__CaseOf* o4 = (struct E_Ty__CaseOf*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__CaseOf, u) + sizeof(((struct E_Ty__CaseOf*)0)->u.C_Ty__CaseOf))); o4->tag = 0; o4->u.C_Ty__CaseOf.f_e = v_e_0; o4->u.C_Ty__CaseOf.f_c = v_c_3; o4; }); o4; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Enum* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_r = t0; p_es = t1; p_f = t2; goto srs_tail; (struct E_Coll__Option__Ty__CaseOf*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__Case* f_Ty__caseIn(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Case); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? ({ struct E_Coll__Option__Ast__Case* o3 = (struct E_Coll__Option__Ast__Case*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Case, u) + sizeof(((struct E_Coll__Option__Ast__Case*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_c_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Ast__Enum* t2 = p_e; struct E_Sym__Sym* t3 = p_f; p_r = t0; p_cs = t1; p_e = t2; p_f = t3; goto srs_tail; (struct E_Coll__Option__Ast__Case*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Open* f_Ty__openEnum(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Ast__Enum* p_e) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_gs_0 = s0->u.C_Ast__Enum.f_groups; ({ __auto_type res_ = f_Ty__open(p_r, p_st, f_Ty__tparams(p_r, v_gs_0, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Ty__Bind), (&N_Coll__Nil__K__Term)); res_; }); }); }); res_; }); } -static struct E_K__Term* f_Ty__enumTerm(srs_cap* p_r, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_vars) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_n_0 = s0->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o1->tag = 1; o1->u.C_K__Con.f_f = v_n_0; o1->u.C_K__Con.f_args = p_vars; o1; }); res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__expr(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Ast__Expr* p_e, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Int.f_line; __auto_type v_v_1 = s0->u.C_Ast__Int.f_v; f_Ty__lit(p_r, p_st, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), p_want, ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Int))); o2->tag = 0; o2->u.C_El__Int.f_line = v_line_0; o2->u.C_El__Int.f_v = v_v_1; o2; })); }) : s0->tag == 1 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bool.f_line; __auto_type v_v_1 = s0->u.C_Ast__Bool.f_v; f_Ty__lit(p_r, p_st, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want, ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bool))); o2->tag = 1; o2->u.C_El__Bool.f_line = v_line_0; o2->u.C_El__Bool.f_v = v_v_1; o2; })); }) : s0->tag == 2 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Str.f_line; __auto_type v_s_1 = s0->u.C_Ast__Str.f_s; f_Ty__lit(p_r, p_st, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Str", 3})), p_want, ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Str))); o2->tag = 2; o2->u.C_El__Str.f_line = v_line_0; o2->u.C_El__Str.f_s = v_s_1; o2; })); }) : s0->tag == 3 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Unit.f_line; f_Ty__lit(p_r, p_st, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Unit", 4})), p_want, ({ struct E_El__Expr* o1 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Unit))); o1->tag = 3; o1->u.C_El__Unit.f_line = v_line_0; o1; })); }) : s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; ({ __auto_type s2 = f_Ty__lookup(p_r, p_bs, v_x_1); s2->tag == 1 ? ({ __auto_type v_t_2 = s2->u.C_Coll__Some.f_v; f_Ty__lit(p_r, f_Ty__nameUse(p_r, p_cx, p_st, v_line_0, v_x_1, v_t_2), v_line_0, v_t_2, p_want, ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Local))); o3->tag = 4; o3->u.C_El__Local.f_line = v_line_0; o3->u.C_El__Local.f_x = v_x_1; o3; })); }) : ({ f_Ty__call(p_r, p_cx, p_st, p_bs, v_line_0, v_x_1, (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Sym__Sym), (&N_Coll__Nil__Ast__Expr), p_want); }); }); }) : s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_2 = s0->u.C_Ast__Call.f_targs; __auto_type v_chosen_3 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_4 = s0->u.C_Ast__Call.f_args; f_Ty__call(p_r, p_cx, p_st, p_bs, v_line_0, v_f_1, v_targs_2, v_chosen_3, v_xs_4, p_want); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; __auto_type v_recv_1 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_2 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_3 = s0->u.C_Ast__Method.f_args; f_Ty__method(p_r, p_cx, p_st, p_bs, v_line_0, v_recv_1, v_op_2, v_xs_3, p_want); }) : s0->tag == 7 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bin.f_line; __auto_type v_op_1 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_2 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_3 = s0->u.C_Ast__Bin.f_rhs; f_Ty__bin(p_r, p_cx, p_st, p_bs, v_line_0, v_op_1, v_l_2, v_rhs_3, p_want); }) : s0->tag == 8 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Un.f_line; __auto_type v_op_1 = s0->u.C_Ast__Un.f_op; __auto_type v_x_2 = s0->u.C_Ast__Un.f_e; ({ struct E_K__Term* v_t_3 = f_Ty__con(p_r, f_Ty__unTy(v_op_1)); __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_x_2, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_ex_5 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_r, v_st1_4, v_line_0, v_t_3, p_want, ({ struct E_El__Expr* o6 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Un))); o6->tag = 10; o6->u.C_El__Un.f_line = v_line_0; o6->u.C_El__Un.f_op = v_op_1; o6->u.C_El__Un.f_e = v_ex_5; o6; })); res_; }); }); }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_c_1, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})); o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_ec_5 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s6 = f_Ty__expr(p_r, p_cx, v_st1_4, p_bs, v_t_2, p_want); ({ __auto_type v_st2_6 = s6->u.C_Ty__Ex.f_st; __auto_type v_tt_7 = s6->u.C_Ty__Ex.f_t; __auto_type v_et_8 = s6->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s9 = f_Ty__expr(p_r, p_cx, v_st2_6, p_bs, v_x_3, ({ struct E_Coll__Option__K__Term* o9 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = v_tt_7; o9; })); ({ __auto_type v_st3_9 = s9->u.C_Ty__Ex.f_st; __auto_type v_ex_10 = s9->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__Ex* o11 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o11->tag = 0; o11->u.C_Ty__Ex.f_st = v_st3_9; o11->u.C_Ty__Ex.f_t = v_tt_7; o11->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o11 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__If))); o11->tag = 11; o11->u.C_El__If.f_line = v_line_0; o11->u.C_El__If.f_c = v_ec_5; o11->u.C_El__If.f_t = v_et_8; o11->u.C_El__If.f_e = v_ex_10; o11; }); o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_s_1, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_ts_4 = s3->u.C_Ty__Ex.f_t; __auto_type v_es_5 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__arms(p_r, p_cx, v_st1_3, p_bs, v_line_0, v_ts_4, v_es_5, v_arms_2, p_want); res_; }); }); }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Block.f_line; __auto_type v_ss_1 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_2 = s0->u.C_Ast__Block.f_last; f_Ty__block(p_r, p_cx, p_st, p_bs, v_line_0, v_ss_1, v_last_2, p_want, (&N_Coll__Nil__El__Stmt)); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_c_1, ({ struct E_Coll__Option__K__Term* o3 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})); o3; })); ({ __auto_type v_st1_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_ec_4 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__expr(p_r, p_cx, v_st1_3, p_bs, v_b_2, (&N_Coll__None__K__Term)); ({ __auto_type v_st2_5 = s5->u.C_Ty__Ex.f_st; __auto_type v_eb_6 = s5->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_r, v_st2_5, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Unit", 4})), p_want, ({ struct E_El__Expr* o7 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__While))); o7->tag = 14; o7->u.C_El__While.f_line = v_line_0; o7->u.C_El__While.f_c = v_ec_4; o7->u.C_El__While.f_body = v_eb_6; o7; })); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 13 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Assign.f_line; __auto_type v_x_1 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_2 = s0->u.C_Ast__Assign.f_e; ({ __auto_type s3 = f_Ty__lookup(p_r, p_bs, v_x_1); s3->tag == 0 ? ({ ({ struct E_Ty__Ex* o3 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o3->tag = 0; o3->u.C_Ty__Ex.f_st = f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o3->tag = 1; o3->u.C_Ty__Unknown.f_line = v_line_0; o3->u.C_Ty__Unknown.f_name = v_x_1; o3; })); o3->u.C_Ty__Ex.f_t = f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Unit", 4})); o3->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o3->tag = 16; o3->u.C_El__Bad.f_line = v_line_0; o3; }); o3; }); }) : ({ __auto_type v_tx_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_v_2, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_tx_3; o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_ev_5 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_r, v_st1_4, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Unit", 4})), p_want, ({ struct E_El__Expr* o6 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Assign))); o6->tag = 15; o6->u.C_El__Assign.f_line = v_line_0; o6->u.C_El__Assign.f_x = v_x_1; o6->u.C_El__Assign.f_e = v_ev_5; o6; })); res_; }); }); }); res_; }); }); }); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Quant.f_line; __auto_type v_x_1 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_2 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_3 = s0->u.C_Ast__Quant.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_r, p_cx, p_st, ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_1; o4->u.C_Ty__Bind.f_t = f_Ty__term(p_r, v_t_2, (&N_Coll__Nil__Ty__Bind)); o4; }); o4->u.C_Coll__Cons.f_t = p_bs; o4; }), v_b_3, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})); o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; ({ __auto_type res_ = f_Ty__lit(p_r, v_st1_4, v_line_0, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want, ({ struct E_El__Expr* o5 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bool))); o5->tag = 1; o5->u.C_El__Bool.f_line = v_line_0; o5->u.C_El__Bool.f_v = true; o5; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Ex* f_Ty__lit(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_t, struct E_Coll__Option__K__Term* p_want, struct E_El__Expr* p_e) { return ({ struct E_Ty__Ex* o0 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o0->tag = 0; o0->u.C_Ty__Ex.f_st = f_Ty__expectOpt(p_r, p_st, p_line, p_t, p_want); o0->u.C_Ty__Ex.f_t = p_t; o0->u.C_Ty__Ex.f_e = p_e; o0; }); } -static struct E_Ty__Ex* f_Ty__bad(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__fresh(p_r, p_st); ({ __auto_type v_st1_0 = s0->u.C_Ty__At.f_st; __auto_type v_v_1 = s0->u.C_Ty__At.f_t; ({ __auto_type res_ = ({ struct E_Ty__Ex* o2 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o2->tag = 0; o2->u.C_Ty__Ex.f_st = v_st1_0; o2->u.C_Ty__Ex.f_t = v_v_1; o2->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o2->tag = 16; o2->u.C_El__Bad.f_line = p_line; o2; }); o2; }); res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__call(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps_2 = s0->u.C_Ty__Cx.f_ps; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__fnNamed(p_r, v_fns_0, p_f); s3->tag == 1 ? ({ __auto_type v_g_3 = s3->u.C_Coll__Some.f_v; f_Ty__callFn(p_r, p_cx, f_Ty__rtCall(p_r, p_cx, f_Ty__pureCall(p_r, p_cx, p_st, p_line, p_f), p_line, v_g_3), p_bs, p_line, v_g_3, p_targs, p_chosen, p_xs, p_want); }) : ({ ({ __auto_type s3 = f_Ty__caseNamed(p_r, v_es_1, p_f); s3->tag == 1 ? ({ __auto_type v_co_3 = s3->u.C_Coll__Some.f_v; f_Ty__callCase(p_r, p_cx, p_st, p_bs, p_line, v_co_3, p_xs, p_want); }) : ({ ({ __auto_type s3 = f_Eff__reqOf(p_r, v_ps_2, p_f); s3->tag == 1 ? ({ __auto_type v_q_3 = s3->u.C_Coll__Some.f_v; f_Ty__request(p_r, p_cx, p_st, p_bs, p_line, v_q_3, p_xs, p_want); }) : ({ f_Ty__bad(p_r, f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o3->tag = 1; o3->u.C_Ty__Unknown.f_line = p_line; o3->u.C_Ty__Unknown.f_name = p_f; o3; })), p_bs, p_xs), p_line); }); }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__request(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Eff__Req* p_q, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_q; ({ __auto_type v_p_0 = s0->u.C_Eff__Req.f_p; __auto_type v_op_1 = s0->u.C_Eff__Req.f_op; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__innermost(p_r, f_Ty__subst(p_st), p_bs, v_p_0); s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Coll__Some.f_v; f_Ty__method(p_r, p_cx, p_st, p_bs, p_line, v_x_2, v_op_1, p_xs, p_want); }) : ({ f_Ty__bad(p_r, f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__UnhandledEffect))); o2->tag = 29; o2->u.C_Ty__UnhandledEffect.f_line = p_line; o2->u.C_Ty__UnhandledEffect.f_p = v_p_0; o2; })), p_bs, p_xs), p_line); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Sym__Sym* f_Ty__innermost(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p) { return f_Ty__innermostFrom(p_r, p_s, p_bs, p_p, (&N_Coll__Nil__Sym__Sym)); } -static struct E_Coll__Option__Sym__Sym* f_Ty__innermostFrom(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_seen) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_t_3 = s2->u.C_Ty__Bind.f_t; ({ bool v_isP_4 = ({ __auto_type s4 = f_K__walk(p_r, p_s, v_t_3); s4->tag == 1 ? ({ __auto_type v_n_4 = s4->u.C_K__Con.f_f; __auto_type v_args_5 = s4->u.C_K__Con.f_args; (f_Sym__eq(v_n_4, p_p) && (f_Coll__length__K__Term(v_args_5) == ((int64_t)0))); }) : ({ false; }); }); __auto_type res_ = ((v_isP_4 && (!f_Ty__memberSym(v_x_2, p_seen))) ? ({ struct E_Coll__Option__Sym__Sym* o5 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_x_2; o5; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_p; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_seen; o5; }); p_r = t0; p_s = t1; p_bs = t2; p_p = t3; p_seen = t4; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Caps* f_Ty__rowCaps(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = p_st; o0->u.C_Ty__Caps.f_caps = f_Coll__rev__Sym__Sym(p_r, p_acc); o0; }); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Eff__Cap.f_p; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__innermost(p_r, f_Ty__subst(p_st), p_bs, v_p_2); s3->tag == 1 ? ({ __auto_type v_x_3 = s3->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Ty__St* t1 = p_st; struct E_Coll__List__Ty__Bind* t2 = p_bs; int64_t t3 = p_line; struct E_Coll__List__Eff__Cap* t4 = v_rest_1; struct E_Coll__List__Sym__Sym* t5 = ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_st = t1; p_bs = t2; p_line = t3; p_cs = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Caps*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Ty__St* t1 = f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__UnhandledEffect))); o3->tag = 29; o3->u.C_Ty__UnhandledEffect.f_line = p_line; o3->u.C_Ty__UnhandledEffect.f_p = v_p_2; o3; })); struct E_Coll__List__Ty__Bind* t2 = p_bs; int64_t t3 = p_line; struct E_Coll__List__Eff__Cap* t4 = v_rest_1; struct E_Coll__List__Sym__Sym* t5 = p_acc; p_r = t0; p_st = t1; p_bs = t2; p_line = t3; p_cs = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Caps*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__args(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_x_0, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_2 = s2->u.C_Ty__Ex.f_st; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ty__Bind* t3 = p_bs; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_xs = t4; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Ex* f_Ty__callFn(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__Fn* p_g, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_name_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_2 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_3 = s0->u.C_Ast__Fn.f_ret; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Ty__tparams(p_r, v_gs_1, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ({ __auto_type s5 = f_Ty__open(p_r, p_st, v_tps_4, (&N_Coll__Nil__Ty__Bind), (&N_Coll__Nil__K__Term)); ({ __auto_type v_st1_5 = s5->u.C_Ty__Open.f_st; __auto_type v_tv_6 = s5->u.C_Ty__Open.f_tv; __auto_type v_vars_7 = s5->u.C_Ty__Open.f_vars; ({ struct E_Ty__St* v_st2_8 = f_Ty__explicit(p_r, v_st1_5, p_line, v_vars_7, f_Ty__terms(p_r, p_targs, (&N_Coll__Nil__Ty__Bind), (&N_Coll__Nil__K__Term))); struct E_K__Term* v_rt_9 = f_Ty__term(p_r, v_ret_3, v_tv_6); struct E_Ty__St* v_st3_10 = f_Ty__expectOpt(p_r, v_st2_8, p_line, v_rt_9, p_want); __auto_type res_ = ((f_Coll__length__Ast__Binder(v_ps_2) != f_Coll__length__Ast__Expr(p_xs)) ? ({ struct E_Ty__Ex* o11 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o11->tag = 0; o11->u.C_Ty__Ex.f_st = f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, v_st3_10, ({ struct E_Ty__Clash* o11 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o11->tag = 2; o11->u.C_Ty__Arity.f_line = p_line; o11->u.C_Ty__Arity.f_name = v_name_0; o11; })), p_bs, p_xs); o11->u.C_Ty__Ex.f_t = v_rt_9; o11->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o11 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o11->tag = 16; o11->u.C_El__Bad.f_line = p_line; o11; }); o11; }) : ({ __auto_type res_ = ({ __auto_type s11 = f_Ty__params(p_r, p_cx, v_st3_10, p_bs, p_line, v_ps_2, v_tv_6, p_xs, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st4_11 = s11->u.C_Ty__Es.f_st; __auto_type v_eargs_12 = s11->u.C_Ty__Es.f_es; ({ struct E_Coll__List__Ast__Binder* v_ev_13 = f_Ty__evidence(p_r, v_gs_1, (&N_Coll__Nil__Ast__Binder)); struct E_Ty__St* v_st4b_14 = (((f_Coll__length__Sym__Sym(p_chosen) > ((int64_t)0)) && (f_Coll__length__Sym__Sym(p_chosen) != f_Coll__length__Ast__Binder(v_ev_13))) ? f_Ty__clash(p_r, v_st4_11, ({ struct E_Ty__Clash* o14 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ChosenCount))); o14->tag = 17; o14->u.C_Ty__ChosenCount.f_line = p_line; o14->u.C_Ty__ChosenCount.f_f = v_name_0; o14; })) : v_st4_11); __auto_type res_ = ({ __auto_type s15 = f_Ty__capArgs(p_r, p_cx, v_st4b_14, p_bs, p_line, v_tv_6, v_ev_13, p_chosen, ((int64_t)0), (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_st5_15 = s15->u.C_Ty__Caps.f_st; __auto_type v_caps_16 = s15->u.C_Ty__Caps.f_caps; ({ __auto_type res_ = ({ __auto_type s17 = p_cx; ({ __auto_type v_rows_17 = s17->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s18 = f_Ty__rowCaps(p_r, v_st5_15, p_bs, p_line, f_Eff__row(p_r, v_rows_17, v_name_0), (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_st6_18 = s18->u.C_Ty__Caps.f_st; __auto_type v_icaps_19 = s18->u.C_Ty__Caps.f_caps; ({ __auto_type res_ = ({ struct E_Ty__Ex* o20 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o20->tag = 0; o20->u.C_Ty__Ex.f_st = f_Ty__inst(p_r, v_st6_18, p_line, v_name_0, v_vars_7); o20->u.C_Ty__Ex.f_t = v_rt_9; o20->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o20 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__CallFn))); o20->tag = 5; o20->u.C_El__CallFn.f_line = p_line; o20->u.C_El__CallFn.f_f = v_name_0; o20->u.C_El__CallFn.f_targs = v_vars_7; o20->u.C_El__CallFn.f_caps = f_Coll__revOnto__Sym__Sym(p_r, f_Coll__rev__Sym__Sym(p_r, v_caps_16), v_icaps_19); o20->u.C_El__CallFn.f_args = v_eargs_12; o20; }); o20; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__inst(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_name, struct E_Coll__List__K__Term* p_vars) { return ({ __auto_type s0 = p_vars; s0->tag == 0 ? ({ p_st; }) : ({ ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = v_cs_2; o6->u.C_Ty__St.f_is = ({ struct E_Coll__List__Ty__Inst* o6 = (struct E_Coll__List__Ty__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Inst, u) + sizeof(((struct E_Coll__List__Ty__Inst*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ty__Inst* o6 = (struct E_Ty__Inst*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Inst, u) + sizeof(((struct E_Ty__Inst*)0)->u.C_Ty__Inst))); o6->tag = 0; o6->u.C_Ty__Inst.f_line = p_line; o6->u.C_Ty__Inst.f_f = p_name; o6->u.C_Ty__Inst.f_targs = p_vars; o6; }); o6->u.C_Coll__Cons.f_t = v_is_3; o6; }); o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__explicit(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__K__Term* p_vars, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_vars; s2->tag == 0 ? ({ f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o2->tag = 2; o2->u.C_Ty__Arity.f_line = p_line; o2->u.C_Ty__Arity.f_name = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"[]", 2})); o2; })); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_vs_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Ty__St* t1 = f_Ty__expect(p_r, p_st, p_line, v_v_2, v_t_0); int64_t t2 = p_line; struct E_Coll__List__K__Term* t3 = v_vs_3; struct E_Coll__List__K__Term* t4 = v_rest_1; p_r = t0; p_st = t1; p_line = t2; p_vars = t3; p_ts = t4; goto srs_tail; (struct E_Ty__St*){0}; }); }); }); }); }); } -static struct E_Ty__Es* f_Ty__params(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ ({ struct E_Ty__Es* o0 = (struct E_Ty__Es*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Es, u) + sizeof(((struct E_Ty__Es*)0)->u.C_Ty__Es))); o0->tag = 0; o0->u.C_Ty__Es.f_st = p_st; o0->u.C_Ty__Es.f_es = f_Coll__rev__El__Expr(p_r, p_acc); o0; }); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_prest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ ({ struct E_Ty__Es* o2 = (struct E_Ty__Es*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Es, u) + sizeof(((struct E_Ty__Es*)0)->u.C_Ty__Es))); o2->tag = 0; o2->u.C_Ty__Es.f_st = p_st; o2->u.C_Ty__Es.f_es = f_Coll__rev__El__Expr(p_r, p_acc); o2; }); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_p_0; ({ __auto_type v_pt_4 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_x_2, ({ struct E_Coll__Option__K__Term* o5 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = f_Ty__term(p_r, v_pt_4, p_tv); o5; })); ({ __auto_type v_st1_5 = s5->u.C_Ty__Ex.f_st; __auto_type v_ex_6 = s5->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ast__Binder* t5 = v_prest_1; struct E_Coll__List__Ty__Bind* t6 = p_tv; struct E_Coll__List__Ast__Expr* t7 = v_xrest_3; struct E_Coll__List__El__Expr* t8 = ({ struct E_Coll__List__El__Expr* o7 = (struct E_Coll__List__El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Expr, u) + sizeof(((struct E_Coll__List__El__Expr*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_ex_6; o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ps = t5; p_tv = t6; p_xs = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Es*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Coll__List__El__Expr* f_Coll__rev__El__Expr(srs_cap* p_r, struct E_Coll__List__El__Expr* p_xs) { return f_Coll__revOnto__El__Expr(p_r, p_xs, (&N_Coll__Nil__El__Expr)); } -static struct E_Coll__List__El__Expr* f_Coll__revOnto__El__Expr(srs_cap* p_r, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Expr* t1 = v_t_1; struct E_Coll__List__El__Expr* t2 = ({ struct E_Coll__List__El__Expr* o2 = (struct E_Coll__List__El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Expr, u) + sizeof(((struct E_Coll__List__El__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Expr*){0}; }); }); }); } -static struct E_Ty__Caps* f_Ty__capArgs(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ev; s0->tag == 0 ? ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = p_st; o0->u.C_Ty__Caps.f_caps = f_Coll__rev__Sym__Sym(p_r, p_acc); o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = v_t_2; ({ __auto_type v_pn_3 = s3->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_ps_4 = s4->u.C_Ty__Cx.f_ps; ({ __auto_type res_ = ((!f_Ty__isProto(v_ps_4, v_pn_3)) ? ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = f_Ty__addGoal(p_r, p_st, ({ struct E_Ty__Goal* o5 = (struct E_Ty__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Goal, u) + sizeof(((struct E_Ty__Goal*)0)->u.C_Ty__Goal))); o5->tag = 0; o5->u.C_Ty__Goal.f_line = p_line; o5->u.C_Ty__Goal.f_goal = f_Ty__term(p_r, v_t_2, p_tv); o5->u.C_Ty__Goal.f_locals = p_bs; o5->u.C_Ty__Goal.f_chosen = f_Ty__nthSym(p_r, p_chosen, p_i); o5; })); struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ty__Bind* t5 = p_tv; struct E_Coll__List__Ast__Binder* t6 = v_rest_1; struct E_Coll__List__Sym__Sym* t7 = p_chosen; int64_t t8 = (p_i + ((int64_t)1)); struct E_Coll__List__Sym__Sym* t9 = p_acc; p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_tv = t5; p_ev = t6; p_chosen = t7; p_i = t8; p_acc = t9; goto srs_tail; (struct E_Ty__Caps*){0}; }) : ({ __auto_type s5 = f_Ty__capFor(p_r, p_st, p_bs, p_line, v_pn_3, p_chosen, p_i); ({ __auto_type v_st1_5 = s5->u.C_Ty__Caps.f_st; __auto_type v_c_6 = s5->u.C_Ty__Caps.f_caps; ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ty__Bind* t5 = p_tv; struct E_Coll__List__Ast__Binder* t6 = v_rest_1; struct E_Coll__List__Sym__Sym* t7 = p_chosen; int64_t t8 = (p_i + ((int64_t)1)); struct E_Coll__List__Sym__Sym* t9 = f_Coll__revOnto__Sym__Sym(p_r, v_c_6, p_acc); p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_tv = t5; p_ev = t6; p_chosen = t7; p_i = t8; p_acc = t9; goto srs_tail; (struct E_Ty__Caps*){0}; }); }); })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Caps* f_Ty__capFor(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i) { return ({ __auto_type s0 = p_chosen; s0->tag == 1 ? ({ ({ __auto_type s0 = f_Ty__nthSym(p_r, p_chosen, p_i); s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ struct E_Ty__Caps* o1 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o1->tag = 0; o1->u.C_Ty__Caps.f_st = (f_Ty__isCapOf(p_r, f_Ty__subst(p_st), p_bs, v_x_0, p_p) ? p_st : f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o1 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ChosenNotCap))); o1->tag = 18; o1->u.C_Ty__ChosenNotCap.f_line = p_line; o1->u.C_Ty__ChosenNotCap.f_p = p_p; o1; }))); o1->u.C_Ty__Caps.f_caps = ({ struct E_Coll__List__Sym__Sym* o1 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_x_0; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o1; }); o1; }); }) : ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o0->tag = 6; o0->u.C_Ty__NoCap.f_line = p_line; o0->u.C_Ty__NoCap.f_p = p_p; o0; })); o0->u.C_Ty__Caps.f_caps = (&N_Coll__Nil__Sym__Sym); o0; }); }); }); }) : ({ ({ __auto_type s0 = f_Ty__capsOf(p_r, f_Ty__subst(p_st), p_bs, p_p, (&N_Coll__Nil__Sym__Sym)); s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_more_1; s2->tag == 0 ? ({ ({ struct E_Ty__Caps* o2 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o2->tag = 0; o2->u.C_Ty__Caps.f_st = p_st; o2->u.C_Ty__Caps.f_caps = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o2; }); o2; }); }) : ({ ({ struct E_Ty__Caps* o2 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o2->tag = 0; o2->u.C_Ty__Caps.f_st = f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o2->tag = 6; o2->u.C_Ty__NoCap.f_line = p_line; o2->u.C_Ty__NoCap.f_p = p_p; o2; })); o2->u.C_Ty__Caps.f_caps = (&N_Coll__Nil__Sym__Sym); o2; }); }); }); }) : ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o0->tag = 6; o0->u.C_Ty__NoCap.f_line = p_line; o0->u.C_Ty__NoCap.f_p = p_p; o0; })); o0->u.C_Ty__Caps.f_caps = (&N_Coll__Nil__Sym__Sym); o0; }); }); }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Ty__capsOf(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_t_3 = s2->u.C_Ty__Bind.f_t; ({ bool v_isP_4 = ({ __auto_type s4 = f_K__walk(p_r, p_s, v_t_3); s4->tag == 1 ? ({ __auto_type v_n_4 = s4->u.C_K__Con.f_f; __auto_type v_args_5 = s4->u.C_K__Con.f_args; (f_Sym__eq(v_n_4, p_p) && (f_Coll__length__K__Term(v_args_5) == ((int64_t)0))); }) : ({ false; }); }); __auto_type res_ = ((v_isP_4 && (!f_Ty__memberSym(v_x_2, p_acc))) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_p; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_s = t1; p_bs = t2; p_p = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_p; struct E_Coll__List__Sym__Sym* t4 = p_acc; p_r = t0; p_s = t1; p_bs = t2; p_p = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_K__Term* f_Ty__con(srs_cap* p_eff__Region, srs_str p_n) { return ({ struct E_K__Term* o0 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o0->tag = 1; o0->u.C_K__Con.f_f = f_Sym__of(p_eff__Region, p_n); o0->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o0; }); } +static struct E_Ty__At* f_Ty__fresh(srs_cap* p_eff__Region, struct E_Ty__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__At* o6 = (struct E_Ty__At*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__At, u) + sizeof(((struct E_Ty__At*)0)->u.C_Ty__At))); o6->tag = 0; o6->u.C_Ty__At.f_st = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = (v_n_1 + ((int64_t)1)); o6->u.C_Ty__St.f_cs = v_cs_2; o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); o6->u.C_Ty__At.f_t = ({ struct E_K__Term* o6 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Var))); o6->tag = 0; o6->u.C_K__Var.f_n = v_n_1; o6; }); o6; }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__clash(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Ty__Clash* p_c) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o6 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_c; o6->u.C_Coll__Cons.f_t = v_cs_2; o6; }); o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__expect(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ __auto_type s6 = f_K__unify(p_eff__Region, v_s_0, p_got, p_want); s6->tag == 1 ? ({ __auto_type v_s2_6 = s6->u.C_Coll__Some.f_v; ({ struct E_Ty__St* o7 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o7->tag = 0; o7->u.C_Ty__St.f_s = v_s2_6; o7->u.C_Ty__St.f_next = v_n_1; o7->u.C_Ty__St.f_cs = v_cs_2; o7->u.C_Ty__St.f_is = v_is_3; o7->u.C_Ty__St.f_gs = v_gs_4; o7->u.C_Ty__St.f_nom = v_nm_5; o7; }); }) : ({ ({ __auto_type s6 = f_Ty__widen(p_eff__Region, v_nm_5, f_K__walk(v_s_0, p_got)); s6->tag == 1 ? ({ __auto_type v_body_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type s7 = f_K__unify(p_eff__Region, v_s_0, v_body_6, p_want); s7->tag == 1 ? ({ __auto_type v_s3_7 = s7->u.C_Coll__Some.f_v; ({ struct E_Ty__St* o8 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o8->tag = 0; o8->u.C_Ty__St.f_s = v_s3_7; o8->u.C_Ty__St.f_next = v_n_1; o8->u.C_Ty__St.f_cs = v_cs_2; o8->u.C_Ty__St.f_is = v_is_3; o8->u.C_Ty__St.f_gs = v_gs_4; o8->u.C_Ty__St.f_nom = v_nm_5; o8; }); }) : ({ ({ struct E_Ty__St* o7 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o7->tag = 0; o7->u.C_Ty__St.f_s = v_s_0; o7->u.C_Ty__St.f_next = v_n_1; o7->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o7 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o7 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Mismatch))); o7->tag = 0; o7->u.C_Ty__Mismatch.f_line = p_line; o7->u.C_Ty__Mismatch.f_got = p_got; o7->u.C_Ty__Mismatch.f_want = p_want; o7; }); o7->u.C_Coll__Cons.f_t = v_cs_2; o7; }); o7->u.C_Ty__St.f_is = v_is_3; o7->u.C_Ty__St.f_gs = v_gs_4; o7->u.C_Ty__St.f_nom = v_nm_5; o7; }); }); }); }) : ({ ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o6 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Mismatch))); o6->tag = 0; o6->u.C_Ty__Mismatch.f_line = p_line; o6->u.C_Ty__Mismatch.f_got = p_got; o6->u.C_Ty__Mismatch.f_want = p_want; o6; }); o6->u.C_Coll__Cons.f_t = v_cs_2; o6; }); o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__K__Term* f_Ty__widen(srs_cap* p_eff__Region, struct E_Coll__SMap__K__Term* p_nm, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; f_Coll__sLookup__K__Term(p_eff__Region, p_nm, v_n_0); }) : ({ (&N_Coll__None__K__Term); }); }); } +static struct E_Coll__SMap__K__Term* f_Ty__nominals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__SMap__K__Term* p_m) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ __auto_type res_ = ({ __auto_type s3 = v_td_2; ({ __auto_type v_n_3 = s3->u.C_Ast__TypeDecl.f_name; __auto_type v_gs_4 = s3->u.C_Ast__TypeDecl.f_groups; __auto_type v_body_5 = s3->u.C_Ast__TypeDecl.f_body; ({ struct E_Coll__SMap__K__Term* v_m2_6 = ({ __auto_type s6 = v_body_5; s6->tag == 0 ? ({ __auto_type v_t_6 = s6->u.C_Ast__Alias.f_t; (f_Tl__hasFacts(v_gs_4) ? f_Coll__sInsert__K__Term(p_eff__Region, p_m, v_n_3, f_Ty__term(p_eff__Region, v_t_6, (&N_Coll__Nil__Ty__Bind))) : p_m); }) : ({ p_m; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__K__Term* t2 = v_m2_6; p_eff__Region = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__K__Term*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__SMap__K__Term* t2 = p_m; p_eff__Region = t0; p_ds = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__K__Term*){0}; }); }); }); }); }); } +static struct E_Ty__St* f_Ty__expectOpt(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_got, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_want; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_w_0 = s0->u.C_Coll__Some.f_v; f_Ty__expect(p_eff__Region, p_st, p_line, p_got, v_w_0); }); }); } +static struct E_Coll__Option__K__Term* f_Ty__lookup(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__K__Term); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_y_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_t_3 = s2->u.C_Ty__Bind.f_t; ({ __auto_type res_ = (f_Sym__eq(p_x, v_y_2) ? ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Bind* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_x; p_eff__Region = t0; p_bs = t1; p_x = t2; goto srs_tail; (struct E_Coll__Option__K__Term*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_K__Term* f_Ty__term(srs_cap* p_eff__Region, struct E_Ast__Ty* p_t, struct E_Coll__List__Ty__Bind* p_tv) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ __auto_type s2 = v_args_1; s2->tag == 0 ? ({ ({ __auto_type s2 = f_Ty__lookup(p_eff__Region, p_tv, v_n_0); s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Coll__Some.f_v; v_x_2; }) : ({ ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_n_0; o2->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o2; }); }); }); }) : ({ ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_n_0; o2->u.C_K__Con.f_args = f_Ty__terms(p_eff__Region, v_args_1, p_tv, (&N_Coll__Nil__K__Term)); o2; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__K__Term* f_Ty__terms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Ty* p_ts, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_acc); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o2 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = f_Ty__term(p_eff__Region, v_t_0, p_tv); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_ts = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Ty__tparams(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 0 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Types.f_bs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = f_Ty__names(p_eff__Region, v_bs_2, p_acc); p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : s2->tag == 1 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); }); }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Ty__names(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Open* f_Ty__open(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_vars) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Ty__Open* o0 = (struct E_Ty__Open*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Open, u) + sizeof(((struct E_Ty__Open*)0)->u.C_Ty__Open))); o0->tag = 0; o0->u.C_Ty__Open.f_st = p_st; o0->u.C_Ty__Open.f_tv = p_tv; o0->u.C_Ty__Open.f_vars = f_Coll__rev__K__Term(p_eff__Region, p_vars); o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__fresh(p_eff__Region, p_st); ({ __auto_type v_st1_2 = s2->u.C_Ty__At.f_st; __auto_type v_v_3 = s2->u.C_Ty__At.f_t; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__St* t1 = v_st1_2; struct E_Coll__List__Sym__Sym* t2 = v_rest_1; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_0; o4->u.C_Ty__Bind.f_t = v_v_3; o4; }); o4->u.C_Coll__Cons.f_t = p_tv; o4; }); struct E_Coll__List__K__Term* t4 = ({ struct E_Coll__List__K__Term* o4 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_v_3; o4->u.C_Coll__Cons.f_t = p_vars; o4; }); p_eff__Region = t0; p_st = t1; p_xs = t2; p_tv = t3; p_vars = t4; goto srs_tail; (struct E_Ty__Open*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ty__Bind* f_Ty__rigid(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = ({ struct E_Coll__List__Ty__Bind* o2 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o2 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o2->tag = 0; o2->u.C_Ty__Bind.f_x = v_x_0; o2->u.C_Ty__Bind.f_t = ({ struct E_K__Term* o2 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o2->tag = 1; o2->u.C_K__Con.f_f = v_x_0; o2->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o2; }); o2; }); o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); }); }); } +static struct E_Coll__Option__Ast__Fn* f_Ty__fnNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Fn); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? ({ struct E_Coll__Option__Ast__Fn* o3 = (struct E_Coll__Option__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Fn, u) + sizeof(((struct E_Coll__Option__Ast__Fn*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_g_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_eff__Region = t0; p_fs = t1; p_f = t2; goto srs_tail; (struct E_Coll__Option__Ast__Fn*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ty__CaseOf* f_Ty__caseNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ (&N_Coll__None__Ty__CaseOf); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_cases_2 = s2->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__caseIn(p_eff__Region, v_cases_2, v_e_0, p_f); s3->tag == 1 ? ({ __auto_type v_c_3 = s3->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Ty__CaseOf* o4 = (struct E_Coll__Option__Ty__CaseOf*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ty__CaseOf, u) + sizeof(((struct E_Coll__Option__Ty__CaseOf*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = ({ struct E_Ty__CaseOf* o4 = (struct E_Ty__CaseOf*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__CaseOf, u) + sizeof(((struct E_Ty__CaseOf*)0)->u.C_Ty__CaseOf))); o4->tag = 0; o4->u.C_Ty__CaseOf.f_e = v_e_0; o4->u.C_Ty__CaseOf.f_c = v_c_3; o4; }); o4; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Enum* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_f; p_eff__Region = t0; p_es = t1; p_f = t2; goto srs_tail; (struct E_Coll__Option__Ty__CaseOf*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__Case* f_Ty__caseIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Ast__Enum* p_e, struct E_Sym__Sym* p_f) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Case); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_f) ? ({ struct E_Coll__Option__Ast__Case* o3 = (struct E_Coll__Option__Ast__Case*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Case, u) + sizeof(((struct E_Coll__Option__Ast__Case*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_c_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Ast__Enum* t2 = p_e; struct E_Sym__Sym* t3 = p_f; p_eff__Region = t0; p_cs = t1; p_e = t2; p_f = t3; goto srs_tail; (struct E_Coll__Option__Ast__Case*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Open* f_Ty__openEnum(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Ast__Enum* p_e) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_gs_0 = s0->u.C_Ast__Enum.f_groups; ({ __auto_type res_ = f_Ty__open(p_eff__Region, p_st, f_Ty__tparams(p_eff__Region, v_gs_0, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Ty__Bind), (&N_Coll__Nil__K__Term)); res_; }); }); }); res_; }); } +static struct E_K__Term* f_Ty__enumTerm(srs_cap* p_eff__Region, struct E_Ast__Enum* p_e, struct E_Coll__List__K__Term* p_vars) { return ({ __auto_type res_ = ({ __auto_type s0 = p_e; ({ __auto_type v_n_0 = s0->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ struct E_K__Term* o1 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o1->tag = 1; o1->u.C_K__Con.f_f = v_n_0; o1->u.C_K__Con.f_args = p_vars; o1; }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__expr(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Ast__Expr* p_e, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Int.f_line; __auto_type v_v_1 = s0->u.C_Ast__Int.f_v; f_Ty__lit(p_eff__Region, p_st, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), p_want, ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Int))); o2->tag = 0; o2->u.C_El__Int.f_line = v_line_0; o2->u.C_El__Int.f_v = v_v_1; o2; })); }) : s0->tag == 1 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bool.f_line; __auto_type v_v_1 = s0->u.C_Ast__Bool.f_v; f_Ty__lit(p_eff__Region, p_st, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want, ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bool))); o2->tag = 1; o2->u.C_El__Bool.f_line = v_line_0; o2->u.C_El__Bool.f_v = v_v_1; o2; })); }) : s0->tag == 2 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Str.f_line; __auto_type v_s_1 = s0->u.C_Ast__Str.f_s; f_Ty__lit(p_eff__Region, p_st, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Str", 3})), p_want, ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Str))); o2->tag = 2; o2->u.C_El__Str.f_line = v_line_0; o2->u.C_El__Str.f_s = v_s_1; o2; })); }) : s0->tag == 3 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Unit.f_line; f_Ty__lit(p_eff__Region, p_st, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Unit", 4})), p_want, ({ struct E_El__Expr* o1 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Unit))); o1->tag = 3; o1->u.C_El__Unit.f_line = v_line_0; o1; })); }) : s0->tag == 4 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Name.f_line; __auto_type v_x_1 = s0->u.C_Ast__Name.f_n; ({ __auto_type s2 = f_Ty__lookup(p_eff__Region, p_bs, v_x_1); s2->tag == 1 ? ({ __auto_type v_t_2 = s2->u.C_Coll__Some.f_v; f_Ty__lit(p_eff__Region, f_Ty__nameUse(p_eff__Region, p_cx, p_st, v_line_0, v_x_1, v_t_2), v_line_0, v_t_2, p_want, ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Local))); o3->tag = 4; o3->u.C_El__Local.f_line = v_line_0; o3->u.C_El__Local.f_x = v_x_1; o3; })); }) : ({ f_Ty__call(p_eff__Region, p_cx, p_st, p_bs, v_line_0, v_x_1, (&N_Coll__Nil__Ast__Ty), (&N_Coll__Nil__Sym__Sym), (&N_Coll__Nil__Ast__Expr), p_want); }); }); }) : s0->tag == 5 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Call.f_line; __auto_type v_f_1 = s0->u.C_Ast__Call.f_f; __auto_type v_targs_2 = s0->u.C_Ast__Call.f_targs; __auto_type v_chosen_3 = s0->u.C_Ast__Call.f_chosen; __auto_type v_xs_4 = s0->u.C_Ast__Call.f_args; f_Ty__call(p_eff__Region, p_cx, p_st, p_bs, v_line_0, v_f_1, v_targs_2, v_chosen_3, v_xs_4, p_want); }) : s0->tag == 6 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Method.f_line; __auto_type v_recv_1 = s0->u.C_Ast__Method.f_recv; __auto_type v_op_2 = s0->u.C_Ast__Method.f_op; __auto_type v_xs_3 = s0->u.C_Ast__Method.f_args; f_Ty__method(p_eff__Region, p_cx, p_st, p_bs, v_line_0, v_recv_1, v_op_2, v_xs_3, p_want); }) : s0->tag == 7 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Bin.f_line; __auto_type v_op_1 = s0->u.C_Ast__Bin.f_op; __auto_type v_l_2 = s0->u.C_Ast__Bin.f_l; __auto_type v_rhs_3 = s0->u.C_Ast__Bin.f_rhs; f_Ty__bin(p_eff__Region, p_cx, p_st, p_bs, v_line_0, v_op_1, v_l_2, v_rhs_3, p_want); }) : s0->tag == 8 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Un.f_line; __auto_type v_op_1 = s0->u.C_Ast__Un.f_op; __auto_type v_x_2 = s0->u.C_Ast__Un.f_e; ({ struct E_K__Term* v_t_3 = f_Ty__con(p_eff__Region, f_Ty__unTy(v_op_1)); __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_x_2, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_t_3; o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_ex_5 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st1_4, v_line_0, v_t_3, p_want, ({ struct E_El__Expr* o6 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Un))); o6->tag = 10; o6->u.C_El__Un.f_line = v_line_0; o6->u.C_El__Un.f_op = v_op_1; o6->u.C_El__Un.f_e = v_ex_5; o6; })); res_; }); }); }); res_; }); }) : s0->tag == 9 ? ({ __auto_type v_line_0 = s0->u.C_Ast__If.f_line; __auto_type v_c_1 = s0->u.C_Ast__If.f_c; __auto_type v_t_2 = s0->u.C_Ast__If.f_t; __auto_type v_x_3 = s0->u.C_Ast__If.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_c_1, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})); o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_ec_5 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s6 = f_Ty__expr(p_eff__Region, p_cx, v_st1_4, p_bs, v_t_2, p_want); ({ __auto_type v_st2_6 = s6->u.C_Ty__Ex.f_st; __auto_type v_tt_7 = s6->u.C_Ty__Ex.f_t; __auto_type v_et_8 = s6->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s9 = f_Ty__expr(p_eff__Region, p_cx, v_st2_6, p_bs, v_x_3, ({ struct E_Coll__Option__K__Term* o9 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o9->tag = 1; o9->u.C_Coll__Some.f_v = v_tt_7; o9; })); ({ __auto_type v_st3_9 = s9->u.C_Ty__Ex.f_st; __auto_type v_ex_10 = s9->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__Ex* o11 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o11->tag = 0; o11->u.C_Ty__Ex.f_st = v_st3_9; o11->u.C_Ty__Ex.f_t = v_tt_7; o11->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o11 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__If))); o11->tag = 11; o11->u.C_El__If.f_line = v_line_0; o11->u.C_El__If.f_c = v_ec_5; o11->u.C_El__If.f_t = v_et_8; o11->u.C_El__If.f_e = v_ex_10; o11; }); o11; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 10 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Match.f_line; __auto_type v_s_1 = s0->u.C_Ast__Match.f_s; __auto_type v_arms_2 = s0->u.C_Ast__Match.f_arms; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_s_1, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_ts_4 = s3->u.C_Ty__Ex.f_t; __auto_type v_es_5 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__arms(p_eff__Region, p_cx, v_st1_3, p_bs, v_line_0, v_ts_4, v_es_5, v_arms_2, p_want); res_; }); }); }); res_; }); }) : s0->tag == 11 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Block.f_line; __auto_type v_ss_1 = s0->u.C_Ast__Block.f_stmts; __auto_type v_last_2 = s0->u.C_Ast__Block.f_last; f_Ty__block(p_eff__Region, p_cx, p_st, p_bs, v_line_0, v_ss_1, v_last_2, p_want, (&N_Coll__Nil__El__Stmt)); }) : s0->tag == 12 ? ({ __auto_type v_line_0 = s0->u.C_Ast__While.f_line; __auto_type v_c_1 = s0->u.C_Ast__While.f_c; __auto_type v_b_2 = s0->u.C_Ast__While.f_body; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_c_1, ({ struct E_Coll__Option__K__Term* o3 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})); o3; })); ({ __auto_type v_st1_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_ec_4 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__expr(p_eff__Region, p_cx, v_st1_3, p_bs, v_b_2, (&N_Coll__None__K__Term)); ({ __auto_type v_st2_5 = s5->u.C_Ty__Ex.f_st; __auto_type v_eb_6 = s5->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st2_5, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Unit", 4})), p_want, ({ struct E_El__Expr* o7 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__While))); o7->tag = 14; o7->u.C_El__While.f_line = v_line_0; o7->u.C_El__While.f_c = v_ec_4; o7->u.C_El__While.f_body = v_eb_6; o7; })); res_; }); }); }); res_; }); }); }); res_; }); }) : s0->tag == 13 ? ({ __auto_type v_line_0 = s0->u.C_Ast__Assign.f_line; __auto_type v_x_1 = s0->u.C_Ast__Assign.f_x; __auto_type v_v_2 = s0->u.C_Ast__Assign.f_e; ({ __auto_type s3 = f_Ty__lookup(p_eff__Region, p_bs, v_x_1); s3->tag == 0 ? ({ ({ struct E_Ty__Ex* o3 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o3->tag = 0; o3->u.C_Ty__Ex.f_st = f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o3->tag = 1; o3->u.C_Ty__Unknown.f_line = v_line_0; o3->u.C_Ty__Unknown.f_name = v_x_1; o3; })); o3->u.C_Ty__Ex.f_t = f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Unit", 4})); o3->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o3->tag = 16; o3->u.C_El__Bad.f_line = v_line_0; o3; }); o3; }); }) : ({ __auto_type v_tx_3 = s3->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_v_2, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_tx_3; o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_ev_5 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st1_4, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Unit", 4})), p_want, ({ struct E_El__Expr* o6 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Assign))); o6->tag = 15; o6->u.C_El__Assign.f_line = v_line_0; o6->u.C_El__Assign.f_x = v_x_1; o6->u.C_El__Assign.f_e = v_ev_5; o6; })); res_; }); }); }); res_; }); }); }); }) : ({ __auto_type v_line_0 = s0->u.C_Ast__Quant.f_line; __auto_type v_x_1 = s0->u.C_Ast__Quant.f_x; __auto_type v_t_2 = s0->u.C_Ast__Quant.f_t; __auto_type v_b_3 = s0->u.C_Ast__Quant.f_e; ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__expr(p_eff__Region, p_cx, p_st, ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_1; o4->u.C_Ty__Bind.f_t = f_Ty__term(p_eff__Region, v_t_2, (&N_Coll__Nil__Ty__Bind)); o4; }); o4->u.C_Coll__Cons.f_t = p_bs; o4; }), v_b_3, ({ struct E_Coll__Option__K__Term* o4 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})); o4; })); ({ __auto_type v_st1_4 = s4->u.C_Ty__Ex.f_st; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st1_4, v_line_0, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want, ({ struct E_El__Expr* o5 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bool))); o5->tag = 1; o5->u.C_El__Bool.f_line = v_line_0; o5->u.C_El__Bool.f_v = true; o5; })); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Ex* f_Ty__lit(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_K__Term* p_t, struct E_Coll__Option__K__Term* p_want, struct E_El__Expr* p_e) { return ({ struct E_Ty__Ex* o0 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o0->tag = 0; o0->u.C_Ty__Ex.f_st = f_Ty__expectOpt(p_eff__Region, p_st, p_line, p_t, p_want); o0->u.C_Ty__Ex.f_t = p_t; o0->u.C_Ty__Ex.f_e = p_e; o0; }); } +static struct E_Ty__Ex* f_Ty__bad(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__fresh(p_eff__Region, p_st); ({ __auto_type v_st1_0 = s0->u.C_Ty__At.f_st; __auto_type v_v_1 = s0->u.C_Ty__At.f_t; ({ __auto_type res_ = ({ struct E_Ty__Ex* o2 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o2->tag = 0; o2->u.C_Ty__Ex.f_st = v_st1_0; o2->u.C_Ty__Ex.f_t = v_v_1; o2->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o2 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o2->tag = 16; o2->u.C_El__Bad.f_line = p_line; o2; }); o2; }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__call(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_f, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps_2 = s0->u.C_Ty__Cx.f_ps; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__fnNamed(p_eff__Region, v_fns_0, p_f); s3->tag == 1 ? ({ __auto_type v_g_3 = s3->u.C_Coll__Some.f_v; f_Ty__callFn(p_eff__Region, p_cx, f_Ty__rtCall(p_eff__Region, p_cx, f_Ty__pureCall(p_eff__Region, p_cx, p_st, p_line, p_f), p_line, v_g_3), p_bs, p_line, v_g_3, p_targs, p_chosen, p_xs, p_want); }) : ({ ({ __auto_type s3 = f_Ty__caseNamed(p_eff__Region, v_es_1, p_f); s3->tag == 1 ? ({ __auto_type v_co_3 = s3->u.C_Coll__Some.f_v; f_Ty__callCase(p_eff__Region, p_cx, p_st, p_bs, p_line, v_co_3, p_xs, p_want); }) : ({ ({ __auto_type s3 = f_Eff__reqOf(p_eff__Region, v_ps_2, p_f); s3->tag == 1 ? ({ __auto_type v_q_3 = s3->u.C_Coll__Some.f_v; f_Ty__request(p_eff__Region, p_cx, p_st, p_bs, p_line, v_q_3, p_xs, p_want); }) : ({ f_Ty__bad(p_eff__Region, f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o3->tag = 1; o3->u.C_Ty__Unknown.f_line = p_line; o3->u.C_Ty__Unknown.f_name = p_f; o3; })), p_bs, p_xs), p_line); }); }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__request(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Eff__Req* p_q, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_q; ({ __auto_type v_p_0 = s0->u.C_Eff__Req.f_p; __auto_type v_op_1 = s0->u.C_Eff__Req.f_op; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__innermost(p_eff__Region, f_Ty__subst(p_st), p_bs, v_p_0); s2->tag == 1 ? ({ __auto_type v_x_2 = s2->u.C_Coll__Some.f_v; f_Ty__method(p_eff__Region, p_cx, p_st, p_bs, p_line, v_x_2, v_op_1, p_xs, p_want); }) : ({ f_Ty__bad(p_eff__Region, f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__UnhandledEffect))); o2->tag = 29; o2->u.C_Ty__UnhandledEffect.f_line = p_line; o2->u.C_Ty__UnhandledEffect.f_p = v_p_0; o2; })), p_bs, p_xs), p_line); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Sym__Sym* f_Ty__innermost(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p) { return f_Ty__innermostFrom(p_eff__Region, p_s, p_bs, p_p, (&N_Coll__Nil__Sym__Sym)); } +static struct E_Coll__Option__Sym__Sym* f_Ty__innermostFrom(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_seen) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_t_3 = s2->u.C_Ty__Bind.f_t; ({ bool v_isP_4 = ({ __auto_type s4 = f_K__walk(p_s, v_t_3); s4->tag == 1 ? ({ __auto_type v_n_4 = s4->u.C_K__Con.f_f; __auto_type v_args_5 = s4->u.C_K__Con.f_args; (f_Sym__eq(v_n_4, p_p) && (f_Coll__length__K__Term(v_args_5) == ((int64_t)0))); }) : ({ false; }); }); __auto_type res_ = ((v_isP_4 && (!f_Ty__memberSym(v_x_2, p_seen))) ? ({ struct E_Coll__Option__Sym__Sym* o5 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_x_2; o5; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_p; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_seen; o5; }); p_eff__Region = t0; p_s = t1; p_bs = t2; p_p = t3; p_seen = t4; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Caps* f_Ty__rowCaps(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Eff__Cap* p_cs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = p_st; o0->u.C_Ty__Caps.f_caps = f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Eff__Cap.f_p; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__innermost(p_eff__Region, f_Ty__subst(p_st), p_bs, v_p_2); s3->tag == 1 ? ({ __auto_type v_x_3 = s3->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Ty__St* t1 = p_st; struct E_Coll__List__Ty__Bind* t2 = p_bs; int64_t t3 = p_line; struct E_Coll__List__Eff__Cap* t4 = v_rest_1; struct E_Coll__List__Sym__Sym* t5 = ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_st = t1; p_bs = t2; p_line = t3; p_cs = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Caps*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Ty__St* t1 = f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__UnhandledEffect))); o3->tag = 29; o3->u.C_Ty__UnhandledEffect.f_line = p_line; o3->u.C_Ty__UnhandledEffect.f_p = v_p_2; o3; })); struct E_Coll__List__Ty__Bind* t2 = p_bs; int64_t t3 = p_line; struct E_Coll__List__Eff__Cap* t4 = v_rest_1; struct E_Coll__List__Sym__Sym* t5 = p_acc; p_eff__Region = t0; p_st = t1; p_bs = t2; p_line = t3; p_cs = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Caps*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__args(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_x_0, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_2 = s2->u.C_Ty__Ex.f_st; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ty__Bind* t3 = p_bs; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_xs = t4; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Ex* f_Ty__callFn(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__Fn* p_g, struct E_Coll__List__Ast__Ty* p_targs, struct E_Coll__List__Sym__Sym* p_chosen, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_name_0 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_1 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_2 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_3 = s0->u.C_Ast__Fn.f_ret; ({ struct E_Coll__List__Sym__Sym* v_tps_4 = f_Ty__tparams(p_eff__Region, v_gs_1, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ({ __auto_type s5 = f_Ty__open(p_eff__Region, p_st, v_tps_4, (&N_Coll__Nil__Ty__Bind), (&N_Coll__Nil__K__Term)); ({ __auto_type v_st1_5 = s5->u.C_Ty__Open.f_st; __auto_type v_tv_6 = s5->u.C_Ty__Open.f_tv; __auto_type v_vars_7 = s5->u.C_Ty__Open.f_vars; ({ struct E_Ty__St* v_st2_8 = f_Ty__explicit(p_eff__Region, v_st1_5, p_line, v_vars_7, f_Ty__terms(p_eff__Region, p_targs, (&N_Coll__Nil__Ty__Bind), (&N_Coll__Nil__K__Term))); struct E_K__Term* v_rt_9 = f_Ty__term(p_eff__Region, v_ret_3, v_tv_6); struct E_Ty__St* v_st3_10 = f_Ty__expectOpt(p_eff__Region, v_st2_8, p_line, v_rt_9, p_want); __auto_type res_ = ((f_Coll__length__Ast__Binder(v_ps_2) != f_Coll__length__Ast__Expr(p_xs)) ? ({ struct E_Ty__Ex* o11 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o11->tag = 0; o11->u.C_Ty__Ex.f_st = f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, v_st3_10, ({ struct E_Ty__Clash* o11 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o11->tag = 2; o11->u.C_Ty__Arity.f_line = p_line; o11->u.C_Ty__Arity.f_name = v_name_0; o11; })), p_bs, p_xs); o11->u.C_Ty__Ex.f_t = v_rt_9; o11->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o11 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o11->tag = 16; o11->u.C_El__Bad.f_line = p_line; o11; }); o11; }) : ({ __auto_type res_ = ({ __auto_type s11 = f_Ty__params(p_eff__Region, p_cx, v_st3_10, p_bs, p_line, v_ps_2, v_tv_6, p_xs, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st4_11 = s11->u.C_Ty__Es.f_st; __auto_type v_eargs_12 = s11->u.C_Ty__Es.f_es; ({ struct E_Coll__List__Ast__Binder* v_ev_13 = f_Ty__evidence(p_eff__Region, v_gs_1, (&N_Coll__Nil__Ast__Binder)); struct E_Ty__St* v_st4b_14 = (((f_Coll__length__Sym__Sym(p_chosen) > ((int64_t)0)) && (f_Coll__length__Sym__Sym(p_chosen) != f_Coll__length__Ast__Binder(v_ev_13))) ? f_Ty__clash(p_eff__Region, v_st4_11, ({ struct E_Ty__Clash* o14 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ChosenCount))); o14->tag = 17; o14->u.C_Ty__ChosenCount.f_line = p_line; o14->u.C_Ty__ChosenCount.f_f = v_name_0; o14; })) : v_st4_11); __auto_type res_ = ({ __auto_type s15 = f_Ty__capArgs(p_eff__Region, p_cx, v_st4b_14, p_bs, p_line, v_tv_6, v_ev_13, p_chosen, ((int64_t)0), (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_st5_15 = s15->u.C_Ty__Caps.f_st; __auto_type v_caps_16 = s15->u.C_Ty__Caps.f_caps; ({ __auto_type res_ = ({ __auto_type s17 = p_cx; ({ __auto_type v_rows_17 = s17->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s18 = f_Ty__rowCaps(p_eff__Region, v_st5_15, p_bs, p_line, f_Eff__row(p_eff__Region, v_rows_17, v_name_0), (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_st6_18 = s18->u.C_Ty__Caps.f_st; __auto_type v_icaps_19 = s18->u.C_Ty__Caps.f_caps; ({ __auto_type res_ = ({ struct E_Ty__Ex* o20 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o20->tag = 0; o20->u.C_Ty__Ex.f_st = f_Ty__inst(p_eff__Region, v_st6_18, p_line, v_name_0, v_vars_7); o20->u.C_Ty__Ex.f_t = v_rt_9; o20->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o20 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__CallFn))); o20->tag = 5; o20->u.C_El__CallFn.f_line = p_line; o20->u.C_El__CallFn.f_f = v_name_0; o20->u.C_El__CallFn.f_targs = v_vars_7; o20->u.C_El__CallFn.f_caps = f_Coll__revOnto__Sym__Sym(p_eff__Region, f_Coll__rev__Sym__Sym(p_eff__Region, v_caps_16), v_icaps_19); o20->u.C_El__CallFn.f_args = v_eargs_12; o20; }); o20; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__inst(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_name, struct E_Coll__List__K__Term* p_vars) { return ({ __auto_type s0 = p_vars; s0->tag == 0 ? ({ p_st; }) : ({ ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = v_cs_2; o6->u.C_Ty__St.f_is = ({ struct E_Coll__List__Ty__Inst* o6 = (struct E_Coll__List__Ty__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Inst, u) + sizeof(((struct E_Coll__List__Ty__Inst*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_Ty__Inst* o6 = (struct E_Ty__Inst*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Inst, u) + sizeof(((struct E_Ty__Inst*)0)->u.C_Ty__Inst))); o6->tag = 0; o6->u.C_Ty__Inst.f_line = p_line; o6->u.C_Ty__Inst.f_f = p_name; o6->u.C_Ty__Inst.f_targs = p_vars; o6; }); o6->u.C_Coll__Cons.f_t = v_is_3; o6; }); o6->u.C_Ty__St.f_gs = v_gs_4; o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__explicit(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__K__Term* p_vars, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_vars; s2->tag == 0 ? ({ f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o2->tag = 2; o2->u.C_Ty__Arity.f_line = p_line; o2->u.C_Ty__Arity.f_name = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"[]", 2})); o2; })); }) : ({ __auto_type v_v_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_vs_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Ty__St* t1 = f_Ty__expect(p_eff__Region, p_st, p_line, v_v_2, v_t_0); int64_t t2 = p_line; struct E_Coll__List__K__Term* t3 = v_vs_3; struct E_Coll__List__K__Term* t4 = v_rest_1; p_eff__Region = t0; p_st = t1; p_line = t2; p_vars = t3; p_ts = t4; goto srs_tail; (struct E_Ty__St*){0}; }); }); }); }); }); } +static struct E_Ty__Es* f_Ty__params(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ ({ struct E_Ty__Es* o0 = (struct E_Ty__Es*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Es, u) + sizeof(((struct E_Ty__Es*)0)->u.C_Ty__Es))); o0->tag = 0; o0->u.C_Ty__Es.f_st = p_st; o0->u.C_Ty__Es.f_es = f_Coll__rev__El__Expr(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_prest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_xs; s2->tag == 0 ? ({ ({ struct E_Ty__Es* o2 = (struct E_Ty__Es*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Es, u) + sizeof(((struct E_Ty__Es*)0)->u.C_Ty__Es))); o2->tag = 0; o2->u.C_Ty__Es.f_st = p_st; o2->u.C_Ty__Es.f_es = f_Coll__rev__El__Expr(p_eff__Region, p_acc); o2; }); }) : ({ __auto_type v_x_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_xrest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_p_0; ({ __auto_type v_pt_4 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_x_2, ({ struct E_Coll__Option__K__Term* o5 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = f_Ty__term(p_eff__Region, v_pt_4, p_tv); o5; })); ({ __auto_type v_st1_5 = s5->u.C_Ty__Ex.f_st; __auto_type v_ex_6 = s5->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ast__Binder* t5 = v_prest_1; struct E_Coll__List__Ty__Bind* t6 = p_tv; struct E_Coll__List__Ast__Expr* t7 = v_xrest_3; struct E_Coll__List__El__Expr* t8 = ({ struct E_Coll__List__El__Expr* o7 = (struct E_Coll__List__El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Expr, u) + sizeof(((struct E_Coll__List__El__Expr*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_ex_6; o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ps = t5; p_tv = t6; p_xs = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Es*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Coll__List__El__Expr* f_Coll__rev__El__Expr(srs_cap* p_eff__Region, struct E_Coll__List__El__Expr* p_xs) { return f_Coll__revOnto__El__Expr(p_eff__Region, p_xs, (&N_Coll__Nil__El__Expr)); } +static struct E_Coll__List__El__Expr* f_Coll__revOnto__El__Expr(srs_cap* p_eff__Region, struct E_Coll__List__El__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Expr* t1 = v_t_1; struct E_Coll__List__El__Expr* t2 = ({ struct E_Coll__List__El__Expr* o2 = (struct E_Coll__List__El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Expr, u) + sizeof(((struct E_Coll__List__El__Expr*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Expr*){0}; }); }); }); } +static struct E_Ty__Caps* f_Ty__capArgs(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ev; s0->tag == 0 ? ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = p_st; o0->u.C_Ty__Caps.f_caps = f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = v_t_2; ({ __auto_type v_pn_3 = s3->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_ps_4 = s4->u.C_Ty__Cx.f_ps; ({ __auto_type res_ = ((!f_Ty__isProto(v_ps_4, v_pn_3)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = f_Ty__addGoal(p_eff__Region, p_st, ({ struct E_Ty__Goal* o5 = (struct E_Ty__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Goal, u) + sizeof(((struct E_Ty__Goal*)0)->u.C_Ty__Goal))); o5->tag = 0; o5->u.C_Ty__Goal.f_line = p_line; o5->u.C_Ty__Goal.f_goal = f_Ty__term(p_eff__Region, v_t_2, p_tv); o5->u.C_Ty__Goal.f_locals = p_bs; o5->u.C_Ty__Goal.f_chosen = f_Ty__nthSym(p_eff__Region, p_chosen, p_i); o5; })); struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ty__Bind* t5 = p_tv; struct E_Coll__List__Ast__Binder* t6 = v_rest_1; struct E_Coll__List__Sym__Sym* t7 = p_chosen; int64_t t8 = (p_i + ((int64_t)1)); struct E_Coll__List__Sym__Sym* t9 = p_acc; p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_tv = t5; p_ev = t6; p_chosen = t7; p_i = t8; p_acc = t9; goto srs_tail; (struct E_Ty__Caps*){0}; }) : ({ __auto_type s5 = f_Ty__capFor(p_eff__Region, p_st, p_bs, p_line, v_pn_3, p_chosen, p_i); ({ __auto_type v_st1_5 = s5->u.C_Ty__Caps.f_st; __auto_type v_c_6 = s5->u.C_Ty__Caps.f_caps; ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ty__Bind* t5 = p_tv; struct E_Coll__List__Ast__Binder* t6 = v_rest_1; struct E_Coll__List__Sym__Sym* t7 = p_chosen; int64_t t8 = (p_i + ((int64_t)1)); struct E_Coll__List__Sym__Sym* t9 = f_Coll__revOnto__Sym__Sym(p_eff__Region, v_c_6, p_acc); p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_tv = t5; p_ev = t6; p_chosen = t7; p_i = t8; p_acc = t9; goto srs_tail; (struct E_Ty__Caps*){0}; }); }); })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Caps* f_Ty__capFor(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_chosen, int64_t p_i) { return ({ __auto_type s0 = p_chosen; s0->tag == 1 ? ({ ({ __auto_type s0 = f_Ty__nthSym(p_eff__Region, p_chosen, p_i); s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Coll__Some.f_v; ({ struct E_Ty__Caps* o1 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o1->tag = 0; o1->u.C_Ty__Caps.f_st = (f_Ty__isCapOf(p_eff__Region, f_Ty__subst(p_st), p_bs, v_x_0, p_p) ? p_st : f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o1 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ChosenNotCap))); o1->tag = 18; o1->u.C_Ty__ChosenNotCap.f_line = p_line; o1->u.C_Ty__ChosenNotCap.f_p = p_p; o1; }))); o1->u.C_Ty__Caps.f_caps = ({ struct E_Coll__List__Sym__Sym* o1 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = v_x_0; o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o1; }); o1; }); }) : ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o0->tag = 6; o0->u.C_Ty__NoCap.f_line = p_line; o0->u.C_Ty__NoCap.f_p = p_p; o0; })); o0->u.C_Ty__Caps.f_caps = (&N_Coll__Nil__Sym__Sym); o0; }); }); }); }) : ({ ({ __auto_type s0 = f_Ty__capsOf(p_eff__Region, f_Ty__subst(p_st), p_bs, p_p, (&N_Coll__Nil__Sym__Sym)); s0->tag == 1 ? ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_more_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_more_1; s2->tag == 0 ? ({ ({ struct E_Ty__Caps* o2 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o2->tag = 0; o2->u.C_Ty__Caps.f_st = p_st; o2->u.C_Ty__Caps.f_caps = ({ struct E_Coll__List__Sym__Sym* o2 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_x_0; o2->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Sym__Sym); o2; }); o2; }); }) : ({ ({ struct E_Ty__Caps* o2 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o2->tag = 0; o2->u.C_Ty__Caps.f_st = f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o2->tag = 6; o2->u.C_Ty__NoCap.f_line = p_line; o2->u.C_Ty__NoCap.f_p = p_p; o2; })); o2->u.C_Ty__Caps.f_caps = (&N_Coll__Nil__Sym__Sym); o2; }); }); }); }) : ({ ({ struct E_Ty__Caps* o0 = (struct E_Ty__Caps*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Caps, u) + sizeof(((struct E_Ty__Caps*)0)->u.C_Ty__Caps))); o0->tag = 0; o0->u.C_Ty__Caps.f_st = f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o0->tag = 6; o0->u.C_Ty__NoCap.f_line = p_line; o0->u.C_Ty__NoCap.f_p = p_p; o0; })); o0->u.C_Ty__Caps.f_caps = (&N_Coll__Nil__Sym__Sym); o0; }); }); }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Ty__capsOf(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_p, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_t_3 = s2->u.C_Ty__Bind.f_t; ({ bool v_isP_4 = ({ __auto_type s4 = f_K__walk(p_s, v_t_3); s4->tag == 1 ? ({ __auto_type v_n_4 = s4->u.C_K__Con.f_f; __auto_type v_args_5 = s4->u.C_K__Con.f_args; (f_Sym__eq(v_n_4, p_p) && (f_Coll__length__K__Term(v_args_5) == ((int64_t)0))); }) : ({ false; }); }); __auto_type res_ = ((v_isP_4 && (!f_Ty__memberSym(v_x_2, p_acc))) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_p; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_s = t1; p_bs = t2; p_p = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_Sym__Sym* t3 = p_p; struct E_Coll__List__Sym__Sym* t4 = p_acc; p_eff__Region = t0; p_s = t1; p_bs = t2; p_p = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Ty__memberSym(struct E_Sym__Sym* p_x, struct E_Coll__List__Sym__Sym* p_xs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; (f_Sym__eq(v_h_0, p_x) ? true : ({ struct E_Sym__Sym* t0 = p_x; struct E_Coll__List__Sym__Sym* t1 = v_t_1; p_x = t0; p_xs = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Ty__nthSym(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((p_i == ((int64_t)0)) ? ({ struct E_Coll__Option__Sym__Sym* o2 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_x_0; o2; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; int64_t t2 = (p_i - ((int64_t)1)); p_r = t0; p_xs = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Ty__nthSym(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, int64_t p_i) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((p_i == ((int64_t)0)) ? ({ struct E_Coll__Option__Sym__Sym* o2 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = v_x_0; o2; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; int64_t t2 = (p_i - ((int64_t)1)); p_eff__Region = t0; p_xs = t1; p_i = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; })); }); }); } static bool f_Ty__isProto(struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_pn_2 = s2->u.C_Ast__Proto.f_name; ({ __auto_type res_ = (f_Sym__eq(v_pn_2, p_n) ? true : ({ struct E_Coll__List__Ast__Proto* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_n; p_ps = t0; p_n = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Ex* f_Ty__callCase(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ty__CaseOf* p_co, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_co; ({ __auto_type v_e_0 = s0->u.C_Ty__CaseOf.f_e; __auto_type v_c_1 = s0->u.C_Ty__CaseOf.f_c; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_en_2 = s2->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ __auto_type s3 = v_c_1; ({ __auto_type v_name_3 = s3->u.C_Ast__Case.f_name; __auto_type v_fields_4 = s3->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__openEnum(p_r, p_st, v_e_0); ({ __auto_type v_st1_5 = s5->u.C_Ty__Open.f_st; __auto_type v_tv_6 = s5->u.C_Ty__Open.f_tv; __auto_type v_vars_7 = s5->u.C_Ty__Open.f_vars; ({ struct E_K__Term* v_et_8 = f_Ty__enumTerm(p_r, v_e_0, v_vars_7); struct E_Ty__St* v_st2_9 = f_Ty__expectOpt(p_r, v_st1_5, p_line, v_et_8, p_want); __auto_type res_ = ((f_Coll__length__Ast__Binder(v_fields_4) != f_Coll__length__Ast__Expr(p_xs)) ? ({ struct E_Ty__Ex* o10 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o10->tag = 0; o10->u.C_Ty__Ex.f_st = f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, v_st2_9, ({ struct E_Ty__Clash* o10 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o10->tag = 2; o10->u.C_Ty__Arity.f_line = p_line; o10->u.C_Ty__Arity.f_name = v_name_3; o10; })), p_bs, p_xs); o10->u.C_Ty__Ex.f_t = v_et_8; o10->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o10 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o10->tag = 16; o10->u.C_El__Bad.f_line = p_line; o10; }); o10; }) : ({ struct E_Ty__St* v_st3_10 = f_Ty__inst(p_r, v_st2_9, p_line, v_name_3, v_vars_7); __auto_type res_ = ({ __auto_type s11 = v_fields_4; s11->tag == 0 ? ({ ({ struct E_Ty__Ex* o11 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o11->tag = 0; o11->u.C_Ty__Ex.f_st = v_st3_10; o11->u.C_Ty__Ex.f_t = v_et_8; o11->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o11 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Nullary))); o11->tag = 7; o11->u.C_El__Nullary.f_line = p_line; o11->u.C_El__Nullary.f_en = v_en_2; o11->u.C_El__Nullary.f_targs = v_vars_7; o11->u.C_El__Nullary.f_c = v_name_3; o11; }); o11; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s11 = f_Ty__params(p_r, p_cx, v_st3_10, p_bs, p_line, v_fields_4, v_tv_6, p_xs, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st4_11 = s11->u.C_Ty__Es.f_st; __auto_type v_eargs_12 = s11->u.C_Ty__Es.f_es; ({ __auto_type res_ = ({ __auto_type s13 = p_cx; ({ __auto_type v_mode_13 = s13->u.C_Ty__Cx.f_mode; ({ __auto_type res_ = ({ __auto_type s14 = v_mode_13; s14->tag == 1 ? ({ ({ struct E_Ty__Ex* o14 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o14->tag = 0; o14->u.C_Ty__Ex.f_st = v_st4_11; o14->u.C_Ty__Ex.f_t = v_et_8; o14->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o14 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__New))); o14->tag = 6; o14->u.C_El__New.f_line = p_line; o14->u.C_El__New.f_en = v_en_2; o14->u.C_El__New.f_targs = v_vars_7; o14->u.C_El__New.f_c = v_name_3; o14->u.C_El__New.f_at = (&N_El__Comptime); o14->u.C_El__New.f_args = v_eargs_12; o14; }); o14; }); }) : ({ ({ __auto_type s14 = f_Ty__innermost(p_r, f_Ty__subst(v_st4_11), p_bs, f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6}))); s14->tag == 1 ? ({ __auto_type v_reg_14 = s14->u.C_Coll__Some.f_v; ({ struct E_Ty__Ex* o15 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o15->tag = 0; o15->u.C_Ty__Ex.f_st = v_st4_11; o15->u.C_Ty__Ex.f_t = v_et_8; o15->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o15 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__New))); o15->tag = 6; o15->u.C_El__New.f_line = p_line; o15->u.C_El__New.f_en = v_en_2; o15->u.C_El__New.f_targs = v_vars_7; o15->u.C_El__New.f_c = v_name_3; o15->u.C_El__New.f_at = ({ struct E_El__Alloc* o15 = (struct E_El__Alloc*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Alloc, u) + sizeof(((struct E_El__Alloc*)0)->u.C_El__In))); o15->tag = 0; o15->u.C_El__In.f_region = v_reg_14; o15; }); o15->u.C_El__New.f_args = v_eargs_12; o15; }); o15; }); }) : ({ ({ struct E_Ty__Ex* o14 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o14->tag = 0; o14->u.C_Ty__Ex.f_st = f_Ty__clash(p_r, v_st4_11, ({ struct E_Ty__Clash* o14 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__UnhandledEffect))); o14->tag = 29; o14->u.C_Ty__UnhandledEffect.f_line = p_line; o14->u.C_Ty__UnhandledEffect.f_p = f_Sym__of(p_r, ((srs_str){(const uint8_t*)"Region", 6})); o14; })); o14->u.C_Ty__Ex.f_t = v_et_8; o14->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o14 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o14->tag = 16; o14->u.C_El__Bad.f_line = p_line; o14; }); o14; }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__method(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Ty__Cx.f_ps; __auto_type v_trs_1 = s0->u.C_Ty__Cx.f_trs; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__lookup(p_r, p_bs, p_recv); s2->tag == 0 ? ({ f_Ty__bad(p_r, f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o2->tag = 1; o2->u.C_Ty__Unknown.f_line = p_line; o2->u.C_Ty__Unknown.f_name = p_recv; o2; })), p_bs, p_xs), p_line); }) : ({ __auto_type v_rt_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type s3 = f_K__walk(p_r, f_Ty__subst(p_st), v_rt_2); s3->tag == 1 ? ({ __auto_type v_tn_3 = s3->u.C_K__Con.f_f; __auto_type v_targs_4 = s3->u.C_K__Con.f_args; ({ __auto_type s5 = f_Ty__protoOp(p_r, v_ps_0, v_tn_3, p_op); s5->tag == 1 ? ({ __auto_type v_o_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_o_5; ({ __auto_type v_ops_6 = s6->u.C_Ast__Op.f_params; __auto_type v_oret_7 = s6->u.C_Ast__Op.f_ret; ({ __auto_type res_ = f_Ty__callSig(p_r, p_cx, p_st, p_bs, p_line, p_recv, v_rt_2, p_op, v_ops_6, v_oret_7, (&N_Coll__Nil__Ty__Bind), p_xs, p_want); res_; }); }); }); res_; }); }) : ({ ({ __auto_type s5 = f_Ty__traitMethod(p_r, v_trs_1, v_tn_3, p_op); s5->tag == 1 ? ({ __auto_type v_tm_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_tm_5; ({ __auto_type v_tr_6 = s6->u.C_Ty__TM.f_t; __auto_type v_m_7 = s6->u.C_Ty__TM.f_m; ({ __auto_type res_ = ({ __auto_type s8 = v_tr_6; ({ __auto_type v_tgs_8 = s8->u.C_Ast__Trait.f_groups; ({ __auto_type res_ = ({ __auto_type s9 = v_m_7; ({ __auto_type v_mps_9 = s9->u.C_Ast__Fn.f_params; __auto_type v_mret_10 = s9->u.C_Ast__Fn.f_ret; ({ __auto_type res_ = f_Ty__callSig(p_r, p_cx, p_st, p_bs, p_line, p_recv, v_rt_2, p_op, v_mps_9, v_mret_10, f_Ty__zipBind(p_r, f_Ty__tparams(p_r, v_tgs_8, (&N_Coll__Nil__Sym__Sym)), v_targs_4, (&N_Coll__Nil__Ty__Bind)), p_xs, p_want); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ f_Ty__bad(p_r, f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o5 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoOp))); o5->tag = 4; o5->u.C_Ty__NoOp.f_line = p_line; o5->u.C_Ty__NoOp.f_name = p_op; o5; })), p_bs, p_xs), p_line); }); }); }); }); }) : ({ f_Ty__bad(p_r, f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoOp))); o3->tag = 4; o3->u.C_Ty__NoOp.f_line = p_line; o3->u.C_Ty__NoOp.f_name = p_op; o3; })), p_bs, p_xs), p_line); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__callCase(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ty__CaseOf* p_co, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_co; ({ __auto_type v_e_0 = s0->u.C_Ty__CaseOf.f_e; __auto_type v_c_1 = s0->u.C_Ty__CaseOf.f_c; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_en_2 = s2->u.C_Ast__Enum.f_name; ({ __auto_type res_ = ({ __auto_type s3 = v_c_1; ({ __auto_type v_name_3 = s3->u.C_Ast__Case.f_name; __auto_type v_fields_4 = s3->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__openEnum(p_eff__Region, p_st, v_e_0); ({ __auto_type v_st1_5 = s5->u.C_Ty__Open.f_st; __auto_type v_tv_6 = s5->u.C_Ty__Open.f_tv; __auto_type v_vars_7 = s5->u.C_Ty__Open.f_vars; ({ struct E_K__Term* v_et_8 = f_Ty__enumTerm(p_eff__Region, v_e_0, v_vars_7); struct E_Ty__St* v_st2_9 = f_Ty__expectOpt(p_eff__Region, v_st1_5, p_line, v_et_8, p_want); __auto_type res_ = ((f_Coll__length__Ast__Binder(v_fields_4) != f_Coll__length__Ast__Expr(p_xs)) ? ({ struct E_Ty__Ex* o10 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o10->tag = 0; o10->u.C_Ty__Ex.f_st = f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, v_st2_9, ({ struct E_Ty__Clash* o10 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o10->tag = 2; o10->u.C_Ty__Arity.f_line = p_line; o10->u.C_Ty__Arity.f_name = v_name_3; o10; })), p_bs, p_xs); o10->u.C_Ty__Ex.f_t = v_et_8; o10->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o10 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o10->tag = 16; o10->u.C_El__Bad.f_line = p_line; o10; }); o10; }) : ({ struct E_Ty__St* v_st3_10 = f_Ty__inst(p_eff__Region, v_st2_9, p_line, v_name_3, v_vars_7); __auto_type res_ = ({ __auto_type s11 = v_fields_4; s11->tag == 0 ? ({ ({ struct E_Ty__Ex* o11 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o11->tag = 0; o11->u.C_Ty__Ex.f_st = v_st3_10; o11->u.C_Ty__Ex.f_t = v_et_8; o11->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o11 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Nullary))); o11->tag = 7; o11->u.C_El__Nullary.f_line = p_line; o11->u.C_El__Nullary.f_en = v_en_2; o11->u.C_El__Nullary.f_targs = v_vars_7; o11->u.C_El__Nullary.f_c = v_name_3; o11; }); o11; }); }) : ({ ({ __auto_type res_ = ({ __auto_type s11 = f_Ty__params(p_eff__Region, p_cx, v_st3_10, p_bs, p_line, v_fields_4, v_tv_6, p_xs, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st4_11 = s11->u.C_Ty__Es.f_st; __auto_type v_eargs_12 = s11->u.C_Ty__Es.f_es; ({ __auto_type res_ = ({ __auto_type s13 = p_cx; ({ __auto_type v_mode_13 = s13->u.C_Ty__Cx.f_mode; ({ __auto_type res_ = ({ __auto_type s14 = v_mode_13; s14->tag == 1 ? ({ ({ struct E_Ty__Ex* o14 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o14->tag = 0; o14->u.C_Ty__Ex.f_st = v_st4_11; o14->u.C_Ty__Ex.f_t = v_et_8; o14->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o14 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__New))); o14->tag = 6; o14->u.C_El__New.f_line = p_line; o14->u.C_El__New.f_en = v_en_2; o14->u.C_El__New.f_targs = v_vars_7; o14->u.C_El__New.f_c = v_name_3; o14->u.C_El__New.f_at = (&N_El__Comptime); o14->u.C_El__New.f_args = v_eargs_12; o14; }); o14; }); }) : ({ ({ __auto_type s14 = f_Ty__innermost(p_eff__Region, f_Ty__subst(v_st4_11), p_bs, f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6}))); s14->tag == 1 ? ({ __auto_type v_reg_14 = s14->u.C_Coll__Some.f_v; ({ struct E_Ty__Ex* o15 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o15->tag = 0; o15->u.C_Ty__Ex.f_st = v_st4_11; o15->u.C_Ty__Ex.f_t = v_et_8; o15->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o15 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__New))); o15->tag = 6; o15->u.C_El__New.f_line = p_line; o15->u.C_El__New.f_en = v_en_2; o15->u.C_El__New.f_targs = v_vars_7; o15->u.C_El__New.f_c = v_name_3; o15->u.C_El__New.f_at = ({ struct E_El__Alloc* o15 = (struct E_El__Alloc*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Alloc, u) + sizeof(((struct E_El__Alloc*)0)->u.C_El__In))); o15->tag = 0; o15->u.C_El__In.f_region = v_reg_14; o15; }); o15->u.C_El__New.f_args = v_eargs_12; o15; }); o15; }); }) : ({ ({ struct E_Ty__Ex* o14 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o14->tag = 0; o14->u.C_Ty__Ex.f_st = f_Ty__clash(p_eff__Region, v_st4_11, ({ struct E_Ty__Clash* o14 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__UnhandledEffect))); o14->tag = 29; o14->u.C_Ty__UnhandledEffect.f_line = p_line; o14->u.C_Ty__UnhandledEffect.f_p = f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"Region", 6})); o14; })); o14->u.C_Ty__Ex.f_t = v_et_8; o14->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o14 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o14->tag = 16; o14->u.C_El__Bad.f_line = p_line; o14; }); o14; }); }); }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__method(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_Sym__Sym* p_op, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Ty__Cx.f_ps; __auto_type v_trs_1 = s0->u.C_Ty__Cx.f_trs; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__lookup(p_eff__Region, p_bs, p_recv); s2->tag == 0 ? ({ f_Ty__bad(p_eff__Region, f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o2->tag = 1; o2->u.C_Ty__Unknown.f_line = p_line; o2->u.C_Ty__Unknown.f_name = p_recv; o2; })), p_bs, p_xs), p_line); }) : ({ __auto_type v_rt_2 = s2->u.C_Coll__Some.f_v; ({ __auto_type s3 = f_K__walk(f_Ty__subst(p_st), v_rt_2); s3->tag == 1 ? ({ __auto_type v_tn_3 = s3->u.C_K__Con.f_f; __auto_type v_targs_4 = s3->u.C_K__Con.f_args; ({ __auto_type s5 = f_Ty__protoOp(p_eff__Region, v_ps_0, v_tn_3, p_op); s5->tag == 1 ? ({ __auto_type v_o_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_o_5; ({ __auto_type v_ops_6 = s6->u.C_Ast__Op.f_params; __auto_type v_oret_7 = s6->u.C_Ast__Op.f_ret; ({ __auto_type res_ = f_Ty__callSig(p_eff__Region, p_cx, p_st, p_bs, p_line, p_recv, v_rt_2, p_op, v_ops_6, v_oret_7, (&N_Coll__Nil__Ty__Bind), p_xs, p_want); res_; }); }); }); res_; }); }) : ({ ({ __auto_type s5 = f_Ty__traitMethod(p_eff__Region, v_trs_1, v_tn_3, p_op); s5->tag == 1 ? ({ __auto_type v_tm_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_tm_5; ({ __auto_type v_tr_6 = s6->u.C_Ty__TM.f_t; __auto_type v_m_7 = s6->u.C_Ty__TM.f_m; ({ __auto_type res_ = ({ __auto_type s8 = v_tr_6; ({ __auto_type v_tgs_8 = s8->u.C_Ast__Trait.f_groups; ({ __auto_type res_ = ({ __auto_type s9 = v_m_7; ({ __auto_type v_mps_9 = s9->u.C_Ast__Fn.f_params; __auto_type v_mret_10 = s9->u.C_Ast__Fn.f_ret; ({ __auto_type res_ = f_Ty__callSig(p_eff__Region, p_cx, p_st, p_bs, p_line, p_recv, v_rt_2, p_op, v_mps_9, v_mret_10, f_Ty__zipBind(p_eff__Region, f_Ty__tparams(p_eff__Region, v_tgs_8, (&N_Coll__Nil__Sym__Sym)), v_targs_4, (&N_Coll__Nil__Ty__Bind)), p_xs, p_want); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ f_Ty__bad(p_eff__Region, f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o5 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoOp))); o5->tag = 4; o5->u.C_Ty__NoOp.f_line = p_line; o5->u.C_Ty__NoOp.f_name = p_op; o5; })), p_bs, p_xs), p_line); }); }); }); }); }) : ({ f_Ty__bad(p_eff__Region, f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoOp))); o3->tag = 4; o3->u.C_Ty__NoOp.f_line = p_line; o3->u.C_Ty__NoOp.f_name = p_op; o3; })), p_bs, p_xs), p_line); }); }); }); }); res_; }); }); }); res_; }); } static struct E_Coll__IMap__K__Term* f_Ty__subst(struct E_Ty__St* p_st) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; ({ __auto_type res_ = v_s_0; res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__callSig(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_K__Term* p_rty, struct E_Sym__Sym* p_name, struct E_Coll__List__Ast__Binder* p_ps, struct E_Ast__Ty* p_ret, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ struct E_K__Term* v_rt_0 = f_Ty__term(p_r, p_ret, p_tv); __auto_type res_ = ((f_Coll__length__Ast__Binder(p_ps) != f_Coll__length__Ast__Expr(p_xs)) ? ({ struct E_Ty__Ex* o1 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o1->tag = 0; o1->u.C_Ty__Ex.f_st = f_Ty__args(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o1 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o1->tag = 2; o1->u.C_Ty__Arity.f_line = p_line; o1->u.C_Ty__Arity.f_name = p_name; o1; })), p_bs, p_xs); o1->u.C_Ty__Ex.f_t = v_rt_0; o1->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o1 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o1->tag = 16; o1->u.C_El__Bad.f_line = p_line; o1; }); o1; }) : ({ __auto_type res_ = ({ __auto_type s1 = f_Ty__params(p_r, p_cx, p_st, p_bs, p_line, p_ps, p_tv, p_xs, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st1_1 = s1->u.C_Ty__Es.f_st; __auto_type v_eargs_2 = s1->u.C_Ty__Es.f_es; ({ __auto_type res_ = f_Ty__lit(p_r, v_st1_1, p_line, v_rt_0, p_want, ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Op))); o3->tag = 8; o3->u.C_El__Op.f_line = p_line; o3->u.C_El__Op.f_recv = p_recv; o3->u.C_El__Op.f_ty = p_rty; o3->u.C_El__Op.f_op = p_name; o3->u.C_El__Op.f_args = v_eargs_2; o3; })); res_; }); }); }); res_; })); res_; }); } -static struct E_Coll__List__Ty__Bind* f_Ty__zipBind(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ts; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_trest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__K__Term* t2 = v_trest_3; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_0; o4->u.C_Ty__Bind.f_t = v_t_2; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_xs = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); }); }); }); }); } -static struct E_Coll__Option__Ast__Op* f_Ty__protoOp(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Op); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Proto.f_name; __auto_type v_ops_3 = s2->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_p) ? f_Ty__opIn(p_r, v_ops_3, p_op) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_p; struct E_Sym__Sym* t3 = p_op; p_r = t0; p_ps = t1; p_p = t2; p_op = t3; goto srs_tail; (struct E_Coll__Option__Ast__Op*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ast__Op* f_Ty__opIn(srs_cap* p_r, struct E_Coll__List__Ast__Op* p_os, struct E_Sym__Sym* p_op) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Op); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Op.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_op) ? ({ struct E_Coll__Option__Ast__Op* o3 = (struct E_Coll__Option__Ast__Op*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Op, u) + sizeof(((struct E_Coll__Option__Ast__Op*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_o_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Op* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_op; p_r = t0; p_os = t1; p_op = t2; goto srs_tail; (struct E_Coll__Option__Ast__Op*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Ty__TM* f_Ty__traitMethod(srs_cap* p_r, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_t, struct E_Sym__Sym* p_op) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ (&N_Coll__None__Ty__TM); }) : ({ __auto_type v_tr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_tr_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Trait.f_name; __auto_type v_sigs_3 = s2->u.C_Ast__Trait.f_sigs; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_t) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__fnNamed(p_r, v_sigs_3, p_op); s4->tag == 1 ? ({ __auto_type v_m_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Ty__TM* o5 = (struct E_Coll__Option__Ty__TM*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ty__TM, u) + sizeof(((struct E_Coll__Option__Ty__TM*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = ({ struct E_Ty__TM* o5 = (struct E_Ty__TM*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__TM, u) + sizeof(((struct E_Ty__TM*)0)->u.C_Ty__TM))); o5->tag = 0; o5->u.C_Ty__TM.f_t = v_tr_0; o5->u.C_Ty__TM.f_m = v_m_4; o5; }); o5; }); }) : ({ (&N_Coll__None__Ty__TM); }); }); res_; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Trait* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_t; struct E_Sym__Sym* t3 = p_op; p_r = t0; p_trs = t1; p_t = t2; p_op = t3; goto srs_tail; (struct E_Coll__Option__Ty__TM*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Ex* f_Ty__bin(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_op; s0->tag == 9 ? ({ f_Ty__eqOp(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, p_want); }) : s0->tag == 10 ? ({ f_Ty__eqOp(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, p_want); }) : s0->tag == 11 ? ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 12 ? ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 5 ? ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 6 ? ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 7 ? ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 8 ? ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : ({ f_Ty__both(p_r, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})), p_want); }); }); } -static struct E_Ty__Ex* f_Ty__both(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_K__Term* p_arg, struct E_K__Term* p_res, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__expr(p_r, p_cx, p_st, p_bs, p_l, ({ struct E_Coll__Option__K__Term* o0 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_arg; o0; })); ({ __auto_type v_st1_0 = s0->u.C_Ty__Ex.f_st; __auto_type v_el_1 = s0->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__expr(p_r, p_cx, v_st1_0, p_bs, p_rhs, ({ struct E_Coll__Option__K__Term* o2 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_arg; o2; })); ({ __auto_type v_st2_2 = s2->u.C_Ty__Ex.f_st; __auto_type v_er_3 = s2->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_r, v_st2_2, p_line, p_res, p_want, ({ struct E_El__Expr* o4 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bin))); o4->tag = 9; o4->u.C_El__Bin.f_line = p_line; o4->u.C_El__Bin.f_op = p_op; o4->u.C_El__Bin.f_l = v_el_1; o4->u.C_El__Bin.f_rhs = v_er_3; o4; })); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__eqOp(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__expr(p_r, p_cx, p_st, p_bs, p_l, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_0 = s0->u.C_Ty__Ex.f_st; __auto_type v_tl_1 = s0->u.C_Ty__Ex.f_t; __auto_type v_el_2 = s0->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_r, p_cx, v_st1_0, p_bs, p_rhs, ({ struct E_Coll__Option__K__Term* o3 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_tl_1; o3; })); ({ __auto_type v_st2_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_er_4 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_r, v_st2_3, p_line, f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})), p_want, ({ struct E_El__Expr* o5 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bin))); o5->tag = 9; o5->u.C_El__Bin.f_line = p_line; o5->u.C_El__Bin.f_op = p_op; o5->u.C_El__Bin.f_l = v_el_2; o5->u.C_El__Bin.f_rhs = v_er_4; o5; })); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__Ex* f_Ty__arms(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ f_Ty__bad(p_r, p_st, p_line); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_enums_2 = s2->u.C_Ty__Cx.f_es; ({ struct E_Ty__St* v_st0_3 = ({ __auto_type s3 = f_Ty__missingCase(p_r, v_enums_2, p_as); s3->tag == 1 ? ({ __auto_type v_c_3 = s3->u.C_Coll__Some.f_v; f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o4 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NotExhaustive))); o4->tag = 10; o4->u.C_Ty__NotExhaustive.f_line = p_line; o4->u.C_Ty__NotExhaustive.f_missing = v_c_3; o4; })); }) : ({ p_st; }); }); __auto_type res_ = ({ __auto_type s4 = f_Ty__arm(p_r, p_cx, v_st0_3, p_bs, p_ts, v_a_0, p_want); ({ __auto_type v_st1_4 = s4->u.C_Ty__AEx.f_st; __auto_type v_t1_5 = s4->u.C_Ty__AEx.f_t; __auto_type v_ea_6 = s4->u.C_Ty__AEx.f_a; ({ __auto_type res_ = f_Ty__armsSame(p_r, p_cx, v_st1_4, p_bs, p_line, p_ts, p_es, v_rest_1, v_t1_5, ({ struct E_Coll__List__El__Arm* o7 = (struct E_Coll__List__El__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Arm, u) + sizeof(((struct E_Coll__List__El__Arm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_ea_6; o7->u.C_Coll__Cons.f_t = (&N_Coll__Nil__El__Arm); o7; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Ex* f_Ty__armsSame(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_K__Term* p_t, struct E_Coll__List__El__Arm* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ({ struct E_Ty__Ex* o0 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o0->tag = 0; o0->u.C_Ty__Ex.f_st = p_st; o0->u.C_Ty__Ex.f_t = p_t; o0->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o0 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Match))); o0->tag = 12; o0->u.C_El__Match.f_line = p_line; o0->u.C_El__Match.f_s = p_es; o0->u.C_El__Match.f_en = p_ts; o0->u.C_El__Match.f_arms = f_Coll__rev__El__Arm(p_r, p_acc); o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__arm(p_r, p_cx, p_st, p_bs, p_ts, v_a_0, ({ struct E_Coll__Option__K__Term* o2 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_t; o2; })); ({ __auto_type v_st1_2 = s2->u.C_Ty__AEx.f_st; __auto_type v_ea_3 = s2->u.C_Ty__AEx.f_a; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_K__Term* t5 = p_ts; struct E_El__Expr* t6 = p_es; struct E_Coll__List__Ast__Arm* t7 = v_rest_1; struct E_K__Term* t8 = p_t; struct E_Coll__List__El__Arm* t9 = ({ struct E_Coll__List__El__Arm* o4 = (struct E_Coll__List__El__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Arm, u) + sizeof(((struct E_Coll__List__El__Arm*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_ea_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ts = t5; p_es = t6; p_as = t7; p_t = t8; p_acc = t9; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__El__Arm* f_Coll__rev__El__Arm(srs_cap* p_r, struct E_Coll__List__El__Arm* p_xs) { return f_Coll__revOnto__El__Arm(p_r, p_xs, (&N_Coll__Nil__El__Arm)); } -static struct E_Coll__List__El__Arm* f_Coll__revOnto__El__Arm(srs_cap* p_r, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__El__Arm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Arm* t1 = v_t_1; struct E_Coll__List__El__Arm* t2 = ({ struct E_Coll__List__El__Arm* o2 = (struct E_Coll__List__El__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Arm, u) + sizeof(((struct E_Coll__List__El__Arm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Arm*){0}; }); }); }); } -static struct E_Ty__AEx* f_Ty__arm(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_ts, struct E_Ast__Arm* p_a, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_line_0 = s0->u.C_Ast__Arm.f_line; __auto_type v_p_1 = s0->u.C_Ast__Arm.f_p; __auto_type v_b_2 = s0->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_es_3 = s3->u.C_Ty__Cx.f_es; ({ __auto_type res_ = ({ __auto_type s4 = ({ __auto_type s4 = v_p_1; s4->tag == 1 ? ({ f_Ty__expr(p_r, p_cx, p_st, p_bs, v_b_2, p_want); }) : ({ __auto_type v_c_4 = s4->u.C_Ast__PCase.f_c; __auto_type v_binds_5 = s4->u.C_Ast__PCase.f_binds; ({ __auto_type s6 = f_Ty__caseNamed(p_r, v_es_3, v_c_4); s6->tag == 0 ? ({ f_Ty__expr(p_r, p_cx, f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o6->tag = 1; o6->u.C_Ty__Unknown.f_line = v_line_0; o6->u.C_Ty__Unknown.f_name = v_c_4; o6; })), p_bs, v_b_2, p_want); }) : ({ __auto_type v_co_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_co_6; ({ __auto_type v_e_7 = s7->u.C_Ty__CaseOf.f_e; __auto_type v_cs_8 = s7->u.C_Ty__CaseOf.f_c; ({ __auto_type res_ = ({ __auto_type s9 = v_cs_8; ({ __auto_type v_fields_9 = s9->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s10 = f_Ty__openEnum(p_r, p_st, v_e_7); ({ __auto_type v_st1_10 = s10->u.C_Ty__Open.f_st; __auto_type v_tv_11 = s10->u.C_Ty__Open.f_tv; __auto_type v_vars_12 = s10->u.C_Ty__Open.f_vars; ({ struct E_Ty__St* v_st1b_13 = ((f_Coll__length__Sym__Sym(v_binds_5) == f_Coll__length__Ast__Binder(v_fields_9)) ? v_st1_10 : f_Ty__clash(p_r, v_st1_10, ({ struct E_Ty__Clash* o13 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__PatArity))); o13->tag = 11; o13->u.C_Ty__PatArity.f_line = v_line_0; o13->u.C_Ty__PatArity.f_c = v_c_4; o13; }))); struct E_Ty__St* v_st2_14 = f_Ty__expect(p_r, v_st1b_13, v_line_0, p_ts, f_Ty__enumTerm(p_r, v_e_7, v_vars_12)); __auto_type res_ = f_Ty__expr(p_r, p_cx, v_st2_14, f_Ty__bindFields(p_r, v_binds_5, v_fields_9, v_tv_11, p_bs), v_b_2, p_want); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); ({ __auto_type v_st9_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_t9_5 = s4->u.C_Ty__Ex.f_t; __auto_type v_e9_6 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__AEx* o7 = (struct E_Ty__AEx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__AEx, u) + sizeof(((struct E_Ty__AEx*)0)->u.C_Ty__AEx))); o7->tag = 0; o7->u.C_Ty__AEx.f_st = v_st9_4; o7->u.C_Ty__AEx.f_t = v_t9_5; o7->u.C_Ty__AEx.f_a = ({ struct E_El__Arm* o7 = (struct E_El__Arm*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Arm, u) + sizeof(((struct E_El__Arm*)0)->u.C_El__Arm))); o7->tag = 0; o7->u.C_El__Arm.f_line = v_line_0; o7->u.C_El__Arm.f_p = v_p_1; o7->u.C_El__Arm.f_body = v_e9_6; o7; }); o7; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Ty__Bind* f_Ty__bindFields(srs_cap* p_r, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_bs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_bs; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_fs; s2->tag == 0 ? ({ p_bs; }) : ({ __auto_type v_f_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_frest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_f_2; ({ __auto_type v_ft_4 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = v_frest_3; struct E_Coll__List__Ty__Bind* t3 = p_tv; struct E_Coll__List__Ty__Bind* t4 = (Str__eq(f_Sym__str(v_x_0), ((srs_str){(const uint8_t*)"_", 1})) ? p_bs : ({ struct E_Coll__List__Ty__Bind* o5 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o5 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o5->tag = 0; o5->u.C_Ty__Bind.f_x = v_x_0; o5->u.C_Ty__Bind.f_t = f_Ty__term(p_r, v_ft_4, p_tv); o5; }); o5->u.C_Coll__Cons.f_t = p_bs; o5; })); p_r = t0; p_xs = t1; p_fs = t2; p_tv = t3; p_bs = t4; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Ty__Ex* f_Ty__block(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__expr(p_r, p_cx, p_st, p_bs, p_last, p_want); ({ __auto_type v_st1_0 = s0->u.C_Ty__Ex.f_st; __auto_type v_t_1 = s0->u.C_Ty__Ex.f_t; __auto_type v_el_2 = s0->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__Ex* o3 = (struct E_Ty__Ex*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o3->tag = 0; o3->u.C_Ty__Ex.f_st = v_st1_0; o3->u.C_Ty__Ex.f_t = v_t_1; o3->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Block))); o3->tag = 13; o3->u.C_El__Block.f_line = p_line; o3->u.C_El__Block.f_stmts = f_Coll__rev__El__Stmt(p_r, p_acc); o3->u.C_El__Block.f_last = v_el_2; o3; }); o3; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_sl_2 = s2->u.C_Ast__Val.f_line; __auto_type v_x_3 = s2->u.C_Ast__Val.f_x; __auto_type v_ann_4 = s2->u.C_Ast__Val.f_ann; __auto_type v_e_5 = s2->u.C_Ast__Val.f_e; f_Ty__bindStmt(p_r, p_cx, p_st, p_bs, p_line, v_sl_2, v_x_3, v_ann_4, v_e_5, false, v_rest_1, p_last, p_want, p_acc); }) : s2->tag == 1 ? ({ __auto_type v_sl_2 = s2->u.C_Ast__Var.f_line; __auto_type v_x_3 = s2->u.C_Ast__Var.f_x; __auto_type v_ann_4 = s2->u.C_Ast__Var.f_ann; __auto_type v_e_5 = s2->u.C_Ast__Var.f_e; f_Ty__bindStmt(p_r, p_cx, p_st, p_bs, p_line, v_sl_2, v_x_3, v_ann_4, v_e_5, true, v_rest_1, p_last, p_want, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_sl_2 = s2->u.C_Ast__Handle.f_line; __auto_type v_x_3 = s2->u.C_Ast__Handle.f_x; __auto_type v_h_4 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_5 = s2->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_hs_6 = s6->u.C_Ty__Cx.f_hs; __auto_type v_mode_7 = s6->u.C_Ty__Cx.f_mode; __auto_type v_rows_8 = s6->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s9 = f_Ty__exprs(p_r, p_cx, f_Ty__pureHandle(p_r, v_mode_7, p_st, v_sl_2, v_h_4), p_bs, v_xs_5, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st1_9 = s9->u.C_Ty__Es.f_st; __auto_type v_eargs_10 = s9->u.C_Ty__Es.f_es; ({ __auto_type res_ = ({ __auto_type s11 = f_Ty__rowCaps(p_r, v_st1_9, p_bs, v_sl_2, f_Eff__row(p_r, v_rows_8, v_h_4), (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_st2_11 = s11->u.C_Ty__Caps.f_st; __auto_type v_caps_12 = s11->u.C_Ty__Caps.f_caps; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st2_11; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o13 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o13->tag = 1; o13->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o13 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o13->tag = 0; o13->u.C_Ty__Bind.f_x = v_x_3; o13->u.C_Ty__Bind.f_t = ({ struct E_K__Term* o13 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o13->tag = 1; o13->u.C_K__Con.f_f = f_Ty__protoOf(v_hs_6, v_h_4); o13->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o13; }); o13; }); o13->u.C_Coll__Cons.f_t = p_bs; o13; }); int64_t t4 = p_line; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; struct E_Coll__Option__K__Term* t7 = p_want; struct E_Coll__List__El__Stmt* t8 = ({ struct E_Coll__List__El__Stmt* o13 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o13->tag = 1; o13->u.C_Coll__Cons.f_h = ({ struct E_El__Stmt* o13 = (struct E_El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Stmt, u) + sizeof(((struct E_El__Stmt*)0)->u.C_El__Handle))); o13->tag = 1; o13->u.C_El__Handle.f_line = v_sl_2; o13->u.C_El__Handle.f_x = v_x_3; o13->u.C_El__Handle.f_h = v_h_4; o13->u.C_El__Handle.f_caps = v_caps_12; o13->u.C_El__Handle.f_args = v_eargs_10; o13; }); o13->u.C_Coll__Cons.f_t = p_acc; o13; }); p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ss = t5; p_last = t6; p_want = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_e_2, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_ee_4 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_3; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; struct E_Coll__Option__K__Term* t7 = p_want; struct E_Coll__List__El__Stmt* t8 = ({ struct E_Coll__List__El__Stmt* o5 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_El__Stmt* o5 = (struct E_El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Stmt, u) + sizeof(((struct E_El__Stmt*)0)->u.C_El__Do))); o5->tag = 2; o5->u.C_El__Do.f_e = v_ee_4; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ss = t5; p_last = t6; p_want = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_k_2 = s2->u.C_Ast__Check.f_k; __auto_type v_e_3 = s2->u.C_Ast__Check.f_e; ({ struct E_K__Term* v_want2_4 = ({ __auto_type s4 = v_k_2; s4->tag == 0 ? ({ f_Ty__con(p_r, ((srs_str){(const uint8_t*)"Bool", 4})); }) : ({ f_Ty__con(p_r, ((srs_str){(const uint8_t*)"I64", 3})); }); }); __auto_type res_ = ({ __auto_type s5 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_e_3, ({ struct E_Coll__Option__K__Term* o5 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_want2_4; o5; })); ({ __auto_type v_st1_5 = s5->u.C_Ty__Ex.f_st; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; struct E_Coll__Option__K__Term* t7 = p_want; struct E_Coll__List__El__Stmt* t8 = p_acc; p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ss = t5; p_last = t6; p_want = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } -static struct E_Coll__List__El__Stmt* f_Coll__rev__El__Stmt(srs_cap* p_r, struct E_Coll__List__El__Stmt* p_xs) { return f_Coll__revOnto__El__Stmt(p_r, p_xs, (&N_Coll__Nil__El__Stmt)); } -static struct E_Coll__List__El__Stmt* f_Coll__revOnto__El__Stmt(srs_cap* p_r, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__El__Stmt* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Stmt* t1 = v_t_1; struct E_Coll__List__El__Stmt* t2 = ({ struct E_Coll__List__El__Stmt* o2 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Stmt*){0}; }); }); }); } -static struct E_Ty__Es* f_Ty__exprs(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Ty__Es* o0 = (struct E_Ty__Es*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Es, u) + sizeof(((struct E_Ty__Es*)0)->u.C_Ty__Es))); o0->tag = 0; o0->u.C_Ty__Es.f_st = p_st; o0->u.C_Ty__Es.f_es = f_Coll__rev__El__Expr(p_r, p_acc); o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__expr(p_r, p_cx, p_st, p_bs, v_x_0, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_2 = s2->u.C_Ty__Ex.f_st; __auto_type v_ex_3 = s2->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ty__Bind* t3 = p_bs; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; struct E_Coll__List__El__Expr* t5 = ({ struct E_Coll__List__El__Expr* o4 = (struct E_Coll__List__El__Expr*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Expr, u) + sizeof(((struct E_Coll__List__El__Expr*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_ex_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_cx = t1; p_st = t2; p_bs = t3; p_xs = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Es*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Ex* f_Ty__bindStmt(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, int64_t p_sl, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, bool p_mut, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc) { return ({ struct E_Coll__Option__K__Term* v_wa_0 = ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ (&N_Coll__None__K__Term); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__K__Term* o1 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = f_Ty__term(p_r, v_t_0, (&N_Coll__Nil__Ty__Bind)); o1; }); }); }); __auto_type res_ = ({ __auto_type s1 = f_Ty__expr(p_r, p_cx, p_st, p_bs, p_e, v_wa_0); ({ __auto_type v_st1_1 = s1->u.C_Ty__Ex.f_st; __auto_type v_te_2 = s1->u.C_Ty__Ex.f_t; __auto_type v_ee_3 = s1->u.C_Ty__Ex.f_e; ({ struct E_K__Term* v_tx_4 = ({ __auto_type s4 = v_wa_0; s4->tag == 0 ? ({ v_te_2; }) : ({ __auto_type v_w_4 = s4->u.C_Coll__Some.f_v; v_w_4; }); }); __auto_type res_ = f_Ty__block(p_r, p_cx, v_st1_1, ({ struct E_Coll__List__Ty__Bind* o5 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o5 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o5->tag = 0; o5->u.C_Ty__Bind.f_x = p_x; o5->u.C_Ty__Bind.f_t = v_tx_4; o5; }); o5->u.C_Coll__Cons.f_t = p_bs; o5; }), p_line, p_rest, p_last, p_want, ({ struct E_Coll__List__El__Stmt* o5 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_El__Stmt* o5 = (struct E_El__Stmt*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Stmt, u) + sizeof(((struct E_El__Stmt*)0)->u.C_El__Val))); o5->tag = 0; o5->u.C_El__Val.f_line = p_sl; o5->u.C_El__Val.f_x = p_x; o5->u.C_El__Val.f_ty = v_tx_4; o5->u.C_El__Val.f_mut = p_mut; o5->u.C_El__Val.f_e = v_ee_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; })); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__callSig(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Sym__Sym* p_recv, struct E_K__Term* p_rty, struct E_Sym__Sym* p_name, struct E_Coll__List__Ast__Binder* p_ps, struct E_Ast__Ty* p_ret, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__Option__K__Term* p_want) { return ({ struct E_K__Term* v_rt_0 = f_Ty__term(p_eff__Region, p_ret, p_tv); __auto_type res_ = ((f_Coll__length__Ast__Binder(p_ps) != f_Coll__length__Ast__Expr(p_xs)) ? ({ struct E_Ty__Ex* o1 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o1->tag = 0; o1->u.C_Ty__Ex.f_st = f_Ty__args(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o1 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Arity))); o1->tag = 2; o1->u.C_Ty__Arity.f_line = p_line; o1->u.C_Ty__Arity.f_name = p_name; o1; })), p_bs, p_xs); o1->u.C_Ty__Ex.f_t = v_rt_0; o1->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o1 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bad))); o1->tag = 16; o1->u.C_El__Bad.f_line = p_line; o1; }); o1; }) : ({ __auto_type res_ = ({ __auto_type s1 = f_Ty__params(p_eff__Region, p_cx, p_st, p_bs, p_line, p_ps, p_tv, p_xs, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st1_1 = s1->u.C_Ty__Es.f_st; __auto_type v_eargs_2 = s1->u.C_Ty__Es.f_es; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st1_1, p_line, v_rt_0, p_want, ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Op))); o3->tag = 8; o3->u.C_El__Op.f_line = p_line; o3->u.C_El__Op.f_recv = p_recv; o3->u.C_El__Op.f_ty = p_rty; o3->u.C_El__Op.f_op = p_name; o3->u.C_El__Op.f_args = v_eargs_2; o3; })); res_; }); }); }); res_; })); res_; }); } +static struct E_Coll__List__Ty__Bind* f_Ty__zipBind(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_ts; s2->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_t_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_trest_3 = s2->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__K__Term* t2 = v_trest_3; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_0; o4->u.C_Ty__Bind.f_t = v_t_2; o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_xs = t1; p_ts = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); }); }); }); }); } +static struct E_Coll__Option__Ast__Op* f_Ty__protoOp(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Sym__Sym* p_p, struct E_Sym__Sym* p_op) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Op); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Proto.f_name; __auto_type v_ops_3 = s2->u.C_Ast__Proto.f_ops; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_p) ? f_Ty__opIn(p_eff__Region, v_ops_3, p_op) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_p; struct E_Sym__Sym* t3 = p_op; p_eff__Region = t0; p_ps = t1; p_p = t2; p_op = t3; goto srs_tail; (struct E_Coll__Option__Ast__Op*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ast__Op* f_Ty__opIn(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Op* p_os, struct E_Sym__Sym* p_op) { srs_tail: return ({ __auto_type s0 = p_os; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Op); }) : ({ __auto_type v_o_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_o_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Op.f_name; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_op) ? ({ struct E_Coll__Option__Ast__Op* o3 = (struct E_Coll__Option__Ast__Op*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Op, u) + sizeof(((struct E_Coll__Option__Ast__Op*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_o_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Op* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_op; p_eff__Region = t0; p_os = t1; p_op = t2; goto srs_tail; (struct E_Coll__Option__Ast__Op*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Ty__TM* f_Ty__traitMethod(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_t, struct E_Sym__Sym* p_op) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ (&N_Coll__None__Ty__TM); }) : ({ __auto_type v_tr_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_tr_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Trait.f_name; __auto_type v_sigs_3 = s2->u.C_Ast__Trait.f_sigs; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_t) ? ({ __auto_type res_ = ({ __auto_type s4 = f_Ty__fnNamed(p_eff__Region, v_sigs_3, p_op); s4->tag == 1 ? ({ __auto_type v_m_4 = s4->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__Ty__TM* o5 = (struct E_Coll__Option__Ty__TM*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ty__TM, u) + sizeof(((struct E_Coll__Option__Ty__TM*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = ({ struct E_Ty__TM* o5 = (struct E_Ty__TM*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__TM, u) + sizeof(((struct E_Ty__TM*)0)->u.C_Ty__TM))); o5->tag = 0; o5->u.C_Ty__TM.f_t = v_tr_0; o5->u.C_Ty__TM.f_m = v_m_4; o5; }); o5; }); }) : ({ (&N_Coll__None__Ty__TM); }); }); res_; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Trait* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_t; struct E_Sym__Sym* t3 = p_op; p_eff__Region = t0; p_trs = t1; p_t = t2; p_op = t3; goto srs_tail; (struct E_Coll__Option__Ty__TM*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Ex* f_Ty__bin(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_op; s0->tag == 9 ? ({ f_Ty__eqOp(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, p_want); }) : s0->tag == 10 ? ({ f_Ty__eqOp(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, p_want); }) : s0->tag == 11 ? ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 12 ? ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 5 ? ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 6 ? ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 7 ? ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : s0->tag == 8 ? ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want); }) : ({ f_Ty__both(p_eff__Region, p_cx, p_st, p_bs, p_line, p_op, p_l, p_rhs, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})), p_want); }); }); } +static struct E_Ty__Ex* f_Ty__both(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_K__Term* p_arg, struct E_K__Term* p_res, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, p_l, ({ struct E_Coll__Option__K__Term* o0 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o0->tag = 1; o0->u.C_Coll__Some.f_v = p_arg; o0; })); ({ __auto_type v_st1_0 = s0->u.C_Ty__Ex.f_st; __auto_type v_el_1 = s0->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__expr(p_eff__Region, p_cx, v_st1_0, p_bs, p_rhs, ({ struct E_Coll__Option__K__Term* o2 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_arg; o2; })); ({ __auto_type v_st2_2 = s2->u.C_Ty__Ex.f_st; __auto_type v_er_3 = s2->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st2_2, p_line, p_res, p_want, ({ struct E_El__Expr* o4 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bin))); o4->tag = 9; o4->u.C_El__Bin.f_line = p_line; o4->u.C_El__Bin.f_op = p_op; o4->u.C_El__Bin.f_l = v_el_1; o4->u.C_El__Bin.f_rhs = v_er_3; o4; })); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__eqOp(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Ast__BinOp* p_op, struct E_Ast__Expr* p_l, struct E_Ast__Expr* p_rhs, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, p_l, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_0 = s0->u.C_Ty__Ex.f_st; __auto_type v_tl_1 = s0->u.C_Ty__Ex.f_t; __auto_type v_el_2 = s0->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_eff__Region, p_cx, v_st1_0, p_bs, p_rhs, ({ struct E_Coll__Option__K__Term* o3 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_tl_1; o3; })); ({ __auto_type v_st2_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_er_4 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = f_Ty__lit(p_eff__Region, v_st2_3, p_line, f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})), p_want, ({ struct E_El__Expr* o5 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Bin))); o5->tag = 9; o5->u.C_El__Bin.f_line = p_line; o5->u.C_El__Bin.f_op = p_op; o5->u.C_El__Bin.f_l = v_el_2; o5->u.C_El__Bin.f_rhs = v_er_4; o5; })); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__Ex* f_Ty__arms(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ f_Ty__bad(p_eff__Region, p_st, p_line); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_enums_2 = s2->u.C_Ty__Cx.f_es; ({ struct E_Ty__St* v_st0_3 = ({ __auto_type s3 = f_Ty__missingCase(p_eff__Region, v_enums_2, p_as); s3->tag == 1 ? ({ __auto_type v_c_3 = s3->u.C_Coll__Some.f_v; f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o4 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NotExhaustive))); o4->tag = 10; o4->u.C_Ty__NotExhaustive.f_line = p_line; o4->u.C_Ty__NotExhaustive.f_missing = v_c_3; o4; })); }) : ({ p_st; }); }); __auto_type res_ = ({ __auto_type s4 = f_Ty__arm(p_eff__Region, p_cx, v_st0_3, p_bs, p_ts, v_a_0, p_want); ({ __auto_type v_st1_4 = s4->u.C_Ty__AEx.f_st; __auto_type v_t1_5 = s4->u.C_Ty__AEx.f_t; __auto_type v_ea_6 = s4->u.C_Ty__AEx.f_a; ({ __auto_type res_ = f_Ty__armsSame(p_eff__Region, p_cx, v_st1_4, p_bs, p_line, p_ts, p_es, v_rest_1, v_t1_5, ({ struct E_Coll__List__El__Arm* o7 = (struct E_Coll__List__El__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Arm, u) + sizeof(((struct E_Coll__List__El__Arm*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_ea_6; o7->u.C_Coll__Cons.f_t = (&N_Coll__Nil__El__Arm); o7; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Ex* f_Ty__armsSame(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_K__Term* p_ts, struct E_El__Expr* p_es, struct E_Coll__List__Ast__Arm* p_as, struct E_K__Term* p_t, struct E_Coll__List__El__Arm* p_acc) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ ({ struct E_Ty__Ex* o0 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o0->tag = 0; o0->u.C_Ty__Ex.f_st = p_st; o0->u.C_Ty__Ex.f_t = p_t; o0->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o0 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Match))); o0->tag = 12; o0->u.C_El__Match.f_line = p_line; o0->u.C_El__Match.f_s = p_es; o0->u.C_El__Match.f_en = p_ts; o0->u.C_El__Match.f_arms = f_Coll__rev__El__Arm(p_eff__Region, p_acc); o0; }); o0; }); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__arm(p_eff__Region, p_cx, p_st, p_bs, p_ts, v_a_0, ({ struct E_Coll__Option__K__Term* o2 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o2->tag = 1; o2->u.C_Coll__Some.f_v = p_t; o2; })); ({ __auto_type v_st1_2 = s2->u.C_Ty__AEx.f_st; __auto_type v_ea_3 = s2->u.C_Ty__AEx.f_a; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_K__Term* t5 = p_ts; struct E_El__Expr* t6 = p_es; struct E_Coll__List__Ast__Arm* t7 = v_rest_1; struct E_K__Term* t8 = p_t; struct E_Coll__List__El__Arm* t9 = ({ struct E_Coll__List__El__Arm* o4 = (struct E_Coll__List__El__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Arm, u) + sizeof(((struct E_Coll__List__El__Arm*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_ea_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ts = t5; p_es = t6; p_as = t7; p_t = t8; p_acc = t9; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__El__Arm* f_Coll__rev__El__Arm(srs_cap* p_eff__Region, struct E_Coll__List__El__Arm* p_xs) { return f_Coll__revOnto__El__Arm(p_eff__Region, p_xs, (&N_Coll__Nil__El__Arm)); } +static struct E_Coll__List__El__Arm* f_Coll__revOnto__El__Arm(srs_cap* p_eff__Region, struct E_Coll__List__El__Arm* p_xs, struct E_Coll__List__El__Arm* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Arm* t1 = v_t_1; struct E_Coll__List__El__Arm* t2 = ({ struct E_Coll__List__El__Arm* o2 = (struct E_Coll__List__El__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Arm, u) + sizeof(((struct E_Coll__List__El__Arm*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Arm*){0}; }); }); }); } +static struct E_Ty__AEx* f_Ty__arm(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_ts, struct E_Ast__Arm* p_a, struct E_Coll__Option__K__Term* p_want) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_line_0 = s0->u.C_Ast__Arm.f_line; __auto_type v_p_1 = s0->u.C_Ast__Arm.f_p; __auto_type v_b_2 = s0->u.C_Ast__Arm.f_body; ({ __auto_type res_ = ({ __auto_type s3 = p_cx; ({ __auto_type v_es_3 = s3->u.C_Ty__Cx.f_es; ({ __auto_type res_ = ({ __auto_type s4 = ({ __auto_type s4 = v_p_1; s4->tag == 1 ? ({ f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_b_2, p_want); }) : ({ __auto_type v_c_4 = s4->u.C_Ast__PCase.f_c; __auto_type v_binds_5 = s4->u.C_Ast__PCase.f_binds; ({ __auto_type s6 = f_Ty__caseNamed(p_eff__Region, v_es_3, v_c_4); s6->tag == 0 ? ({ f_Ty__expr(p_eff__Region, p_cx, f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o6->tag = 1; o6->u.C_Ty__Unknown.f_line = v_line_0; o6->u.C_Ty__Unknown.f_name = v_c_4; o6; })), p_bs, v_b_2, p_want); }) : ({ __auto_type v_co_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_co_6; ({ __auto_type v_e_7 = s7->u.C_Ty__CaseOf.f_e; __auto_type v_cs_8 = s7->u.C_Ty__CaseOf.f_c; ({ __auto_type res_ = ({ __auto_type s9 = v_cs_8; ({ __auto_type v_fields_9 = s9->u.C_Ast__Case.f_fields; ({ __auto_type res_ = ({ __auto_type s10 = f_Ty__openEnum(p_eff__Region, p_st, v_e_7); ({ __auto_type v_st1_10 = s10->u.C_Ty__Open.f_st; __auto_type v_tv_11 = s10->u.C_Ty__Open.f_tv; __auto_type v_vars_12 = s10->u.C_Ty__Open.f_vars; ({ struct E_Ty__St* v_st1b_13 = ((f_Coll__length__Sym__Sym(v_binds_5) == f_Coll__length__Ast__Binder(v_fields_9)) ? v_st1_10 : f_Ty__clash(p_eff__Region, v_st1_10, ({ struct E_Ty__Clash* o13 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__PatArity))); o13->tag = 11; o13->u.C_Ty__PatArity.f_line = v_line_0; o13->u.C_Ty__PatArity.f_c = v_c_4; o13; }))); struct E_Ty__St* v_st2_14 = f_Ty__expect(p_eff__Region, v_st1b_13, v_line_0, p_ts, f_Ty__enumTerm(p_eff__Region, v_e_7, v_vars_12)); __auto_type res_ = f_Ty__expr(p_eff__Region, p_cx, v_st2_14, f_Ty__bindFields(p_eff__Region, v_binds_5, v_fields_9, v_tv_11, p_bs), v_b_2, p_want); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); }); ({ __auto_type v_st9_4 = s4->u.C_Ty__Ex.f_st; __auto_type v_t9_5 = s4->u.C_Ty__Ex.f_t; __auto_type v_e9_6 = s4->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__AEx* o7 = (struct E_Ty__AEx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__AEx, u) + sizeof(((struct E_Ty__AEx*)0)->u.C_Ty__AEx))); o7->tag = 0; o7->u.C_Ty__AEx.f_st = v_st9_4; o7->u.C_Ty__AEx.f_t = v_t9_5; o7->u.C_Ty__AEx.f_a = ({ struct E_El__Arm* o7 = (struct E_El__Arm*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Arm, u) + sizeof(((struct E_El__Arm*)0)->u.C_El__Arm))); o7->tag = 0; o7->u.C_El__Arm.f_line = v_line_0; o7->u.C_El__Arm.f_p = v_p_1; o7->u.C_El__Arm.f_body = v_e9_6; o7; }); o7; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Ty__Bind* f_Ty__bindFields(srs_cap* p_eff__Region, struct E_Coll__List__Sym__Sym* p_xs, struct E_Coll__List__Ast__Binder* p_fs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_bs) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_bs; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = p_fs; s2->tag == 0 ? ({ p_bs; }) : ({ __auto_type v_f_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_frest_3 = s2->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s4 = v_f_2; ({ __auto_type v_ft_4 = s4->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Sym__Sym* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = v_frest_3; struct E_Coll__List__Ty__Bind* t3 = p_tv; struct E_Coll__List__Ty__Bind* t4 = (Str__eq(f_Sym__str(v_x_0), ((srs_str){(const uint8_t*)"_", 1})) ? p_bs : ({ struct E_Coll__List__Ty__Bind* o5 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o5 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o5->tag = 0; o5->u.C_Ty__Bind.f_x = v_x_0; o5->u.C_Ty__Bind.f_t = f_Ty__term(p_eff__Region, v_ft_4, p_tv); o5; }); o5->u.C_Coll__Cons.f_t = p_bs; o5; })); p_eff__Region = t0; p_xs = t1; p_fs = t2; p_tv = t3; p_bs = t4; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Ty__Ex* f_Ty__block(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, struct E_Coll__List__Ast__Stmt* p_ss, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc) { srs_tail: return ({ __auto_type s0 = p_ss; s0->tag == 0 ? ({ ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, p_last, p_want); ({ __auto_type v_st1_0 = s0->u.C_Ty__Ex.f_st; __auto_type v_t_1 = s0->u.C_Ty__Ex.f_t; __auto_type v_el_2 = s0->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__Ex* o3 = (struct E_Ty__Ex*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Ex, u) + sizeof(((struct E_Ty__Ex*)0)->u.C_Ty__Ex))); o3->tag = 0; o3->u.C_Ty__Ex.f_st = v_st1_0; o3->u.C_Ty__Ex.f_t = v_t_1; o3->u.C_Ty__Ex.f_e = ({ struct E_El__Expr* o3 = (struct E_El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Expr, u) + sizeof(((struct E_El__Expr*)0)->u.C_El__Block))); o3->tag = 13; o3->u.C_El__Block.f_line = p_line; o3->u.C_El__Block.f_stmts = f_Coll__rev__El__Stmt(p_eff__Region, p_acc); o3->u.C_El__Block.f_last = v_el_2; o3; }); o3; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_s_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_s_0; s2->tag == 0 ? ({ __auto_type v_sl_2 = s2->u.C_Ast__Val.f_line; __auto_type v_x_3 = s2->u.C_Ast__Val.f_x; __auto_type v_ann_4 = s2->u.C_Ast__Val.f_ann; __auto_type v_e_5 = s2->u.C_Ast__Val.f_e; f_Ty__bindStmt(p_eff__Region, p_cx, p_st, p_bs, p_line, v_sl_2, v_x_3, v_ann_4, v_e_5, false, v_rest_1, p_last, p_want, p_acc); }) : s2->tag == 1 ? ({ __auto_type v_sl_2 = s2->u.C_Ast__Var.f_line; __auto_type v_x_3 = s2->u.C_Ast__Var.f_x; __auto_type v_ann_4 = s2->u.C_Ast__Var.f_ann; __auto_type v_e_5 = s2->u.C_Ast__Var.f_e; f_Ty__bindStmt(p_eff__Region, p_cx, p_st, p_bs, p_line, v_sl_2, v_x_3, v_ann_4, v_e_5, true, v_rest_1, p_last, p_want, p_acc); }) : s2->tag == 2 ? ({ __auto_type v_sl_2 = s2->u.C_Ast__Handle.f_line; __auto_type v_x_3 = s2->u.C_Ast__Handle.f_x; __auto_type v_h_4 = s2->u.C_Ast__Handle.f_h; __auto_type v_xs_5 = s2->u.C_Ast__Handle.f_args; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_hs_6 = s6->u.C_Ty__Cx.f_hs; __auto_type v_mode_7 = s6->u.C_Ty__Cx.f_mode; __auto_type v_rows_8 = s6->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s9 = f_Ty__exprs(p_eff__Region, p_cx, f_Ty__pureHandle(p_eff__Region, v_mode_7, p_st, v_sl_2, v_h_4), p_bs, v_xs_5, (&N_Coll__Nil__El__Expr)); ({ __auto_type v_st1_9 = s9->u.C_Ty__Es.f_st; __auto_type v_eargs_10 = s9->u.C_Ty__Es.f_es; ({ __auto_type res_ = ({ __auto_type s11 = f_Ty__rowCaps(p_eff__Region, v_st1_9, p_bs, v_sl_2, f_Eff__row(p_eff__Region, v_rows_8, v_h_4), (&N_Coll__Nil__Sym__Sym)); ({ __auto_type v_st2_11 = s11->u.C_Ty__Caps.f_st; __auto_type v_caps_12 = s11->u.C_Ty__Caps.f_caps; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st2_11; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o13 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o13->tag = 1; o13->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o13 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o13->tag = 0; o13->u.C_Ty__Bind.f_x = v_x_3; o13->u.C_Ty__Bind.f_t = ({ struct E_K__Term* o13 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o13->tag = 1; o13->u.C_K__Con.f_f = f_Ty__protoOf(v_hs_6, v_h_4); o13->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o13; }); o13; }); o13->u.C_Coll__Cons.f_t = p_bs; o13; }); int64_t t4 = p_line; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; struct E_Coll__Option__K__Term* t7 = p_want; struct E_Coll__List__El__Stmt* t8 = ({ struct E_Coll__List__El__Stmt* o13 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o13->tag = 1; o13->u.C_Coll__Cons.f_h = ({ struct E_El__Stmt* o13 = (struct E_El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Stmt, u) + sizeof(((struct E_El__Stmt*)0)->u.C_El__Handle))); o13->tag = 1; o13->u.C_El__Handle.f_line = v_sl_2; o13->u.C_El__Handle.f_x = v_x_3; o13->u.C_El__Handle.f_h = v_h_4; o13->u.C_El__Handle.f_caps = v_caps_12; o13->u.C_El__Handle.f_args = v_eargs_10; o13; }); o13->u.C_Coll__Cons.f_t = p_acc; o13; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ss = t5; p_last = t6; p_want = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_e_2 = s2->u.C_Ast__Do.f_e; ({ __auto_type res_ = ({ __auto_type s3 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_e_2, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_3 = s3->u.C_Ty__Ex.f_st; __auto_type v_ee_4 = s3->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_3; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; struct E_Coll__Option__K__Term* t7 = p_want; struct E_Coll__List__El__Stmt* t8 = ({ struct E_Coll__List__El__Stmt* o5 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_El__Stmt* o5 = (struct E_El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Stmt, u) + sizeof(((struct E_El__Stmt*)0)->u.C_El__Do))); o5->tag = 2; o5->u.C_El__Do.f_e = v_ee_4; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ss = t5; p_last = t6; p_want = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_k_2 = s2->u.C_Ast__Check.f_k; __auto_type v_e_3 = s2->u.C_Ast__Check.f_e; ({ struct E_K__Term* v_want2_4 = ({ __auto_type s4 = v_k_2; s4->tag == 0 ? ({ f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"Bool", 4})); }) : ({ f_Ty__con(p_eff__Region, ((srs_str){(const uint8_t*)"I64", 3})); }); }); __auto_type res_ = ({ __auto_type s5 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_e_3, ({ struct E_Coll__Option__K__Term* o5 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = v_want2_4; o5; })); ({ __auto_type v_st1_5 = s5->u.C_Ty__Ex.f_st; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ty__Bind* t3 = p_bs; int64_t t4 = p_line; struct E_Coll__List__Ast__Stmt* t5 = v_rest_1; struct E_Ast__Expr* t6 = p_last; struct E_Coll__Option__K__Term* t7 = p_want; struct E_Coll__List__El__Stmt* t8 = p_acc; p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_line = t4; p_ss = t5; p_last = t6; p_want = t7; p_acc = t8; goto srs_tail; (struct E_Ty__Ex*){0}; }); res_; }); }); }); res_; }); }); }); }); }); } +static struct E_Coll__List__El__Stmt* f_Coll__rev__El__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__El__Stmt* p_xs) { return f_Coll__revOnto__El__Stmt(p_eff__Region, p_xs, (&N_Coll__Nil__El__Stmt)); } +static struct E_Coll__List__El__Stmt* f_Coll__revOnto__El__Stmt(srs_cap* p_eff__Region, struct E_Coll__List__El__Stmt* p_xs, struct E_Coll__List__El__Stmt* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Stmt* t1 = v_t_1; struct E_Coll__List__El__Stmt* t2 = ({ struct E_Coll__List__El__Stmt* o2 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Stmt*){0}; }); }); }); } +static struct E_Ty__Es* f_Ty__exprs(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, struct E_Coll__List__Ast__Expr* p_xs, struct E_Coll__List__El__Expr* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ ({ struct E_Ty__Es* o0 = (struct E_Ty__Es*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Es, u) + sizeof(((struct E_Ty__Es*)0)->u.C_Ty__Es))); o0->tag = 0; o0->u.C_Ty__Es.f_st = p_st; o0->u.C_Ty__Es.f_es = f_Coll__rev__El__Expr(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, v_x_0, (&N_Coll__None__K__Term)); ({ __auto_type v_st1_2 = s2->u.C_Ty__Ex.f_st; __auto_type v_ex_3 = s2->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ty__Bind* t3 = p_bs; struct E_Coll__List__Ast__Expr* t4 = v_rest_1; struct E_Coll__List__El__Expr* t5 = ({ struct E_Coll__List__El__Expr* o4 = (struct E_Coll__List__El__Expr*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Expr, u) + sizeof(((struct E_Coll__List__El__Expr*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_ex_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_bs = t3; p_xs = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Es*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Ex* f_Ty__bindStmt(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ty__Bind* p_bs, int64_t p_line, int64_t p_sl, struct E_Sym__Sym* p_x, struct E_Coll__Option__Ast__Ty* p_ann, struct E_Ast__Expr* p_e, bool p_mut, struct E_Coll__List__Ast__Stmt* p_rest, struct E_Ast__Expr* p_last, struct E_Coll__Option__K__Term* p_want, struct E_Coll__List__El__Stmt* p_acc) { return ({ struct E_Coll__Option__K__Term* v_wa_0 = ({ __auto_type s0 = p_ann; s0->tag == 0 ? ({ (&N_Coll__None__K__Term); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ struct E_Coll__Option__K__Term* o1 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o1->tag = 1; o1->u.C_Coll__Some.f_v = f_Ty__term(p_eff__Region, v_t_0, (&N_Coll__Nil__Ty__Bind)); o1; }); }); }); __auto_type res_ = ({ __auto_type s1 = f_Ty__expr(p_eff__Region, p_cx, p_st, p_bs, p_e, v_wa_0); ({ __auto_type v_st1_1 = s1->u.C_Ty__Ex.f_st; __auto_type v_te_2 = s1->u.C_Ty__Ex.f_t; __auto_type v_ee_3 = s1->u.C_Ty__Ex.f_e; ({ struct E_K__Term* v_tx_4 = ({ __auto_type s4 = v_wa_0; s4->tag == 0 ? ({ v_te_2; }) : ({ __auto_type v_w_4 = s4->u.C_Coll__Some.f_v; v_w_4; }); }); __auto_type res_ = f_Ty__block(p_eff__Region, p_cx, v_st1_1, ({ struct E_Coll__List__Ty__Bind* o5 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o5 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o5->tag = 0; o5->u.C_Ty__Bind.f_x = p_x; o5->u.C_Ty__Bind.f_t = v_tx_4; o5; }); o5->u.C_Coll__Cons.f_t = p_bs; o5; }), p_line, p_rest, p_last, p_want, ({ struct E_Coll__List__El__Stmt* o5 = (struct E_Coll__List__El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Stmt, u) + sizeof(((struct E_Coll__List__El__Stmt*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_El__Stmt* o5 = (struct E_El__Stmt*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Stmt, u) + sizeof(((struct E_El__Stmt*)0)->u.C_El__Val))); o5->tag = 0; o5->u.C_El__Val.f_line = p_sl; o5->u.C_El__Val.f_x = p_x; o5->u.C_El__Val.f_ty = v_tx_4; o5->u.C_El__Val.f_mut = p_mut; o5->u.C_El__Val.f_e = v_ee_3; o5; }); o5->u.C_Coll__Cons.f_t = p_acc; o5; })); res_; }); }); }); res_; }); } static struct E_Sym__Sym* f_Ty__protoOf(struct E_Coll__List__Ast__Handler* p_hs, struct E_Sym__Sym* p_h) { srs_tail: return ({ __auto_type s0 = p_hs; s0->tag == 0 ? ({ p_h; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_x_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Handler.f_name; __auto_type v_p_3 = s2->u.C_Ast__Handler.f_proto; ({ __auto_type res_ = (f_Sym__eq(v_n_2, p_h) ? v_p_3 : ({ struct E_Coll__List__Ast__Handler* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_h; p_hs = t0; p_h = t1; goto srs_tail; (struct E_Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__FnEx* f_Ty__fn(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st0, struct E_Ast__Fn* p_f, struct E_Coll__List__Eff__Cap* p_row) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_body_5 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_protos_6 = s6->u.C_Ty__Cx.f_ps; ({ struct E_Coll__List__Sym__Sym* v_tps_7 = f_Ty__tparams(p_r, v_gs_2, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Ty__Bind* v_tv_8 = f_Ty__rigid(p_r, v_tps_7, (&N_Coll__Nil__Ty__Bind)); struct E_Coll__List__Ast__Binder* v_ev_9 = f_Ty__evidence(p_r, v_gs_2, (&N_Coll__Nil__Ast__Binder)); struct E_Coll__List__Ty__Bind* v_bs_10 = f_Ty__binds(p_r, v_ps_3, v_tv_8, f_Ty__binds(p_r, v_ev_9, v_tv_8, f_Ty__rowBinds(p_r, p_row, (&N_Coll__Nil__Ty__Bind)))); struct E_K__Term* v_rt_11 = f_Ty__term(p_r, v_ret_4, v_tv_8); struct E_Coll__List__Sym__Sym* v_caps_12 = f_Coll__revOnto__Sym__Sym(p_r, f_Coll__rev__Sym__Sym(p_r, f_Ty__capNames(p_r, v_protos_6, v_ev_9, (&N_Coll__Nil__Sym__Sym))), f_Ty__rowNames(p_r, p_row)); struct E_Coll__List__El__Param* v_eps_13 = f_Ty__elParams(p_r, v_ps_3, v_tv_8, (&N_Coll__Nil__El__Param)); struct E_Ty__St* v_st_14 = f_Ty__fnShape(p_r, p_cx, p_st0, v_line_0, v_tps_7, v_ps_3); __auto_type res_ = ({ __auto_type s15 = v_body_5; s15->tag == 1 ? ({ ({ struct E_Ty__FnEx* o15 = (struct E_Ty__FnEx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__FnEx, u) + sizeof(((struct E_Ty__FnEx*)0)->u.C_Ty__FnEx))); o15->tag = 0; o15->u.C_Ty__FnEx.f_st = v_st_14; o15->u.C_Ty__FnEx.f_f = ({ struct E_El__Fn* o15 = (struct E_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Fn, u) + sizeof(((struct E_El__Fn*)0)->u.C_El__Fn))); o15->tag = 0; o15->u.C_El__Fn.f_line = v_line_0; o15->u.C_El__Fn.f_name = v_name_1; o15->u.C_El__Fn.f_tparams = v_tps_7; o15->u.C_El__Fn.f_caps = v_caps_12; o15->u.C_El__Fn.f_params = v_eps_13; o15->u.C_El__Fn.f_ret = v_rt_11; o15->u.C_El__Fn.f_body = (&N_El__Extern); o15; }); o15; }); }) : s15->tag == 0 ? ({ __auto_type v_e_15 = s15->u.C_Ast__Def.f_e; ({ __auto_type res_ = ({ __auto_type s16 = f_Ty__expr(p_r, p_cx, v_st_14, v_bs_10, v_e_15, ({ struct E_Coll__Option__K__Term* o16 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o16->tag = 1; o16->u.C_Coll__Some.f_v = v_rt_11; o16; })); ({ __auto_type v_st1_16 = s16->u.C_Ty__Ex.f_st; __auto_type v_eb_17 = s16->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__FnEx* o18 = (struct E_Ty__FnEx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__FnEx, u) + sizeof(((struct E_Ty__FnEx*)0)->u.C_Ty__FnEx))); o18->tag = 0; o18->u.C_Ty__FnEx.f_st = v_st1_16; o18->u.C_Ty__FnEx.f_f = ({ struct E_El__Fn* o18 = (struct E_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Fn, u) + sizeof(((struct E_El__Fn*)0)->u.C_El__Fn))); o18->tag = 0; o18->u.C_El__Fn.f_line = v_line_0; o18->u.C_El__Fn.f_name = v_name_1; o18->u.C_El__Fn.f_tparams = v_tps_7; o18->u.C_El__Fn.f_caps = v_caps_12; o18->u.C_El__Fn.f_params = v_eps_13; o18->u.C_El__Fn.f_ret = v_rt_11; o18->u.C_El__Fn.f_body = ({ struct E_El__Body* o18 = (struct E_El__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Body, u) + sizeof(((struct E_El__Body*)0)->u.C_El__Def))); o18->tag = 0; o18->u.C_El__Def.f_e = v_eb_17; o18; }); o18; }); o18; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_e_15 = s15->u.C_Ast__Spec.f_e; ({ __auto_type res_ = ({ __auto_type s16 = f_Ty__expr(p_r, f_Ty__comptime(p_r, p_cx), v_st_14, v_bs_10, v_e_15, ({ struct E_Coll__Option__K__Term* o16 = (struct E_Coll__Option__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o16->tag = 1; o16->u.C_Coll__Some.f_v = v_rt_11; o16; })); ({ __auto_type v_st1_16 = s16->u.C_Ty__Ex.f_st; __auto_type v_eb_17 = s16->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__FnEx* o18 = (struct E_Ty__FnEx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__FnEx, u) + sizeof(((struct E_Ty__FnEx*)0)->u.C_Ty__FnEx))); o18->tag = 0; o18->u.C_Ty__FnEx.f_st = v_st1_16; o18->u.C_Ty__FnEx.f_f = ({ struct E_El__Fn* o18 = (struct E_El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Fn, u) + sizeof(((struct E_El__Fn*)0)->u.C_El__Fn))); o18->tag = 0; o18->u.C_El__Fn.f_line = v_line_0; o18->u.C_El__Fn.f_name = v_name_1; o18->u.C_El__Fn.f_tparams = v_tps_7; o18->u.C_El__Fn.f_caps = v_caps_12; o18->u.C_El__Fn.f_params = v_eps_13; o18->u.C_El__Fn.f_ret = v_rt_11; o18->u.C_El__Fn.f_body = ({ struct E_El__Body* o18 = (struct E_El__Body*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Body, u) + sizeof(((struct E_El__Body*)0)->u.C_El__Spec))); o18->tag = 2; o18->u.C_El__Spec.f_e = v_eb_17; o18; }); o18; }); o18; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Ty__Bind* f_Ty__rowBinds(srs_cap* p_r, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_row; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Eff__Cap.f_p; __auto_type v_x_3 = s2->u.C_Eff__Cap.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Eff__Cap* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_3; o4->u.C_Ty__Bind.f_t = ({ struct E_K__Term* o4 = (struct E_K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o4->tag = 1; o4->u.C_K__Con.f_f = v_p_2; o4->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o4; }); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_row = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Ty__rowNames(srs_cap* p_r, struct E_Coll__List__Eff__Cap* p_row) { return ({ __auto_type s0 = p_row; s0->tag == 0 ? ({ (&N_Coll__Nil__Sym__Sym); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_x_2 = s2->u.C_Eff__Cap.f_x; ({ __auto_type res_ = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = f_Ty__rowNames(p_r, v_rest_1); o3; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Ty__capNames(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ev; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_r, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_n_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = (f_Ty__isProto(p_ps, v_n_4) ? ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_acc; o5; }) : p_acc); p_r = t0; p_ps = t1; p_ev = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__El__Param* f_Ty__elParams(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__El__Param* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ f_Coll__rev__El__Param(p_r, p_acc); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__El__Param* t3 = ({ struct E_Coll__List__El__Param* o4 = (struct E_Coll__List__El__Param*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Param, u) + sizeof(((struct E_Coll__List__El__Param*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_El__Param* o4 = (struct E_El__Param*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Param, u) + sizeof(((struct E_El__Param*)0)->u.C_El__Param))); o4->tag = 0; o4->u.C_El__Param.f_x = v_x_2; o4->u.C_El__Param.f_ty = f_Ty__term(p_r, v_t_3, p_tv); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ps = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__El__Param*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__El__Param* f_Coll__rev__El__Param(srs_cap* p_r, struct E_Coll__List__El__Param* p_xs) { return f_Coll__revOnto__El__Param(p_r, p_xs, (&N_Coll__Nil__El__Param)); } -static struct E_Coll__List__El__Param* f_Coll__revOnto__El__Param(srs_cap* p_r, struct E_Coll__List__El__Param* p_xs, struct E_Coll__List__El__Param* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Param* t1 = v_t_1; struct E_Coll__List__El__Param* t2 = ({ struct E_Coll__List__El__Param* o2 = (struct E_Coll__List__El__Param*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Param, u) + sizeof(((struct E_Coll__List__El__Param*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Param*){0}; }); }); }); } -static struct E_Coll__List__Ty__Bind* f_Ty__binds(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_2; o4->u.C_Ty__Bind.f_t = f_Ty__term(p_r, v_t_3, p_tv); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_ps = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ast__Binder* f_Ty__evidence(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = f_Coll__revOnto__Ast__Binder(p_r, f_Coll__rev__Ast__Binder(p_r, v_bs_2), p_acc); p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = p_acc; p_r = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }); }); }); }); } -static struct E_Ty__Cx* f_Ty__cxOf(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Trait* p_trs) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Ty__Cx* o0 = (struct E_Ty__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o0->tag = 0; o0->u.C_Ty__Cx.f_fns = p_fns; o0->u.C_Ty__Cx.f_es = p_es; o0->u.C_Ty__Cx.f_ps = p_ps; o0->u.C_Ty__Cx.f_hs = p_hs; o0->u.C_Ty__Cx.f_trs = p_trs; o0->u.C_Ty__Cx.f_mode = ({ struct E_Ty__Mode* o0 = (struct E_Ty__Mode*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Mode, u) + sizeof(((struct E_Ty__Mode*)0)->u.C_Ty__Run))); o0->tag = 0; o0->u.C_Ty__Run.f_by = (&N_Ty__User); o0; }); o0->u.C_Ty__Cx.f_impure = f_Coll__sEmpty__Bool(p_r); o0->u.C_Ty__Cx.f_rows = f_Eff__none(p_r); o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = ({ struct E_Coll__List__Ast__Fn* o3 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_f_2; o3->u.C_Coll__Cons.f_t = p_fns; o3; }); struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = ({ struct E_Coll__List__Ast__Enum* o3 = (struct E_Coll__List__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Enum, u) + sizeof(((struct E_Coll__List__Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_2; o3->u.C_Coll__Cons.f_t = p_es; o3; }); struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = ({ struct E_Coll__List__Ast__Proto* o3 = (struct E_Coll__List__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Proto, u) + sizeof(((struct E_Coll__List__Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_p_2; o3->u.C_Coll__Cons.f_t = p_ps; o3; }); struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = ({ struct E_Coll__List__Ast__Handler* o3 = (struct E_Coll__List__Ast__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Handler, u) + sizeof(((struct E_Coll__List__Ast__Handler*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_h_2; o3->u.C_Coll__Cons.f_t = p_hs; o3; }); struct E_Coll__List__Ast__Trait* t6 = p_trs; p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 4 ? ({ __auto_type v_t_2 = s2->u.C_Ast__DTrait.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = ({ struct E_Coll__List__Ast__Trait* o3 = (struct E_Coll__List__Ast__Trait*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Trait, u) + sizeof(((struct E_Coll__List__Ast__Trait*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_trs; o3; }); p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 5 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_r = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }); }); }); }); } -static struct E_Ty__Result* f_Ty__check(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_Eff__rows(p_r, p_eff__Console, p_ds); s0->tag == 0 ? ({ __auto_type v_rows_0 = s0->u.C_Eff__Got.f_rows; f_Ty__checkWith(p_r, p_ds, (&N_Coll__Nil__Tl__Goal), v_rows_0); }) : ({ __auto_type v_rel_0 = s0->u.C_Eff__RulesBad.f_rel; ({ struct E_Ty__Result* o1 = (struct E_Ty__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Result, u) + sizeof(((struct E_Ty__Result*)0)->u.C_Ty__Result))); o1->tag = 0; o1->u.C_Ty__Result.f_clashes = ({ struct E_Coll__List__Ty__Clash* o1 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o1 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__PureRules))); o1->tag = 9; o1->u.C_Ty__PureRules.f_rel = v_rel_0; o1; }); o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ty__Clash); o1; }); o1->u.C_Ty__Result.f_insts = (&N_Coll__Nil__Ty__Inst); o1->u.C_Ty__Result.f_s = (&N_Coll__Tip__K__Term); o1->u.C_Ty__Result.f_fns = (&N_Coll__Nil__El__Fn); o1->u.C_Ty__Result.f_hs = (&N_Coll__Nil__El__Handler); o1->u.C_Ty__Result.f_gvs = (&N_Coll__Nil__El__Given); o1; }); }); }); } -static struct E_Ty__Result* f_Ty__checkWith(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Eff__Rows* p_rows) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__cxOf(p_r, p_ds, (&N_Coll__Nil__Ast__Fn), (&N_Coll__Nil__Ast__Enum), (&N_Coll__Nil__Ast__Proto), (&N_Coll__Nil__Ast__Handler), (&N_Coll__Nil__Ast__Trait)); ({ __auto_type v_fns0_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es0_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps0_2 = s0->u.C_Ty__Cx.f_ps; __auto_type v_hs0_3 = s0->u.C_Ty__Cx.f_hs; __auto_type v_trs0_4 = s0->u.C_Ty__Cx.f_trs; __auto_type v_mode0_5 = s0->u.C_Ty__Cx.f_mode; ({ struct E_Coll__SMap__K__Term* v_nom_6 = f_Ty__nominals(p_r, p_ds, f_Coll__sEmpty__K__Term(p_r)); struct E_Pure__Set* v_pr_7 = (f_Ty__hasSpec(p_ds) ? f_Pure__impure(p_r, p_ds, p_rows) : ({ struct E_Pure__Set* o7 = (struct E_Pure__Set*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__Got))); o7->tag = 0; o7->u.C_Pure__Got.f_impure = f_Coll__sEmpty__Bool(p_r); o7; })); struct E_Coll__SMap__Bool* v_imp_8 = ({ __auto_type s8 = v_pr_7; s8->tag == 0 ? ({ __auto_type v_m_8 = s8->u.C_Pure__Got.f_impure; v_m_8; }) : ({ f_Coll__sEmpty__Bool(p_r); }); }); struct E_Ty__St* v_st0_9 = ({ __auto_type s9 = v_pr_7; s9->tag == 0 ? ({ ({ struct E_Ty__St* o9 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o9->tag = 0; o9->u.C_Ty__St.f_s = (&N_Coll__Tip__K__Term); o9->u.C_Ty__St.f_next = ((int64_t)0); o9->u.C_Ty__St.f_cs = (&N_Coll__Nil__Ty__Clash); o9->u.C_Ty__St.f_is = (&N_Coll__Nil__Ty__Inst); o9->u.C_Ty__St.f_gs = (&N_Coll__Nil__Ty__Goal); o9->u.C_Ty__St.f_nom = v_nom_6; o9; }); }) : ({ __auto_type v_rel_9 = s9->u.C_Pure__RulesBad.f_rel; ({ struct E_Ty__St* o10 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o10->tag = 0; o10->u.C_Ty__St.f_s = (&N_Coll__Tip__K__Term); o10->u.C_Ty__St.f_next = ((int64_t)0); o10->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o10 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o10 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__PureRules))); o10->tag = 9; o10->u.C_Ty__PureRules.f_rel = v_rel_9; o10; }); o10->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ty__Clash); o10; }); o10->u.C_Ty__St.f_is = (&N_Coll__Nil__Ty__Inst); o10->u.C_Ty__St.f_gs = (&N_Coll__Nil__Ty__Goal); o10->u.C_Ty__St.f_nom = v_nom_6; o10; }); }); }); struct E_Ty__Cx* v_cx_10 = ({ struct E_Ty__Cx* o10 = (struct E_Ty__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o10->tag = 0; o10->u.C_Ty__Cx.f_fns = v_fns0_0; o10->u.C_Ty__Cx.f_es = v_es0_1; o10->u.C_Ty__Cx.f_ps = v_ps0_2; o10->u.C_Ty__Cx.f_hs = v_hs0_3; o10->u.C_Ty__Cx.f_trs = v_trs0_4; o10->u.C_Ty__Cx.f_mode = v_mode0_5; o10->u.C_Ty__Cx.f_impure = v_imp_8; o10->u.C_Ty__Cx.f_rows = p_rows; o10; }); __auto_type res_ = ({ __auto_type s11 = f_Ty__decls(p_r, v_cx_10, v_st0_9, p_ds, (&N_Coll__Nil__El__Fn), (&N_Coll__Nil__El__Handler), (&N_Coll__Nil__El__Given)); ({ __auto_type v_st1_11 = s11->u.C_Ty__Fns.f_st; __auto_type v_fs_12 = s11->u.C_Ty__Fns.f_fs; __auto_type v_hs_13 = s11->u.C_Ty__Fns.f_hs; __auto_type v_gvs_14 = s11->u.C_Ty__Fns.f_gvs; ({ __auto_type res_ = ({ __auto_type s15 = v_st1_11; ({ __auto_type v_s_15 = s15->u.C_Ty__St.f_s; __auto_type v_cs_16 = s15->u.C_Ty__St.f_cs; __auto_type v_is_17 = s15->u.C_Ty__St.f_is; __auto_type v_gs_18 = s15->u.C_Ty__St.f_gs; ({ struct E_Coll__List__Ty__Goal* v_allGoals_19 = f_Ty__typeGoals(p_r, v_fns0_0, p_tgs, f_Coll__rev__Ty__Goal(p_r, v_gs_18)); struct E_Coll__List__Ty__Clash* v_cs2_20 = f_Ty__externSlots(p_r, v_es0_1, f_Ty__externs(p_r, v_fns0_0, f_Coll__sEmpty__Bool(p_r)), v_s_15, v_is_17, f_Ty__goals(p_r, v_ps0_2, f_Ty__cands(p_r, v_ps0_2, p_ds, (&N_Coll__Nil__Ty__Cand)), v_s_15, v_allGoals_19, v_cs_16)); __auto_type res_ = ({ struct E_Ty__Result* o21 = (struct E_Ty__Result*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Result, u) + sizeof(((struct E_Ty__Result*)0)->u.C_Ty__Result))); o21->tag = 0; o21->u.C_Ty__Result.f_clashes = f_Ty__unsolved(p_r, v_s_15, v_is_17, v_cs2_20); o21->u.C_Ty__Result.f_insts = v_is_17; o21->u.C_Ty__Result.f_s = v_s_15; o21->u.C_Ty__Result.f_fns = v_fs_12; o21->u.C_Ty__Result.f_hs = v_hs_13; o21->u.C_Ty__Result.f_gvs = v_gvs_14; o21; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Ty__Goal* f_Coll__rev__Ty__Goal(srs_cap* p_r, struct E_Coll__List__Ty__Goal* p_xs) { return f_Coll__revOnto__Ty__Goal(p_r, p_xs, (&N_Coll__Nil__Ty__Goal)); } -static struct E_Coll__List__Ty__Goal* f_Coll__revOnto__Ty__Goal(srs_cap* p_r, struct E_Coll__List__Ty__Goal* p_xs, struct E_Coll__List__Ty__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Goal* t1 = v_t_1; struct E_Coll__List__Ty__Goal* t2 = ({ struct E_Coll__List__Ty__Goal* o2 = (struct E_Coll__List__Ty__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Goal, u) + sizeof(((struct E_Coll__List__Ty__Goal*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Goal*){0}; }); }); }); } -static struct E_Ty__Fns* f_Ty__decls(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__El__Fn* p_acc, struct E_Coll__List__El__Handler* p_hacc, struct E_Coll__List__El__Given* p_gacc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Ty__Fns* o0 = (struct E_Ty__Fns*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Fns, u) + sizeof(((struct E_Ty__Fns*)0)->u.C_Ty__Fns))); o0->tag = 0; o0->u.C_Ty__Fns.f_st = p_st; o0->u.C_Ty__Fns.f_fs = f_Coll__rev__El__Fn(p_r, p_acc); o0->u.C_Ty__Fns.f_hs = f_Coll__rev__El__Handler(p_r, p_hacc); o0->u.C_Ty__Fns.f_gvs = f_Coll__rev__El__Given(p_r, p_gacc); o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_fname_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_rows_4 = s4->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__fn(p_r, p_cx, p_st, v_f_2, f_Eff__row(p_r, v_rows_4, v_fname_3)); ({ __auto_type v_st1_5 = s5->u.C_Ty__FnEx.f_st; __auto_type v_ef_6 = s5->u.C_Ty__FnEx.f_f; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = ({ struct E_Coll__List__El__Fn* o7 = (struct E_Coll__List__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Fn, u) + sizeof(((struct E_Coll__List__El__Fn*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_ef_6; o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__El__Handler* t5 = p_hacc; struct E_Coll__List__El__Given* t6 = p_gacc; p_r = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_hn_3 = s3->u.C_Ast__Handler.f_name; __auto_type v_p_4 = s3->u.C_Ast__Handler.f_proto; __auto_type v_fs_5 = s3->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_rows_6 = s6->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s7 = f_Ty__fnsEl(p_r, f_Ty__byHandler(p_r, p_cx, v_hn_3), p_st, v_fs_5, f_Eff__row(p_r, v_rows_6, v_hn_3), (&N_Coll__Nil__El__Fn)); ({ __auto_type v_st1_7 = s7->u.C_Ty__Fns.f_st; __auto_type v_efs_8 = s7->u.C_Ty__Fns.f_fs; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_7; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = p_acc; struct E_Coll__List__El__Handler* t5 = ({ struct E_Coll__List__El__Handler* o9 = (struct E_Coll__List__El__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Handler, u) + sizeof(((struct E_Coll__List__El__Handler*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_El__Handler* o9 = (struct E_El__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Handler, u) + sizeof(((struct E_El__Handler*)0)->u.C_El__Handler))); o9->tag = 0; o9->u.C_El__Handler.f_name = v_hn_3; o9->u.C_El__Handler.f_proto = v_p_4; o9->u.C_El__Handler.f_fns = v_efs_8; o9; }); o9->u.C_Coll__Cons.f_t = p_hacc; o9; }); struct E_Coll__List__El__Given* t6 = p_gacc; p_r = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 5 ? ({ __auto_type v_g_2 = s2->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s3 = v_g_2; ({ __auto_type v_gs_3 = s3->u.C_Ast__Given.f_groups; __auto_type v_head_4 = s3->u.C_Ast__Given.f_head; __auto_type v_fs_5 = s3->u.C_Ast__Given.f_fns; ({ __auto_type res_ = ({ __auto_type s6 = f_Ty__fnsEl(p_r, p_cx, f_Ty__givenShape(p_r, p_cx, p_st, v_g_2), f_Ty__underGroups(p_r, v_gs_3, v_fs_5, (&N_Coll__Nil__Ast__Fn)), (&N_Coll__Nil__Eff__Cap), (&N_Coll__Nil__El__Fn)); ({ __auto_type v_st1_6 = s6->u.C_Ty__Fns.f_st; __auto_type v_efs_7 = s6->u.C_Ty__Fns.f_fs; ({ struct E_El__Given* v_gv_8 = ({ struct E_El__Given* o8 = (struct E_El__Given*)srs_alloc(p_r, (int64_t)(offsetof(struct E_El__Given, u) + sizeof(((struct E_El__Given*)0)->u.C_El__Given))); o8->tag = 0; o8->u.C_El__Given.f_tparams = f_Ty__tparams(p_r, v_gs_3, (&N_Coll__Nil__Sym__Sym)); o8->u.C_El__Given.f_ev = f_Ty__binderNames(p_r, f_Ty__evidence(p_r, v_gs_3, (&N_Coll__Nil__Ast__Binder)), (&N_Coll__Nil__Sym__Sym)); o8->u.C_El__Given.f_head = f_Ty__term(p_r, v_head_4, (&N_Coll__Nil__Ty__Bind)); o8->u.C_El__Given.f_fns = v_efs_7; o8; }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_6; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = p_acc; struct E_Coll__List__El__Handler* t5 = p_hacc; struct E_Coll__List__El__Given* t6 = ({ struct E_Coll__List__El__Given* o9 = (struct E_Coll__List__El__Given*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Given, u) + sizeof(((struct E_Coll__List__El__Given*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = v_gv_8; o9->u.C_Coll__Cons.f_t = p_gacc; o9; }); p_r = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = p_st; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = p_acc; struct E_Coll__List__El__Handler* t5 = p_hacc; struct E_Coll__List__El__Given* t6 = p_gacc; p_r = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); }); }); }); }); } -static struct E_Coll__List__El__Fn* f_Coll__rev__El__Fn(srs_cap* p_r, struct E_Coll__List__El__Fn* p_xs) { return f_Coll__revOnto__El__Fn(p_r, p_xs, (&N_Coll__Nil__El__Fn)); } -static struct E_Coll__List__El__Fn* f_Coll__revOnto__El__Fn(srs_cap* p_r, struct E_Coll__List__El__Fn* p_xs, struct E_Coll__List__El__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Fn* t1 = v_t_1; struct E_Coll__List__El__Fn* t2 = ({ struct E_Coll__List__El__Fn* o2 = (struct E_Coll__List__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Fn, u) + sizeof(((struct E_Coll__List__El__Fn*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Fn*){0}; }); }); }); } -static struct E_Coll__List__El__Handler* f_Coll__rev__El__Handler(srs_cap* p_r, struct E_Coll__List__El__Handler* p_xs) { return f_Coll__revOnto__El__Handler(p_r, p_xs, (&N_Coll__Nil__El__Handler)); } -static struct E_Coll__List__El__Handler* f_Coll__revOnto__El__Handler(srs_cap* p_r, struct E_Coll__List__El__Handler* p_xs, struct E_Coll__List__El__Handler* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Handler* t1 = v_t_1; struct E_Coll__List__El__Handler* t2 = ({ struct E_Coll__List__El__Handler* o2 = (struct E_Coll__List__El__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Handler, u) + sizeof(((struct E_Coll__List__El__Handler*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Handler*){0}; }); }); }); } -static struct E_Coll__List__El__Given* f_Coll__rev__El__Given(srs_cap* p_r, struct E_Coll__List__El__Given* p_xs) { return f_Coll__revOnto__El__Given(p_r, p_xs, (&N_Coll__Nil__El__Given)); } -static struct E_Coll__List__El__Given* f_Coll__revOnto__El__Given(srs_cap* p_r, struct E_Coll__List__El__Given* p_xs, struct E_Coll__List__El__Given* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__El__Given* t1 = v_t_1; struct E_Coll__List__El__Given* t2 = ({ struct E_Coll__List__El__Given* o2 = (struct E_Coll__List__El__Given*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Given, u) + sizeof(((struct E_Coll__List__El__Given*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Given*){0}; }); }); }); } -static struct E_Coll__List__Ast__Fn* f_Ty__underGroups(srs_cap* p_r, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ f_Coll__rev__Ast__Fn(p_r, p_acc); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_name_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_fgs_4 = s2->u.C_Ast__Fn.f_groups; __auto_type v_ps_5 = s2->u.C_Ast__Fn.f_params; __auto_type v_ret_6 = s2->u.C_Ast__Fn.f_ret; __auto_type v_exit_7 = s2->u.C_Ast__Fn.f_exit; __auto_type v_body_8 = s2->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Group* t1 = p_gs; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Coll__List__Ast__Fn* t3 = ({ struct E_Coll__List__Ast__Fn* o9 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Ast__Fn* o9 = (struct E_Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o9->tag = 0; o9->u.C_Ast__Fn.f_line = v_line_2; o9->u.C_Ast__Fn.f_name = v_name_3; o9->u.C_Ast__Fn.f_groups = f_Coll__revOnto__Ast__Group(p_r, f_Coll__rev__Ast__Group(p_r, p_gs), v_fgs_4); o9->u.C_Ast__Fn.f_params = v_ps_5; o9->u.C_Ast__Fn.f_ret = v_ret_6; o9->u.C_Ast__Fn.f_exit = v_exit_7; o9->u.C_Ast__Fn.f_body = v_body_8; o9; }); o9->u.C_Coll__Cons.f_t = p_acc; o9; }); p_r = t0; p_gs = t1; p_fs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ast__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Sym__Sym* f_Ty__binderNames(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_r, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Fns* f_Ty__fnsEl(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__El__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ({ struct E_Ty__Fns* o0 = (struct E_Ty__Fns*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Fns, u) + sizeof(((struct E_Ty__Fns*)0)->u.C_Ty__Fns))); o0->tag = 0; o0->u.C_Ty__Fns.f_st = p_st; o0->u.C_Ty__Fns.f_fs = f_Coll__rev__El__Fn(p_r, p_acc); o0->u.C_Ty__Fns.f_hs = (&N_Coll__Nil__El__Handler); o0->u.C_Ty__Fns.f_gvs = (&N_Coll__Nil__El__Given); o0; }); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__fn(p_r, p_cx, p_st, v_f_0, p_row); ({ __auto_type v_st1_2 = s2->u.C_Ty__FnEx.f_st; __auto_type v_ef_3 = s2->u.C_Ty__FnEx.f_f; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ast__Fn* t3 = v_rest_1; struct E_Coll__List__Eff__Cap* t4 = p_row; struct E_Coll__List__El__Fn* t5 = ({ struct E_Coll__List__El__Fn* o4 = (struct E_Coll__List__El__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__El__Fn, u) + sizeof(((struct E_Coll__List__El__Fn*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_ef_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_cx = t1; p_st = t2; p_fs = t3; p_row = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ty__Clash* f_Ty__unsolved(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_line_2 = s2->u.C_Ty__Inst.f_line; __auto_type v_f_3 = s2->u.C_Ty__Inst.f_f; __auto_type v_ts_4 = s2->u.C_Ty__Inst.f_targs; ({ __auto_type res_ = (f_Ty__ground(p_r, p_s, v_ts_4) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Inst* t2 = v_rest_1; struct E_Coll__List__Ty__Clash* t3 = p_cs; p_r = t0; p_s = t1; p_is = t2; p_cs = t3; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Inst* t2 = v_rest_1; struct E_Coll__List__Ty__Clash* t3 = ({ struct E_Coll__List__Ty__Clash* o5 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o5 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__CannotInfer))); o5->tag = 5; o5->u.C_Ty__CannotInfer.f_line = v_line_2; o5->u.C_Ty__CannotInfer.f_name = v_f_3; o5; }); o5->u.C_Coll__Cons.f_t = p_cs; o5; }); p_r = t0; p_s = t1; p_is = t2; p_cs = t3; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; })); res_; }); }); }); res_; }); }); }); } -static bool f_Ty__ground(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Ty__groundT(f_K__reify(p_r, p_s, v_t_0)) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Term* t2 = v_rest_1; p_r = t0; p_s = t1; p_ts = t2; goto srs_tail; (bool){0}; }) : false); }); }); } +static struct E_Ty__FnEx* f_Ty__fn(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st0, struct E_Ast__Fn* p_f, struct E_Coll__List__Eff__Cap* p_row) { return ({ __auto_type res_ = ({ __auto_type s0 = p_f; ({ __auto_type v_line_0 = s0->u.C_Ast__Fn.f_line; __auto_type v_name_1 = s0->u.C_Ast__Fn.f_name; __auto_type v_gs_2 = s0->u.C_Ast__Fn.f_groups; __auto_type v_ps_3 = s0->u.C_Ast__Fn.f_params; __auto_type v_ret_4 = s0->u.C_Ast__Fn.f_ret; __auto_type v_body_5 = s0->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_protos_6 = s6->u.C_Ty__Cx.f_ps; ({ struct E_Coll__List__Sym__Sym* v_tps_7 = f_Ty__tparams(p_eff__Region, v_gs_2, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Ty__Bind* v_tv_8 = f_Ty__rigid(p_eff__Region, v_tps_7, (&N_Coll__Nil__Ty__Bind)); struct E_Coll__List__Ast__Binder* v_ev_9 = f_Ty__evidence(p_eff__Region, v_gs_2, (&N_Coll__Nil__Ast__Binder)); struct E_Coll__List__Ty__Bind* v_bs_10 = f_Ty__binds(p_eff__Region, v_ps_3, v_tv_8, f_Ty__binds(p_eff__Region, v_ev_9, v_tv_8, f_Ty__rowBinds(p_eff__Region, p_row, (&N_Coll__Nil__Ty__Bind)))); struct E_K__Term* v_rt_11 = f_Ty__term(p_eff__Region, v_ret_4, v_tv_8); struct E_Coll__List__Sym__Sym* v_caps_12 = f_Coll__revOnto__Sym__Sym(p_eff__Region, f_Coll__rev__Sym__Sym(p_eff__Region, f_Ty__capNames(p_eff__Region, v_protos_6, v_ev_9, (&N_Coll__Nil__Sym__Sym))), f_Ty__rowNames(p_eff__Region, p_row)); struct E_Coll__List__El__Param* v_eps_13 = f_Ty__elParams(p_eff__Region, v_ps_3, v_tv_8, (&N_Coll__Nil__El__Param)); struct E_Ty__St* v_st_14 = f_Ty__fnShape(p_eff__Region, p_cx, p_st0, v_line_0, v_tps_7, v_ps_3); __auto_type res_ = ({ __auto_type s15 = v_body_5; s15->tag == 1 ? ({ ({ struct E_Ty__FnEx* o15 = (struct E_Ty__FnEx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__FnEx, u) + sizeof(((struct E_Ty__FnEx*)0)->u.C_Ty__FnEx))); o15->tag = 0; o15->u.C_Ty__FnEx.f_st = v_st_14; o15->u.C_Ty__FnEx.f_f = ({ struct E_El__Fn* o15 = (struct E_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Fn, u) + sizeof(((struct E_El__Fn*)0)->u.C_El__Fn))); o15->tag = 0; o15->u.C_El__Fn.f_line = v_line_0; o15->u.C_El__Fn.f_name = v_name_1; o15->u.C_El__Fn.f_tparams = v_tps_7; o15->u.C_El__Fn.f_caps = v_caps_12; o15->u.C_El__Fn.f_params = v_eps_13; o15->u.C_El__Fn.f_ret = v_rt_11; o15->u.C_El__Fn.f_body = (&N_El__Extern); o15; }); o15; }); }) : s15->tag == 0 ? ({ __auto_type v_e_15 = s15->u.C_Ast__Def.f_e; ({ __auto_type res_ = ({ __auto_type s16 = f_Ty__expr(p_eff__Region, p_cx, v_st_14, v_bs_10, v_e_15, ({ struct E_Coll__Option__K__Term* o16 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o16->tag = 1; o16->u.C_Coll__Some.f_v = v_rt_11; o16; })); ({ __auto_type v_st1_16 = s16->u.C_Ty__Ex.f_st; __auto_type v_eb_17 = s16->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__FnEx* o18 = (struct E_Ty__FnEx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__FnEx, u) + sizeof(((struct E_Ty__FnEx*)0)->u.C_Ty__FnEx))); o18->tag = 0; o18->u.C_Ty__FnEx.f_st = v_st1_16; o18->u.C_Ty__FnEx.f_f = ({ struct E_El__Fn* o18 = (struct E_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Fn, u) + sizeof(((struct E_El__Fn*)0)->u.C_El__Fn))); o18->tag = 0; o18->u.C_El__Fn.f_line = v_line_0; o18->u.C_El__Fn.f_name = v_name_1; o18->u.C_El__Fn.f_tparams = v_tps_7; o18->u.C_El__Fn.f_caps = v_caps_12; o18->u.C_El__Fn.f_params = v_eps_13; o18->u.C_El__Fn.f_ret = v_rt_11; o18->u.C_El__Fn.f_body = ({ struct E_El__Body* o18 = (struct E_El__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Body, u) + sizeof(((struct E_El__Body*)0)->u.C_El__Def))); o18->tag = 0; o18->u.C_El__Def.f_e = v_eb_17; o18; }); o18; }); o18; }); res_; }); }); }); res_; }); }) : ({ __auto_type v_e_15 = s15->u.C_Ast__Spec.f_e; ({ __auto_type res_ = ({ __auto_type s16 = f_Ty__expr(p_eff__Region, f_Ty__comptime(p_eff__Region, p_cx), v_st_14, v_bs_10, v_e_15, ({ struct E_Coll__Option__K__Term* o16 = (struct E_Coll__Option__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__K__Term, u) + sizeof(((struct E_Coll__Option__K__Term*)0)->u.C_Coll__Some))); o16->tag = 1; o16->u.C_Coll__Some.f_v = v_rt_11; o16; })); ({ __auto_type v_st1_16 = s16->u.C_Ty__Ex.f_st; __auto_type v_eb_17 = s16->u.C_Ty__Ex.f_e; ({ __auto_type res_ = ({ struct E_Ty__FnEx* o18 = (struct E_Ty__FnEx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__FnEx, u) + sizeof(((struct E_Ty__FnEx*)0)->u.C_Ty__FnEx))); o18->tag = 0; o18->u.C_Ty__FnEx.f_st = v_st1_16; o18->u.C_Ty__FnEx.f_f = ({ struct E_El__Fn* o18 = (struct E_El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Fn, u) + sizeof(((struct E_El__Fn*)0)->u.C_El__Fn))); o18->tag = 0; o18->u.C_El__Fn.f_line = v_line_0; o18->u.C_El__Fn.f_name = v_name_1; o18->u.C_El__Fn.f_tparams = v_tps_7; o18->u.C_El__Fn.f_caps = v_caps_12; o18->u.C_El__Fn.f_params = v_eps_13; o18->u.C_El__Fn.f_ret = v_rt_11; o18->u.C_El__Fn.f_body = ({ struct E_El__Body* o18 = (struct E_El__Body*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Body, u) + sizeof(((struct E_El__Body*)0)->u.C_El__Spec))); o18->tag = 2; o18->u.C_El__Spec.f_e = v_eb_17; o18; }); o18; }); o18; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Ty__Bind* f_Ty__rowBinds(srs_cap* p_eff__Region, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_row; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_p_2 = s2->u.C_Eff__Cap.f_p; __auto_type v_x_3 = s2->u.C_Eff__Cap.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Eff__Cap* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_3; o4->u.C_Ty__Bind.f_t = ({ struct E_K__Term* o4 = (struct E_K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_K__Term, u) + sizeof(((struct E_K__Term*)0)->u.C_K__Con))); o4->tag = 1; o4->u.C_K__Con.f_f = v_p_2; o4->u.C_K__Con.f_args = (&N_Coll__Nil__K__Term); o4; }); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_row = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Ty__rowNames(srs_cap* p_eff__Region, struct E_Coll__List__Eff__Cap* p_row) { return ({ __auto_type s0 = p_row; s0->tag == 0 ? ({ (&N_Coll__Nil__Sym__Sym); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_x_2 = s2->u.C_Eff__Cap.f_x; ({ __auto_type res_ = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = f_Ty__rowNames(p_eff__Region, v_rest_1); o3; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Ty__capNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_ev, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_ev; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s4 = v_t_3; ({ __auto_type v_n_4 = s4->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Sym__Sym* t3 = (f_Ty__isProto(p_ps, v_n_4) ? ({ struct E_Coll__List__Sym__Sym* o5 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = v_x_2; o5->u.C_Coll__Cons.f_t = p_acc; o5; }) : p_acc); p_eff__Region = t0; p_ps = t1; p_ev = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__El__Param* f_Ty__elParams(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__El__Param* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ f_Coll__rev__El__Param(p_eff__Region, p_acc); }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__El__Param* t3 = ({ struct E_Coll__List__El__Param* o4 = (struct E_Coll__List__El__Param*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Param, u) + sizeof(((struct E_Coll__List__El__Param*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_El__Param* o4 = (struct E_El__Param*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Param, u) + sizeof(((struct E_El__Param*)0)->u.C_El__Param))); o4->tag = 0; o4->u.C_El__Param.f_x = v_x_2; o4->u.C_El__Param.f_ty = f_Ty__term(p_eff__Region, v_t_3, p_tv); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ps = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__El__Param*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__El__Param* f_Coll__rev__El__Param(srs_cap* p_eff__Region, struct E_Coll__List__El__Param* p_xs) { return f_Coll__revOnto__El__Param(p_eff__Region, p_xs, (&N_Coll__Nil__El__Param)); } +static struct E_Coll__List__El__Param* f_Coll__revOnto__El__Param(srs_cap* p_eff__Region, struct E_Coll__List__El__Param* p_xs, struct E_Coll__List__El__Param* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Param* t1 = v_t_1; struct E_Coll__List__El__Param* t2 = ({ struct E_Coll__List__El__Param* o2 = (struct E_Coll__List__El__Param*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Param, u) + sizeof(((struct E_Coll__List__El__Param*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Param*){0}; }); }); }); } +static struct E_Coll__List__Ty__Bind* f_Ty__binds(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_ps, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__Ty__Bind* p_acc) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_p_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_p_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_3 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__Ty__Bind* t3 = ({ struct E_Coll__List__Ty__Bind* o4 = (struct E_Coll__List__Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Bind, u) + sizeof(((struct E_Coll__List__Ty__Bind*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Bind* o4 = (struct E_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Bind, u) + sizeof(((struct E_Ty__Bind*)0)->u.C_Ty__Bind))); o4->tag = 0; o4->u.C_Ty__Bind.f_x = v_x_2; o4->u.C_Ty__Bind.f_t = f_Ty__term(p_eff__Region, v_t_3, p_tv); o4; }); o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_ps = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Bind*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ast__Binder* f_Ty__evidence(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Binder* p_acc) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_g_0; s2->tag == 1 ? ({ __auto_type v_bs_2 = s2->u.C_Ast__Evidence.f_bs; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = f_Coll__revOnto__Ast__Binder(p_eff__Region, f_Coll__rev__Ast__Binder(p_eff__Region, v_bs_2), p_acc); p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }) : s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = v_rest_1; struct E_Coll__List__Ast__Binder* t2 = p_acc; p_eff__Region = t0; p_gs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ast__Binder*){0}; }); }); }); }); }); } +static struct E_Ty__Cx* f_Ty__cxOf(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Trait* p_trs) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Ty__Cx* o0 = (struct E_Ty__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o0->tag = 0; o0->u.C_Ty__Cx.f_fns = p_fns; o0->u.C_Ty__Cx.f_es = p_es; o0->u.C_Ty__Cx.f_ps = p_ps; o0->u.C_Ty__Cx.f_hs = p_hs; o0->u.C_Ty__Cx.f_trs = p_trs; o0->u.C_Ty__Cx.f_mode = ({ struct E_Ty__Mode* o0 = (struct E_Ty__Mode*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Mode, u) + sizeof(((struct E_Ty__Mode*)0)->u.C_Ty__Run))); o0->tag = 0; o0->u.C_Ty__Run.f_by = (&N_Ty__User); o0; }); o0->u.C_Ty__Cx.f_impure = f_Coll__sEmpty__Bool(p_eff__Region); o0->u.C_Ty__Cx.f_rows = f_Eff__none(p_eff__Region); o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = ({ struct E_Coll__List__Ast__Fn* o3 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_f_2; o3->u.C_Coll__Cons.f_t = p_fns; o3; }); struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = ({ struct E_Coll__List__Ast__Enum* o3 = (struct E_Coll__List__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Enum, u) + sizeof(((struct E_Coll__List__Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_2; o3->u.C_Coll__Cons.f_t = p_es; o3; }); struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = ({ struct E_Coll__List__Ast__Proto* o3 = (struct E_Coll__List__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Proto, u) + sizeof(((struct E_Coll__List__Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_p_2; o3->u.C_Coll__Cons.f_t = p_ps; o3; }); struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = ({ struct E_Coll__List__Ast__Handler* o3 = (struct E_Coll__List__Ast__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Handler, u) + sizeof(((struct E_Coll__List__Ast__Handler*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_h_2; o3->u.C_Coll__Cons.f_t = p_hs; o3; }); struct E_Coll__List__Ast__Trait* t6 = p_trs; p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 4 ? ({ __auto_type v_t_2 = s2->u.C_Ast__DTrait.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = ({ struct E_Coll__List__Ast__Trait* o3 = (struct E_Coll__List__Ast__Trait*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Trait, u) + sizeof(((struct E_Coll__List__Ast__Trait*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_t_2; o3->u.C_Coll__Cons.f_t = p_trs; o3; }); p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : s2->tag == 5 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fns; struct E_Coll__List__Ast__Enum* t3 = p_es; struct E_Coll__List__Ast__Proto* t4 = p_ps; struct E_Coll__List__Ast__Handler* t5 = p_hs; struct E_Coll__List__Ast__Trait* t6 = p_trs; p_eff__Region = t0; p_ds = t1; p_fns = t2; p_es = t3; p_ps = t4; p_hs = t5; p_trs = t6; goto srs_tail; (struct E_Ty__Cx*){0}; }); }); }); }); }); } +static struct E_Ty__Result* f_Ty__check(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_Eff__rows(p_eff__Console, p_eff__Region, p_ds); s0->tag == 0 ? ({ __auto_type v_rows_0 = s0->u.C_Eff__Got.f_rows; f_Ty__checkWith(p_eff__Region, p_ds, (&N_Coll__Nil__Tl__Goal), v_rows_0); }) : ({ __auto_type v_rel_0 = s0->u.C_Eff__RulesBad.f_rel; ({ struct E_Ty__Result* o1 = (struct E_Ty__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Result, u) + sizeof(((struct E_Ty__Result*)0)->u.C_Ty__Result))); o1->tag = 0; o1->u.C_Ty__Result.f_clashes = ({ struct E_Coll__List__Ty__Clash* o1 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o1->tag = 1; o1->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o1 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__PureRules))); o1->tag = 9; o1->u.C_Ty__PureRules.f_rel = v_rel_0; o1; }); o1->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ty__Clash); o1; }); o1->u.C_Ty__Result.f_insts = (&N_Coll__Nil__Ty__Inst); o1->u.C_Ty__Result.f_s = (&N_Coll__Tip__K__Term); o1->u.C_Ty__Result.f_fns = (&N_Coll__Nil__El__Fn); o1->u.C_Ty__Result.f_hs = (&N_Coll__Nil__El__Handler); o1->u.C_Ty__Result.f_gvs = (&N_Coll__Nil__El__Given); o1; }); }); }); } +static struct E_Ty__Result* f_Ty__checkWith(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Eff__Rows* p_rows) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Ty__cxOf(p_eff__Region, p_ds, (&N_Coll__Nil__Ast__Fn), (&N_Coll__Nil__Ast__Enum), (&N_Coll__Nil__Ast__Proto), (&N_Coll__Nil__Ast__Handler), (&N_Coll__Nil__Ast__Trait)); ({ __auto_type v_fns0_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es0_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps0_2 = s0->u.C_Ty__Cx.f_ps; __auto_type v_hs0_3 = s0->u.C_Ty__Cx.f_hs; __auto_type v_trs0_4 = s0->u.C_Ty__Cx.f_trs; __auto_type v_mode0_5 = s0->u.C_Ty__Cx.f_mode; ({ struct E_Coll__SMap__K__Term* v_nom_6 = f_Ty__nominals(p_eff__Region, p_ds, f_Coll__sEmpty__K__Term(p_eff__Region)); struct E_Pure__Set* v_pr_7 = (f_Ty__hasSpec(p_ds) ? f_Pure__impure(p_eff__Region, p_ds, p_rows) : ({ struct E_Pure__Set* o7 = (struct E_Pure__Set*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Pure__Set, u) + sizeof(((struct E_Pure__Set*)0)->u.C_Pure__Got))); o7->tag = 0; o7->u.C_Pure__Got.f_impure = f_Coll__sEmpty__Bool(p_eff__Region); o7; })); struct E_Coll__SMap__Bool* v_imp_8 = ({ __auto_type s8 = v_pr_7; s8->tag == 0 ? ({ __auto_type v_m_8 = s8->u.C_Pure__Got.f_impure; v_m_8; }) : ({ f_Coll__sEmpty__Bool(p_eff__Region); }); }); struct E_Ty__St* v_st0_9 = ({ __auto_type s9 = v_pr_7; s9->tag == 0 ? ({ ({ struct E_Ty__St* o9 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o9->tag = 0; o9->u.C_Ty__St.f_s = (&N_Coll__Tip__K__Term); o9->u.C_Ty__St.f_next = ((int64_t)0); o9->u.C_Ty__St.f_cs = (&N_Coll__Nil__Ty__Clash); o9->u.C_Ty__St.f_is = (&N_Coll__Nil__Ty__Inst); o9->u.C_Ty__St.f_gs = (&N_Coll__Nil__Ty__Goal); o9->u.C_Ty__St.f_nom = v_nom_6; o9; }); }) : ({ __auto_type v_rel_9 = s9->u.C_Pure__RulesBad.f_rel; ({ struct E_Ty__St* o10 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o10->tag = 0; o10->u.C_Ty__St.f_s = (&N_Coll__Tip__K__Term); o10->u.C_Ty__St.f_next = ((int64_t)0); o10->u.C_Ty__St.f_cs = ({ struct E_Coll__List__Ty__Clash* o10 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o10->tag = 1; o10->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o10 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__PureRules))); o10->tag = 9; o10->u.C_Ty__PureRules.f_rel = v_rel_9; o10; }); o10->u.C_Coll__Cons.f_t = (&N_Coll__Nil__Ty__Clash); o10; }); o10->u.C_Ty__St.f_is = (&N_Coll__Nil__Ty__Inst); o10->u.C_Ty__St.f_gs = (&N_Coll__Nil__Ty__Goal); o10->u.C_Ty__St.f_nom = v_nom_6; o10; }); }); }); struct E_Ty__Cx* v_cx_10 = ({ struct E_Ty__Cx* o10 = (struct E_Ty__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o10->tag = 0; o10->u.C_Ty__Cx.f_fns = v_fns0_0; o10->u.C_Ty__Cx.f_es = v_es0_1; o10->u.C_Ty__Cx.f_ps = v_ps0_2; o10->u.C_Ty__Cx.f_hs = v_hs0_3; o10->u.C_Ty__Cx.f_trs = v_trs0_4; o10->u.C_Ty__Cx.f_mode = v_mode0_5; o10->u.C_Ty__Cx.f_impure = v_imp_8; o10->u.C_Ty__Cx.f_rows = p_rows; o10; }); __auto_type res_ = ({ __auto_type s11 = f_Ty__decls(p_eff__Region, v_cx_10, v_st0_9, p_ds, (&N_Coll__Nil__El__Fn), (&N_Coll__Nil__El__Handler), (&N_Coll__Nil__El__Given)); ({ __auto_type v_st1_11 = s11->u.C_Ty__Fns.f_st; __auto_type v_fs_12 = s11->u.C_Ty__Fns.f_fs; __auto_type v_hs_13 = s11->u.C_Ty__Fns.f_hs; __auto_type v_gvs_14 = s11->u.C_Ty__Fns.f_gvs; ({ __auto_type res_ = ({ __auto_type s15 = v_st1_11; ({ __auto_type v_s_15 = s15->u.C_Ty__St.f_s; __auto_type v_cs_16 = s15->u.C_Ty__St.f_cs; __auto_type v_is_17 = s15->u.C_Ty__St.f_is; __auto_type v_gs_18 = s15->u.C_Ty__St.f_gs; ({ struct E_Coll__List__Ty__Goal* v_allGoals_19 = f_Ty__typeGoals(p_eff__Region, v_fns0_0, p_tgs, f_Coll__rev__Ty__Goal(p_eff__Region, v_gs_18)); struct E_Coll__List__Ty__Clash* v_cs2_20 = f_Ty__externSlots(p_eff__Region, v_es0_1, f_Ty__externs(p_eff__Region, v_fns0_0, f_Coll__sEmpty__Bool(p_eff__Region)), v_s_15, v_is_17, f_Ty__goals(p_eff__Region, v_ps0_2, f_Ty__cands(p_eff__Region, v_ps0_2, p_ds, (&N_Coll__Nil__Ty__Cand)), v_s_15, v_allGoals_19, v_cs_16)); __auto_type res_ = ({ struct E_Ty__Result* o21 = (struct E_Ty__Result*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Result, u) + sizeof(((struct E_Ty__Result*)0)->u.C_Ty__Result))); o21->tag = 0; o21->u.C_Ty__Result.f_clashes = f_Ty__unsolved(p_eff__Region, v_s_15, v_is_17, v_cs2_20); o21->u.C_Ty__Result.f_insts = v_is_17; o21->u.C_Ty__Result.f_s = v_s_15; o21->u.C_Ty__Result.f_fns = v_fs_12; o21->u.C_Ty__Result.f_hs = v_hs_13; o21->u.C_Ty__Result.f_gvs = v_gvs_14; o21; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Ty__Goal* f_Coll__rev__Ty__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Goal* p_xs) { return f_Coll__revOnto__Ty__Goal(p_eff__Region, p_xs, (&N_Coll__Nil__Ty__Goal)); } +static struct E_Coll__List__Ty__Goal* f_Coll__revOnto__Ty__Goal(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Goal* p_xs, struct E_Coll__List__Ty__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Goal* t1 = v_t_1; struct E_Coll__List__Ty__Goal* t2 = ({ struct E_Coll__List__Ty__Goal* o2 = (struct E_Coll__List__Ty__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Goal, u) + sizeof(((struct E_Coll__List__Ty__Goal*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Goal*){0}; }); }); }); } +static struct E_Ty__Fns* f_Ty__decls(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__El__Fn* p_acc, struct E_Coll__List__El__Handler* p_hacc, struct E_Coll__List__El__Given* p_gacc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Ty__Fns* o0 = (struct E_Ty__Fns*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Fns, u) + sizeof(((struct E_Ty__Fns*)0)->u.C_Ty__Fns))); o0->tag = 0; o0->u.C_Ty__Fns.f_st = p_st; o0->u.C_Ty__Fns.f_fs = f_Coll__rev__El__Fn(p_eff__Region, p_acc); o0->u.C_Ty__Fns.f_hs = f_Coll__rev__El__Handler(p_eff__Region, p_hacc); o0->u.C_Ty__Fns.f_gvs = f_Coll__rev__El__Given(p_eff__Region, p_gacc); o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_fname_3 = s3->u.C_Ast__Fn.f_name; ({ __auto_type res_ = ({ __auto_type s4 = p_cx; ({ __auto_type v_rows_4 = s4->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__fn(p_eff__Region, p_cx, p_st, v_f_2, f_Eff__row(p_eff__Region, v_rows_4, v_fname_3)); ({ __auto_type v_st1_5 = s5->u.C_Ty__FnEx.f_st; __auto_type v_ef_6 = s5->u.C_Ty__FnEx.f_f; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_5; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = ({ struct E_Coll__List__El__Fn* o7 = (struct E_Coll__List__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Fn, u) + sizeof(((struct E_Coll__List__El__Fn*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = v_ef_6; o7->u.C_Coll__Cons.f_t = p_acc; o7; }); struct E_Coll__List__El__Handler* t5 = p_hacc; struct E_Coll__List__El__Given* t6 = p_gacc; p_eff__Region = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ __auto_type res_ = ({ __auto_type s3 = v_h_2; ({ __auto_type v_hn_3 = s3->u.C_Ast__Handler.f_name; __auto_type v_p_4 = s3->u.C_Ast__Handler.f_proto; __auto_type v_fs_5 = s3->u.C_Ast__Handler.f_fns; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_rows_6 = s6->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ __auto_type s7 = f_Ty__fnsEl(p_eff__Region, f_Ty__byHandler(p_eff__Region, p_cx, v_hn_3), p_st, v_fs_5, f_Eff__row(p_eff__Region, v_rows_6, v_hn_3), (&N_Coll__Nil__El__Fn)); ({ __auto_type v_st1_7 = s7->u.C_Ty__Fns.f_st; __auto_type v_efs_8 = s7->u.C_Ty__Fns.f_fs; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_7; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = p_acc; struct E_Coll__List__El__Handler* t5 = ({ struct E_Coll__List__El__Handler* o9 = (struct E_Coll__List__El__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Handler, u) + sizeof(((struct E_Coll__List__El__Handler*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_El__Handler* o9 = (struct E_El__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Handler, u) + sizeof(((struct E_El__Handler*)0)->u.C_El__Handler))); o9->tag = 0; o9->u.C_El__Handler.f_name = v_hn_3; o9->u.C_El__Handler.f_proto = v_p_4; o9->u.C_El__Handler.f_fns = v_efs_8; o9; }); o9->u.C_Coll__Cons.f_t = p_hacc; o9; }); struct E_Coll__List__El__Given* t6 = p_gacc; p_eff__Region = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }) : s2->tag == 5 ? ({ __auto_type v_g_2 = s2->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s3 = v_g_2; ({ __auto_type v_gs_3 = s3->u.C_Ast__Given.f_groups; __auto_type v_head_4 = s3->u.C_Ast__Given.f_head; __auto_type v_fs_5 = s3->u.C_Ast__Given.f_fns; ({ __auto_type res_ = ({ __auto_type s6 = f_Ty__fnsEl(p_eff__Region, p_cx, f_Ty__givenShape(p_eff__Region, p_cx, p_st, v_g_2), f_Ty__underGroups(p_eff__Region, v_gs_3, v_fs_5, (&N_Coll__Nil__Ast__Fn)), (&N_Coll__Nil__Eff__Cap), (&N_Coll__Nil__El__Fn)); ({ __auto_type v_st1_6 = s6->u.C_Ty__Fns.f_st; __auto_type v_efs_7 = s6->u.C_Ty__Fns.f_fs; ({ struct E_El__Given* v_gv_8 = ({ struct E_El__Given* o8 = (struct E_El__Given*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_El__Given, u) + sizeof(((struct E_El__Given*)0)->u.C_El__Given))); o8->tag = 0; o8->u.C_El__Given.f_tparams = f_Ty__tparams(p_eff__Region, v_gs_3, (&N_Coll__Nil__Sym__Sym)); o8->u.C_El__Given.f_ev = f_Ty__binderNames(p_eff__Region, f_Ty__evidence(p_eff__Region, v_gs_3, (&N_Coll__Nil__Ast__Binder)), (&N_Coll__Nil__Sym__Sym)); o8->u.C_El__Given.f_head = f_Ty__term(p_eff__Region, v_head_4, (&N_Coll__Nil__Ty__Bind)); o8->u.C_El__Given.f_fns = v_efs_7; o8; }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_6; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = p_acc; struct E_Coll__List__El__Handler* t5 = p_hacc; struct E_Coll__List__El__Given* t6 = ({ struct E_Coll__List__El__Given* o9 = (struct E_Coll__List__El__Given*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Given, u) + sizeof(((struct E_Coll__List__El__Given*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = v_gv_8; o9->u.C_Coll__Cons.f_t = p_gacc; o9; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = p_st; struct E_Coll__List__Ast__Decl* t3 = v_rest_1; struct E_Coll__List__El__Fn* t4 = p_acc; struct E_Coll__List__El__Handler* t5 = p_hacc; struct E_Coll__List__El__Given* t6 = p_gacc; p_eff__Region = t0; p_cx = t1; p_st = t2; p_ds = t3; p_acc = t4; p_hacc = t5; p_gacc = t6; goto srs_tail; (struct E_Ty__Fns*){0}; }); }); }); }); }); } +static struct E_Coll__List__El__Fn* f_Coll__rev__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_xs) { return f_Coll__revOnto__El__Fn(p_eff__Region, p_xs, (&N_Coll__Nil__El__Fn)); } +static struct E_Coll__List__El__Fn* f_Coll__revOnto__El__Fn(srs_cap* p_eff__Region, struct E_Coll__List__El__Fn* p_xs, struct E_Coll__List__El__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Fn* t1 = v_t_1; struct E_Coll__List__El__Fn* t2 = ({ struct E_Coll__List__El__Fn* o2 = (struct E_Coll__List__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Fn, u) + sizeof(((struct E_Coll__List__El__Fn*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Fn*){0}; }); }); }); } +static struct E_Coll__List__El__Handler* f_Coll__rev__El__Handler(srs_cap* p_eff__Region, struct E_Coll__List__El__Handler* p_xs) { return f_Coll__revOnto__El__Handler(p_eff__Region, p_xs, (&N_Coll__Nil__El__Handler)); } +static struct E_Coll__List__El__Handler* f_Coll__revOnto__El__Handler(srs_cap* p_eff__Region, struct E_Coll__List__El__Handler* p_xs, struct E_Coll__List__El__Handler* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Handler* t1 = v_t_1; struct E_Coll__List__El__Handler* t2 = ({ struct E_Coll__List__El__Handler* o2 = (struct E_Coll__List__El__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Handler, u) + sizeof(((struct E_Coll__List__El__Handler*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Handler*){0}; }); }); }); } +static struct E_Coll__List__El__Given* f_Coll__rev__El__Given(srs_cap* p_eff__Region, struct E_Coll__List__El__Given* p_xs) { return f_Coll__revOnto__El__Given(p_eff__Region, p_xs, (&N_Coll__Nil__El__Given)); } +static struct E_Coll__List__El__Given* f_Coll__revOnto__El__Given(srs_cap* p_eff__Region, struct E_Coll__List__El__Given* p_xs, struct E_Coll__List__El__Given* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__El__Given* t1 = v_t_1; struct E_Coll__List__El__Given* t2 = ({ struct E_Coll__List__El__Given* o2 = (struct E_Coll__List__El__Given*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Given, u) + sizeof(((struct E_Coll__List__El__Given*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__El__Given*){0}; }); }); }); } +static struct E_Coll__List__Ast__Fn* f_Ty__underGroups(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Group* p_gs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ f_Coll__rev__Ast__Fn(p_eff__Region, p_acc); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_name_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_fgs_4 = s2->u.C_Ast__Fn.f_groups; __auto_type v_ps_5 = s2->u.C_Ast__Fn.f_params; __auto_type v_ret_6 = s2->u.C_Ast__Fn.f_ret; __auto_type v_exit_7 = s2->u.C_Ast__Fn.f_exit; __auto_type v_body_8 = s2->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Group* t1 = p_gs; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Coll__List__Ast__Fn* t3 = ({ struct E_Coll__List__Ast__Fn* o9 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o9->tag = 1; o9->u.C_Coll__Cons.f_h = ({ struct E_Ast__Fn* o9 = (struct E_Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ast__Fn, u) + sizeof(((struct E_Ast__Fn*)0)->u.C_Ast__Fn))); o9->tag = 0; o9->u.C_Ast__Fn.f_line = v_line_2; o9->u.C_Ast__Fn.f_name = v_name_3; o9->u.C_Ast__Fn.f_groups = f_Coll__revOnto__Ast__Group(p_eff__Region, f_Coll__rev__Ast__Group(p_eff__Region, p_gs), v_fgs_4); o9->u.C_Ast__Fn.f_params = v_ps_5; o9->u.C_Ast__Fn.f_ret = v_ret_6; o9->u.C_Ast__Fn.f_exit = v_exit_7; o9->u.C_Ast__Fn.f_body = v_body_8; o9; }); o9->u.C_Coll__Cons.f_t = p_acc; o9; }); p_eff__Region = t0; p_gs = t1; p_fs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ast__Fn*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Sym__Sym* f_Ty__binderNames(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__Sym__Sym(p_eff__Region, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ast__Binder.f_x; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Sym__Sym* t2 = ({ struct E_Coll__List__Sym__Sym* o3 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_x_2; o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_bs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Fns* f_Ty__fnsEl(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Eff__Cap* p_row, struct E_Coll__List__El__Fn* p_acc) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ ({ struct E_Ty__Fns* o0 = (struct E_Ty__Fns*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Fns, u) + sizeof(((struct E_Ty__Fns*)0)->u.C_Ty__Fns))); o0->tag = 0; o0->u.C_Ty__Fns.f_st = p_st; o0->u.C_Ty__Fns.f_fs = f_Coll__rev__El__Fn(p_eff__Region, p_acc); o0->u.C_Ty__Fns.f_hs = (&N_Coll__Nil__El__Handler); o0->u.C_Ty__Fns.f_gvs = (&N_Coll__Nil__El__Given); o0; }); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = f_Ty__fn(p_eff__Region, p_cx, p_st, v_f_0, p_row); ({ __auto_type v_st1_2 = s2->u.C_Ty__FnEx.f_st; __auto_type v_ef_3 = s2->u.C_Ty__FnEx.f_f; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = v_st1_2; struct E_Coll__List__Ast__Fn* t3 = v_rest_1; struct E_Coll__List__Eff__Cap* t4 = p_row; struct E_Coll__List__El__Fn* t5 = ({ struct E_Coll__List__El__Fn* o4 = (struct E_Coll__List__El__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__El__Fn, u) + sizeof(((struct E_Coll__List__El__Fn*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_ef_3; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_cx = t1; p_st = t2; p_fs = t3; p_row = t4; p_acc = t5; goto srs_tail; (struct E_Ty__Fns*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ty__Clash* f_Ty__unsolved(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_line_2 = s2->u.C_Ty__Inst.f_line; __auto_type v_f_3 = s2->u.C_Ty__Inst.f_f; __auto_type v_ts_4 = s2->u.C_Ty__Inst.f_targs; ({ __auto_type res_ = (f_Ty__ground(p_eff__Region, p_s, v_ts_4) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Inst* t2 = v_rest_1; struct E_Coll__List__Ty__Clash* t3 = p_cs; p_eff__Region = t0; p_s = t1; p_is = t2; p_cs = t3; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Inst* t2 = v_rest_1; struct E_Coll__List__Ty__Clash* t3 = ({ struct E_Coll__List__Ty__Clash* o5 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o5->tag = 1; o5->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o5 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__CannotInfer))); o5->tag = 5; o5->u.C_Ty__CannotInfer.f_line = v_line_2; o5->u.C_Ty__CannotInfer.f_name = v_f_3; o5; }); o5->u.C_Coll__Cons.f_t = p_cs; o5; }); p_eff__Region = t0; p_s = t1; p_is = t2; p_cs = t3; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; })); res_; }); }); }); res_; }); }); }); } +static bool f_Ty__ground(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Ty__groundT(f_K__reify(p_eff__Region, p_s, v_t_0)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__K__Term* t2 = v_rest_1; p_eff__Region = t0; p_s = t1; p_ts = t2; goto srs_tail; (bool){0}; }) : false); }); }); } static bool f_Ty__groundT(struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 0 ? ({ false; }) : s0->tag == 2 ? ({ true; }) : ({ __auto_type v_args_0 = s0->u.C_K__Con.f_args; f_Ty__groundAll(v_args_0); }); }); } static bool f_Ty__groundAll(struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Ty__groundT(v_t_0) ? ({ struct E_Coll__List__K__Term* t0 = v_rest_1; p_ts = t0; goto srs_tail; (bool){0}; }) : false); }); }); } static srs_str f_Ty__unTy(struct E_Ast__UnOp* p_op) { return ({ __auto_type s0 = p_op; s0->tag == 0 ? ({ ((srs_str){(const uint8_t*)"I64", 3}); }) : ({ ((srs_str){(const uint8_t*)"Bool", 4}); }); }); } static int64_t f_Ty__lineOf(struct E_Ast__Expr* p_e) { return ({ __auto_type s0 = p_e; s0->tag == 0 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Int.f_line; v_l_0; }) : s0->tag == 1 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bool.f_line; v_l_0; }) : s0->tag == 2 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Str.f_line; v_l_0; }) : s0->tag == 3 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Unit.f_line; v_l_0; }) : s0->tag == 4 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Name.f_line; v_l_0; }) : s0->tag == 5 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Call.f_line; v_l_0; }) : s0->tag == 6 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Method.f_line; v_l_0; }) : s0->tag == 7 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Bin.f_line; v_l_0; }) : s0->tag == 8 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Un.f_line; v_l_0; }) : s0->tag == 9 ? ({ __auto_type v_l_0 = s0->u.C_Ast__If.f_line; v_l_0; }) : s0->tag == 10 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Match.f_line; v_l_0; }) : s0->tag == 11 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Block.f_line; v_l_0; }) : s0->tag == 12 ? ({ __auto_type v_l_0 = s0->u.C_Ast__While.f_line; v_l_0; }) : s0->tag == 13 ? ({ __auto_type v_l_0 = s0->u.C_Ast__Assign.f_line; v_l_0; }) : ({ __auto_type v_l_0 = s0->u.C_Ast__Quant.f_line; v_l_0; }); }); } -static struct E_Ty__Cx* f_Ty__byHandler(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Sym__Sym* p_h) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps_2 = s0->u.C_Ty__Cx.f_ps; __auto_type v_hs_3 = s0->u.C_Ty__Cx.f_hs; __auto_type v_trs_4 = s0->u.C_Ty__Cx.f_trs; __auto_type v_imp_5 = s0->u.C_Ty__Cx.f_impure; __auto_type v_rows_6 = s0->u.C_Ty__Cx.f_rows; ({ srs_str v_s_7 = f_Sym__str(p_h); struct E_Ty__By* v_by_8 = (((Str__len(v_s_7) > ((int64_t)4)) && Str__eq(Str__slice(v_s_7, ((int64_t)0), ((int64_t)4)), ((srs_str){(const uint8_t*)"Srs.", 4}))) ? (&N_Ty__Srs) : (&N_Ty__User)); __auto_type res_ = ({ struct E_Ty__Cx* o9 = (struct E_Ty__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o9->tag = 0; o9->u.C_Ty__Cx.f_fns = v_fns_0; o9->u.C_Ty__Cx.f_es = v_es_1; o9->u.C_Ty__Cx.f_ps = v_ps_2; o9->u.C_Ty__Cx.f_hs = v_hs_3; o9->u.C_Ty__Cx.f_trs = v_trs_4; o9->u.C_Ty__Cx.f_mode = ({ struct E_Ty__Mode* o9 = (struct E_Ty__Mode*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Mode, u) + sizeof(((struct E_Ty__Mode*)0)->u.C_Ty__Run))); o9->tag = 0; o9->u.C_Ty__Run.f_by = v_by_8; o9; }); o9->u.C_Ty__Cx.f_impure = v_imp_5; o9->u.C_Ty__Cx.f_rows = v_rows_6; o9; }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__rtCall(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Ast__Fn* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_mode_0 = s0->u.C_Ty__Cx.f_mode; ({ __auto_type res_ = ({ __auto_type s1 = p_g; ({ __auto_type v_n_1 = s1->u.C_Ast__Fn.f_name; __auto_type v_body_2 = s1->u.C_Ast__Fn.f_body; ({ srs_str v_s_3 = f_Sym__str(v_n_1); bool v_rt_4 = ({ __auto_type s4 = v_body_2; s4->tag == 1 ? ({ ((Str__len(v_s_3) > ((int64_t)3)) && Str__eq(Str__slice(v_s_3, ((int64_t)0), ((int64_t)3)), ((srs_str){(const uint8_t*)"rt_", 3}))); }) : ({ false; }); }); __auto_type res_ = ({ __auto_type s5 = v_mode_0; s5->tag == 0 ? ({ __auto_type v_by_5 = s5->u.C_Ty__Run.f_by; ({ __auto_type s6 = v_by_5; s6->tag == 1 ? ({ p_st; }) : ({ (v_rt_4 ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__RtOutsideSrs))); o6->tag = 30; o6->u.C_Ty__RtOutsideSrs.f_line = p_line; o6->u.C_Ty__RtOutsideSrs.f_f = v_n_1; o6; })) : p_st); }); }); }) : ({ (v_rt_4 ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o5 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__RtOutsideSrs))); o5->tag = 30; o5->u.C_Ty__RtOutsideSrs.f_line = p_line; o5->u.C_Ty__RtOutsideSrs.f_f = v_n_1; o5; })) : p_st); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__Cx* f_Ty__comptime(srs_cap* p_r, struct E_Ty__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps_2 = s0->u.C_Ty__Cx.f_ps; __auto_type v_hs_3 = s0->u.C_Ty__Cx.f_hs; __auto_type v_trs_4 = s0->u.C_Ty__Cx.f_trs; __auto_type v_imp_5 = s0->u.C_Ty__Cx.f_impure; __auto_type v_rows_6 = s0->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ struct E_Ty__Cx* o7 = (struct E_Ty__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o7->tag = 0; o7->u.C_Ty__Cx.f_fns = v_fns_0; o7->u.C_Ty__Cx.f_es = v_es_1; o7->u.C_Ty__Cx.f_ps = v_ps_2; o7->u.C_Ty__Cx.f_hs = v_hs_3; o7->u.C_Ty__Cx.f_trs = v_trs_4; o7->u.C_Ty__Cx.f_mode = (&N_Ty__Comptime); o7->u.C_Ty__Cx.f_impure = v_imp_5; o7->u.C_Ty__Cx.f_rows = v_rows_6; o7; }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__pureCall(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_mode_0 = s0->u.C_Ty__Cx.f_mode; __auto_type v_imp_1 = s0->u.C_Ty__Cx.f_impure; ({ __auto_type res_ = ({ __auto_type s2 = v_mode_0; s2->tag == 0 ? ({ p_st; }) : ({ (f_Pure__has(p_r, v_imp_1, p_f) ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Impure))); o2->tag = 7; o2->u.C_Ty__Impure.f_line = p_line; o2->u.C_Ty__Impure.f_f = p_f; o2; })) : p_st); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__pureHandle(srs_cap* p_r, struct E_Ty__Mode* p_mode, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_h) { return ({ __auto_type s0 = p_mode; s0->tag == 0 ? ({ p_st; }) : ({ f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__SpecHandle))); o0->tag = 8; o0->u.C_Ty__SpecHandle.f_line = p_line; o0->u.C_Ty__SpecHandle.f_h = p_h; o0; })); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Ty__missingCase(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Arm* p_as) { return ({ __auto_type res_ = (f_Ty__hasAny(p_as) ? (&N_Coll__None__Sym__Sym) : ({ __auto_type s0 = f_Ty__firstCase(p_r, p_as); s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_Ty__caseNamed(p_r, p_es, v_c_0); s1->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_co_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_co_1; ({ __auto_type v_e_2 = s2->u.C_Ty__CaseOf.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_cases_3 = s3->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Ty__uncovered(p_r, v_cases_3, p_as); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); })); res_; }); } +static struct E_Ty__Cx* f_Ty__byHandler(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Sym__Sym* p_h) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps_2 = s0->u.C_Ty__Cx.f_ps; __auto_type v_hs_3 = s0->u.C_Ty__Cx.f_hs; __auto_type v_trs_4 = s0->u.C_Ty__Cx.f_trs; __auto_type v_imp_5 = s0->u.C_Ty__Cx.f_impure; __auto_type v_rows_6 = s0->u.C_Ty__Cx.f_rows; ({ srs_str v_s_7 = f_Sym__str(p_h); struct E_Ty__By* v_by_8 = (((Str__len(v_s_7) > ((int64_t)4)) && Str__eq(Str__slice(v_s_7, ((int64_t)0), ((int64_t)4)), ((srs_str){(const uint8_t*)"Srs.", 4}))) ? (&N_Ty__Srs) : (&N_Ty__User)); __auto_type res_ = ({ struct E_Ty__Cx* o9 = (struct E_Ty__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o9->tag = 0; o9->u.C_Ty__Cx.f_fns = v_fns_0; o9->u.C_Ty__Cx.f_es = v_es_1; o9->u.C_Ty__Cx.f_ps = v_ps_2; o9->u.C_Ty__Cx.f_hs = v_hs_3; o9->u.C_Ty__Cx.f_trs = v_trs_4; o9->u.C_Ty__Cx.f_mode = ({ struct E_Ty__Mode* o9 = (struct E_Ty__Mode*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Mode, u) + sizeof(((struct E_Ty__Mode*)0)->u.C_Ty__Run))); o9->tag = 0; o9->u.C_Ty__Run.f_by = v_by_8; o9; }); o9->u.C_Ty__Cx.f_impure = v_imp_5; o9->u.C_Ty__Cx.f_rows = v_rows_6; o9; }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__rtCall(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Ast__Fn* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_mode_0 = s0->u.C_Ty__Cx.f_mode; ({ __auto_type res_ = ({ __auto_type s1 = p_g; ({ __auto_type v_n_1 = s1->u.C_Ast__Fn.f_name; __auto_type v_body_2 = s1->u.C_Ast__Fn.f_body; ({ srs_str v_s_3 = f_Sym__str(v_n_1); bool v_rt_4 = ({ __auto_type s4 = v_body_2; s4->tag == 1 ? ({ ((Str__len(v_s_3) > ((int64_t)3)) && Str__eq(Str__slice(v_s_3, ((int64_t)0), ((int64_t)3)), ((srs_str){(const uint8_t*)"rt_", 3}))); }) : ({ false; }); }); __auto_type res_ = ({ __auto_type s5 = v_mode_0; s5->tag == 0 ? ({ __auto_type v_by_5 = s5->u.C_Ty__Run.f_by; ({ __auto_type s6 = v_by_5; s6->tag == 1 ? ({ p_st; }) : ({ (v_rt_4 ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__RtOutsideSrs))); o6->tag = 30; o6->u.C_Ty__RtOutsideSrs.f_line = p_line; o6->u.C_Ty__RtOutsideSrs.f_f = v_n_1; o6; })) : p_st); }); }); }) : ({ (v_rt_4 ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o5 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__RtOutsideSrs))); o5->tag = 30; o5->u.C_Ty__RtOutsideSrs.f_line = p_line; o5->u.C_Ty__RtOutsideSrs.f_f = v_n_1; o5; })) : p_st); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__Cx* f_Ty__comptime(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_fns_0 = s0->u.C_Ty__Cx.f_fns; __auto_type v_es_1 = s0->u.C_Ty__Cx.f_es; __auto_type v_ps_2 = s0->u.C_Ty__Cx.f_ps; __auto_type v_hs_3 = s0->u.C_Ty__Cx.f_hs; __auto_type v_trs_4 = s0->u.C_Ty__Cx.f_trs; __auto_type v_imp_5 = s0->u.C_Ty__Cx.f_impure; __auto_type v_rows_6 = s0->u.C_Ty__Cx.f_rows; ({ __auto_type res_ = ({ struct E_Ty__Cx* o7 = (struct E_Ty__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Cx, u) + sizeof(((struct E_Ty__Cx*)0)->u.C_Ty__Cx))); o7->tag = 0; o7->u.C_Ty__Cx.f_fns = v_fns_0; o7->u.C_Ty__Cx.f_es = v_es_1; o7->u.C_Ty__Cx.f_ps = v_ps_2; o7->u.C_Ty__Cx.f_hs = v_hs_3; o7->u.C_Ty__Cx.f_trs = v_trs_4; o7->u.C_Ty__Cx.f_mode = (&N_Ty__Comptime); o7->u.C_Ty__Cx.f_impure = v_imp_5; o7->u.C_Ty__Cx.f_rows = v_rows_6; o7; }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__pureCall(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_f) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_mode_0 = s0->u.C_Ty__Cx.f_mode; __auto_type v_imp_1 = s0->u.C_Ty__Cx.f_impure; ({ __auto_type res_ = ({ __auto_type s2 = v_mode_0; s2->tag == 0 ? ({ p_st; }) : ({ (f_Pure__has(p_eff__Region, v_imp_1, p_f) ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Impure))); o2->tag = 7; o2->u.C_Ty__Impure.f_line = p_line; o2->u.C_Ty__Impure.f_f = p_f; o2; })) : p_st); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__pureHandle(srs_cap* p_eff__Region, struct E_Ty__Mode* p_mode, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_h) { return ({ __auto_type s0 = p_mode; s0->tag == 0 ? ({ p_st; }) : ({ f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__SpecHandle))); o0->tag = 8; o0->u.C_Ty__SpecHandle.f_line = p_line; o0->u.C_Ty__SpecHandle.f_h = p_h; o0; })); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Ty__missingCase(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__Arm* p_as) { return ({ __auto_type res_ = (f_Ty__hasAny(p_as) ? (&N_Coll__None__Sym__Sym) : ({ __auto_type s0 = f_Ty__firstCase(p_eff__Region, p_as); s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_Ty__caseNamed(p_eff__Region, p_es, v_c_0); s1->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_co_1 = s1->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s2 = v_co_1; ({ __auto_type v_e_2 = s2->u.C_Ty__CaseOf.f_e; ({ __auto_type res_ = ({ __auto_type s3 = v_e_2; ({ __auto_type v_cases_3 = s3->u.C_Ast__Enum.f_cases; ({ __auto_type res_ = f_Ty__uncovered(p_eff__Region, v_cases_3, p_as); res_; }); }); }); res_; }); }); }); res_; }); }); }); }); })); res_; }); } static bool f_Ty__hasAny(struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; ({ __auto_type res_ = ({ __auto_type s3 = v_p_2; s3->tag == 1 ? ({ true; }) : ({ ({ struct E_Coll__List__Ast__Arm* t0 = v_rest_1; p_as = t0; goto srs_tail; (bool){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Ty__firstCase(srs_cap* p_r, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; ({ __auto_type res_ = ({ __auto_type s3 = v_p_2; s3->tag == 0 ? ({ __auto_type v_c_3 = s3->u.C_Ast__PCase.f_c; ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_c_3; o4; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; p_r = t0; p_as = t1; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__Option__Sym__Sym* f_Ty__uncovered(srs_cap* p_r, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = (f_Ty__armNames(v_n_2, p_as) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Ast__Arm* t2 = p_as; p_r = t0; p_cs = t1; p_as = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }) : ({ struct E_Coll__Option__Sym__Sym* o3 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_n_2; o3; })); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Ty__firstCase(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; ({ __auto_type res_ = ({ __auto_type s3 = v_p_2; s3->tag == 0 ? ({ __auto_type v_c_3 = s3->u.C_Ast__PCase.f_c; ({ struct E_Coll__Option__Sym__Sym* o4 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o4->tag = 1; o4->u.C_Coll__Some.f_v = v_c_3; o4; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; p_eff__Region = t0; p_as = t1; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__Option__Sym__Sym* f_Ty__uncovered(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Case* p_cs, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ (&N_Coll__None__Sym__Sym); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Case.f_name; ({ __auto_type res_ = (f_Ty__armNames(v_n_2, p_as) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Case* t1 = v_rest_1; struct E_Coll__List__Ast__Arm* t2 = p_as; p_eff__Region = t0; p_cs = t1; p_as = t2; goto srs_tail; (struct E_Coll__Option__Sym__Sym*){0}; }) : ({ struct E_Coll__Option__Sym__Sym* o3 = (struct E_Coll__Option__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Sym__Sym, u) + sizeof(((struct E_Coll__Option__Sym__Sym*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_n_2; o3; })); res_; }); }); }); res_; }); }); }); } static bool f_Ty__armNames(struct E_Sym__Sym* p_n, struct E_Coll__List__Ast__Arm* p_as) { srs_tail: return ({ __auto_type s0 = p_as; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_a_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_a_0; ({ __auto_type v_p_2 = s2->u.C_Ast__Arm.f_p; ({ __auto_type res_ = ({ __auto_type s3 = v_p_2; s3->tag == 0 ? ({ __auto_type v_c_3 = s3->u.C_Ast__PCase.f_c; (f_Sym__eq(v_c_3, p_n) ? true : ({ struct E_Sym__Sym* t0 = p_n; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; p_n = t0; p_as = t1; goto srs_tail; (bool){0}; })); }) : ({ ({ struct E_Sym__Sym* t0 = p_n; struct E_Coll__List__Ast__Arm* t1 = v_rest_1; p_n = t0; p_as = t1; goto srs_tail; (bool){0}; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__addGoal(srs_cap* p_r, struct E_Ty__St* p_st, struct E_Ty__Goal* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = v_cs_2; o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = ({ struct E_Coll__List__Ty__Goal* o6 = (struct E_Coll__List__Ty__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Goal, u) + sizeof(((struct E_Coll__List__Ty__Goal*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_g; o6->u.C_Coll__Cons.f_t = v_gs_4; o6; }); o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Ty__Cand* f_Ty__cands(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ty__Cand* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ f_Coll__rev__Ty__Cand(p_r, p_acc); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 5 ? ({ __auto_type v_g_2 = s2->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s3 = v_g_2; ({ __auto_type v_gs_3 = s3->u.C_Ast__Given.f_groups; __auto_type v_head_4 = s3->u.C_Ast__Given.f_head; ({ struct E_Coll__List__Sym__Sym* v_tps_5 = f_Ty__tparams(p_r, v_gs_3, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Ty__Bind* v_tv_6 = f_Ty__rigid(p_r, v_tps_5, (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ty__Cand* t3 = ({ struct E_Coll__List__Ty__Cand* o7 = (struct E_Coll__List__Ty__Cand*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Cand, u) + sizeof(((struct E_Coll__List__Ty__Cand*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ty__Cand* o7 = (struct E_Ty__Cand*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Cand, u) + sizeof(((struct E_Ty__Cand*)0)->u.C_Ty__Cand))); o7->tag = 0; o7->u.C_Ty__Cand.f_id = f_Coll__length__Ty__Cand(p_acc); o7->u.C_Ty__Cand.f_tps = v_tps_5; o7->u.C_Ty__Cand.f_head = f_Ty__term(p_r, v_head_4, v_tv_6); o7->u.C_Ty__Cand.f_evs = f_Ty__traitGoals(p_r, p_ps, f_Ty__evidence(p_r, v_gs_3, (&N_Coll__Nil__Ast__Binder)), v_tv_6, (&N_Coll__Nil__K__Term)); o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_r = t0; p_ps = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Cand*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ty__Cand* t3 = p_acc; p_r = t0; p_ps = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Cand*){0}; }); }); }); }); }); } -static struct E_Coll__List__Ty__Cand* f_Coll__rev__Ty__Cand(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_xs) { return f_Coll__revOnto__Ty__Cand(p_r, p_xs, (&N_Coll__Nil__Ty__Cand)); } -static struct E_Coll__List__Ty__Cand* f_Coll__revOnto__Ty__Cand(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_xs, struct E_Coll__List__Ty__Cand* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Cand* t1 = v_t_1; struct E_Coll__List__Ty__Cand* t2 = ({ struct E_Coll__List__Ty__Cand* o2 = (struct E_Coll__List__Ty__Cand*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Cand, u) + sizeof(((struct E_Coll__List__Ty__Cand*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Cand*){0}; }); }); }); } +static struct E_Ty__St* f_Ty__addGoal(srs_cap* p_eff__Region, struct E_Ty__St* p_st, struct E_Ty__Goal* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_st; ({ __auto_type v_s_0 = s0->u.C_Ty__St.f_s; __auto_type v_n_1 = s0->u.C_Ty__St.f_next; __auto_type v_cs_2 = s0->u.C_Ty__St.f_cs; __auto_type v_is_3 = s0->u.C_Ty__St.f_is; __auto_type v_gs_4 = s0->u.C_Ty__St.f_gs; __auto_type v_nm_5 = s0->u.C_Ty__St.f_nom; ({ __auto_type res_ = ({ struct E_Ty__St* o6 = (struct E_Ty__St*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__St, u) + sizeof(((struct E_Ty__St*)0)->u.C_Ty__St))); o6->tag = 0; o6->u.C_Ty__St.f_s = v_s_0; o6->u.C_Ty__St.f_next = v_n_1; o6->u.C_Ty__St.f_cs = v_cs_2; o6->u.C_Ty__St.f_is = v_is_3; o6->u.C_Ty__St.f_gs = ({ struct E_Coll__List__Ty__Goal* o6 = (struct E_Coll__List__Ty__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Goal, u) + sizeof(((struct E_Coll__List__Ty__Goal*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = p_g; o6->u.C_Coll__Cons.f_t = v_gs_4; o6; }); o6->u.C_Ty__St.f_nom = v_nm_5; o6; }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Ty__Cand* f_Ty__cands(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Ty__Cand* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ f_Coll__rev__Ty__Cand(p_eff__Region, p_acc); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 5 ? ({ __auto_type v_g_2 = s2->u.C_Ast__DGiven.f_g; ({ __auto_type res_ = ({ __auto_type s3 = v_g_2; ({ __auto_type v_gs_3 = s3->u.C_Ast__Given.f_groups; __auto_type v_head_4 = s3->u.C_Ast__Given.f_head; ({ struct E_Coll__List__Sym__Sym* v_tps_5 = f_Ty__tparams(p_eff__Region, v_gs_3, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Ty__Bind* v_tv_6 = f_Ty__rigid(p_eff__Region, v_tps_5, (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ty__Cand* t3 = ({ struct E_Coll__List__Ty__Cand* o7 = (struct E_Coll__List__Ty__Cand*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Cand, u) + sizeof(((struct E_Coll__List__Ty__Cand*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ty__Cand* o7 = (struct E_Ty__Cand*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Cand, u) + sizeof(((struct E_Ty__Cand*)0)->u.C_Ty__Cand))); o7->tag = 0; o7->u.C_Ty__Cand.f_id = f_Coll__length__Ty__Cand(p_acc); o7->u.C_Ty__Cand.f_tps = v_tps_5; o7->u.C_Ty__Cand.f_head = f_Ty__term(p_eff__Region, v_head_4, v_tv_6); o7->u.C_Ty__Cand.f_evs = f_Ty__traitGoals(p_eff__Region, p_ps, f_Ty__evidence(p_eff__Region, v_gs_3, (&N_Coll__Nil__Ast__Binder)), v_tv_6, (&N_Coll__Nil__K__Term)); o7; }); o7->u.C_Coll__Cons.f_t = p_acc; o7; }); p_eff__Region = t0; p_ps = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Cand*){0}; }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Ty__Cand* t3 = p_acc; p_eff__Region = t0; p_ps = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Cand*){0}; }); }); }); }); }); } +static struct E_Coll__List__Ty__Cand* f_Coll__rev__Ty__Cand(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_xs) { return f_Coll__revOnto__Ty__Cand(p_eff__Region, p_xs, (&N_Coll__Nil__Ty__Cand)); } +static struct E_Coll__List__Ty__Cand* f_Coll__revOnto__Ty__Cand(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_xs, struct E_Coll__List__Ty__Cand* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Cand* t1 = v_t_1; struct E_Coll__List__Ty__Cand* t2 = ({ struct E_Coll__List__Ty__Cand* o2 = (struct E_Coll__List__Ty__Cand*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Cand, u) + sizeof(((struct E_Coll__List__Ty__Cand*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Cand*){0}; }); }); }); } static int64_t f_Coll__length__Ty__Cand(struct E_Coll__List__Ty__Cand* p_xs) { return f_Coll__lengthFrom__Ty__Cand(p_xs, ((int64_t)0)); } static int64_t f_Coll__lengthFrom__Ty__Cand(struct E_Coll__List__Ty__Cand* p_xs, int64_t p_n) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_n; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_t; ({ struct E_Coll__List__Ty__Cand* t0 = v_t_0; int64_t t1 = (p_n + ((int64_t)1)); p_xs = t0; p_n = t1; goto srs_tail; (int64_t){0}; }); }); }); } -static struct E_Coll__List__K__Term* f_Ty__traitGoals(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = v_t_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Ty__Bind* t3 = p_tv; struct E_Coll__List__K__Term* t4 = (f_Ty__isProto(p_ps, v_n_3) ? p_acc : ({ struct E_Coll__List__K__Term* o4 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Ty__term(p_r, v_t_2, p_tv); o4->u.C_Coll__Cons.f_t = p_acc; o4; })); p_r = t0; p_ps = t1; p_bs = t2; p_tv = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Term* f_Ty__traitGoals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s3 = v_t_2; ({ __auto_type v_n_3 = s3->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ast__Binder* t2 = v_rest_1; struct E_Coll__List__Ty__Bind* t3 = p_tv; struct E_Coll__List__K__Term* t4 = (f_Ty__isProto(p_ps, v_n_3) ? p_acc : ({ struct E_Coll__List__K__Term* o4 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = f_Ty__term(p_eff__Region, v_t_2, p_tv); o4->u.C_Coll__Cons.f_t = p_acc; o4; })); p_eff__Region = t0; p_ps = t1; p_bs = t2; p_tv = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } static int64_t f_Ty__givenFuel(void) { return ((int64_t)1000); } -static struct E_Coll__List__Ty__Clash* f_Ty__goals(srs_cap* p_r, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Goal* p_gs, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_line_2 = s2->u.C_Ty__Goal.f_line; __auto_type v_t0_3 = s2->u.C_Ty__Goal.f_goal; __auto_type v_locals_4 = s2->u.C_Ty__Goal.f_locals; __auto_type v_chosen_5 = s2->u.C_Ty__Goal.f_chosen; ({ struct E_K__Term* v_t_6 = f_K__reify(p_r, p_s, v_t0_3); __auto_type res_ = ((!f_Ty__groundT(v_t_6)) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = p_cs; p_r = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }) : (f_Ty__isProtoT(p_ps, v_t_6) ? ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = ((f_Coll__length__Sym__Sym(f_Ty__localsOf(p_r, p_s, v_locals_4, v_t_6, (&N_Coll__Nil__Sym__Sym))) == ((int64_t)1)) ? p_cs : ({ struct E_Coll__List__Ty__Clash* o7 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o7 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o7->tag = 6; o7->u.C_Ty__NoCap.f_line = v_line_2; o7->u.C_Ty__NoCap.f_p = f_Ty__headOf(p_r, v_t_6); o7; }); o7->u.C_Coll__Cons.f_t = p_cs; o7; })); p_r = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }) : ({ __auto_type s7 = v_chosen_5; s7->tag == 1 ? ({ __auto_type v_x_7 = s7->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = (f_Ty__localProves(p_r, p_s, v_locals_4, v_x_7, v_t_6) ? p_cs : ({ struct E_Coll__List__Ty__Clash* o8 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o8 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ChosenBad))); o8->tag = 16; o8->u.C_Ty__ChosenBad.f_line = v_line_2; o8->u.C_Ty__ChosenBad.f_goal = v_t_6; o8; }); o8->u.C_Coll__Cons.f_t = p_cs; o8; })); p_r = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = f_Ty__resClash(p_r, v_line_2, v_t_6, f_Ty__resolve(p_r, p_cands, p_s, v_locals_4, v_t_6, f_Ty__givenFuel()), p_cs); p_r = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); }); }))); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ty__Clash* f_Ty__resClash(srs_cap* p_r, int64_t p_line, struct E_K__Term* p_t, struct E_Ty__Res* p_res, struct E_Coll__List__Ty__Clash* p_cs) { return ({ __auto_type s0 = p_res; s0->tag == 0 ? ({ p_cs; }) : s0->tag == 1 ? ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoGiven))); o0->tag = 12; o0->u.C_Ty__NoGiven.f_line = p_line; o0->u.C_Ty__NoGiven.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__AmbigGivens))); o0->tag = 13; o0->u.C_Ty__AmbigGivens.f_line = p_line; o0->u.C_Ty__AmbigGivens.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }) : s0->tag == 3 ? ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__AmbigEvidence))); o0->tag = 14; o0->u.C_Ty__AmbigEvidence.f_line = p_line; o0->u.C_Ty__AmbigEvidence.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }) : ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__GivenFuel))); o0->tag = 15; o0->u.C_Ty__GivenFuel.f_line = p_line; o0->u.C_Ty__GivenFuel.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }); }); } -static bool f_Ty__localProves(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Sym__Sym* p_x, struct E_K__Term* p_t) { return ({ __auto_type s0 = f_Ty__lookup(p_r, p_locals, p_x); s0->tag == 1 ? ({ __auto_type v_u_0 = s0->u.C_Coll__Some.f_v; f_Mono__termEq(f_K__reify(p_r, p_s, v_u_0), p_t); }) : ({ false; }); }); } -static struct E_Ty__Res* f_Ty__resolve(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel) { return ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? (&N_Ty__OutOfFuel) : ({ int64_t v_n_0 = f_Coll__length__Sym__Sym(f_Ty__localsOf(p_r, p_s, p_locals, p_t, (&N_Coll__Nil__Sym__Sym))); __auto_type res_ = ((v_n_0 > ((int64_t)1)) ? (&N_Ty__TwoLocals) : ((v_n_0 == ((int64_t)1)) ? (&N_Ty__Proved) : ({ __auto_type s1 = f_Ty__viable(p_r, p_cands, p_cands, p_s, p_locals, p_t, p_fuel, (&N_Coll__Nil__Ty__Cand)); s1->tag == 0 ? ({ __auto_type v_vs_1 = s1->u.C_Ty__Viable.f_cs; f_Ty__best(p_r, v_vs_1, v_vs_1); }) : ({ (&N_Ty__OutOfFuel); }); }))); res_; })); res_; }); } -static struct E_Coll__List__Sym__Sym* f_Ty__localsOf(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_t, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_u_3 = s2->u.C_Ty__Bind.f_t; ({ __auto_type res_ = (((!f_Ty__memberSym(v_x_2, p_acc)) && f_Mono__termEq(f_K__reify(p_r, p_s, v_u_3), p_t)) ? ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_K__Term* t3 = p_t; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_r = t0; p_s = t1; p_bs = t2; p_t = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_r; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_K__Term* t3 = p_t; struct E_Coll__List__Sym__Sym* t4 = p_acc; p_r = t0; p_s = t1; p_bs = t2; p_t = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Vs* f_Ty__viable(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__List__Ty__Cand* p_cs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel, struct E_Coll__List__Ty__Cand* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ struct E_Ty__Vs* o0 = (struct E_Ty__Vs*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Vs, u) + sizeof(((struct E_Ty__Vs*)0)->u.C_Ty__Viable))); o0->tag = 0; o0->u.C_Ty__Viable.f_cs = f_Coll__rev__Ty__Cand(p_r, p_acc); o0; }); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_tps_2 = s2->u.C_Ty__Cand.f_tps; __auto_type v_head_3 = s2->u.C_Ty__Cand.f_head; __auto_type v_evs_4 = s2->u.C_Ty__Cand.f_evs; ({ __auto_type res_ = ({ __auto_type s5 = f_Mono__matchT(p_r, v_tps_2, v_head_3, p_t, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o5 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o5; })); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Bind* t4 = p_locals; struct E_K__Term* t5 = p_t; int64_t t6 = p_fuel; struct E_Coll__List__Ty__Cand* t7 = p_acc; p_r = t0; p_all = t1; p_cs = t2; p_s = t3; p_locals = t4; p_t = t5; p_fuel = t6; p_acc = t7; goto srs_tail; (struct E_Ty__Vs*){0}; }); }) : ({ __auto_type v_sub_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type s6 = f_Ty__allProved(p_r, p_all, p_s, p_locals, f_Mono__applyAll(p_r, v_sub_5, v_evs_4, (&N_Coll__Nil__K__Term)), (p_fuel - ((int64_t)1))); s6->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Bind* t4 = p_locals; struct E_K__Term* t5 = p_t; int64_t t6 = p_fuel; struct E_Coll__List__Ty__Cand* t7 = ({ struct E_Coll__List__Ty__Cand* o6 = (struct E_Coll__List__Ty__Cand*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Cand, u) + sizeof(((struct E_Coll__List__Ty__Cand*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_c_0; o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_r = t0; p_all = t1; p_cs = t2; p_s = t3; p_locals = t4; p_t = t5; p_fuel = t6; p_acc = t7; goto srs_tail; (struct E_Ty__Vs*){0}; }); }) : s6->tag == 4 ? ({ (&N_Ty__ViableFuel); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Bind* t4 = p_locals; struct E_K__Term* t5 = p_t; int64_t t6 = p_fuel; struct E_Coll__List__Ty__Cand* t7 = p_acc; p_r = t0; p_all = t1; p_cs = t2; p_s = t3; p_locals = t4; p_t = t5; p_fuel = t6; p_acc = t7; goto srs_tail; (struct E_Ty__Vs*){0}; }); }); }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__Res* f_Ty__allProved(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Coll__List__K__Term* p_gs, int64_t p_fuel) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ (&N_Ty__Proved); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Ty__resolve(p_r, p_all, p_s, p_locals, v_g_0, p_fuel); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__IMap__K__Term* t2 = p_s; struct E_Coll__List__Ty__Bind* t3 = p_locals; struct E_Coll__List__K__Term* t4 = v_rest_1; int64_t t5 = p_fuel; p_r = t0; p_all = t1; p_s = t2; p_locals = t3; p_gs = t4; p_fuel = t5; goto srs_tail; (struct E_Ty__Res*){0}; }); }) : s2->tag == 1 ? ({ (&N_Ty__NoneFound); }) : s2->tag == 2 ? ({ (&N_Ty__Tie); }) : s2->tag == 3 ? ({ (&N_Ty__TwoLocals); }) : ({ (&N_Ty__OutOfFuel); }); }); }); }); } -static struct E_Ty__Res* f_Ty__best(srs_cap* p_r, struct E_Coll__List__Ty__Cand* p_vs, struct E_Coll__List__Ty__Cand* p_all) { srs_tail: return ({ __auto_type s0 = p_vs; s0->tag == 0 ? ({ ((f_Coll__length__Ty__Cand(p_all) == ((int64_t)0)) ? (&N_Ty__NoneFound) : (&N_Ty__Tie)); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Ty__beatsAll(p_r, v_c_0, p_all) ? (&N_Ty__Proved) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Cand* t1 = v_rest_1; struct E_Coll__List__Ty__Cand* t2 = p_all; p_r = t0; p_vs = t1; p_all = t2; goto srs_tail; (struct E_Ty__Res*){0}; })); }); }); } -static bool f_Ty__beatsAll(srs_cap* p_r, struct E_Ty__Cand* p_c, struct E_Coll__List__Ty__Cand* p_all) { srs_tail: return ({ __auto_type s0 = p_all; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((f_Ty__sameCand(p_c, v_d_0) || f_Ty__better(p_r, p_c, v_d_0)) ? ({ srs_cap* t0 = p_r; struct E_Ty__Cand* t1 = p_c; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; p_r = t0; p_c = t1; p_all = t2; goto srs_tail; (bool){0}; }) : false); }); }); } +static struct E_Coll__List__Ty__Clash* f_Ty__goals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Goal* p_gs, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_line_2 = s2->u.C_Ty__Goal.f_line; __auto_type v_t0_3 = s2->u.C_Ty__Goal.f_goal; __auto_type v_locals_4 = s2->u.C_Ty__Goal.f_locals; __auto_type v_chosen_5 = s2->u.C_Ty__Goal.f_chosen; ({ struct E_K__Term* v_t_6 = f_K__reify(p_eff__Region, p_s, v_t0_3); __auto_type res_ = ((!f_Ty__groundT(v_t_6)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = p_cs; p_eff__Region = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }) : (f_Ty__isProtoT(p_ps, v_t_6) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = ((f_Coll__length__Sym__Sym(f_Ty__localsOf(p_eff__Region, p_s, v_locals_4, v_t_6, (&N_Coll__Nil__Sym__Sym))) == ((int64_t)1)) ? p_cs : ({ struct E_Coll__List__Ty__Clash* o7 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o7->tag = 1; o7->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o7 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoCap))); o7->tag = 6; o7->u.C_Ty__NoCap.f_line = v_line_2; o7->u.C_Ty__NoCap.f_p = f_Ty__headOf(p_eff__Region, v_t_6); o7; }); o7->u.C_Coll__Cons.f_t = p_cs; o7; })); p_eff__Region = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }) : ({ __auto_type s7 = v_chosen_5; s7->tag == 1 ? ({ __auto_type v_x_7 = s7->u.C_Coll__Some.f_v; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = (f_Ty__localProves(p_eff__Region, p_s, v_locals_4, v_x_7, v_t_6) ? p_cs : ({ struct E_Coll__List__Ty__Clash* o8 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o8 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ChosenBad))); o8->tag = 16; o8->u.C_Ty__ChosenBad.f_line = v_line_2; o8->u.C_Ty__ChosenBad.f_goal = v_t_6; o8; }); o8->u.C_Coll__Cons.f_t = p_cs; o8; })); p_eff__Region = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Proto* t1 = p_ps; struct E_Coll__List__Ty__Cand* t2 = p_cands; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Goal* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = f_Ty__resClash(p_eff__Region, v_line_2, v_t_6, f_Ty__resolve(p_eff__Region, p_cands, p_s, v_locals_4, v_t_6, f_Ty__givenFuel()), p_cs); p_eff__Region = t0; p_ps = t1; p_cands = t2; p_s = t3; p_gs = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); }); }))); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ty__Clash* f_Ty__resClash(srs_cap* p_eff__Region, int64_t p_line, struct E_K__Term* p_t, struct E_Ty__Res* p_res, struct E_Coll__List__Ty__Clash* p_cs) { return ({ __auto_type s0 = p_res; s0->tag == 0 ? ({ p_cs; }) : s0->tag == 1 ? ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NoGiven))); o0->tag = 12; o0->u.C_Ty__NoGiven.f_line = p_line; o0->u.C_Ty__NoGiven.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }) : s0->tag == 2 ? ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__AmbigGivens))); o0->tag = 13; o0->u.C_Ty__AmbigGivens.f_line = p_line; o0->u.C_Ty__AmbigGivens.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }) : s0->tag == 3 ? ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__AmbigEvidence))); o0->tag = 14; o0->u.C_Ty__AmbigEvidence.f_line = p_line; o0->u.C_Ty__AmbigEvidence.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }) : ({ ({ struct E_Coll__List__Ty__Clash* o0 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o0->tag = 1; o0->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o0 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__GivenFuel))); o0->tag = 15; o0->u.C_Ty__GivenFuel.f_line = p_line; o0->u.C_Ty__GivenFuel.f_goal = p_t; o0; }); o0->u.C_Coll__Cons.f_t = p_cs; o0; }); }); }); } +static bool f_Ty__localProves(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Sym__Sym* p_x, struct E_K__Term* p_t) { return ({ __auto_type s0 = f_Ty__lookup(p_eff__Region, p_locals, p_x); s0->tag == 1 ? ({ __auto_type v_u_0 = s0->u.C_Coll__Some.f_v; f_Mono__termEq(f_K__reify(p_eff__Region, p_s, v_u_0), p_t); }) : ({ false; }); }); } +static struct E_Ty__Res* f_Ty__resolve(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_cands, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel) { return ({ __auto_type res_ = ((p_fuel <= ((int64_t)0)) ? (&N_Ty__OutOfFuel) : ({ int64_t v_n_0 = f_Coll__length__Sym__Sym(f_Ty__localsOf(p_eff__Region, p_s, p_locals, p_t, (&N_Coll__Nil__Sym__Sym))); __auto_type res_ = ((v_n_0 > ((int64_t)1)) ? (&N_Ty__TwoLocals) : ((v_n_0 == ((int64_t)1)) ? (&N_Ty__Proved) : ({ __auto_type s1 = f_Ty__viable(p_eff__Region, p_cands, p_cands, p_s, p_locals, p_t, p_fuel, (&N_Coll__Nil__Ty__Cand)); s1->tag == 0 ? ({ __auto_type v_vs_1 = s1->u.C_Ty__Viable.f_cs; f_Ty__best(p_eff__Region, v_vs_1, v_vs_1); }) : ({ (&N_Ty__OutOfFuel); }); }))); res_; })); res_; }); } +static struct E_Coll__List__Sym__Sym* f_Ty__localsOf(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_K__Term* p_t, struct E_Coll__List__Sym__Sym* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_x_2 = s2->u.C_Ty__Bind.f_x; __auto_type v_u_3 = s2->u.C_Ty__Bind.f_t; ({ __auto_type res_ = (((!f_Ty__memberSym(v_x_2, p_acc)) && f_Mono__termEq(f_K__reify(p_eff__Region, p_s, v_u_3), p_t)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_K__Term* t3 = p_t; struct E_Coll__List__Sym__Sym* t4 = ({ struct E_Coll__List__Sym__Sym* o4 = (struct E_Coll__List__Sym__Sym*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Sym__Sym, u) + sizeof(((struct E_Coll__List__Sym__Sym*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = v_x_2; o4->u.C_Coll__Cons.f_t = p_acc; o4; }); p_eff__Region = t0; p_s = t1; p_bs = t2; p_t = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__IMap__K__Term* t1 = p_s; struct E_Coll__List__Ty__Bind* t2 = v_rest_1; struct E_K__Term* t3 = p_t; struct E_Coll__List__Sym__Sym* t4 = p_acc; p_eff__Region = t0; p_s = t1; p_bs = t2; p_t = t3; p_acc = t4; goto srs_tail; (struct E_Coll__List__Sym__Sym*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Vs* f_Ty__viable(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__List__Ty__Cand* p_cs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_K__Term* p_t, int64_t p_fuel, struct E_Coll__List__Ty__Cand* p_acc) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ({ struct E_Ty__Vs* o0 = (struct E_Ty__Vs*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Vs, u) + sizeof(((struct E_Ty__Vs*)0)->u.C_Ty__Viable))); o0->tag = 0; o0->u.C_Ty__Viable.f_cs = f_Coll__rev__Ty__Cand(p_eff__Region, p_acc); o0; }); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_c_0; ({ __auto_type v_tps_2 = s2->u.C_Ty__Cand.f_tps; __auto_type v_head_3 = s2->u.C_Ty__Cand.f_head; __auto_type v_evs_4 = s2->u.C_Ty__Cand.f_evs; ({ __auto_type res_ = ({ __auto_type s5 = f_Mono__matchT(p_eff__Region, v_tps_2, v_head_3, p_t, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o5 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o5->tag = 1; o5->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o5; })); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Bind* t4 = p_locals; struct E_K__Term* t5 = p_t; int64_t t6 = p_fuel; struct E_Coll__List__Ty__Cand* t7 = p_acc; p_eff__Region = t0; p_all = t1; p_cs = t2; p_s = t3; p_locals = t4; p_t = t5; p_fuel = t6; p_acc = t7; goto srs_tail; (struct E_Ty__Vs*){0}; }); }) : ({ __auto_type v_sub_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type s6 = f_Ty__allProved(p_eff__Region, p_all, p_s, p_locals, f_Mono__applyAll(p_eff__Region, v_sub_5, v_evs_4, (&N_Coll__Nil__K__Term)), (p_fuel - ((int64_t)1))); s6->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Bind* t4 = p_locals; struct E_K__Term* t5 = p_t; int64_t t6 = p_fuel; struct E_Coll__List__Ty__Cand* t7 = ({ struct E_Coll__List__Ty__Cand* o6 = (struct E_Coll__List__Ty__Cand*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Cand, u) + sizeof(((struct E_Coll__List__Ty__Cand*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = v_c_0; o6->u.C_Coll__Cons.f_t = p_acc; o6; }); p_eff__Region = t0; p_all = t1; p_cs = t2; p_s = t3; p_locals = t4; p_t = t5; p_fuel = t6; p_acc = t7; goto srs_tail; (struct E_Ty__Vs*){0}; }); }) : s6->tag == 4 ? ({ (&N_Ty__ViableFuel); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Bind* t4 = p_locals; struct E_K__Term* t5 = p_t; int64_t t6 = p_fuel; struct E_Coll__List__Ty__Cand* t7 = p_acc; p_eff__Region = t0; p_all = t1; p_cs = t2; p_s = t3; p_locals = t4; p_t = t5; p_fuel = t6; p_acc = t7; goto srs_tail; (struct E_Ty__Vs*){0}; }); }); }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__Res* f_Ty__allProved(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_all, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_locals, struct E_Coll__List__K__Term* p_gs, int64_t p_fuel) { srs_tail: return ({ __auto_type s0 = p_gs; s0->tag == 0 ? ({ (&N_Ty__Proved); }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = f_Ty__resolve(p_eff__Region, p_all, p_s, p_locals, v_g_0, p_fuel); s2->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Cand* t1 = p_all; struct E_Coll__IMap__K__Term* t2 = p_s; struct E_Coll__List__Ty__Bind* t3 = p_locals; struct E_Coll__List__K__Term* t4 = v_rest_1; int64_t t5 = p_fuel; p_eff__Region = t0; p_all = t1; p_s = t2; p_locals = t3; p_gs = t4; p_fuel = t5; goto srs_tail; (struct E_Ty__Res*){0}; }); }) : s2->tag == 1 ? ({ (&N_Ty__NoneFound); }) : s2->tag == 2 ? ({ (&N_Ty__Tie); }) : s2->tag == 3 ? ({ (&N_Ty__TwoLocals); }) : ({ (&N_Ty__OutOfFuel); }); }); }); }); } +static struct E_Ty__Res* f_Ty__best(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Cand* p_vs, struct E_Coll__List__Ty__Cand* p_all) { srs_tail: return ({ __auto_type s0 = p_vs; s0->tag == 0 ? ({ ((f_Coll__length__Ty__Cand(p_all) == ((int64_t)0)) ? (&N_Ty__NoneFound) : (&N_Ty__Tie)); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Ty__beatsAll(p_eff__Region, v_c_0, p_all) ? (&N_Ty__Proved) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Cand* t1 = v_rest_1; struct E_Coll__List__Ty__Cand* t2 = p_all; p_eff__Region = t0; p_vs = t1; p_all = t2; goto srs_tail; (struct E_Ty__Res*){0}; })); }); }); } +static bool f_Ty__beatsAll(srs_cap* p_eff__Region, struct E_Ty__Cand* p_c, struct E_Coll__List__Ty__Cand* p_all) { srs_tail: return ({ __auto_type s0 = p_all; s0->tag == 0 ? ({ true; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ((f_Ty__sameCand(p_c, v_d_0) || f_Ty__better(p_eff__Region, p_c, v_d_0)) ? ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cand* t1 = p_c; struct E_Coll__List__Ty__Cand* t2 = v_rest_1; p_eff__Region = t0; p_c = t1; p_all = t2; goto srs_tail; (bool){0}; }) : false); }); }); } static bool f_Ty__sameCand(struct E_Ty__Cand* p_a, struct E_Ty__Cand* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_i_0 = s0->u.C_Ty__Cand.f_id; ({ __auto_type res_ = ({ __auto_type s1 = p_b; ({ __auto_type v_j_1 = s1->u.C_Ty__Cand.f_id; ({ __auto_type res_ = (v_i_0 == v_j_1); res_; }); }); }); res_; }); }); }); res_; }); } -static bool f_Ty__better(srs_cap* p_r, struct E_Ty__Cand* p_a, struct E_Ty__Cand* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_atps_0 = s0->u.C_Ty__Cand.f_tps; __auto_type v_ah_1 = s0->u.C_Ty__Cand.f_head; __auto_type v_aev_2 = s0->u.C_Ty__Cand.f_evs; ({ __auto_type res_ = ({ __auto_type s3 = p_b; ({ __auto_type v_btps_3 = s3->u.C_Ty__Cand.f_tps; __auto_type v_bh_4 = s3->u.C_Ty__Cand.f_head; __auto_type v_bev_5 = s3->u.C_Ty__Cand.f_evs; ({ bool v_ab_6 = f_Mono__isSome(f_Mono__matchT(p_r, v_btps_3, v_bh_4, v_ah_1, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o6 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o6; }))); bool v_ba_7 = f_Mono__isSome(f_Mono__matchT(p_r, v_atps_0, v_ah_1, v_bh_4, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o7 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o7->tag = 1; o7->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o7; }))); __auto_type res_ = ((v_ab_6 && (!v_ba_7)) ? true : ((v_ab_6 && v_ba_7) ? (f_Coll__length__K__Term(v_aev_2) < f_Coll__length__K__Term(v_bev_5)) : false)); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Ty__St* f_Ty__nameUse(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_x, struct E_K__Term* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Ty__Cx.f_ps; __auto_type v_trs_1 = s0->u.C_Ty__Cx.f_trs; ({ __auto_type res_ = ({ __auto_type s2 = f_K__walk(p_r, f_Ty__subst(p_st), p_t); s2->tag == 1 ? ({ __auto_type v_n_2 = s2->u.C_K__Con.f_f; ({ __auto_type res_ = (f_Ty__isProto(v_ps_0, v_n_2) ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__CapValue))); o3->tag = 20; o3->u.C_Ty__CapValue.f_line = p_line; o3->u.C_Ty__CapValue.f_x = p_x; o3; })) : (f_Ty__isTrait(v_trs_1, v_n_2) ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__EvidenceValue))); o3->tag = 19; o3->u.C_Ty__EvidenceValue.f_line = p_line; o3->u.C_Ty__EvidenceValue.f_x = p_x; o3; })) : p_st)); res_; }); }) : ({ p_st; }); }); res_; }); }); }); res_; }); } +static bool f_Ty__better(srs_cap* p_eff__Region, struct E_Ty__Cand* p_a, struct E_Ty__Cand* p_b) { return ({ __auto_type res_ = ({ __auto_type s0 = p_a; ({ __auto_type v_atps_0 = s0->u.C_Ty__Cand.f_tps; __auto_type v_ah_1 = s0->u.C_Ty__Cand.f_head; __auto_type v_aev_2 = s0->u.C_Ty__Cand.f_evs; ({ __auto_type res_ = ({ __auto_type s3 = p_b; ({ __auto_type v_btps_3 = s3->u.C_Ty__Cand.f_tps; __auto_type v_bh_4 = s3->u.C_Ty__Cand.f_head; __auto_type v_bev_5 = s3->u.C_Ty__Cand.f_evs; ({ bool v_ab_6 = f_Mono__isSome(f_Mono__matchT(p_eff__Region, v_btps_3, v_bh_4, v_ah_1, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o6 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o6->tag = 1; o6->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o6; }))); bool v_ba_7 = f_Mono__isSome(f_Mono__matchT(p_eff__Region, v_atps_0, v_ah_1, v_bh_4, ({ struct E_Coll__Option__Coll__List_1_Ty__Bind* o7 = (struct E_Coll__Option__Coll__List_1_Ty__Bind*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Coll__List_1_Ty__Bind, u) + sizeof(((struct E_Coll__Option__Coll__List_1_Ty__Bind*)0)->u.C_Coll__Some))); o7->tag = 1; o7->u.C_Coll__Some.f_v = (&N_Coll__Nil__Ty__Bind); o7; }))); __auto_type res_ = ((v_ab_6 && (!v_ba_7)) ? true : ((v_ab_6 && v_ba_7) ? (f_Coll__length__K__Term(v_aev_2) < f_Coll__length__K__Term(v_bev_5)) : false)); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Ty__St* f_Ty__nameUse(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Sym__Sym* p_x, struct E_K__Term* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_cx; ({ __auto_type v_ps_0 = s0->u.C_Ty__Cx.f_ps; __auto_type v_trs_1 = s0->u.C_Ty__Cx.f_trs; ({ __auto_type res_ = ({ __auto_type s2 = f_K__walk(f_Ty__subst(p_st), p_t); s2->tag == 1 ? ({ __auto_type v_n_2 = s2->u.C_K__Con.f_f; ({ __auto_type res_ = (f_Ty__isProto(v_ps_0, v_n_2) ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__CapValue))); o3->tag = 20; o3->u.C_Ty__CapValue.f_line = p_line; o3->u.C_Ty__CapValue.f_x = p_x; o3; })) : (f_Ty__isTrait(v_trs_1, v_n_2) ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__EvidenceValue))); o3->tag = 19; o3->u.C_Ty__EvidenceValue.f_line = p_line; o3->u.C_Ty__EvidenceValue.f_x = p_x; o3; })) : p_st)); res_; }); }) : ({ p_st; }); }); res_; }); }); }); res_; }); } static bool f_Ty__isTrait(struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_m_2 = s2->u.C_Ast__Trait.f_name; ({ __auto_type res_ = (f_Sym__eq(v_m_2, p_n) ? true : ({ struct E_Coll__List__Ast__Trait* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_n; p_trs = t0; p_n = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Ty__isEnum(struct E_Coll__List__Ast__Enum* p_es, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_e_0; ({ __auto_type v_m_2 = s2->u.C_Ast__Enum.f_name; ({ __auto_type res_ = (f_Sym__eq(v_m_2, p_n) ? true : ({ struct E_Coll__List__Ast__Enum* t0 = v_rest_1; struct E_Sym__Sym* t1 = p_n; p_es = t0; p_n = t1; goto srs_tail; (bool){0}; })); res_; }); }); }); res_; }); }); }); } static bool f_Ty__isBuiltin(struct E_Sym__Sym* p_n) { return ({ srs_str v_s_0 = f_Sym__str(p_n); __auto_type res_ = (((((Str__eq(v_s_0, ((srs_str){(const uint8_t*)"I64", 3})) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Bool", 4}))) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Str", 3}))) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Unit", 4}))) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Ptr", 3}))) || Str__eq(v_s_0, ((srs_str){(const uint8_t*)"Type", 4}))); res_; }); } -static bool f_Ty__isCapOf(srs_cap* p_r, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_p) { return ({ __auto_type s0 = f_Ty__lookup(p_r, p_bs, p_x); s0->tag == 0 ? ({ false; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_K__walk(p_r, p_s, v_t_0); s1->tag == 1 ? ({ __auto_type v_n_1 = s1->u.C_K__Con.f_f; __auto_type v_args_2 = s1->u.C_K__Con.f_args; (f_Sym__eq(v_n_1, p_p) && (f_Coll__length__K__Term(v_args_2) == ((int64_t)0))); }) : ({ false; }); }); }); }); } -static struct E_Ty__St* f_Ty__fnShape(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ast__Binder* p_ps) { return ({ __auto_type res_ = f_Ty__capParams(p_r, p_cx, f_Ty__hides(p_r, p_cx, p_st, p_line, p_tps), p_ps); res_; }); } -static struct E_Ty__St* f_Ty__hides(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_es_2 = s2->u.C_Ty__Cx.f_es; __auto_type v_ps_3 = s2->u.C_Ty__Cx.f_ps; __auto_type v_trs_4 = s2->u.C_Ty__Cx.f_trs; ({ bool v_known_5 = (((f_Ty__isBuiltin(v_x_0) || f_Ty__isEnum(v_es_2, v_x_0)) || f_Ty__isProto(v_ps_3, v_x_0)) || f_Ty__isTrait(v_trs_4, v_x_0)); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = (v_known_5 ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__BinderHides))); o6->tag = 21; o6->u.C_Ty__BinderHides.f_line = p_line; o6->u.C_Ty__BinderHides.f_x = v_x_0; o6; })) : p_st); int64_t t3 = p_line; struct E_Coll__List__Sym__Sym* t4 = v_rest_1; p_r = t0; p_cx = t1; p_st = t2; p_line = t3; p_tps = t4; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__capParams(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Binder* p_ps) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Binder.f_line; __auto_type v_x_3 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_4 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s5 = v_t_4; ({ __auto_type v_n_5 = s5->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_protos_6 = s6->u.C_Ty__Cx.f_ps; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = (f_Ty__isProto(v_protos_6, v_n_5) ? f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o7 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__CapParam))); o7->tag = 22; o7->u.C_Ty__CapParam.f_line = v_line_2; o7->u.C_Ty__CapParam.f_x = v_x_3; o7; })) : p_st); struct E_Coll__List__Ast__Binder* t3 = v_rest_1; p_r = t0; p_cx = t1; p_st = t2; p_ps = t3; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__givenShape(srs_cap* p_r, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Ast__Given* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_line_0 = s0->u.C_Ast__Given.f_line; __auto_type v_gs_1 = s0->u.C_Ast__Given.f_groups; __auto_type v_head_2 = s0->u.C_Ast__Given.f_head; __auto_type v_fs_3 = s0->u.C_Ast__Given.f_fns; ({ __auto_type res_ = ({ __auto_type s4 = v_head_2; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; __auto_type v_targs_5 = s4->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_trs_6 = s6->u.C_Ty__Cx.f_trs; ({ struct E_Ty__St* v_st1_7 = f_Ty__inHead(p_r, p_st, v_line_0, f_Ty__tparams(p_r, v_gs_1, (&N_Coll__Nil__Sym__Sym)), v_head_2); __auto_type res_ = ({ __auto_type s8 = f_Ty__traitNamed(p_r, v_trs_6, v_tn_4); s8->tag == 0 ? ({ f_Ty__clash(p_r, v_st1_7, ({ struct E_Ty__Clash* o8 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o8->tag = 1; o8->u.C_Ty__Unknown.f_line = v_line_0; o8->u.C_Ty__Unknown.f_name = v_tn_4; o8; })); }) : ({ __auto_type v_tr_8 = s8->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s9 = v_tr_8; ({ __auto_type v_tgs_9 = s9->u.C_Ast__Trait.f_groups; __auto_type v_sigs_10 = s9->u.C_Ast__Trait.f_sigs; ({ struct E_Coll__List__Sym__Sym* v_ttps_11 = f_Ty__tparams(p_r, v_tgs_9, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ((f_Coll__length__Sym__Sym(v_ttps_11) != f_Coll__length__Ast__Ty(v_targs_5)) ? f_Ty__clash(p_r, v_st1_7, ({ struct E_Ty__Clash* o12 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__TraitArity))); o12->tag = 23; o12->u.C_Ty__TraitArity.f_line = v_line_0; o12->u.C_Ty__TraitArity.f_t = v_tn_4; o12; })) : ({ struct E_Coll__List__Sym__Sym* v_tps_12 = f_Ty__tparams(p_r, v_gs_1, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Ty__Bind* v_tv_13 = f_Ty__rigid(p_r, v_tps_12, (&N_Coll__Nil__Ty__Bind)); struct E_Coll__List__Ty__Bind* v_sub_14 = f_Ty__zipBind(p_r, v_ttps_11, f_Ty__terms(p_r, v_targs_5, v_tv_13, (&N_Coll__Nil__K__Term)), (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = f_Ty__missing(p_r, v_sigs_10, v_fs_3, v_line_0, f_Ty__methods(p_r, v_sigs_10, v_fs_3, v_sub_14, v_tv_13, v_st1_7)); res_; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__Option__Ast__Trait* f_Ty__traitNamed(srs_cap* p_r, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Trait); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_m_2 = s2->u.C_Ast__Trait.f_name; ({ __auto_type res_ = (f_Sym__eq(v_m_2, p_n) ? ({ struct E_Coll__Option__Ast__Trait* o3 = (struct E_Coll__Option__Ast__Trait*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__Ast__Trait, u) + sizeof(((struct E_Coll__Option__Ast__Trait*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_t_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Trait* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_n; p_r = t0; p_trs = t1; p_n = t2; goto srs_tail; (struct E_Coll__Option__Ast__Trait*){0}; })); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__inHead(srs_cap* p_r, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Ast__Ty* p_head) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Ty__St* t1 = (f_Ty__occurs(v_x_0, p_head) ? p_st : f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NotInHead))); o2->tag = 27; o2->u.C_Ty__NotInHead.f_line = p_line; o2->u.C_Ty__NotInHead.f_x = v_x_0; o2; }))); int64_t t2 = p_line; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Ast__Ty* t4 = p_head; p_r = t0; p_st = t1; p_line = t2; p_tps = t3; p_head = t4; goto srs_tail; (struct E_Ty__St*){0}; }); }); }); } +static bool f_Ty__isCapOf(srs_cap* p_eff__Region, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Bind* p_bs, struct E_Sym__Sym* p_x, struct E_Sym__Sym* p_p) { return ({ __auto_type s0 = f_Ty__lookup(p_eff__Region, p_bs, p_x); s0->tag == 0 ? ({ false; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type s1 = f_K__walk(p_s, v_t_0); s1->tag == 1 ? ({ __auto_type v_n_1 = s1->u.C_K__Con.f_f; __auto_type v_args_2 = s1->u.C_K__Con.f_args; (f_Sym__eq(v_n_1, p_p) && (f_Coll__length__K__Term(v_args_2) == ((int64_t)0))); }) : ({ false; }); }); }); }); } +static struct E_Ty__St* f_Ty__fnShape(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Coll__List__Ast__Binder* p_ps) { return ({ __auto_type res_ = f_Ty__capParams(p_eff__Region, p_cx, f_Ty__hides(p_eff__Region, p_cx, p_st, p_line, p_tps), p_ps); res_; }); } +static struct E_Ty__St* f_Ty__hides(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = p_cx; ({ __auto_type v_es_2 = s2->u.C_Ty__Cx.f_es; __auto_type v_ps_3 = s2->u.C_Ty__Cx.f_ps; __auto_type v_trs_4 = s2->u.C_Ty__Cx.f_trs; ({ bool v_known_5 = (((f_Ty__isBuiltin(v_x_0) || f_Ty__isEnum(v_es_2, v_x_0)) || f_Ty__isProto(v_ps_3, v_x_0)) || f_Ty__isTrait(v_trs_4, v_x_0)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = (v_known_5 ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__BinderHides))); o6->tag = 21; o6->u.C_Ty__BinderHides.f_line = p_line; o6->u.C_Ty__BinderHides.f_x = v_x_0; o6; })) : p_st); int64_t t3 = p_line; struct E_Coll__List__Sym__Sym* t4 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_line = t3; p_tps = t4; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__capParams(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Coll__List__Ast__Binder* p_ps) { srs_tail: return ({ __auto_type s0 = p_ps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Binder.f_line; __auto_type v_x_3 = s2->u.C_Ast__Binder.f_x; __auto_type v_t_4 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ __auto_type s5 = v_t_4; ({ __auto_type v_n_5 = s5->u.C_Ast__Ty.f_name; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_protos_6 = s6->u.C_Ty__Cx.f_ps; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Ty__Cx* t1 = p_cx; struct E_Ty__St* t2 = (f_Ty__isProto(v_protos_6, v_n_5) ? f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o7 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__CapParam))); o7->tag = 22; o7->u.C_Ty__CapParam.f_line = v_line_2; o7->u.C_Ty__CapParam.f_x = v_x_3; o7; })) : p_st); struct E_Coll__List__Ast__Binder* t3 = v_rest_1; p_eff__Region = t0; p_cx = t1; p_st = t2; p_ps = t3; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__givenShape(srs_cap* p_eff__Region, struct E_Ty__Cx* p_cx, struct E_Ty__St* p_st, struct E_Ast__Given* p_g) { return ({ __auto_type res_ = ({ __auto_type s0 = p_g; ({ __auto_type v_line_0 = s0->u.C_Ast__Given.f_line; __auto_type v_gs_1 = s0->u.C_Ast__Given.f_groups; __auto_type v_head_2 = s0->u.C_Ast__Given.f_head; __auto_type v_fs_3 = s0->u.C_Ast__Given.f_fns; ({ __auto_type res_ = ({ __auto_type s4 = v_head_2; ({ __auto_type v_tn_4 = s4->u.C_Ast__Ty.f_name; __auto_type v_targs_5 = s4->u.C_Ast__Ty.f_args; ({ __auto_type res_ = ({ __auto_type s6 = p_cx; ({ __auto_type v_trs_6 = s6->u.C_Ty__Cx.f_trs; ({ struct E_Ty__St* v_st1_7 = f_Ty__inHead(p_eff__Region, p_st, v_line_0, f_Ty__tparams(p_eff__Region, v_gs_1, (&N_Coll__Nil__Sym__Sym)), v_head_2); __auto_type res_ = ({ __auto_type s8 = f_Ty__traitNamed(p_eff__Region, v_trs_6, v_tn_4); s8->tag == 0 ? ({ f_Ty__clash(p_eff__Region, v_st1_7, ({ struct E_Ty__Clash* o8 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__Unknown))); o8->tag = 1; o8->u.C_Ty__Unknown.f_line = v_line_0; o8->u.C_Ty__Unknown.f_name = v_tn_4; o8; })); }) : ({ __auto_type v_tr_8 = s8->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s9 = v_tr_8; ({ __auto_type v_tgs_9 = s9->u.C_Ast__Trait.f_groups; __auto_type v_sigs_10 = s9->u.C_Ast__Trait.f_sigs; ({ struct E_Coll__List__Sym__Sym* v_ttps_11 = f_Ty__tparams(p_eff__Region, v_tgs_9, (&N_Coll__Nil__Sym__Sym)); __auto_type res_ = ((f_Coll__length__Sym__Sym(v_ttps_11) != f_Coll__length__Ast__Ty(v_targs_5)) ? f_Ty__clash(p_eff__Region, v_st1_7, ({ struct E_Ty__Clash* o12 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__TraitArity))); o12->tag = 23; o12->u.C_Ty__TraitArity.f_line = v_line_0; o12->u.C_Ty__TraitArity.f_t = v_tn_4; o12; })) : ({ struct E_Coll__List__Sym__Sym* v_tps_12 = f_Ty__tparams(p_eff__Region, v_gs_1, (&N_Coll__Nil__Sym__Sym)); struct E_Coll__List__Ty__Bind* v_tv_13 = f_Ty__rigid(p_eff__Region, v_tps_12, (&N_Coll__Nil__Ty__Bind)); struct E_Coll__List__Ty__Bind* v_sub_14 = f_Ty__zipBind(p_eff__Region, v_ttps_11, f_Ty__terms(p_eff__Region, v_targs_5, v_tv_13, (&N_Coll__Nil__K__Term)), (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = f_Ty__missing(p_eff__Region, v_sigs_10, v_fs_3, v_line_0, f_Ty__methods(p_eff__Region, v_sigs_10, v_fs_3, v_sub_14, v_tv_13, v_st1_7)); res_; })); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__Option__Ast__Trait* f_Ty__traitNamed(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Trait* p_trs, struct E_Sym__Sym* p_n) { srs_tail: return ({ __auto_type s0 = p_trs; s0->tag == 0 ? ({ (&N_Coll__None__Ast__Trait); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_t_0; ({ __auto_type v_m_2 = s2->u.C_Ast__Trait.f_name; ({ __auto_type res_ = (f_Sym__eq(v_m_2, p_n) ? ({ struct E_Coll__Option__Ast__Trait* o3 = (struct E_Coll__Option__Ast__Trait*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__Ast__Trait, u) + sizeof(((struct E_Coll__Option__Ast__Trait*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_t_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Trait* t1 = v_rest_1; struct E_Sym__Sym* t2 = p_n; p_eff__Region = t0; p_trs = t1; p_n = t2; goto srs_tail; (struct E_Coll__Option__Ast__Trait*){0}; })); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__inHead(srs_cap* p_eff__Region, struct E_Ty__St* p_st, int64_t p_line, struct E_Coll__List__Sym__Sym* p_tps, struct E_Ast__Ty* p_head) { srs_tail: return ({ __auto_type s0 = p_tps; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_x_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Ty__St* t1 = (f_Ty__occurs(v_x_0, p_head) ? p_st : f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o2 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NotInHead))); o2->tag = 27; o2->u.C_Ty__NotInHead.f_line = p_line; o2->u.C_Ty__NotInHead.f_x = v_x_0; o2; }))); int64_t t2 = p_line; struct E_Coll__List__Sym__Sym* t3 = v_rest_1; struct E_Ast__Ty* t4 = p_head; p_eff__Region = t0; p_st = t1; p_line = t2; p_tps = t3; p_head = t4; goto srs_tail; (struct E_Ty__St*){0}; }); }); }); } static bool f_Ty__occurs(struct E_Sym__Sym* p_x, struct E_Ast__Ty* p_t) { return ({ __auto_type res_ = ({ __auto_type s0 = p_t; ({ __auto_type v_n_0 = s0->u.C_Ast__Ty.f_name; __auto_type v_args_1 = s0->u.C_Ast__Ty.f_args; ({ __auto_type res_ = (f_Sym__eq(p_x, v_n_0) ? true : f_Ty__occursAll(p_x, v_args_1)); res_; }); }); }); res_; }); } static bool f_Ty__occursAll(struct E_Sym__Sym* p_x, struct E_Coll__List__Ast__Ty* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; (f_Ty__occurs(p_x, v_t_0) ? true : ({ struct E_Sym__Sym* t0 = p_x; struct E_Coll__List__Ast__Ty* t1 = v_rest_1; p_x = t0; p_ts = t1; goto srs_tail; (bool){0}; })); }); }); } -static struct E_Ty__St* f_Ty__methods(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Ty__Bind* p_tv, struct E_Ty__St* p_st) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_n_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_ps_4 = s2->u.C_Ast__Fn.f_params; __auto_type v_ret_5 = s2->u.C_Ast__Fn.f_ret; ({ struct E_Ty__St* v_st1_6 = ({ __auto_type s6 = f_Ty__fnNamed(p_r, p_sigs, v_n_3); s6->tag == 0 ? ({ f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NotMethod))); o6->tag = 24; o6->u.C_Ty__NotMethod.f_line = v_line_2; o6->u.C_Ty__NotMethod.f_m = v_n_3; o6; })); }) : ({ __auto_type v_m_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_m_6; ({ __auto_type v_mps_7 = s7->u.C_Ast__Fn.f_params; __auto_type v_mret_8 = s7->u.C_Ast__Fn.f_ret; ({ bool v_same_9 = (f_Mono__termEq(f_Ty__term(p_r, v_ret_5, p_tv), f_Ty__term(p_r, v_mret_8, p_sub)) && f_Mono__termsEq(f_Ty__binderTerms(p_r, v_ps_4, p_tv, (&N_Coll__Nil__K__Term)), f_Ty__binderTerms(p_r, v_mps_7, p_sub, (&N_Coll__Nil__K__Term)))); __auto_type res_ = (v_same_9 ? p_st : f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o10 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__SigDiffers))); o10->tag = 26; o10->u.C_Ty__SigDiffers.f_line = v_line_2; o10->u.C_Ty__SigDiffers.f_m = v_n_3; o10; }))); res_; }); }); }); res_; }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = p_sigs; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Coll__List__Ty__Bind* t3 = p_sub; struct E_Coll__List__Ty__Bind* t4 = p_tv; struct E_Ty__St* t5 = v_st1_6; p_r = t0; p_sigs = t1; p_fs = t2; p_sub = t3; p_tv = t4; p_st = t5; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__K__Term* f_Ty__binderTerms(srs_cap* p_r, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_r, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Ty__term(p_r, v_t_2, p_tv); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_r = t0; p_bs = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Ty__St* f_Ty__missing(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line, struct E_Ty__St* p_st) { srs_tail: return ({ __auto_type s0 = p_sigs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_m_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ struct E_Ty__St* v_st1_3 = ({ __auto_type s3 = f_Ty__fnNamed(p_r, p_fs, v_n_2); s3->tag == 1 ? ({ p_st; }) : ({ f_Ty__clash(p_r, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__MissingMethod))); o3->tag = 25; o3->u.C_Ty__MissingMethod.f_line = p_line; o3->u.C_Ty__MissingMethod.f_m = v_n_2; o3; })); }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fs; int64_t t3 = p_line; struct E_Ty__St* t4 = v_st1_3; p_r = t0; p_sigs = t1; p_fs = t2; p_line = t3; p_st = t4; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ty__Clash* f_Ty__externSlots(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__SMap__Bool* p_ext, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_line_2 = s2->u.C_Ty__Inst.f_line; __auto_type v_f_3 = s2->u.C_Ty__Inst.f_f; __auto_type v_ts_4 = s2->u.C_Ty__Inst.f_targs; ({ __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Enum* t1 = p_es; struct E_Coll__SMap__Bool* t2 = p_ext; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Inst* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = (f_Pure__has(p_r, p_ext, v_f_3) ? f_Ty__ptrSlots(p_r, p_es, p_s, v_line_2, v_ts_4, p_cs) : p_cs); p_r = t0; p_es = t1; p_ext = t2; p_s = t3; p_is = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__SMap__Bool* f_Ty__externs(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__SMap__Bool* p_m) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; __auto_type v_body_3 = s2->u.C_Ast__Fn.f_body; ({ struct E_Coll__SMap__Bool* v_m2_4 = ({ __auto_type s4 = v_body_3; s4->tag == 1 ? ({ f_Coll__sInsert__Bool(p_r, p_m, v_n_2, true); }) : ({ p_m; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = v_m2_4; p_r = t0; p_fs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_Coll__List__Ty__Clash* f_Ty__ptrSlots(srs_cap* p_r, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__IMap__K__Term* p_s, int64_t p_line, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_t0_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_K__Term* v_t_2 = f_K__reify(p_r, p_s, v_t0_0); bool v_ok_3 = ({ __auto_type s3 = v_t_2; s3->tag == 1 ? ({ __auto_type v_n_3 = s3->u.C_K__Con.f_f; (f_Ty__isEnum(p_es, v_n_3) || Str__eq(f_Sym__str(v_n_3), ((srs_str){(const uint8_t*)"Ptr", 3}))); }) : ({ true; }); }); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Enum* t1 = p_es; struct E_Coll__IMap__K__Term* t2 = p_s; int64_t t3 = p_line; struct E_Coll__List__K__Term* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = (v_ok_3 ? p_cs : ({ struct E_Coll__List__Ty__Clash* o4 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o4 = (struct E_Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ExternSlot))); o4->tag = 28; o4->u.C_Ty__ExternSlot.f_line = p_line; o4->u.C_Ty__ExternSlot.f_t = v_t_2; o4; }); o4->u.C_Coll__Cons.f_t = p_cs; o4; })); p_r = t0; p_es = t1; p_s = t2; p_line = t3; p_ts = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__methods(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ty__Bind* p_sub, struct E_Coll__List__Ty__Bind* p_tv, struct E_Ty__St* p_st) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_line_2 = s2->u.C_Ast__Fn.f_line; __auto_type v_n_3 = s2->u.C_Ast__Fn.f_name; __auto_type v_ps_4 = s2->u.C_Ast__Fn.f_params; __auto_type v_ret_5 = s2->u.C_Ast__Fn.f_ret; ({ struct E_Ty__St* v_st1_6 = ({ __auto_type s6 = f_Ty__fnNamed(p_eff__Region, p_sigs, v_n_3); s6->tag == 0 ? ({ f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o6 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__NotMethod))); o6->tag = 24; o6->u.C_Ty__NotMethod.f_line = v_line_2; o6->u.C_Ty__NotMethod.f_m = v_n_3; o6; })); }) : ({ __auto_type v_m_6 = s6->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s7 = v_m_6; ({ __auto_type v_mps_7 = s7->u.C_Ast__Fn.f_params; __auto_type v_mret_8 = s7->u.C_Ast__Fn.f_ret; ({ bool v_same_9 = (f_Mono__termEq(f_Ty__term(p_eff__Region, v_ret_5, p_tv), f_Ty__term(p_eff__Region, v_mret_8, p_sub)) && f_Mono__termsEq(f_Ty__binderTerms(p_eff__Region, v_ps_4, p_tv, (&N_Coll__Nil__K__Term)), f_Ty__binderTerms(p_eff__Region, v_mps_7, p_sub, (&N_Coll__Nil__K__Term)))); __auto_type res_ = (v_same_9 ? p_st : f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o10 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__SigDiffers))); o10->tag = 26; o10->u.C_Ty__SigDiffers.f_line = v_line_2; o10->u.C_Ty__SigDiffers.f_m = v_n_3; o10; }))); res_; }); }); }); res_; }); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = p_sigs; struct E_Coll__List__Ast__Fn* t2 = v_rest_1; struct E_Coll__List__Ty__Bind* t3 = p_sub; struct E_Coll__List__Ty__Bind* t4 = p_tv; struct E_Ty__St* t5 = v_st1_6; p_eff__Region = t0; p_sigs = t1; p_fs = t2; p_sub = t3; p_tv = t4; p_st = t5; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__K__Term* f_Ty__binderTerms(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Binder* p_bs, struct E_Coll__List__Ty__Bind* p_tv, struct E_Coll__List__K__Term* p_acc) { srs_tail: return ({ __auto_type s0 = p_bs; s0->tag == 0 ? ({ f_Coll__rev__K__Term(p_eff__Region, p_acc); }) : ({ __auto_type v_b_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_b_0; ({ __auto_type v_t_2 = s2->u.C_Ast__Binder.f_ty; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Binder* t1 = v_rest_1; struct E_Coll__List__Ty__Bind* t2 = p_tv; struct E_Coll__List__K__Term* t3 = ({ struct E_Coll__List__K__Term* o3 = (struct E_Coll__List__K__Term*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__K__Term, u) + sizeof(((struct E_Coll__List__K__Term*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = f_Ty__term(p_eff__Region, v_t_2, p_tv); o3->u.C_Coll__Cons.f_t = p_acc; o3; }); p_eff__Region = t0; p_bs = t1; p_tv = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__K__Term*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Ty__St* f_Ty__missing(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_sigs, struct E_Coll__List__Ast__Fn* p_fs, int64_t p_line, struct E_Ty__St* p_st) { srs_tail: return ({ __auto_type s0 = p_sigs; s0->tag == 0 ? ({ p_st; }) : ({ __auto_type v_m_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_m_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; ({ struct E_Ty__St* v_st1_3 = ({ __auto_type s3 = f_Ty__fnNamed(p_eff__Region, p_fs, v_n_2); s3->tag == 1 ? ({ p_st; }) : ({ f_Ty__clash(p_eff__Region, p_st, ({ struct E_Ty__Clash* o3 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__MissingMethod))); o3->tag = 25; o3->u.C_Ty__MissingMethod.f_line = p_line; o3->u.C_Ty__MissingMethod.f_m = v_n_2; o3; })); }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Coll__List__Ast__Fn* t2 = p_fs; int64_t t3 = p_line; struct E_Ty__St* t4 = v_st1_3; p_eff__Region = t0; p_sigs = t1; p_fs = t2; p_line = t3; p_st = t4; goto srs_tail; (struct E_Ty__St*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ty__Clash* f_Ty__externSlots(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__SMap__Bool* p_ext, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Inst* p_is, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_is; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_i_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_i_0; ({ __auto_type v_line_2 = s2->u.C_Ty__Inst.f_line; __auto_type v_f_3 = s2->u.C_Ty__Inst.f_f; __auto_type v_ts_4 = s2->u.C_Ty__Inst.f_targs; ({ __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Enum* t1 = p_es; struct E_Coll__SMap__Bool* t2 = p_ext; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Inst* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = (f_Pure__has(p_eff__Region, p_ext, v_f_3) ? f_Ty__ptrSlots(p_eff__Region, p_es, p_s, v_line_2, v_ts_4, p_cs) : p_cs); p_eff__Region = t0; p_es = t1; p_ext = t2; p_s = t3; p_is = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__SMap__Bool* f_Ty__externs(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__SMap__Bool* p_m) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ p_m; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_n_2 = s2->u.C_Ast__Fn.f_name; __auto_type v_body_3 = s2->u.C_Ast__Fn.f_body; ({ struct E_Coll__SMap__Bool* v_m2_4 = ({ __auto_type s4 = v_body_3; s4->tag == 1 ? ({ f_Coll__sInsert__Bool(p_eff__Region, p_m, v_n_2, true); }) : ({ p_m; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = v_rest_1; struct E_Coll__SMap__Bool* t2 = v_m2_4; p_eff__Region = t0; p_fs = t1; p_m = t2; goto srs_tail; (struct E_Coll__SMap__Bool*){0}; }); res_; }); }); }); res_; }); }); }); } +static struct E_Coll__List__Ty__Clash* f_Ty__ptrSlots(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__IMap__K__Term* p_s, int64_t p_line, struct E_Coll__List__K__Term* p_ts, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ p_cs; }) : ({ __auto_type v_t0_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ struct E_K__Term* v_t_2 = f_K__reify(p_eff__Region, p_s, v_t0_0); bool v_ok_3 = ({ __auto_type s3 = v_t_2; s3->tag == 1 ? ({ __auto_type v_n_3 = s3->u.C_K__Con.f_f; (f_Ty__isEnum(p_es, v_n_3) || Str__eq(f_Sym__str(v_n_3), ((srs_str){(const uint8_t*)"Ptr", 3}))); }) : ({ true; }); }); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Enum* t1 = p_es; struct E_Coll__IMap__K__Term* t2 = p_s; int64_t t3 = p_line; struct E_Coll__List__K__Term* t4 = v_rest_1; struct E_Coll__List__Ty__Clash* t5 = (v_ok_3 ? p_cs : ({ struct E_Coll__List__Ty__Clash* o4 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o4->tag = 1; o4->u.C_Coll__Cons.f_h = ({ struct E_Ty__Clash* o4 = (struct E_Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Clash, u) + sizeof(((struct E_Ty__Clash*)0)->u.C_Ty__ExternSlot))); o4->tag = 28; o4->u.C_Ty__ExternSlot.f_line = p_line; o4->u.C_Ty__ExternSlot.f_t = v_t_2; o4; }); o4->u.C_Coll__Cons.f_t = p_cs; o4; })); p_eff__Region = t0; p_es = t1; p_s = t2; p_line = t3; p_ts = t4; p_cs = t5; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); res_; }); }); }); } static bool f_Ty__hasSpec(struct E_Coll__List__Ast__Decl* p_ds) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ false; }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 2 ? ({ true; }) : ({ ({ struct E_Coll__List__Ast__Decl* t0 = v_rest_1; p_ds = t0; goto srs_tail; (bool){0}; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ struct E_Coll__List__Ast__Decl* t0 = v_rest_1; p_ds = t0; goto srs_tail; (bool){0}; }); }); }); }); }); } static bool f_Ty__isProtoT(struct E_Coll__List__Ast__Proto* p_ps, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; f_Ty__isProto(p_ps, v_n_0); }) : ({ false; }); }); } -static struct E_Sym__Sym* f_Ty__headOf(srs_cap* p_r, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; v_n_0; }) : ({ f_Sym__of(p_r, ((srs_str){(const uint8_t*)"?", 1})); }); }); } -static struct E_Coll__List__Ty__Goal* f_Ty__typeGoals(srs_cap* p_r, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Coll__List__Ty__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_tgs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_line_2 = s2->u.C_Tl__Goal.f_line; __auto_type v_f_3 = s2->u.C_Tl__Goal.f_fn; __auto_type v_goal_4 = s2->u.C_Tl__Goal.f_goal; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__fnNamed(p_r, p_fns, v_f_3); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = p_fns; struct E_Coll__List__Tl__Goal* t2 = v_rest_1; struct E_Coll__List__Ty__Goal* t3 = p_acc; p_r = t0; p_fns = t1; p_tgs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Goal*){0}; }); }) : ({ __auto_type v_fd_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_fd_5; ({ __auto_type v_gs_6 = s6->u.C_Ast__Fn.f_groups; ({ struct E_Coll__List__Ty__Bind* v_tv_7 = f_Ty__rigid(p_r, f_Ty__tparams(p_r, v_gs_6, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Fn* t1 = p_fns; struct E_Coll__List__Tl__Goal* t2 = v_rest_1; struct E_Coll__List__Ty__Goal* t3 = ({ struct E_Coll__List__Ty__Goal* o8 = (struct E_Coll__List__Ty__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Goal, u) + sizeof(((struct E_Coll__List__Ty__Goal*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_Ty__Goal* o8 = (struct E_Ty__Goal*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Ty__Goal, u) + sizeof(((struct E_Ty__Goal*)0)->u.C_Ty__Goal))); o8->tag = 0; o8->u.C_Ty__Goal.f_line = v_line_2; o8->u.C_Ty__Goal.f_goal = f_Ty__term(p_r, v_goal_4, v_tv_7); o8->u.C_Ty__Goal.f_locals = f_Ty__binds(p_r, f_Ty__evidence(p_r, v_gs_6, (&N_Coll__Nil__Ast__Binder)), v_tv_7, (&N_Coll__Nil__Ty__Bind)); o8->u.C_Ty__Goal.f_chosen = (&N_Coll__None__Sym__Sym); o8; }); o8->u.C_Coll__Cons.f_t = p_acc; o8; }); p_r = t0; p_fns = t1; p_tgs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Goal*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } -static struct E_S2c__Read* f_S2c__read(srs_cap* p_r, srs_cap* p_eff__Args, srs_cap* p_eff__Files, int64_t p_i, int64_t p_base, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__S2c__Err* p_errs, struct E_Coll__List__S2c__File* p_fs) { srs_tail: return ({ __auto_type res_ = ((p_i >= ({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; })) ? ({ struct E_S2c__Read* o0 = (struct E_S2c__Read*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Read, u) + sizeof(((struct E_S2c__Read*)0)->u.C_S2c__Read))); o0->tag = 0; o0->u.C_S2c__Read.f_ds = f_Coll__rev__Ast__Decl(p_r, p_ds); o0->u.C_S2c__Read.f_errs = f_Coll__rev__S2c__Err(p_r, p_errs); o0->u.C_S2c__Read.f_files = p_fs; o0; }) : ({ srs_str v_p_0 = ({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, p_i); p_eff__Args->live = 0; r_; }); srs_str v_src_1 = ({ __auto_type r_ = ((srs_str(*)(void*, srs_str))(p_eff__Files->vt[0]))(p_eff__Files->self, v_p_0); p_eff__Files->live = 0; r_; }); __auto_type res_ = ((Str__len(v_src_1) < ((int64_t)0)) ? ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Args; srs_cap* t2 = p_eff__Files; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_base; struct E_Coll__List__Ast__Decl* t5 = p_ds; struct E_Coll__List__S2c__Err* t6 = ({ struct E_Coll__List__S2c__Err* o2 = (struct E_Coll__List__S2c__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__S2c__Err, u) + sizeof(((struct E_Coll__List__S2c__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_S2c__Err* o2 = (struct E_S2c__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Err, u) + sizeof(((struct E_S2c__Err*)0)->u.C_S2c__NoFile))); o2->tag = 0; o2->u.C_S2c__NoFile.f_path = v_p_0; o2; }); o2->u.C_Coll__Cons.f_t = p_errs; o2; }); struct E_Coll__List__S2c__File* t7 = p_fs; p_r = t0; p_eff__Args = t1; p_eff__Files = t2; p_i = t3; p_base = t4; p_ds = t5; p_errs = t6; p_fs = t7; goto srs_tail; (struct E_S2c__Read*){0}; }) : ({ struct E_Coll__List__S2c__File* v_fs2_2 = ({ struct E_Coll__List__S2c__File* o2 = (struct E_Coll__List__S2c__File*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__S2c__File, u) + sizeof(((struct E_Coll__List__S2c__File*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_S2c__File* o2 = (struct E_S2c__File*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__File, u) + sizeof(((struct E_S2c__File*)0)->u.C_S2c__File))); o2->tag = 0; o2->u.C_S2c__File.f_path = v_p_0; o2->u.C_S2c__File.f_base = p_base; o2->u.C_S2c__File.f_text = v_src_1; o2; }); o2->u.C_Coll__Cons.f_t = p_fs; o2; }); int64_t v_next_3 = (p_base + f_S2c__lineCount(v_src_1, ((int64_t)0), ((int64_t)1))); __auto_type res_ = ({ __auto_type s4 = f_Parse__sourceFrom(p_r, v_src_1, p_base); s4->tag == 0 ? ({ __auto_type v_fds_4 = s4->u.C_Parse__Ok.f_v; ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Args; srs_cap* t2 = p_eff__Files; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = v_next_3; struct E_Coll__List__Ast__Decl* t5 = f_Coll__revOnto__Ast__Decl(p_r, v_fds_4, p_ds); struct E_Coll__List__S2c__Err* t6 = p_errs; struct E_Coll__List__S2c__File* t7 = v_fs2_2; p_r = t0; p_eff__Args = t1; p_eff__Files = t2; p_i = t3; p_base = t4; p_ds = t5; p_errs = t6; p_fs = t7; goto srs_tail; (struct E_S2c__Read*){0}; }); }) : ({ __auto_type v_line_4 = s4->u.C_Parse__Err.f_line; __auto_type v_want_5 = s4->u.C_Parse__Err.f_want; ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Args; srs_cap* t2 = p_eff__Files; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = v_next_3; struct E_Coll__List__Ast__Decl* t5 = p_ds; struct E_Coll__List__S2c__Err* t6 = ({ struct E_Coll__List__S2c__Err* o6 = (struct E_Coll__List__S2c__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__S2c__Err, u) + sizeof(((struct E_Coll__List__S2c__Err*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_S2c__Err* o6 = (struct E_S2c__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Err, u) + sizeof(((struct E_S2c__Err*)0)->u.C_S2c__Syntax))); o6->tag = 1; o6->u.C_S2c__Syntax.f_line = v_line_4; o6->u.C_S2c__Syntax.f_want = v_want_5; o6; }); o6->u.C_Coll__Cons.f_t = p_errs; o6; }); struct E_Coll__List__S2c__File* t7 = v_fs2_2; p_r = t0; p_eff__Args = t1; p_eff__Files = t2; p_i = t3; p_base = t4; p_ds = t5; p_errs = t6; p_fs = t7; goto srs_tail; (struct E_S2c__Read*){0}; }); }); }); res_; })); res_; })); res_; }); } -static struct E_Coll__List__S2c__Err* f_Coll__rev__S2c__Err(srs_cap* p_r, struct E_Coll__List__S2c__Err* p_xs) { return f_Coll__revOnto__S2c__Err(p_r, p_xs, (&N_Coll__Nil__S2c__Err)); } -static struct E_Coll__List__S2c__Err* f_Coll__revOnto__S2c__Err(srs_cap* p_r, struct E_Coll__List__S2c__Err* p_xs, struct E_Coll__List__S2c__Err* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__S2c__Err* t1 = v_t_1; struct E_Coll__List__S2c__Err* t2 = ({ struct E_Coll__List__S2c__Err* o2 = (struct E_Coll__List__S2c__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__S2c__Err, u) + sizeof(((struct E_Coll__List__S2c__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__S2c__Err*){0}; }); }); }); } +static struct E_Sym__Sym* f_Ty__headOf(srs_cap* p_eff__Region, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; v_n_0; }) : ({ f_Sym__of(p_eff__Region, ((srs_str){(const uint8_t*)"?", 1})); }); }); } +static struct E_Coll__List__Ty__Goal* f_Ty__typeGoals(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Fn* p_fns, struct E_Coll__List__Tl__Goal* p_tgs, struct E_Coll__List__Ty__Goal* p_acc) { srs_tail: return ({ __auto_type s0 = p_tgs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_g_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_g_0; ({ __auto_type v_line_2 = s2->u.C_Tl__Goal.f_line; __auto_type v_f_3 = s2->u.C_Tl__Goal.f_fn; __auto_type v_goal_4 = s2->u.C_Tl__Goal.f_goal; ({ __auto_type res_ = ({ __auto_type s5 = f_Ty__fnNamed(p_eff__Region, p_fns, v_f_3); s5->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = p_fns; struct E_Coll__List__Tl__Goal* t2 = v_rest_1; struct E_Coll__List__Ty__Goal* t3 = p_acc; p_eff__Region = t0; p_fns = t1; p_tgs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Goal*){0}; }); }) : ({ __auto_type v_fd_5 = s5->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s6 = v_fd_5; ({ __auto_type v_gs_6 = s6->u.C_Ast__Fn.f_groups; ({ struct E_Coll__List__Ty__Bind* v_tv_7 = f_Ty__rigid(p_eff__Region, f_Ty__tparams(p_eff__Region, v_gs_6, (&N_Coll__Nil__Sym__Sym)), (&N_Coll__Nil__Ty__Bind)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Fn* t1 = p_fns; struct E_Coll__List__Tl__Goal* t2 = v_rest_1; struct E_Coll__List__Ty__Goal* t3 = ({ struct E_Coll__List__Ty__Goal* o8 = (struct E_Coll__List__Ty__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Goal, u) + sizeof(((struct E_Coll__List__Ty__Goal*)0)->u.C_Coll__Cons))); o8->tag = 1; o8->u.C_Coll__Cons.f_h = ({ struct E_Ty__Goal* o8 = (struct E_Ty__Goal*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Ty__Goal, u) + sizeof(((struct E_Ty__Goal*)0)->u.C_Ty__Goal))); o8->tag = 0; o8->u.C_Ty__Goal.f_line = v_line_2; o8->u.C_Ty__Goal.f_goal = f_Ty__term(p_eff__Region, v_goal_4, v_tv_7); o8->u.C_Ty__Goal.f_locals = f_Ty__binds(p_eff__Region, f_Ty__evidence(p_eff__Region, v_gs_6, (&N_Coll__Nil__Ast__Binder)), v_tv_7, (&N_Coll__Nil__Ty__Bind)); o8->u.C_Ty__Goal.f_chosen = (&N_Coll__None__Sym__Sym); o8; }); o8->u.C_Coll__Cons.f_t = p_acc; o8; }); p_eff__Region = t0; p_fns = t1; p_tgs = t2; p_acc = t3; goto srs_tail; (struct E_Coll__List__Ty__Goal*){0}; }); res_; }); }); }); res_; }); }); }); res_; }); }); }); res_; }); }); }); } +static struct E_S2c__Read* f_S2c__read(srs_cap* p_eff__Args, srs_cap* p_eff__Region, srs_cap* p_eff__Files, int64_t p_i, int64_t p_base, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__S2c__Err* p_errs, struct E_Coll__List__S2c__File* p_fs) { srs_tail: return ({ __auto_type res_ = ((p_i >= ({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; })) ? ({ struct E_S2c__Read* o0 = (struct E_S2c__Read*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Read, u) + sizeof(((struct E_S2c__Read*)0)->u.C_S2c__Read))); o0->tag = 0; o0->u.C_S2c__Read.f_ds = f_Coll__rev__Ast__Decl(p_eff__Region, p_ds); o0->u.C_S2c__Read.f_errs = f_Coll__rev__S2c__Err(p_eff__Region, p_errs); o0->u.C_S2c__Read.f_files = p_fs; o0; }) : ({ srs_str v_p_0 = ({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, p_i); p_eff__Args->live = 0; r_; }); srs_str v_src_1 = ({ __auto_type r_ = ((srs_str(*)(void*, srs_str))(p_eff__Files->vt[0]))(p_eff__Files->self, v_p_0); p_eff__Files->live = 0; r_; }); __auto_type res_ = ((Str__len(v_src_1) < ((int64_t)0)) ? ({ srs_cap* t0 = p_eff__Args; srs_cap* t1 = p_eff__Region; srs_cap* t2 = p_eff__Files; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = p_base; struct E_Coll__List__Ast__Decl* t5 = p_ds; struct E_Coll__List__S2c__Err* t6 = ({ struct E_Coll__List__S2c__Err* o2 = (struct E_Coll__List__S2c__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__S2c__Err, u) + sizeof(((struct E_Coll__List__S2c__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_S2c__Err* o2 = (struct E_S2c__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Err, u) + sizeof(((struct E_S2c__Err*)0)->u.C_S2c__NoFile))); o2->tag = 0; o2->u.C_S2c__NoFile.f_path = v_p_0; o2; }); o2->u.C_Coll__Cons.f_t = p_errs; o2; }); struct E_Coll__List__S2c__File* t7 = p_fs; p_eff__Args = t0; p_eff__Region = t1; p_eff__Files = t2; p_i = t3; p_base = t4; p_ds = t5; p_errs = t6; p_fs = t7; goto srs_tail; (struct E_S2c__Read*){0}; }) : ({ struct E_Coll__List__S2c__File* v_fs2_2 = ({ struct E_Coll__List__S2c__File* o2 = (struct E_Coll__List__S2c__File*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__S2c__File, u) + sizeof(((struct E_Coll__List__S2c__File*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = ({ struct E_S2c__File* o2 = (struct E_S2c__File*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__File, u) + sizeof(((struct E_S2c__File*)0)->u.C_S2c__File))); o2->tag = 0; o2->u.C_S2c__File.f_path = v_p_0; o2->u.C_S2c__File.f_base = p_base; o2->u.C_S2c__File.f_text = v_src_1; o2; }); o2->u.C_Coll__Cons.f_t = p_fs; o2; }); int64_t v_next_3 = (p_base + f_S2c__lineCount(v_src_1, ((int64_t)0), ((int64_t)1))); __auto_type res_ = ({ __auto_type s4 = f_Parse__sourceFrom(p_eff__Region, v_src_1, p_base); s4->tag == 0 ? ({ __auto_type v_fds_4 = s4->u.C_Parse__Ok.f_v; ({ srs_cap* t0 = p_eff__Args; srs_cap* t1 = p_eff__Region; srs_cap* t2 = p_eff__Files; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = v_next_3; struct E_Coll__List__Ast__Decl* t5 = f_Coll__revOnto__Ast__Decl(p_eff__Region, v_fds_4, p_ds); struct E_Coll__List__S2c__Err* t6 = p_errs; struct E_Coll__List__S2c__File* t7 = v_fs2_2; p_eff__Args = t0; p_eff__Region = t1; p_eff__Files = t2; p_i = t3; p_base = t4; p_ds = t5; p_errs = t6; p_fs = t7; goto srs_tail; (struct E_S2c__Read*){0}; }); }) : ({ __auto_type v_line_4 = s4->u.C_Parse__Err.f_line; __auto_type v_want_5 = s4->u.C_Parse__Err.f_want; ({ srs_cap* t0 = p_eff__Args; srs_cap* t1 = p_eff__Region; srs_cap* t2 = p_eff__Files; int64_t t3 = (p_i + ((int64_t)1)); int64_t t4 = v_next_3; struct E_Coll__List__Ast__Decl* t5 = p_ds; struct E_Coll__List__S2c__Err* t6 = ({ struct E_Coll__List__S2c__Err* o6 = (struct E_Coll__List__S2c__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__S2c__Err, u) + sizeof(((struct E_Coll__List__S2c__Err*)0)->u.C_Coll__Cons))); o6->tag = 1; o6->u.C_Coll__Cons.f_h = ({ struct E_S2c__Err* o6 = (struct E_S2c__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Err, u) + sizeof(((struct E_S2c__Err*)0)->u.C_S2c__Syntax))); o6->tag = 1; o6->u.C_S2c__Syntax.f_line = v_line_4; o6->u.C_S2c__Syntax.f_want = v_want_5; o6; }); o6->u.C_Coll__Cons.f_t = p_errs; o6; }); struct E_Coll__List__S2c__File* t7 = v_fs2_2; p_eff__Args = t0; p_eff__Region = t1; p_eff__Files = t2; p_i = t3; p_base = t4; p_ds = t5; p_errs = t6; p_fs = t7; goto srs_tail; (struct E_S2c__Read*){0}; }); }); }); res_; })); res_; })); res_; }); } +static struct E_Coll__List__S2c__Err* f_Coll__rev__S2c__Err(srs_cap* p_eff__Region, struct E_Coll__List__S2c__Err* p_xs) { return f_Coll__revOnto__S2c__Err(p_eff__Region, p_xs, (&N_Coll__Nil__S2c__Err)); } +static struct E_Coll__List__S2c__Err* f_Coll__revOnto__S2c__Err(srs_cap* p_eff__Region, struct E_Coll__List__S2c__Err* p_xs, struct E_Coll__List__S2c__Err* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__S2c__Err* t1 = v_t_1; struct E_Coll__List__S2c__Err* t2 = ({ struct E_Coll__List__S2c__Err* o2 = (struct E_Coll__List__S2c__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__S2c__Err, u) + sizeof(((struct E_Coll__List__S2c__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__S2c__Err*){0}; }); }); }); } static int64_t f_S2c__lineCount(srs_str p_s, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = ((p_i >= Str__len(p_s)) ? p_n : ({ srs_str t0 = p_s; int64_t t1 = (p_i + ((int64_t)1)); int64_t t2 = ((Str__at(p_s, p_i) == ((int64_t)10)) ? (p_n + ((int64_t)1)) : p_n); p_s = t0; p_i = t1; p_n = t2; goto srs_tail; (int64_t){0}; })); res_; }); } -static int64_t f_S2c__diag(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, srs_str p_code, int64_t p_line, srs_str p_title, struct E_S2c__What* p_w, srs_str p_help) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"error[", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_code); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]: ", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_title); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s0 = p_w; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_S2c__Name.f_n; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" '", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, f_Sym__str(v_n_0)); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"'", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_S2c__Text.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, v_x_0); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_t_0 = s0->u.C_S2c__Type.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_S2c__term(p_eff__Console, v_t_0); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s0 = f_S2c__fileOf(p_r, p_fs, p_line); s0->tag == 1 ? ({ __auto_type v_f_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_p_1 = s1->u.C_S2c__File.f_path; __auto_type v_base_2 = s1->u.C_S2c__File.f_base; __auto_type v_text_3 = s1->u.C_S2c__File.f_text; ({ int64_t v_k_4 = ((p_line - v_base_2) + ((int64_t)1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" --> ", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, v_p_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[4]))(p_eff__Console->self, v_k_4); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n |\n", 7})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__pad(p_eff__Console, v_k_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[4]))(p_eff__Console->self, v_k_4); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" | ", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, f_S2c__lineText(v_text_3, v_k_4, ((int64_t)0), ((int64_t)1))); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n |\n", 7})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type s0 = p_w; s0->tag == 3 ? ({ __auto_type v_want_0 = s0->u.C_S2c__Want.f_want; __auto_type v_got_1 = s0->u.C_S2c__Want.f_got; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = expected: ", 16})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__term(p_eff__Console, v_want_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n = found: ", 17})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__term(p_eff__Console, v_got_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = help: ", 12})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_help); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); } -static struct E_Coll__Option__S2c__File* f_S2c__fileOf(srs_cap* p_r, struct E_Coll__List__S2c__File* p_fs, int64_t p_line) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ (&N_Coll__None__S2c__File); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_base_2 = s2->u.C_S2c__File.f_base; ({ __auto_type res_ = ((p_line >= v_base_2) ? ({ struct E_Coll__Option__S2c__File* o3 = (struct E_Coll__Option__S2c__File*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__Option__S2c__File, u) + sizeof(((struct E_Coll__Option__S2c__File*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_f_0; o3; }) : ({ srs_cap* t0 = p_r; struct E_Coll__List__S2c__File* t1 = v_rest_1; int64_t t2 = p_line; p_r = t0; p_fs = t1; p_line = t2; goto srs_tail; (struct E_Coll__Option__S2c__File*){0}; })); res_; }); }); }); res_; }); }); }); } +static int64_t f_S2c__diag(srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, srs_str p_code, int64_t p_line, srs_str p_title, struct E_S2c__What* p_w, srs_str p_help) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"error[", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_code); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]: ", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_title); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s0 = p_w; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_S2c__Name.f_n; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" '", 2})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, f_Sym__str(v_n_0)); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"'", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 4 ? ({ __auto_type v_x_0 = s0->u.C_S2c__Text.f_s; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, v_x_0); p_eff__Console->live = 0; r_; }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_t_0 = s0->u.C_S2c__Type.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = f_S2c__term(p_eff__Console, v_t_0); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type s0 = f_S2c__fileOf(p_eff__Region, p_fs, p_line); s0->tag == 1 ? ({ __auto_type v_f_0 = s0->u.C_Coll__Some.f_v; ({ __auto_type res_ = ({ __auto_type s1 = v_f_0; ({ __auto_type v_p_1 = s1->u.C_S2c__File.f_path; __auto_type v_base_2 = s1->u.C_S2c__File.f_base; __auto_type v_text_3 = s1->u.C_S2c__File.f_text; ({ int64_t v_k_4 = ((p_line - v_base_2) + ((int64_t)1)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" --> ", 6})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, v_p_1); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)":", 1})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[4]))(p_eff__Console->self, v_k_4); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n |\n", 7})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__pad(p_eff__Console, v_k_4)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[4]))(p_eff__Console->self, v_k_4); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" | ", 3})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, f_S2c__lineText(v_text_3, v_k_4, ((int64_t)0), ((int64_t)1))); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n |\n", 7})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type s0 = p_w; s0->tag == 3 ? ({ __auto_type v_want_0 = s0->u.C_S2c__Want.f_want; __auto_type v_got_1 = s0->u.C_S2c__Want.f_got; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = expected: ", 16})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__term(p_eff__Console, v_want_0)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n = found: ", 17})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__term(p_eff__Console, v_got_1)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ ((int64_t)0); }); })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" = help: ", 12})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_help); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; }); res_; }); } +static struct E_Coll__Option__S2c__File* f_S2c__fileOf(srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, int64_t p_line) { srs_tail: return ({ __auto_type s0 = p_fs; s0->tag == 0 ? ({ (&N_Coll__None__S2c__File); }) : ({ __auto_type v_f_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_f_0; ({ __auto_type v_base_2 = s2->u.C_S2c__File.f_base; ({ __auto_type res_ = ((p_line >= v_base_2) ? ({ struct E_Coll__Option__S2c__File* o3 = (struct E_Coll__Option__S2c__File*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__Option__S2c__File, u) + sizeof(((struct E_Coll__Option__S2c__File*)0)->u.C_Coll__Some))); o3->tag = 1; o3->u.C_Coll__Some.f_v = v_f_0; o3; }) : ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__S2c__File* t1 = v_rest_1; int64_t t2 = p_line; p_eff__Region = t0; p_fs = t1; p_line = t2; goto srs_tail; (struct E_Coll__Option__S2c__File*){0}; })); res_; }); }); }); res_; }); }); }); } static int64_t f_S2c__pad(srs_cap* p_eff__Console, int64_t p_k) { return ((p_k < ((int64_t)10)) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 2})); p_eff__Console->live = 0; r_; }) : ((p_k < ((int64_t)100)) ? ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; }) : ((int64_t)0))); } static srs_str f_S2c__lineText(srs_str p_s, int64_t p_k, int64_t p_i, int64_t p_n) { srs_tail: return ({ __auto_type res_ = ((p_n == p_k) ? Str__slice(p_s, p_i, f_S2c__lineEnd(p_s, p_i)) : ((p_i >= Str__len(p_s)) ? ((srs_str){(const uint8_t*)"", 0}) : ({ srs_str t0 = p_s; int64_t t1 = p_k; int64_t t2 = (p_i + ((int64_t)1)); int64_t t3 = ((Str__at(p_s, p_i) == ((int64_t)10)) ? (p_n + ((int64_t)1)) : p_n); p_s = t0; p_k = t1; p_i = t2; p_n = t3; goto srs_tail; (srs_str){0}; }))); res_; }); } static int64_t f_S2c__lineEnd(srs_str p_s, int64_t p_i) { srs_tail: return (((p_i >= Str__len(p_s)) || (Str__at(p_s, p_i) == ((int64_t)10))) ? p_i : ({ srs_str t0 = p_s; int64_t t1 = (p_i + ((int64_t)1)); p_s = t0; p_i = t1; goto srs_tail; (int64_t){0}; })); } -static int64_t f_S2c__showErrs(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__S2c__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_e_0; s2->tag == 0 ? ({ __auto_type v_p_2 = s2->u.C_S2c__NoFile.f_path; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"error[no-file]: cannot read ", 28})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, v_p_2); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n = help: check the path and that the file is readable\n", 58})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_line_2 = s2->u.C_S2c__Syntax.f_line; __auto_type v_want_3 = s2->u.C_S2c__Syntax.f_want; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"parse", 5}), v_line_2, ((srs_str){(const uint8_t*)"parse error, expected", 21}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Text))); o4->tag = 4; o4->u.C_S2c__Text.f_s = v_want_3; o4; }), ((srs_str){(const uint8_t*)"fix the syntax on this line", 27})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__S2c__Err* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_fs = t2; p_es = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_S2c__showClashes(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Mismatch.f_line; __auto_type v_got_3 = s2->u.C_Ty__Mismatch.f_got; __auto_type v_want_4 = s2->u.C_Ty__Mismatch.f_want; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"mismatch", 8}), v_l_2, ((srs_str){(const uint8_t*)"the value has the wrong type", 28}), ({ struct E_S2c__What* o5 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Want))); o5->tag = 3; o5->u.C_S2c__Want.f_want = f_K__reify(p_r, p_s, v_want_4); o5->u.C_S2c__Want.f_got = f_K__reify(p_r, p_s, v_got_3); o5; }), ((srs_str){(const uint8_t*)"give a value of the expected type, or change the declared type", 62})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Unknown.f_line; __auto_type v_n_3 = s2->u.C_Ty__Unknown.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-name", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown name", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"declare it, or fix its spelling (module members are written qualified: Foo.bar)", 79})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Arity.f_line; __auto_type v_n_3 = s2->u.C_Ty__Arity.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"arity", 5}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of args to", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"pass one arg per param of its declaration", 41})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotEnum.f_line; __auto_type v_t_3 = s2->u.C_Ty__NotEnum.f_got; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-enum", 8}), v_l_2, ((srs_str){(const uint8_t*)"a match needs an enum, not", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = f_K__reify(p_r, p_s, v_t_3); o4; }), ((srs_str){(const uint8_t*)"match on a value of an enum type", 32})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NoOp.f_line; __auto_type v_n_3 = s2->u.C_Ty__NoOp.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-op", 5}), v_l_2, ((srs_str){(const uint8_t*)"no op or trait method", 21}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"call an op of the capability's protocol, or a method of the evidence's trait", 76})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Ty__CannotInfer.f_line; __auto_type v_n_3 = s2->u.C_Ty__CannotInfer.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"cannot-infer", 12}), v_l_2, ((srs_str){(const uint8_t*)"cannot infer the type args of", 29}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"write them: f[T](x), or annotate the val", 40})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NoCap.f_line; __auto_type v_p_3 = s2->u.C_Ty__NoCap.f_p; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-capability", 13}), v_l_2, ((srs_str){(const uint8_t*)"no single capability in scope of", 32}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_p_3; o4; }), ((srs_str){(const uint8_t*)"open one (handle r = Srs.Arena()) or take it as a {} binder; with two, choose one: f{a}(x)", 90})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Impure.f_line; __auto_type v_n_3 = s2->u.C_Ty__Impure.f_f; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"impure-call", 11}), v_l_2, ((srs_str){(const uint8_t*)"a spec def calls only pure fns, not", 35}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"a spec def runs at compile time: call only fns with no effects", 62})); }) : s2->tag == 8 ? ({ __auto_type v_l_2 = s2->u.C_Ty__SpecHandle.f_line; __auto_type v_h_3 = s2->u.C_Ty__SpecHandle.f_h; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"spec-handle", 11}), v_l_2, ((srs_str){(const uint8_t*)"a spec def opens no handler, not", 32}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_h_3; o4; }), ((srs_str){(const uint8_t*)"a spec def has no Region: build data without one", 48})); }) : s2->tag == 9 ? ({ __auto_type v_rel_2 = s2->u.C_Ty__PureRules.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"internal", 8}), ((int64_t)0), ((srs_str){(const uint8_t*)"the purity rules are ill-formed at", 34}), ({ struct E_S2c__What* o3 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o3->tag = 1; o3->u.C_S2c__Name.f_n = v_rel_2; o3; }), ((srs_str){(const uint8_t*)"a bug in s2: report it", 22})); }) : s2->tag == 10 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotExhaustive.f_line; __auto_type v_n_3 = s2->u.C_Ty__NotExhaustive.f_missing; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-exhaustive", 14}), v_l_2, ((srs_str){(const uint8_t*)"the match misses the case", 25}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"add an arm for it, or a `_` arm", 31})); }) : s2->tag == 11 ? ({ __auto_type v_l_2 = s2->u.C_Ty__PatArity.f_line; __auto_type v_n_3 = s2->u.C_Ty__PatArity.f_c; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"pattern-arity", 13}), v_l_2, ((srs_str){(const uint8_t*)"the pattern binds another number of fields than", 47}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"bind one name (or _) per field of the case", 42})); }) : s2->tag == 12 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NoGiven.f_line; __auto_type v_t_3 = s2->u.C_Ty__NoGiven.f_goal; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-given", 8}), v_l_2, ((srs_str){(const uint8_t*)"no given for", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"declare a given for this type, or take the evidence as a {} binder", 66})); }) : s2->tag == 13 ? ({ __auto_type v_l_2 = s2->u.C_Ty__AmbigGivens.f_line; __auto_type v_t_3 = s2->u.C_Ty__AmbigGivens.f_goal; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"ambiguous-givens", 16}), v_l_2, ((srs_str){(const uint8_t*)"two givens tie for", 18}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"make one head more specific, or choose the evidence: f{e}(x)", 60})); }) : s2->tag == 14 ? ({ __auto_type v_l_2 = s2->u.C_Ty__AmbigEvidence.f_line; __auto_type v_t_3 = s2->u.C_Ty__AmbigEvidence.f_goal; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"ambiguous-evidence", 18}), v_l_2, ((srs_str){(const uint8_t*)"two local evidences prove", 25}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"choose one: f{e}(x)", 19})); }) : s2->tag == 15 ? ({ __auto_type v_l_2 = s2->u.C_Ty__GivenFuel.f_line; __auto_type v_t_3 = s2->u.C_Ty__GivenFuel.f_goal; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"given-fuel", 10}), v_l_2, ((srs_str){(const uint8_t*)"the given search ran out of fuel at", 35}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"a given clause needs itself at a bigger type: break the loop", 60})); }) : s2->tag == 16 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ChosenBad.f_line; __auto_type v_t_3 = s2->u.C_Ty__ChosenBad.f_goal; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"chosen-evidence", 15}), v_l_2, ((srs_str){(const uint8_t*)"the chosen evidence does not prove", 34}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"choose a local whose type is the goal", 37})); }) : s2->tag == 17 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ChosenCount.f_line; __auto_type v_n_3 = s2->u.C_Ty__ChosenCount.f_f; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"chosen-count", 12}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of chosen evidence for", 35}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"choose one name per {} binder of the callee", 43})); }) : s2->tag == 18 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ChosenNotCap.f_line; __auto_type v_p_3 = s2->u.C_Ty__ChosenNotCap.f_p; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"chosen-not-capability", 21}), v_l_2, ((srs_str){(const uint8_t*)"the chosen name is not a capability of", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_p_3; o4; }), ((srs_str){(const uint8_t*)"choose a local opened by a handler of this protocol", 51})); }) : s2->tag == 19 ? ({ __auto_type v_l_2 = s2->u.C_Ty__EvidenceValue.f_line; __auto_type v_x_3 = s2->u.C_Ty__EvidenceValue.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"evidence-value", 14}), v_l_2, ((srs_str){(const uint8_t*)"evidence is only a method receiver, not a value:", 48}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"call its methods: e.m(x)", 24})); }) : s2->tag == 20 ? ({ __auto_type v_l_2 = s2->u.C_Ty__CapValue.f_line; __auto_type v_x_3 = s2->u.C_Ty__CapValue.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"capability-value", 16}), v_l_2, ((srs_str){(const uint8_t*)"a capability is second-class, not a value:", 42}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"pass it as a {} binder: f{c}(x)", 31})); }) : s2->tag == 21 ? ({ __auto_type v_l_2 = s2->u.C_Ty__BinderHides.f_line; __auto_type v_x_3 = s2->u.C_Ty__BinderHides.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"binder-hides-type", 17}), v_l_2, ((srs_str){(const uint8_t*)"a [] binder hides the type", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"rename the binder", 17})); }) : s2->tag == 22 ? ({ __auto_type v_l_2 = s2->u.C_Ty__CapParam.f_line; __auto_type v_x_3 = s2->u.C_Ty__CapParam.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"capability-param", 16}), v_l_2, ((srs_str){(const uint8_t*)"a capability is a {} binder, not a param:", 41}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"write it as {x: P} before the params", 36})); }) : s2->tag == 23 ? ({ __auto_type v_l_2 = s2->u.C_Ty__TraitArity.f_line; __auto_type v_t_3 = s2->u.C_Ty__TraitArity.f_t; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"trait-arity", 11}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of type args for the trait", 39}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_t_3; o4; }), ((srs_str){(const uint8_t*)"give one type arg per [] binder of the trait", 44})); }) : s2->tag == 24 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotMethod.f_line; __auto_type v_m_3 = s2->u.C_Ty__NotMethod.f_m; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-a-method", 12}), v_l_2, ((srs_str){(const uint8_t*)"not a method of the trait:", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_m_3; o4; }), ((srs_str){(const uint8_t*)"a given defines exactly the trait's methods", 43})); }) : s2->tag == 25 ? ({ __auto_type v_l_2 = s2->u.C_Ty__MissingMethod.f_line; __auto_type v_m_3 = s2->u.C_Ty__MissingMethod.f_m; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"missing-method", 14}), v_l_2, ((srs_str){(const uint8_t*)"the given misses the trait method", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_m_3; o4; }), ((srs_str){(const uint8_t*)"define it in the given", 22})); }) : s2->tag == 26 ? ({ __auto_type v_l_2 = s2->u.C_Ty__SigDiffers.f_line; __auto_type v_m_3 = s2->u.C_Ty__SigDiffers.f_m; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"method-signature", 16}), v_l_2, ((srs_str){(const uint8_t*)"the given method's signature differs from its trait:", 52}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_m_3; o4; }), ((srs_str){(const uint8_t*)"use the trait's params and result at the given's head", 53})); }) : s2->tag == 27 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotInHead.f_line; __auto_type v_x_3 = s2->u.C_Ty__NotInHead.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"binder-not-in-head", 18}), v_l_2, ((srs_str){(const uint8_t*)"a given [] binder is not in its head:", 37}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use each [] binder in the given's head", 38})); }) : s2->tag == 28 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ExternSlot.f_line; __auto_type v_t_3 = s2->u.C_Ty__ExternSlot.f_t; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"extern-slot", 11}), v_l_2, ((srs_str){(const uint8_t*)"an extern [] binder is a pointer (void*), not", 45}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"call the extern at an enum or Ptr type", 38})); }) : s2->tag == 29 ? ({ __auto_type v_l_2 = s2->u.C_Ty__UnhandledEffect.f_line; __auto_type v_p_3 = s2->u.C_Ty__UnhandledEffect.f_p; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unhandled-effect", 16}), v_l_2, ((srs_str){(const uint8_t*)"effect not handled:", 19}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_p_3; o4; }), ((srs_str){(const uint8_t*)"open a handler of it in an enclosing block (handle x = H()): main must handle every effect it needs", 99})); }) : ({ __auto_type v_l_2 = s2->u.C_Ty__RtOutsideSrs.f_line; __auto_type v_f_3 = s2->u.C_Ty__RtOutsideSrs.f_f; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rt-outside-srs", 14}), v_l_2, ((srs_str){(const uint8_t*)"rt_* is called only in the body of a Srs.* handler, not here:", 61}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"request the effect (Console.print(s)) and handle it in main (handle c = Srs.Console())", 86})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Clash* t4 = v_rest_1; p_r = t0; p_eff__Console = t1; p_fs = t2; p_s = t3; p_cs = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_S2c__showTl(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_e_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Tl__Fuel.f_line; __auto_type v_n_3 = s2->u.C_Tl__Fuel.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"type-fuel", 9}), v_l_2, ((srs_str){(const uint8_t*)"type reduction ran out of fuel at", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"a type that names itself never ends: break the loop", 51})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Tl__NoCase.f_line; __auto_type v_n_3 = s2->u.C_Tl__NoCase.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-type-case", 12}), v_l_2, ((srs_str){(const uint8_t*)"no case of the match type matches in", 36}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"add a case for this arg, or a `_` case", 38})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Tl__BadVal.f_line; __auto_type v_n_3 = s2->u.C_Tl__BadVal.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-compile-time-value", 21}), v_l_2, ((srs_str){(const uint8_t*)"a value arg has no compile-time value in", 40}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use literals, value params and pure defs (no effects, fuel bounded)", 67})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Tl__Arity.f_line; __auto_type v_n_3 = s2->u.C_Tl__Arity.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"type-arity", 10}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of type or value args for", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"give one arg per binder of the type", 35})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Tl__NoVals.f_line; __auto_type v_n_3 = s2->u.C_Tl__NoVals.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-args", 10}), v_l_2, ((srs_str){(const uint8_t*)"value args on a type that takes none:", 37}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"drop the (...) after the type", 29})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Tl__ArgType.f_line; __auto_type v_n_3 = s2->u.C_Tl__ArgType.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-arg-type", 14}), v_l_2, ((srs_str){(const uint8_t*)"a value arg does not fit its binder's type in", 45}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"give a value of the binder's type", 33})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Tl__BinderType.f_line; __auto_type v_x_3 = s2->u.C_Tl__BinderType.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-binder-type", 17}), v_l_2, ((srs_str){(const uint8_t*)"a value binder takes I64, Bool or Str:", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use one of those types", 22})); }) : ({ __auto_type v_l_2 = s2->u.C_Tl__PatType.f_line; __auto_type v_n_3 = s2->u.C_Tl__PatType.f_n; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-pattern-type", 18}), v_l_2, ((srs_str){(const uint8_t*)"a value match pattern does not fit its binder's type in", 55}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use patterns of the binder's type", 33})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Tl__Err* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_fs = t2; p_es = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_S2c__compile(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_Names__check(p_r, p_eff__Console, p_ds); s0->tag == 0 ? ({ f_S2c__facts(p_r, p_eff__Store, p_eff__Console, p_m, p_fs, p_ds); }) : s0->tag == 1 ? ({ __auto_type v_cs_0 = s0->u.C_Names__Bad.f_clashes; ({ (void)(f_S2c__showNames(p_r, p_eff__Console, p_fs, v_cs_0)); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ __auto_type v_rel_0 = s0->u.C_Names__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"names", 5}), v_rel_0); }); }); } -static int64_t f_S2c__facts(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_Fx__check(p_r, p_ds); s0->tag == 0 ? ({ f_S2c__typed(p_r, p_eff__Store, p_eff__Console, p_m, p_fs, p_ds); }) : s0->tag == 1 ? ({ __auto_type v_cs_0 = s0->u.C_Fx__Bad.f_cs; ({ (void)(f_S2c__showFx(p_r, p_eff__Console, p_fs, v_cs_0)); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ __auto_type v_rel_0 = s0->u.C_Fx__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"facts", 5}), v_rel_0); }); }); } -static int64_t f_S2c__showFx(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Fx__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Fx__NotCap.f_line; __auto_type v_x_3 = s2->u.C_Fx__NotCap.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-not-capability", 19}), v_l_2, ((srs_str){(const uint8_t*)"at: not a {} capability of this def or type:", 44}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"name a {} capability binder of the def or type", 46})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Fx__BadState.f_line; __auto_type v_s_3 = s2->u.C_Fx__BadState.f_s; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-state", 13}), v_l_2, ((srs_str){(const uint8_t*)"unknown protocol state", 22}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_s_3; o4; }), ((srs_str){(const uint8_t*)"use a state the protocol declares", 33})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Twice.f_line; __auto_type v_x_3 = s2->u.C_Fx__Twice.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-twice", 10}), v_l_2, ((srs_str){(const uint8_t*)"two states of one capability in a fact group:", 45}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"give each capability one state per group", 40})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Fx__NotOp.f_line; __auto_type v_op_3 = s2->u.C_Fx__NotOp.f_op; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-not-op", 11}), v_l_2, ((srs_str){(const uint8_t*)"next: not an op of a capability of this def:", 44}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_op_3; o4; }), ((srs_str){(const uint8_t*)"use an op of the protocol of one of the def's capabilities", 58})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Fx__UnknownRel.f_line; __auto_type v_rel_3 = s2->u.C_Fx__UnknownRel.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-relation", 16}), v_l_2, ((srs_str){(const uint8_t*)"unknown relation in facts:", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"use at, next, or a rule def of a capability's protocol", 54})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Fx__RelArity.f_line; __auto_type v_rel_3 = s2->u.C_Fx__RelArity.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"relation-arity", 14}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of args for relation", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"give the rule def's number of args", 34})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Unbound.f_line; __auto_type v_v_3 = s2->u.C_Fx__Unbound.f_v; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-unbound", 12}), v_l_2, ((srs_str){(const uint8_t*)"an exit fact variable is not bound by the entry facts:", 54}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_v_3; o4; }), ((srs_str){(const uint8_t*)"bind it in an entry fact", 24})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Fx__ExitOther.f_line; __auto_type v_rel_3 = s2->u.C_Fx__ExitOther.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"exit-fact", 9}), v_l_2, ((srs_str){(const uint8_t*)"an exit fact is an at, not", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"write the exit state as at(cap, State)", 38})); }) : s2->tag == 8 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Reserved.f_line; __auto_type v_rel_3 = s2->u.C_Fx__Reserved.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"reserved-relation", 17}), v_l_2, ((srs_str){(const uint8_t*)"reserved relation name:", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"at and next are built in: rename the rule def", 45})); }) : s2->tag == 9 ? ({ __auto_type v_l_2 = s2->u.C_Fx__ClauseArity.f_line; __auto_type v_rel_3 = s2->u.C_Fx__ClauseArity.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-arity", 10}), v_l_2, ((srs_str){(const uint8_t*)"rule defs of one relation differ in arity:", 42}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"give every rule def of a relation one arity", 43})); }) : s2->tag == 10 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Unsafe.f_line; __auto_type v_x_3 = s2->u.C_Fx__Unsafe.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-unsafe", 11}), v_l_2, ((srs_str){(const uint8_t*)"a rule def param is not in its body:", 36}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use each param in the body", 26})); }) : s2->tag == 11 ? ({ __auto_type v_l_2 = s2->u.C_Fx__RuleUnknown.f_line; __auto_type v_rel_3 = s2->u.C_Fx__RuleUnknown.f_rel; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-unknown", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown relation in rule:", 25}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"use next, at, or a rule def of this protocol", 44})); }) : ({ __auto_type v_l_2 = s2->u.C_Fx__RuleOp.f_line; __auto_type v_op_3 = s2->u.C_Fx__RuleOp.f_op; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-op", 7}), v_l_2, ((srs_str){(const uint8_t*)"next: not an op of the protocol:", 32}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_op_3; o4; }), ((srs_str){(const uint8_t*)"use an op of this protocol", 26})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Fx__Clash* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_fs = t2; p_cs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_S2c__typed(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Tl__expand(p_r, p_ds); ({ __auto_type v_xds_0 = s0->u.C_Tl__W.f_v; __auto_type v_tes_1 = s0->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s2 = v_tes_1; s2->tag == 1 ? ({ ({ (void)(f_S2c__showTl(p_r, p_eff__Console, p_fs, f_Coll__rev__Tl__Err(p_r, v_tes_1))); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ ({ __auto_type s2 = f_Eff__rows(p_r, p_eff__Console, v_xds_0); s2->tag == 1 ? ({ __auto_type v_rel_2 = s2->u.C_Eff__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"effect row", 10}), v_rel_2); }) : ({ __auto_type v_rows_2 = s2->u.C_Eff__Got.f_rows; ({ struct E_Ty__Result* v_res_3 = f_Ty__checkWith(p_r, v_xds_0, f_Tl__typeGoals(p_r, p_ds), v_rows_2); __auto_type res_ = ({ __auto_type s4 = v_res_3; ({ __auto_type v_cs_4 = s4->u.C_Ty__Result.f_clashes; __auto_type v_s_5 = s4->u.C_Ty__Result.f_s; ({ __auto_type res_ = ({ __auto_type s6 = v_cs_4; s6->tag == 1 ? ({ ({ (void)(f_S2c__showClashes(p_r, p_eff__Console, p_fs, v_s_5, f_Coll__rev__Ty__Clash(p_r, v_cs_4))); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ f_S2c__flowed(p_r, p_eff__Store, p_eff__Console, p_m, p_fs, v_xds_0, v_rows_2, v_res_3); }); }); res_; }); }); }); res_; }); }); }); }); }); res_; }); }); }); res_; }); } -static struct E_Coll__List__Tl__Err* f_Coll__rev__Tl__Err(srs_cap* p_r, struct E_Coll__List__Tl__Err* p_xs) { return f_Coll__revOnto__Tl__Err(p_r, p_xs, (&N_Coll__Nil__Tl__Err)); } -static struct E_Coll__List__Tl__Err* f_Coll__revOnto__Tl__Err(srs_cap* p_r, struct E_Coll__List__Tl__Err* p_xs, struct E_Coll__List__Tl__Err* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Tl__Err* t1 = v_t_1; struct E_Coll__List__Tl__Err* t2 = ({ struct E_Coll__List__Tl__Err* o2 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Tl__Err*){0}; }); }); }); } -static struct E_Coll__List__Ty__Clash* f_Coll__rev__Ty__Clash(srs_cap* p_r, struct E_Coll__List__Ty__Clash* p_xs) { return f_Coll__revOnto__Ty__Clash(p_r, p_xs, (&N_Coll__Nil__Ty__Clash)); } -static struct E_Coll__List__Ty__Clash* f_Coll__revOnto__Ty__Clash(srs_cap* p_r, struct E_Coll__List__Ty__Clash* p_xs, struct E_Coll__List__Ty__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ty__Clash* t1 = v_t_1; struct E_Coll__List__Ty__Clash* t2 = ({ struct E_Coll__List__Ty__Clash* o2 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); }); }); } -static int64_t f_S2c__flowed(srs_cap* p_r, srs_cap* p_eff__Store, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res) { return ({ __auto_type res_ = ({ __auto_type s0 = f_S2c__flowAll(p_r, f_S2c__flowCx(p_r, p_ds, p_rows, (&N_Coll__Nil__Ast__Proto), (&N_Coll__Nil__Ast__Handler), (&N_Coll__Nil__Ast__Fn), (&N_Coll__Nil__Ast__Enum), (&N_Coll__Nil__Ast__TypeDecl)), p_ds, (&N_Coll__Nil__Flow__Clash)); s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_S2c__FlowBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"flow", 4}), v_rel_0); }) : ({ __auto_type v_cs_0 = s0->u.C_S2c__FlowOk.f_cs; ({ __auto_type s1 = v_cs_0; s1->tag == 1 ? ({ ({ (void)(f_S2c__showFlow(p_r, p_eff__Console, p_fs, f_Coll__rev__Flow__Clash(p_r, v_cs_0))); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ f_S2c__finish(p_r, p_eff__Console, p_eff__Store, p_m, p_fs, p_ds, p_rows, p_res); }); }); }); }); res_; }); } -static struct E_Coll__List__Flow__Clash* f_Coll__rev__Flow__Clash(srs_cap* p_r, struct E_Coll__List__Flow__Clash* p_xs) { return f_Coll__revOnto__Flow__Clash(p_r, p_xs, (&N_Coll__Nil__Flow__Clash)); } -static struct E_Coll__List__Flow__Clash* f_Coll__revOnto__Flow__Clash(srs_cap* p_r, struct E_Coll__List__Flow__Clash* p_xs, struct E_Coll__List__Flow__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Flow__Clash* t1 = v_t_1; struct E_Coll__List__Flow__Clash* t2 = ({ struct E_Coll__List__Flow__Clash* o2 = (struct E_Coll__List__Flow__Clash*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Flow__Clash, u) + sizeof(((struct E_Coll__List__Flow__Clash*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_r = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__Clash*){0}; }); }); }); } -static struct E_Flow__Cx* f_S2c__flowCx(srs_cap* p_r, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__TypeDecl* p_ts) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Flow__Cx* o0 = (struct E_Flow__Cx*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Flow__Cx, u) + sizeof(((struct E_Flow__Cx*)0)->u.C_Flow__Cx))); o0->tag = 0; o0->u.C_Flow__Cx.f_ps = p_ps; o0->u.C_Flow__Cx.f_hs = p_hs; o0->u.C_Flow__Cx.f_fns = p_fs; o0->u.C_Flow__Cx.f_es = p_es; o0->u.C_Flow__Cx.f_ts = p_ts; o0->u.C_Flow__Cx.f_rows = p_rows; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = ({ struct E_Coll__List__Ast__Proto* o3 = (struct E_Coll__List__Ast__Proto*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Proto, u) + sizeof(((struct E_Coll__List__Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_p_2; o3->u.C_Coll__Cons.f_t = p_ps; o3; }); struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_r = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = ({ struct E_Coll__List__Ast__Handler* o3 = (struct E_Coll__List__Ast__Handler*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Handler, u) + sizeof(((struct E_Coll__List__Ast__Handler*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_h_2; o3->u.C_Coll__Cons.f_t = p_hs; o3; }); struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_r = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = ({ struct E_Coll__List__Ast__Fn* o3 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_f_2; o3->u.C_Coll__Cons.f_t = p_fs; o3; }); struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_r = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = ({ struct E_Coll__List__Ast__Enum* o3 = (struct E_Coll__List__Ast__Enum*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__Enum, u) + sizeof(((struct E_Coll__List__Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_2; o3->u.C_Coll__Cons.f_t = p_es; o3; }); struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_r = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = ({ struct E_Coll__List__Ast__TypeDecl* o3 = (struct E_Coll__List__Ast__TypeDecl*)srs_alloc(p_r, (int64_t)(offsetof(struct E_Coll__List__Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_td_2; o3->u.C_Coll__Cons.f_t = p_ts; o3; }); p_r = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_r = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }); }); }); }); } -static struct E_S2c__Flowed* f_S2c__flowAll(srs_cap* p_r, struct E_Flow__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Flow__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_S2c__Flowed* o0 = (struct E_S2c__Flowed*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowOk))); o0->tag = 0; o0->u.C_S2c__FlowOk.f_cs = p_acc; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ ({ __auto_type s4 = f_Flow__check(p_r, p_cx, v_f_2); s4->tag == 0 ? ({ ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }) : s4->tag == 1 ? ({ __auto_type v_cs_4 = s4->u.C_Flow__Bad.f_clashes; ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = f_Coll__revOnto__Flow__Clash(p_r, v_cs_4, p_acc); p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }) : s4->tag == 2 ? ({ __auto_type v_rel_4 = s4->u.C_Flow__RulesUnsafe.f_rel; ({ struct E_S2c__Flowed* o5 = (struct E_S2c__Flowed*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowBad))); o5->tag = 1; o5->u.C_S2c__FlowBad.f_rel = v_rel_4; o5; }); }) : s4->tag == 3 ? ({ __auto_type v_rel_4 = s4->u.C_Flow__RulesNegCycle.f_rel; ({ struct E_S2c__Flowed* o5 = (struct E_S2c__Flowed*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowBad))); o5->tag = 1; o5->u.C_S2c__FlowBad.f_rel = v_rel_4; o5; }); }) : ({ __auto_type v_rel_4 = s4->u.C_Flow__RulesIllTyped.f_rel; ({ struct E_S2c__Flowed* o5 = (struct E_S2c__Flowed*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowBad))); o5->tag = 1; o5->u.C_S2c__FlowBad.f_rel = v_rel_4; o5; }); }); }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_r; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = p_acc; p_r = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }); }); }); }); } -static int64_t f_S2c__showNames(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Names__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Names__Dup.f_line; __auto_type v_n_3 = s2->u.C_Names__Dup.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"duplicate", 9}), v_l_2, ((srs_str){(const uint8_t*)"duplicate name", 14}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"rename one of them", 18})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Names__Unknown.f_line; __auto_type v_n_3 = s2->u.C_Names__Unknown.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-name", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown name", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"declare it, or fix its spelling (module members are written qualified: Foo.bar)", 79})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoType.f_line; __auto_type v_n_3 = s2->u.C_Names__NoType.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-type", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown type", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"declare it, or fix its spelling", 31})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Names__BadState.f_line; __auto_type v_n_3 = s2->u.C_Names__BadState.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-state", 13}), v_l_2, ((srs_str){(const uint8_t*)"unknown protocol state", 22}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use a state the protocol declares", 33})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoDrop.f_line; __auto_type v_n_3 = s2->u.C_Names__NoDrop.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-drop", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown drop op", 15}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"drop one of the protocol's ops", 30})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoProto.f_line; __auto_type v_n_3 = s2->u.C_Names__NoProto.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-a-protocol", 14}), v_l_2, ((srs_str){(const uint8_t*)"a handler of a name that is not a protocol:", 43}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"write a handler for a protocol", 30})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoInit.f_line; __auto_type v_n_3 = s2->u.C_Names__NoInit.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"handler-no-init", 15}), v_l_2, ((srs_str){(const uint8_t*)"a handler without init:", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"define def init(...): Ptr", 25})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoOp.f_line; __auto_type v_n_3 = s2->u.C_Names__NoOp.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"handler-missing-op", 18}), v_l_2, ((srs_str){(const uint8_t*)"a handler misses the op", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"define every op of the protocol", 31})); }) : ({ __auto_type v_l_2 = s2->u.C_Names__BadArity.f_line; __auto_type v_n_3 = s2->u.C_Names__BadArity.f_name; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"handler-arity", 13}), v_l_2, ((srs_str){(const uint8_t*)"a handler fn has the wrong arity:", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"take self: Ptr first, then the op's params", 42})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Names__Clash* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_fs = t2; p_cs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } -static int64_t f_S2c__showFlow(srs_cap* p_r, srs_cap* p_eff__Console, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Flow__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Stuck.f_line; __auto_type v_n_3 = s2->u.C_Flow__Stuck.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"op-not-allowed", 14}), v_l_2, ((srs_str){(const uint8_t*)"op not allowed in this state of the capability", 46}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"call the ops in the order the protocol allows", 45})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Split.f_line; __auto_type v_n_3 = s2->u.C_Flow__Split.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"branch-states", 13}), v_l_2, ((srs_str){(const uint8_t*)"branches leave the capability in different states:", 50}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"bring it to one state on every branch", 37})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Unended.f_line; __auto_type v_n_3 = s2->u.C_Flow__Unended.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"capability-not-ended", 20}), v_l_2, ((srs_str){(const uint8_t*)"the capability does not end in its declared state:", 50}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"end it (its drop op or an op into an end state) before its scope ends", 69})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Ambig.f_line; __auto_type v_n_3 = s2->u.C_Flow__Ambig.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"entry-facts-ambiguous", 21}), v_l_2, ((srs_str){(const uint8_t*)"entry facts with more than one solution at the call of", 54}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"fix the capability states before the call", 41})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Flow__ExitBad.f_line; __auto_type v_n_3 = s2->u.C_Flow__ExitBad.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"exit-state", 10}), v_l_2, ((srs_str){(const uint8_t*)"a capability ends in another state than the exit fact of", 56}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"end it in the state the exit fact names", 39})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Flow__NoSol.f_line; __auto_type v_n_3 = s2->u.C_Flow__NoSol.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"entry-facts-unsolvable", 22}), v_l_2, ((srs_str){(const uint8_t*)"entry facts with no solution in", 31}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"make the entry facts satisfiable", 32})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Dead.f_line; __auto_type v_n_3 = s2->u.C_Flow__Dead.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"use-after-free", 14}), v_l_2, ((srs_str){(const uint8_t*)"use of a value after its region ended:", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use it before the region ends, or allocate it in a longer region", 64})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Escape.f_line; __auto_type v_n_3 = s2->u.C_Flow__Escape.f_cap; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"region-escape", 13}), v_l_2, ((srs_str){(const uint8_t*)"a value escapes the scope of its region", 39}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"allocate it in a region that outlives the block", 47})); }) : ({ __auto_type v_l_2 = s2->u.C_Flow__Stale.f_line; __auto_type v_x_3 = s2->u.C_Flow__Stale.f_x; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"stale-value", 11}), v_l_2, ((srs_str){(const uint8_t*)"the value needs its capability in the state its type names; it is in another state:", 83}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use it before the capability changes state", 42})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_r; srs_cap* t1 = p_eff__Console; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Flow__Clash* t3 = v_rest_1; p_r = t0; p_eff__Console = t1; p_fs = t2; p_cs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_S2c__showErrs(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__S2c__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_e_0; s2->tag == 0 ? ({ __auto_type v_p_2 = s2->u.C_S2c__NoFile.f_path; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"error[no-file]: cannot read ", 28})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, v_p_2); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n = help: check the path and that the file is readable\n", 58})); p_eff__Console->live = 0; r_; }); res_; }); }) : ({ __auto_type v_line_2 = s2->u.C_S2c__Syntax.f_line; __auto_type v_want_3 = s2->u.C_S2c__Syntax.f_want; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"parse", 5}), v_line_2, ((srs_str){(const uint8_t*)"parse error, expected", 21}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Text))); o4->tag = 4; o4->u.C_S2c__Text.f_s = v_want_3; o4; }), ((srs_str){(const uint8_t*)"fix the syntax on this line", 27})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__S2c__Err* t3 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_fs = t2; p_es = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_S2c__showClashes(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__IMap__K__Term* p_s, struct E_Coll__List__Ty__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Mismatch.f_line; __auto_type v_got_3 = s2->u.C_Ty__Mismatch.f_got; __auto_type v_want_4 = s2->u.C_Ty__Mismatch.f_want; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"mismatch", 8}), v_l_2, ((srs_str){(const uint8_t*)"the value has the wrong type", 28}), ({ struct E_S2c__What* o5 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Want))); o5->tag = 3; o5->u.C_S2c__Want.f_want = f_K__reify(p_eff__Region, p_s, v_want_4); o5->u.C_S2c__Want.f_got = f_K__reify(p_eff__Region, p_s, v_got_3); o5; }), ((srs_str){(const uint8_t*)"give a value of the expected type, or change the declared type", 62})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Unknown.f_line; __auto_type v_n_3 = s2->u.C_Ty__Unknown.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-name", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown name", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"declare it, or fix its spelling (module members are written qualified: Foo.bar)", 79})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Arity.f_line; __auto_type v_n_3 = s2->u.C_Ty__Arity.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"arity", 5}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of args to", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"pass one arg per param of its declaration", 41})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotEnum.f_line; __auto_type v_t_3 = s2->u.C_Ty__NotEnum.f_got; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-enum", 8}), v_l_2, ((srs_str){(const uint8_t*)"a match needs an enum, not", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = f_K__reify(p_eff__Region, p_s, v_t_3); o4; }), ((srs_str){(const uint8_t*)"match on a value of an enum type", 32})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NoOp.f_line; __auto_type v_n_3 = s2->u.C_Ty__NoOp.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-op", 5}), v_l_2, ((srs_str){(const uint8_t*)"no op or trait method", 21}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"call an op of the capability's protocol, or a method of the evidence's trait", 76})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Ty__CannotInfer.f_line; __auto_type v_n_3 = s2->u.C_Ty__CannotInfer.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"cannot-infer", 12}), v_l_2, ((srs_str){(const uint8_t*)"cannot infer the type args of", 29}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"write them: f[T](x), or annotate the val", 40})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NoCap.f_line; __auto_type v_p_3 = s2->u.C_Ty__NoCap.f_p; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-capability", 13}), v_l_2, ((srs_str){(const uint8_t*)"no single capability in scope of", 32}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_p_3; o4; }), ((srs_str){(const uint8_t*)"open one (handle r = Srs.Arena()) or take it as a {} binder; with two, choose one: f{a}(x)", 90})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Ty__Impure.f_line; __auto_type v_n_3 = s2->u.C_Ty__Impure.f_f; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"impure-call", 11}), v_l_2, ((srs_str){(const uint8_t*)"a spec def calls only pure fns, not", 35}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"a spec def runs at compile time: call only fns with no effects", 62})); }) : s2->tag == 8 ? ({ __auto_type v_l_2 = s2->u.C_Ty__SpecHandle.f_line; __auto_type v_h_3 = s2->u.C_Ty__SpecHandle.f_h; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"spec-handle", 11}), v_l_2, ((srs_str){(const uint8_t*)"a spec def opens no handler, not", 32}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_h_3; o4; }), ((srs_str){(const uint8_t*)"a spec def has no Region: build data without one", 48})); }) : s2->tag == 9 ? ({ __auto_type v_rel_2 = s2->u.C_Ty__PureRules.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"internal", 8}), ((int64_t)0), ((srs_str){(const uint8_t*)"the purity rules are ill-formed at", 34}), ({ struct E_S2c__What* o3 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o3->tag = 1; o3->u.C_S2c__Name.f_n = v_rel_2; o3; }), ((srs_str){(const uint8_t*)"a bug in s2: report it", 22})); }) : s2->tag == 10 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotExhaustive.f_line; __auto_type v_n_3 = s2->u.C_Ty__NotExhaustive.f_missing; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-exhaustive", 14}), v_l_2, ((srs_str){(const uint8_t*)"the match misses the case", 25}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"add an arm for it, or a `_` arm", 31})); }) : s2->tag == 11 ? ({ __auto_type v_l_2 = s2->u.C_Ty__PatArity.f_line; __auto_type v_n_3 = s2->u.C_Ty__PatArity.f_c; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"pattern-arity", 13}), v_l_2, ((srs_str){(const uint8_t*)"the pattern binds another number of fields than", 47}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"bind one name (or _) per field of the case", 42})); }) : s2->tag == 12 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NoGiven.f_line; __auto_type v_t_3 = s2->u.C_Ty__NoGiven.f_goal; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-given", 8}), v_l_2, ((srs_str){(const uint8_t*)"no given for", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"declare a given for this type, or take the evidence as a {} binder", 66})); }) : s2->tag == 13 ? ({ __auto_type v_l_2 = s2->u.C_Ty__AmbigGivens.f_line; __auto_type v_t_3 = s2->u.C_Ty__AmbigGivens.f_goal; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"ambiguous-givens", 16}), v_l_2, ((srs_str){(const uint8_t*)"two givens tie for", 18}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"make one head more specific, or choose the evidence: f{e}(x)", 60})); }) : s2->tag == 14 ? ({ __auto_type v_l_2 = s2->u.C_Ty__AmbigEvidence.f_line; __auto_type v_t_3 = s2->u.C_Ty__AmbigEvidence.f_goal; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"ambiguous-evidence", 18}), v_l_2, ((srs_str){(const uint8_t*)"two local evidences prove", 25}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"choose one: f{e}(x)", 19})); }) : s2->tag == 15 ? ({ __auto_type v_l_2 = s2->u.C_Ty__GivenFuel.f_line; __auto_type v_t_3 = s2->u.C_Ty__GivenFuel.f_goal; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"given-fuel", 10}), v_l_2, ((srs_str){(const uint8_t*)"the given search ran out of fuel at", 35}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"a given clause needs itself at a bigger type: break the loop", 60})); }) : s2->tag == 16 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ChosenBad.f_line; __auto_type v_t_3 = s2->u.C_Ty__ChosenBad.f_goal; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"chosen-evidence", 15}), v_l_2, ((srs_str){(const uint8_t*)"the chosen evidence does not prove", 34}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"choose a local whose type is the goal", 37})); }) : s2->tag == 17 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ChosenCount.f_line; __auto_type v_n_3 = s2->u.C_Ty__ChosenCount.f_f; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"chosen-count", 12}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of chosen evidence for", 35}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"choose one name per {} binder of the callee", 43})); }) : s2->tag == 18 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ChosenNotCap.f_line; __auto_type v_p_3 = s2->u.C_Ty__ChosenNotCap.f_p; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"chosen-not-capability", 21}), v_l_2, ((srs_str){(const uint8_t*)"the chosen name is not a capability of", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_p_3; o4; }), ((srs_str){(const uint8_t*)"choose a local opened by a handler of this protocol", 51})); }) : s2->tag == 19 ? ({ __auto_type v_l_2 = s2->u.C_Ty__EvidenceValue.f_line; __auto_type v_x_3 = s2->u.C_Ty__EvidenceValue.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"evidence-value", 14}), v_l_2, ((srs_str){(const uint8_t*)"evidence is only a method receiver, not a value:", 48}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"call its methods: e.m(x)", 24})); }) : s2->tag == 20 ? ({ __auto_type v_l_2 = s2->u.C_Ty__CapValue.f_line; __auto_type v_x_3 = s2->u.C_Ty__CapValue.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"capability-value", 16}), v_l_2, ((srs_str){(const uint8_t*)"a capability is second-class, not a value:", 42}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"pass it as a {} binder: f{c}(x)", 31})); }) : s2->tag == 21 ? ({ __auto_type v_l_2 = s2->u.C_Ty__BinderHides.f_line; __auto_type v_x_3 = s2->u.C_Ty__BinderHides.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"binder-hides-type", 17}), v_l_2, ((srs_str){(const uint8_t*)"a [] binder hides the type", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"rename the binder", 17})); }) : s2->tag == 22 ? ({ __auto_type v_l_2 = s2->u.C_Ty__CapParam.f_line; __auto_type v_x_3 = s2->u.C_Ty__CapParam.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"capability-param", 16}), v_l_2, ((srs_str){(const uint8_t*)"a capability is a {} binder, not a param:", 41}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"write it as {x: P} before the params", 36})); }) : s2->tag == 23 ? ({ __auto_type v_l_2 = s2->u.C_Ty__TraitArity.f_line; __auto_type v_t_3 = s2->u.C_Ty__TraitArity.f_t; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"trait-arity", 11}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of type args for the trait", 39}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_t_3; o4; }), ((srs_str){(const uint8_t*)"give one type arg per [] binder of the trait", 44})); }) : s2->tag == 24 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotMethod.f_line; __auto_type v_m_3 = s2->u.C_Ty__NotMethod.f_m; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-a-method", 12}), v_l_2, ((srs_str){(const uint8_t*)"not a method of the trait:", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_m_3; o4; }), ((srs_str){(const uint8_t*)"a given defines exactly the trait's methods", 43})); }) : s2->tag == 25 ? ({ __auto_type v_l_2 = s2->u.C_Ty__MissingMethod.f_line; __auto_type v_m_3 = s2->u.C_Ty__MissingMethod.f_m; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"missing-method", 14}), v_l_2, ((srs_str){(const uint8_t*)"the given misses the trait method", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_m_3; o4; }), ((srs_str){(const uint8_t*)"define it in the given", 22})); }) : s2->tag == 26 ? ({ __auto_type v_l_2 = s2->u.C_Ty__SigDiffers.f_line; __auto_type v_m_3 = s2->u.C_Ty__SigDiffers.f_m; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"method-signature", 16}), v_l_2, ((srs_str){(const uint8_t*)"the given method's signature differs from its trait:", 52}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_m_3; o4; }), ((srs_str){(const uint8_t*)"use the trait's params and result at the given's head", 53})); }) : s2->tag == 27 ? ({ __auto_type v_l_2 = s2->u.C_Ty__NotInHead.f_line; __auto_type v_x_3 = s2->u.C_Ty__NotInHead.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"binder-not-in-head", 18}), v_l_2, ((srs_str){(const uint8_t*)"a given [] binder is not in its head:", 37}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use each [] binder in the given's head", 38})); }) : s2->tag == 28 ? ({ __auto_type v_l_2 = s2->u.C_Ty__ExternSlot.f_line; __auto_type v_t_3 = s2->u.C_Ty__ExternSlot.f_t; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"extern-slot", 11}), v_l_2, ((srs_str){(const uint8_t*)"an extern [] binder is a pointer (void*), not", 45}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Type))); o4->tag = 2; o4->u.C_S2c__Type.f_t = v_t_3; o4; }), ((srs_str){(const uint8_t*)"call the extern at an enum or Ptr type", 38})); }) : s2->tag == 29 ? ({ __auto_type v_l_2 = s2->u.C_Ty__UnhandledEffect.f_line; __auto_type v_p_3 = s2->u.C_Ty__UnhandledEffect.f_p; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unhandled-effect", 16}), v_l_2, ((srs_str){(const uint8_t*)"effect not handled:", 19}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_p_3; o4; }), ((srs_str){(const uint8_t*)"open a handler of it in an enclosing block (handle x = H()): main must handle every effect it needs", 99})); }) : ({ __auto_type v_l_2 = s2->u.C_Ty__RtOutsideSrs.f_line; __auto_type v_f_3 = s2->u.C_Ty__RtOutsideSrs.f_f; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rt-outside-srs", 14}), v_l_2, ((srs_str){(const uint8_t*)"rt_* is called only in the body of a Srs.* handler, not here:", 61}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"request the effect (Console.print(s)) and handle it in main (handle c = Srs.Console())", 86})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__IMap__K__Term* t3 = p_s; struct E_Coll__List__Ty__Clash* t4 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_fs = t2; p_s = t3; p_cs = t4; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_S2c__showTl(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Tl__Err* p_es) { srs_tail: return ({ __auto_type s0 = p_es; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_e_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_e_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Tl__Fuel.f_line; __auto_type v_n_3 = s2->u.C_Tl__Fuel.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"type-fuel", 9}), v_l_2, ((srs_str){(const uint8_t*)"type reduction ran out of fuel at", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"a type that names itself never ends: break the loop", 51})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Tl__NoCase.f_line; __auto_type v_n_3 = s2->u.C_Tl__NoCase.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-type-case", 12}), v_l_2, ((srs_str){(const uint8_t*)"no case of the match type matches in", 36}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"add a case for this arg, or a `_` case", 38})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Tl__BadVal.f_line; __auto_type v_n_3 = s2->u.C_Tl__BadVal.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"no-compile-time-value", 21}), v_l_2, ((srs_str){(const uint8_t*)"a value arg has no compile-time value in", 40}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use literals, value params and pure defs (no effects, fuel bounded)", 67})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Tl__Arity.f_line; __auto_type v_n_3 = s2->u.C_Tl__Arity.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"type-arity", 10}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of type or value args for", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"give one arg per binder of the type", 35})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Tl__NoVals.f_line; __auto_type v_n_3 = s2->u.C_Tl__NoVals.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-args", 10}), v_l_2, ((srs_str){(const uint8_t*)"value args on a type that takes none:", 37}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"drop the (...) after the type", 29})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Tl__ArgType.f_line; __auto_type v_n_3 = s2->u.C_Tl__ArgType.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-arg-type", 14}), v_l_2, ((srs_str){(const uint8_t*)"a value arg does not fit its binder's type in", 45}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"give a value of the binder's type", 33})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Tl__BinderType.f_line; __auto_type v_x_3 = s2->u.C_Tl__BinderType.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-binder-type", 17}), v_l_2, ((srs_str){(const uint8_t*)"a value binder takes I64, Bool or Str:", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use one of those types", 22})); }) : ({ __auto_type v_l_2 = s2->u.C_Tl__PatType.f_line; __auto_type v_n_3 = s2->u.C_Tl__PatType.f_n; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"value-pattern-type", 18}), v_l_2, ((srs_str){(const uint8_t*)"a value match pattern does not fit its binder's type in", 55}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use patterns of the binder's type", 33})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Tl__Err* t3 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_fs = t2; p_es = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_S2c__compile(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_Names__check(p_eff__Console, p_eff__Region, p_ds); s0->tag == 0 ? ({ f_S2c__facts(p_eff__Store, p_eff__Region, p_eff__Console, p_m, p_fs, p_ds); }) : s0->tag == 1 ? ({ __auto_type v_cs_0 = s0->u.C_Names__Bad.f_clashes; ({ (void)(f_S2c__showNames(p_eff__Console, p_eff__Region, p_fs, v_cs_0)); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ __auto_type v_rel_0 = s0->u.C_Names__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"names", 5}), v_rel_0); }); }); } +static int64_t f_S2c__facts(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type s0 = f_Fx__check(p_eff__Region, p_ds); s0->tag == 0 ? ({ f_S2c__typed(p_eff__Store, p_eff__Region, p_eff__Console, p_m, p_fs, p_ds); }) : s0->tag == 1 ? ({ __auto_type v_cs_0 = s0->u.C_Fx__Bad.f_cs; ({ (void)(f_S2c__showFx(p_eff__Console, p_eff__Region, p_fs, v_cs_0)); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ __auto_type v_rel_0 = s0->u.C_Fx__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"facts", 5}), v_rel_0); }); }); } +static int64_t f_S2c__showFx(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Fx__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Fx__NotCap.f_line; __auto_type v_x_3 = s2->u.C_Fx__NotCap.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-not-capability", 19}), v_l_2, ((srs_str){(const uint8_t*)"at: not a {} capability of this def or type:", 44}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"name a {} capability binder of the def or type", 46})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Fx__BadState.f_line; __auto_type v_s_3 = s2->u.C_Fx__BadState.f_s; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-state", 13}), v_l_2, ((srs_str){(const uint8_t*)"unknown protocol state", 22}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_s_3; o4; }), ((srs_str){(const uint8_t*)"use a state the protocol declares", 33})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Twice.f_line; __auto_type v_x_3 = s2->u.C_Fx__Twice.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-twice", 10}), v_l_2, ((srs_str){(const uint8_t*)"two states of one capability in a fact group:", 45}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"give each capability one state per group", 40})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Fx__NotOp.f_line; __auto_type v_op_3 = s2->u.C_Fx__NotOp.f_op; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-not-op", 11}), v_l_2, ((srs_str){(const uint8_t*)"next: not an op of a capability of this def:", 44}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_op_3; o4; }), ((srs_str){(const uint8_t*)"use an op of the protocol of one of the def's capabilities", 58})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Fx__UnknownRel.f_line; __auto_type v_rel_3 = s2->u.C_Fx__UnknownRel.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-relation", 16}), v_l_2, ((srs_str){(const uint8_t*)"unknown relation in facts:", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"use at, next, or a rule def of a capability's protocol", 54})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Fx__RelArity.f_line; __auto_type v_rel_3 = s2->u.C_Fx__RelArity.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"relation-arity", 14}), v_l_2, ((srs_str){(const uint8_t*)"wrong number of args for relation", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"give the rule def's number of args", 34})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Unbound.f_line; __auto_type v_v_3 = s2->u.C_Fx__Unbound.f_v; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"fact-unbound", 12}), v_l_2, ((srs_str){(const uint8_t*)"an exit fact variable is not bound by the entry facts:", 54}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_v_3; o4; }), ((srs_str){(const uint8_t*)"bind it in an entry fact", 24})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Fx__ExitOther.f_line; __auto_type v_rel_3 = s2->u.C_Fx__ExitOther.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"exit-fact", 9}), v_l_2, ((srs_str){(const uint8_t*)"an exit fact is an at, not", 26}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"write the exit state as at(cap, State)", 38})); }) : s2->tag == 8 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Reserved.f_line; __auto_type v_rel_3 = s2->u.C_Fx__Reserved.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"reserved-relation", 17}), v_l_2, ((srs_str){(const uint8_t*)"reserved relation name:", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"at and next are built in: rename the rule def", 45})); }) : s2->tag == 9 ? ({ __auto_type v_l_2 = s2->u.C_Fx__ClauseArity.f_line; __auto_type v_rel_3 = s2->u.C_Fx__ClauseArity.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-arity", 10}), v_l_2, ((srs_str){(const uint8_t*)"rule defs of one relation differ in arity:", 42}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"give every rule def of a relation one arity", 43})); }) : s2->tag == 10 ? ({ __auto_type v_l_2 = s2->u.C_Fx__Unsafe.f_line; __auto_type v_x_3 = s2->u.C_Fx__Unsafe.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-unsafe", 11}), v_l_2, ((srs_str){(const uint8_t*)"a rule def param is not in its body:", 36}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use each param in the body", 26})); }) : s2->tag == 11 ? ({ __auto_type v_l_2 = s2->u.C_Fx__RuleUnknown.f_line; __auto_type v_rel_3 = s2->u.C_Fx__RuleUnknown.f_rel; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-unknown", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown relation in rule:", 25}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_rel_3; o4; }), ((srs_str){(const uint8_t*)"use next, at, or a rule def of this protocol", 44})); }) : ({ __auto_type v_l_2 = s2->u.C_Fx__RuleOp.f_line; __auto_type v_op_3 = s2->u.C_Fx__RuleOp.f_op; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"rule-op", 7}), v_l_2, ((srs_str){(const uint8_t*)"next: not an op of the protocol:", 32}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_op_3; o4; }), ((srs_str){(const uint8_t*)"use an op of this protocol", 26})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Fx__Clash* t3 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_fs = t2; p_cs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_S2c__typed(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds) { return ({ __auto_type res_ = ({ __auto_type s0 = f_Tl__expand(p_eff__Region, p_ds); ({ __auto_type v_xds_0 = s0->u.C_Tl__W.f_v; __auto_type v_tes_1 = s0->u.C_Tl__W.f_es; ({ __auto_type res_ = ({ __auto_type s2 = v_tes_1; s2->tag == 1 ? ({ ({ (void)(f_S2c__showTl(p_eff__Console, p_eff__Region, p_fs, f_Coll__rev__Tl__Err(p_eff__Region, v_tes_1))); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ ({ __auto_type s2 = f_Eff__rows(p_eff__Console, p_eff__Region, v_xds_0); s2->tag == 1 ? ({ __auto_type v_rel_2 = s2->u.C_Eff__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"effect row", 10}), v_rel_2); }) : ({ __auto_type v_rows_2 = s2->u.C_Eff__Got.f_rows; ({ struct E_Ty__Result* v_res_3 = f_Ty__checkWith(p_eff__Region, v_xds_0, f_Tl__typeGoals(p_eff__Region, p_ds), v_rows_2); __auto_type res_ = ({ __auto_type s4 = v_res_3; ({ __auto_type v_cs_4 = s4->u.C_Ty__Result.f_clashes; __auto_type v_s_5 = s4->u.C_Ty__Result.f_s; ({ __auto_type res_ = ({ __auto_type s6 = v_cs_4; s6->tag == 1 ? ({ ({ (void)(f_S2c__showClashes(p_eff__Console, p_eff__Region, p_fs, v_s_5, f_Coll__rev__Ty__Clash(p_eff__Region, v_cs_4))); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ f_S2c__flowed(p_eff__Store, p_eff__Region, p_eff__Console, p_m, p_fs, v_xds_0, v_rows_2, v_res_3); }); }); res_; }); }); }); res_; }); }); }); }); }); res_; }); }); }); res_; }); } +static struct E_Coll__List__Tl__Err* f_Coll__rev__Tl__Err(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Err* p_xs) { return f_Coll__revOnto__Tl__Err(p_eff__Region, p_xs, (&N_Coll__Nil__Tl__Err)); } +static struct E_Coll__List__Tl__Err* f_Coll__revOnto__Tl__Err(srs_cap* p_eff__Region, struct E_Coll__List__Tl__Err* p_xs, struct E_Coll__List__Tl__Err* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Tl__Err* t1 = v_t_1; struct E_Coll__List__Tl__Err* t2 = ({ struct E_Coll__List__Tl__Err* o2 = (struct E_Coll__List__Tl__Err*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Tl__Err, u) + sizeof(((struct E_Coll__List__Tl__Err*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Tl__Err*){0}; }); }); }); } +static struct E_Coll__List__Ty__Clash* f_Coll__rev__Ty__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Clash* p_xs) { return f_Coll__revOnto__Ty__Clash(p_eff__Region, p_xs, (&N_Coll__Nil__Ty__Clash)); } +static struct E_Coll__List__Ty__Clash* f_Coll__revOnto__Ty__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Ty__Clash* p_xs, struct E_Coll__List__Ty__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ty__Clash* t1 = v_t_1; struct E_Coll__List__Ty__Clash* t2 = ({ struct E_Coll__List__Ty__Clash* o2 = (struct E_Coll__List__Ty__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ty__Clash, u) + sizeof(((struct E_Coll__List__Ty__Clash*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Ty__Clash*){0}; }); }); }); } +static int64_t f_S2c__flowed(srs_cap* p_eff__Store, srs_cap* p_eff__Region, srs_cap* p_eff__Console, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res) { return ({ __auto_type res_ = ({ __auto_type s0 = f_S2c__flowAll(p_eff__Region, f_S2c__flowCx(p_eff__Region, p_ds, p_rows, (&N_Coll__Nil__Ast__Proto), (&N_Coll__Nil__Ast__Handler), (&N_Coll__Nil__Ast__Fn), (&N_Coll__Nil__Ast__Enum), (&N_Coll__Nil__Ast__TypeDecl)), p_ds, (&N_Coll__Nil__Flow__Clash)); s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_S2c__FlowBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"flow", 4}), v_rel_0); }) : ({ __auto_type v_cs_0 = s0->u.C_S2c__FlowOk.f_cs; ({ __auto_type s1 = v_cs_0; s1->tag == 1 ? ({ ({ (void)(f_S2c__showFlow(p_eff__Console, p_eff__Region, p_fs, f_Coll__rev__Flow__Clash(p_eff__Region, v_cs_0))); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ f_S2c__finish(p_eff__Console, p_eff__Store, p_eff__Region, p_m, p_fs, p_ds, p_rows, p_res); }); }); }); }); res_; }); } +static struct E_Coll__List__Flow__Clash* f_Coll__rev__Flow__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Clash* p_xs) { return f_Coll__revOnto__Flow__Clash(p_eff__Region, p_xs, (&N_Coll__Nil__Flow__Clash)); } +static struct E_Coll__List__Flow__Clash* f_Coll__revOnto__Flow__Clash(srs_cap* p_eff__Region, struct E_Coll__List__Flow__Clash* p_xs, struct E_Coll__List__Flow__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_xs; s0->tag == 0 ? ({ p_acc; }) : ({ __auto_type v_h_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_t_1 = s0->u.C_Coll__Cons.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Flow__Clash* t1 = v_t_1; struct E_Coll__List__Flow__Clash* t2 = ({ struct E_Coll__List__Flow__Clash* o2 = (struct E_Coll__List__Flow__Clash*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Flow__Clash, u) + sizeof(((struct E_Coll__List__Flow__Clash*)0)->u.C_Coll__Cons))); o2->tag = 1; o2->u.C_Coll__Cons.f_h = v_h_0; o2->u.C_Coll__Cons.f_t = p_acc; o2; }); p_eff__Region = t0; p_xs = t1; p_acc = t2; goto srs_tail; (struct E_Coll__List__Flow__Clash*){0}; }); }); }); } +static struct E_Flow__Cx* f_S2c__flowCx(srs_cap* p_eff__Region, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Coll__List__Ast__Proto* p_ps, struct E_Coll__List__Ast__Handler* p_hs, struct E_Coll__List__Ast__Fn* p_fs, struct E_Coll__List__Ast__Enum* p_es, struct E_Coll__List__Ast__TypeDecl* p_ts) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_Flow__Cx* o0 = (struct E_Flow__Cx*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Flow__Cx, u) + sizeof(((struct E_Flow__Cx*)0)->u.C_Flow__Cx))); o0->tag = 0; o0->u.C_Flow__Cx.f_ps = p_ps; o0->u.C_Flow__Cx.f_hs = p_hs; o0->u.C_Flow__Cx.f_fns = p_fs; o0->u.C_Flow__Cx.f_es = p_es; o0->u.C_Flow__Cx.f_ts = p_ts; o0->u.C_Flow__Cx.f_rows = p_rows; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 2 ? ({ __auto_type v_p_2 = s2->u.C_Ast__DProto.f_p; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = ({ struct E_Coll__List__Ast__Proto* o3 = (struct E_Coll__List__Ast__Proto*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Proto, u) + sizeof(((struct E_Coll__List__Ast__Proto*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_p_2; o3->u.C_Coll__Cons.f_t = p_ps; o3; }); struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_eff__Region = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 3 ? ({ __auto_type v_h_2 = s2->u.C_Ast__DHandler.f_h; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = ({ struct E_Coll__List__Ast__Handler* o3 = (struct E_Coll__List__Ast__Handler*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Handler, u) + sizeof(((struct E_Coll__List__Ast__Handler*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_h_2; o3->u.C_Coll__Cons.f_t = p_hs; o3; }); struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_eff__Region = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = ({ struct E_Coll__List__Ast__Fn* o3 = (struct E_Coll__List__Ast__Fn*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Fn, u) + sizeof(((struct E_Coll__List__Ast__Fn*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_f_2; o3->u.C_Coll__Cons.f_t = p_fs; o3; }); struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_eff__Region = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 1 ? ({ __auto_type v_e_2 = s2->u.C_Ast__DEnum.f_e; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = ({ struct E_Coll__List__Ast__Enum* o3 = (struct E_Coll__List__Ast__Enum*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__Enum, u) + sizeof(((struct E_Coll__List__Ast__Enum*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_e_2; o3->u.C_Coll__Cons.f_t = p_es; o3; }); struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_eff__Region = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : s2->tag == 6 ? ({ __auto_type v_td_2 = s2->u.C_Ast__DType.f_t; ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = ({ struct E_Coll__List__Ast__TypeDecl* o3 = (struct E_Coll__List__Ast__TypeDecl*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_Coll__List__Ast__TypeDecl, u) + sizeof(((struct E_Coll__List__Ast__TypeDecl*)0)->u.C_Coll__Cons))); o3->tag = 1; o3->u.C_Coll__Cons.f_h = v_td_2; o3->u.C_Coll__Cons.f_t = p_ts; o3; }); p_eff__Region = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Coll__List__Ast__Decl* t1 = v_rest_1; struct E_Eff__Rows* t2 = p_rows; struct E_Coll__List__Ast__Proto* t3 = p_ps; struct E_Coll__List__Ast__Handler* t4 = p_hs; struct E_Coll__List__Ast__Fn* t5 = p_fs; struct E_Coll__List__Ast__Enum* t6 = p_es; struct E_Coll__List__Ast__TypeDecl* t7 = p_ts; p_eff__Region = t0; p_ds = t1; p_rows = t2; p_ps = t3; p_hs = t4; p_fs = t5; p_es = t6; p_ts = t7; goto srs_tail; (struct E_Flow__Cx*){0}; }); }); }); }); }); } +static struct E_S2c__Flowed* f_S2c__flowAll(srs_cap* p_eff__Region, struct E_Flow__Cx* p_cx, struct E_Coll__List__Ast__Decl* p_ds, struct E_Coll__List__Flow__Clash* p_acc) { srs_tail: return ({ __auto_type s0 = p_ds; s0->tag == 0 ? ({ ({ struct E_S2c__Flowed* o0 = (struct E_S2c__Flowed*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowOk))); o0->tag = 0; o0->u.C_S2c__FlowOk.f_cs = p_acc; o0; }); }) : ({ __auto_type v_d_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type s2 = v_d_0; s2->tag == 0 ? ({ __auto_type v_f_2 = s2->u.C_Ast__DFn.f_f; ({ __auto_type res_ = ({ __auto_type s3 = v_f_2; ({ __auto_type v_body_3 = s3->u.C_Ast__Fn.f_body; ({ __auto_type res_ = ({ __auto_type s4 = v_body_3; s4->tag == 0 ? ({ ({ __auto_type s4 = f_Flow__check(p_eff__Region, p_cx, v_f_2); s4->tag == 0 ? ({ ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }) : s4->tag == 1 ? ({ __auto_type v_cs_4 = s4->u.C_Flow__Bad.f_clashes; ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = f_Coll__revOnto__Flow__Clash(p_eff__Region, v_cs_4, p_acc); p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }) : s4->tag == 2 ? ({ __auto_type v_rel_4 = s4->u.C_Flow__RulesUnsafe.f_rel; ({ struct E_S2c__Flowed* o5 = (struct E_S2c__Flowed*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowBad))); o5->tag = 1; o5->u.C_S2c__FlowBad.f_rel = v_rel_4; o5; }); }) : s4->tag == 3 ? ({ __auto_type v_rel_4 = s4->u.C_Flow__RulesNegCycle.f_rel; ({ struct E_S2c__Flowed* o5 = (struct E_S2c__Flowed*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowBad))); o5->tag = 1; o5->u.C_S2c__FlowBad.f_rel = v_rel_4; o5; }); }) : ({ __auto_type v_rel_4 = s4->u.C_Flow__RulesIllTyped.f_rel; ({ struct E_S2c__Flowed* o5 = (struct E_S2c__Flowed*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Flowed, u) + sizeof(((struct E_S2c__Flowed*)0)->u.C_S2c__FlowBad))); o5->tag = 1; o5->u.C_S2c__FlowBad.f_rel = v_rel_4; o5; }); }); }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }); }); res_; }); }); }); res_; }); }) : ({ ({ srs_cap* t0 = p_eff__Region; struct E_Flow__Cx* t1 = p_cx; struct E_Coll__List__Ast__Decl* t2 = v_rest_1; struct E_Coll__List__Flow__Clash* t3 = p_acc; p_eff__Region = t0; p_cx = t1; p_ds = t2; p_acc = t3; goto srs_tail; (struct E_S2c__Flowed*){0}; }); }); }); }); }); } +static int64_t f_S2c__showNames(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Names__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Names__Dup.f_line; __auto_type v_n_3 = s2->u.C_Names__Dup.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"duplicate", 9}), v_l_2, ((srs_str){(const uint8_t*)"duplicate name", 14}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"rename one of them", 18})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Names__Unknown.f_line; __auto_type v_n_3 = s2->u.C_Names__Unknown.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-name", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown name", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"declare it, or fix its spelling (module members are written qualified: Foo.bar)", 79})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoType.f_line; __auto_type v_n_3 = s2->u.C_Names__NoType.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-type", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown type", 12}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"declare it, or fix its spelling", 31})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Names__BadState.f_line; __auto_type v_n_3 = s2->u.C_Names__BadState.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-state", 13}), v_l_2, ((srs_str){(const uint8_t*)"unknown protocol state", 22}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use a state the protocol declares", 33})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoDrop.f_line; __auto_type v_n_3 = s2->u.C_Names__NoDrop.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"unknown-drop", 12}), v_l_2, ((srs_str){(const uint8_t*)"unknown drop op", 15}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"drop one of the protocol's ops", 30})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoProto.f_line; __auto_type v_n_3 = s2->u.C_Names__NoProto.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"not-a-protocol", 14}), v_l_2, ((srs_str){(const uint8_t*)"a handler of a name that is not a protocol:", 43}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"write a handler for a protocol", 30})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoInit.f_line; __auto_type v_n_3 = s2->u.C_Names__NoInit.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"handler-no-init", 15}), v_l_2, ((srs_str){(const uint8_t*)"a handler without init:", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"define def init(...): Ptr", 25})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Names__NoOp.f_line; __auto_type v_n_3 = s2->u.C_Names__NoOp.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"handler-missing-op", 18}), v_l_2, ((srs_str){(const uint8_t*)"a handler misses the op", 23}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"define every op of the protocol", 31})); }) : ({ __auto_type v_l_2 = s2->u.C_Names__BadArity.f_line; __auto_type v_n_3 = s2->u.C_Names__BadArity.f_name; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"handler-arity", 13}), v_l_2, ((srs_str){(const uint8_t*)"a handler fn has the wrong arity:", 33}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"take self: Ptr first, then the op's params", 42})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Names__Clash* t3 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_fs = t2; p_cs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } +static int64_t f_S2c__showFlow(srs_cap* p_eff__Console, srs_cap* p_eff__Region, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Flow__Clash* p_cs) { srs_tail: return ({ __auto_type s0 = p_cs; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_c_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type s2 = v_c_0; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Stuck.f_line; __auto_type v_n_3 = s2->u.C_Flow__Stuck.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"op-not-allowed", 14}), v_l_2, ((srs_str){(const uint8_t*)"op not allowed in this state of the capability", 46}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"call the ops in the order the protocol allows", 45})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Split.f_line; __auto_type v_n_3 = s2->u.C_Flow__Split.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"branch-states", 13}), v_l_2, ((srs_str){(const uint8_t*)"branches leave the capability in different states:", 50}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"bring it to one state on every branch", 37})); }) : s2->tag == 2 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Unended.f_line; __auto_type v_n_3 = s2->u.C_Flow__Unended.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"capability-not-ended", 20}), v_l_2, ((srs_str){(const uint8_t*)"the capability does not end in its declared state:", 50}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"end it (its drop op or an op into an end state) before its scope ends", 69})); }) : s2->tag == 3 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Ambig.f_line; __auto_type v_n_3 = s2->u.C_Flow__Ambig.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"entry-facts-ambiguous", 21}), v_l_2, ((srs_str){(const uint8_t*)"entry facts with more than one solution at the call of", 54}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"fix the capability states before the call", 41})); }) : s2->tag == 4 ? ({ __auto_type v_l_2 = s2->u.C_Flow__ExitBad.f_line; __auto_type v_n_3 = s2->u.C_Flow__ExitBad.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"exit-state", 10}), v_l_2, ((srs_str){(const uint8_t*)"a capability ends in another state than the exit fact of", 56}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"end it in the state the exit fact names", 39})); }) : s2->tag == 5 ? ({ __auto_type v_l_2 = s2->u.C_Flow__NoSol.f_line; __auto_type v_n_3 = s2->u.C_Flow__NoSol.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"entry-facts-unsolvable", 22}), v_l_2, ((srs_str){(const uint8_t*)"entry facts with no solution in", 31}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"make the entry facts satisfiable", 32})); }) : s2->tag == 6 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Dead.f_line; __auto_type v_n_3 = s2->u.C_Flow__Dead.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"use-after-free", 14}), v_l_2, ((srs_str){(const uint8_t*)"use of a value after its region ended:", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"use it before the region ends, or allocate it in a longer region", 64})); }) : s2->tag == 7 ? ({ __auto_type v_l_2 = s2->u.C_Flow__Escape.f_line; __auto_type v_n_3 = s2->u.C_Flow__Escape.f_cap; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"region-escape", 13}), v_l_2, ((srs_str){(const uint8_t*)"a value escapes the scope of its region", 39}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_n_3; o4; }), ((srs_str){(const uint8_t*)"allocate it in a region that outlives the block", 47})); }) : ({ __auto_type v_l_2 = s2->u.C_Flow__Stale.f_line; __auto_type v_x_3 = s2->u.C_Flow__Stale.f_x; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"stale-value", 11}), v_l_2, ((srs_str){(const uint8_t*)"the value needs its capability in the state its type names; it is in another state:", 83}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_x_3; o4; }), ((srs_str){(const uint8_t*)"use it before the capability changes state", 42})); }); })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; srs_cap* t1 = p_eff__Region; struct E_Coll__List__S2c__File* t2 = p_fs; struct E_Coll__List__Flow__Clash* t3 = v_rest_1; p_eff__Console = t0; p_eff__Region = t1; p_fs = t2; p_cs = t3; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static int64_t f_S2c__internal(srs_cap* p_eff__Console, srs_str p_phase, struct E_Sym__Sym* p_rel) { return ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"srs internal: the ", 18})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, p_phase); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" rules are ill-formed at relation ", 34})); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, f_Sym__str(p_rel)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ((int64_t)2); res_; }); } -static int64_t f_S2c__finish(srs_cap* p_r, srs_cap* p_eff__Console, srs_cap* p_eff__Store, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res) { return ({ __auto_type s0 = p_m; s0->tag == 3 ? ({ ({ (void)(f_Store__check(p_r, p_eff__Store, p_eff__Console, p_ds)); __auto_type res_ = ((int64_t)0); res_; }); }) : s0->tag == 2 ? ({ ({ (void)(f_Hs__print(p_r, p_eff__Console, p_ds)); __auto_type res_ = ((int64_t)0); res_; }); }) : s0->tag == 0 ? ({ ({ (void)(f_Emit__program(p_r, p_eff__Console, p_ds, p_res)); __auto_type res_ = ((int64_t)0); res_; }); }) : ({ ({ __auto_type s0 = f_Pure__impure(p_r, p_ds, p_rows); s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_Pure__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"purity", 6}), v_rel_0); }) : ({ __auto_type v_imp_0 = s0->u.C_Pure__Got.f_impure; ({ __auto_type s1 = f_Ev__all(p_r, p_ds, v_imp_0); s1->tag == 0 ? ({ __auto_type v_ls_1 = s1->u.C_Ev__Lines.f_ls; ({ (void)(f_S2c__showLines(p_eff__Console, v_ls_1)); __auto_type res_ = ((int64_t)0); res_; }); }) : ({ __auto_type v_e_1 = s1->u.C_Ev__Failed.f_e; ({ (void)(({ __auto_type s2 = v_e_1; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Ev__Fuel.f_line; __auto_type v_f_3 = s2->u.C_Ev__Fuel.f_f; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"comptime-fuel", 13}), v_l_2, ((srs_str){(const uint8_t*)"comptime evaluation ran out of fuel at", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"the evaluation loops or runs too long: bound it", 47})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Ev__DivZero.f_line; __auto_type v_f_3 = s2->u.C_Ev__DivZero.f_f; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"comptime-div-zero", 17}), v_l_2, ((srs_str){(const uint8_t*)"comptime division by zero in", 28}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"divide by a nonzero value", 25})); }) : ({ __auto_type v_l_2 = s2->u.C_Ev__NoValue.f_line; __auto_type v_f_3 = s2->u.C_Ev__NoValue.f_f; f_S2c__diag(p_r, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"comptime-no-value", 17}), v_l_2, ((srs_str){(const uint8_t*)"no compile-time value at", 24}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"call only pure fns at compile time", 34})); }); })); __auto_type res_ = ((int64_t)1); res_; }); }); }); }); }); }); }); } +static int64_t f_S2c__finish(srs_cap* p_eff__Console, srs_cap* p_eff__Store, srs_cap* p_eff__Region, struct E_S2c__Mode* p_m, struct E_Coll__List__S2c__File* p_fs, struct E_Coll__List__Ast__Decl* p_ds, struct E_Eff__Rows* p_rows, struct E_Ty__Result* p_res) { return ({ __auto_type s0 = p_m; s0->tag == 3 ? ({ ({ (void)(f_Store__check(p_eff__Store, p_eff__Region, p_eff__Console, p_ds)); __auto_type res_ = ((int64_t)0); res_; }); }) : s0->tag == 2 ? ({ ({ (void)(f_Hs__print(p_eff__Console, p_eff__Region, p_ds)); __auto_type res_ = ((int64_t)0); res_; }); }) : s0->tag == 0 ? ({ ({ (void)(f_Emit__program(p_eff__Region, p_eff__Console, p_ds, p_res)); __auto_type res_ = ((int64_t)0); res_; }); }) : ({ ({ __auto_type s0 = f_Pure__impure(p_eff__Region, p_ds, p_rows); s0->tag == 1 ? ({ __auto_type v_rel_0 = s0->u.C_Pure__RulesBad.f_rel; f_S2c__internal(p_eff__Console, ((srs_str){(const uint8_t*)"purity", 6}), v_rel_0); }) : ({ __auto_type v_imp_0 = s0->u.C_Pure__Got.f_impure; ({ __auto_type s1 = f_Ev__all(p_eff__Region, p_ds, v_imp_0); s1->tag == 0 ? ({ __auto_type v_ls_1 = s1->u.C_Ev__Lines.f_ls; ({ (void)(f_S2c__showLines(p_eff__Console, v_ls_1)); __auto_type res_ = ((int64_t)0); res_; }); }) : ({ __auto_type v_e_1 = s1->u.C_Ev__Failed.f_e; ({ (void)(({ __auto_type s2 = v_e_1; s2->tag == 0 ? ({ __auto_type v_l_2 = s2->u.C_Ev__Fuel.f_line; __auto_type v_f_3 = s2->u.C_Ev__Fuel.f_f; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"comptime-fuel", 13}), v_l_2, ((srs_str){(const uint8_t*)"comptime evaluation ran out of fuel at", 38}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"the evaluation loops or runs too long: bound it", 47})); }) : s2->tag == 1 ? ({ __auto_type v_l_2 = s2->u.C_Ev__DivZero.f_line; __auto_type v_f_3 = s2->u.C_Ev__DivZero.f_f; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"comptime-div-zero", 17}), v_l_2, ((srs_str){(const uint8_t*)"comptime division by zero in", 28}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"divide by a nonzero value", 25})); }) : ({ __auto_type v_l_2 = s2->u.C_Ev__NoValue.f_line; __auto_type v_f_3 = s2->u.C_Ev__NoValue.f_f; f_S2c__diag(p_eff__Region, p_eff__Console, p_fs, ((srs_str){(const uint8_t*)"comptime-no-value", 17}), v_l_2, ((srs_str){(const uint8_t*)"no compile-time value at", 24}), ({ struct E_S2c__What* o4 = (struct E_S2c__What*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__What, u) + sizeof(((struct E_S2c__What*)0)->u.C_S2c__Name))); o4->tag = 1; o4->u.C_S2c__Name.f_n = v_f_3; o4; }), ((srs_str){(const uint8_t*)"call only pure fns at compile time", 34})); }); })); __auto_type res_ = ((int64_t)1); res_; }); }); }); }); }); }); }); } static int64_t f_S2c__showLines(srs_cap* p_eff__Console, struct E_Coll__List__Ev__Line* p_ls) { srs_tail: return ({ __auto_type s0 = p_ls; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_l_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ __auto_type res_ = ({ __auto_type s2 = v_l_0; ({ __auto_type v_n_2 = s2->u.C_Ev__Shown.f_name; __auto_type v_v_3 = s2->u.C_Ev__Shown.f_v; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, f_Sym__str(v_n_2)); p_eff__Console->live = 0; r_; })); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)" ", 1})); p_eff__Console->live = 0; r_; })); (void)(f_Ev__show(p_eff__Console, v_v_3)); (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[0]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"\n", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__Ev__Line* t1 = v_rest_1; p_eff__Console = t0; p_ls = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); res_; }); }); }); } -static struct E_S2c__Args* f_S2c__args(srs_cap* p_r, srs_cap* p_eff__Args) { return ({ __auto_type res_ = (((({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; }) > ((int64_t)1)) && Str__eq(({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, ((int64_t)1)); p_eff__Args->live = 0; r_; }), ((srs_str){(const uint8_t*)"--eval", 6}))) ? ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__EvalAll); o0->u.C_S2c__Args.f_first = ((int64_t)2); o0; }) : (((({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; }) > ((int64_t)1)) && Str__eq(({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, ((int64_t)1)); p_eff__Args->live = 0; r_; }), ((srs_str){(const uint8_t*)"--hash", 6}))) ? ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__HashAll); o0->u.C_S2c__Args.f_first = ((int64_t)2); o0; }) : (((({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; }) > ((int64_t)1)) && Str__eq(({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, ((int64_t)1)); p_eff__Args->live = 0; r_; }), ((srs_str){(const uint8_t*)"--store-check", 13}))) ? ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__StoreCheck); o0->u.C_S2c__Args.f_first = ((int64_t)2); o0; }) : ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_r, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__EmitC); o0->u.C_S2c__Args.f_first = ((int64_t)1); o0; })))); res_; }); } -static int64_t f_main(void) { return ({ srs_cap v_r_0_v = { h_Srs__Arena_init(), vt_Srs__Arena, 1 }; srs_cap* v_r_0 = &v_r_0_v; srs_cap v_c_1_v = { h_Srs__Console_init(), vt_Srs__Console, 1 }; srs_cap* v_c_1 = &v_c_1_v; srs_cap v_a_2_v = { h_Srs__Args_init(), vt_Srs__Args, 1 }; srs_cap* v_a_2 = &v_a_2_v; srs_cap v_f_3_v = { h_Srs__Files_init(), vt_Srs__Files, 1 }; srs_cap* v_f_3 = &v_f_3_v; srs_cap v_st_4_v = { h_Srs__Store_init(), vt_Srs__Store, 1 }; srs_cap* v_st_4 = &v_st_4_v; __auto_type res_ = ({ __auto_type s5 = f_S2c__args(v_r_0, v_a_2); ({ __auto_type v_m_5 = s5->u.C_S2c__Args.f_m; __auto_type v_first_6 = s5->u.C_S2c__Args.f_first; ({ __auto_type res_ = ({ __auto_type s7 = f_S2c__read(v_r_0, v_a_2, v_f_3, v_first_6, ((int64_t)1), (&N_Coll__Nil__Ast__Decl), (&N_Coll__Nil__S2c__Err), (&N_Coll__Nil__S2c__File)); ({ __auto_type v_ds_7 = s7->u.C_S2c__Read.f_ds; __auto_type v_errs_8 = s7->u.C_S2c__Read.f_errs; __auto_type v_fs_9 = s7->u.C_S2c__Read.f_files; ({ __auto_type res_ = ({ __auto_type s10 = v_errs_8; s10->tag == 1 ? ({ ({ (void)(f_S2c__showErrs(v_r_0, v_c_1, v_fs_9, v_errs_8)); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ f_S2c__compile(v_r_0, v_st_4, v_c_1, v_m_5, v_fs_9, v_ds_7); }); }); res_; }); }); }); res_; }); }); }); if (v_r_0->live) ((int64_t(*)(void*))(v_r_0->vt[1]))(v_r_0->self); res_; }); } +static struct E_S2c__Args* f_S2c__args(srs_cap* p_eff__Args, srs_cap* p_eff__Region) { return ({ __auto_type res_ = (((({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; }) > ((int64_t)1)) && Str__eq(({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, ((int64_t)1)); p_eff__Args->live = 0; r_; }), ((srs_str){(const uint8_t*)"--eval", 6}))) ? ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__EvalAll); o0->u.C_S2c__Args.f_first = ((int64_t)2); o0; }) : (((({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; }) > ((int64_t)1)) && Str__eq(({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, ((int64_t)1)); p_eff__Args->live = 0; r_; }), ((srs_str){(const uint8_t*)"--hash", 6}))) ? ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__HashAll); o0->u.C_S2c__Args.f_first = ((int64_t)2); o0; }) : (((({ __auto_type r_ = ((int64_t(*)(void*))(p_eff__Args->vt[0]))(p_eff__Args->self); p_eff__Args->live = 0; r_; }) > ((int64_t)1)) && Str__eq(({ __auto_type r_ = ((srs_str(*)(void*, int64_t))(p_eff__Args->vt[1]))(p_eff__Args->self, ((int64_t)1)); p_eff__Args->live = 0; r_; }), ((srs_str){(const uint8_t*)"--store-check", 13}))) ? ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__StoreCheck); o0->u.C_S2c__Args.f_first = ((int64_t)2); o0; }) : ({ struct E_S2c__Args* o0 = (struct E_S2c__Args*)srs_alloc(p_eff__Region, (int64_t)(offsetof(struct E_S2c__Args, u) + sizeof(((struct E_S2c__Args*)0)->u.C_S2c__Args))); o0->tag = 0; o0->u.C_S2c__Args.f_m = (&N_S2c__EmitC); o0->u.C_S2c__Args.f_first = ((int64_t)1); o0; })))); res_; }); } +static int64_t f_main(void) { return ({ srs_cap v_r_0_v = { h_Srs__Arena_init(), vt_Srs__Arena, 1 }; srs_cap* v_r_0 = &v_r_0_v; srs_cap v_c_1_v = { h_Srs__Console_init(), vt_Srs__Console, 1 }; srs_cap* v_c_1 = &v_c_1_v; srs_cap v_a_2_v = { h_Srs__Args_init(), vt_Srs__Args, 1 }; srs_cap* v_a_2 = &v_a_2_v; srs_cap v_f_3_v = { h_Srs__Files_init(), vt_Srs__Files, 1 }; srs_cap* v_f_3 = &v_f_3_v; srs_cap v_st_4_v = { h_Srs__Store_init(), vt_Srs__Store, 1 }; srs_cap* v_st_4 = &v_st_4_v; __auto_type res_ = ({ __auto_type s5 = f_S2c__args(v_a_2, v_r_0); ({ __auto_type v_m_5 = s5->u.C_S2c__Args.f_m; __auto_type v_first_6 = s5->u.C_S2c__Args.f_first; ({ __auto_type res_ = ({ __auto_type s7 = f_S2c__read(v_a_2, v_r_0, v_f_3, v_first_6, ((int64_t)1), (&N_Coll__Nil__Ast__Decl), (&N_Coll__Nil__S2c__Err), (&N_Coll__Nil__S2c__File)); ({ __auto_type v_ds_7 = s7->u.C_S2c__Read.f_ds; __auto_type v_errs_8 = s7->u.C_S2c__Read.f_errs; __auto_type v_fs_9 = s7->u.C_S2c__Read.f_files; ({ __auto_type res_ = ({ __auto_type s10 = v_errs_8; s10->tag == 1 ? ({ ({ (void)(f_S2c__showErrs(v_c_1, v_r_0, v_fs_9, v_errs_8)); __auto_type res_ = ((int64_t)1); res_; }); }) : ({ f_S2c__compile(v_st_4, v_r_0, v_c_1, v_m_5, v_fs_9, v_ds_7); }); }); res_; }); }); }); res_; }); }); }); if (v_r_0->live) ((int64_t(*)(void*))(v_r_0->vt[1]))(v_r_0->self); res_; }); } static int64_t f_S2c__term(srs_cap* p_eff__Console, struct E_K__Term* p_t) { return ({ __auto_type s0 = p_t; s0->tag == 1 ? ({ __auto_type v_n_0 = s0->u.C_K__Con.f_f; __auto_type v_args_1 = s0->u.C_K__Con.f_args; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, f_Sym__str(v_n_0)); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type s2 = v_args_1; s2->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_a_2 = s2->u.C_Coll__Cons.f_h; __auto_type v_rest_3 = s2->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"[", 1})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__term(p_eff__Console, v_a_2)); (void)(f_S2c__terms(p_eff__Console, v_rest_3)); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"]", 1})); p_eff__Console->live = 0; r_; }); res_; }); }); }); res_; }); }) : s0->tag == 2 ? ({ __auto_type v_v_0 = s0->u.C_K__Int.f_v; ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[4]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); }) : ({ __auto_type v_v_0 = s0->u.C_K__Var.f_n; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)"?", 1})); p_eff__Console->live = 0; r_; })); __auto_type res_ = ({ __auto_type r_ = ((int64_t(*)(void*, int64_t))(p_eff__Console->vt[4]))(p_eff__Console->self, v_v_0); p_eff__Console->live = 0; r_; }); res_; }); }); }); } static int64_t f_S2c__terms(srs_cap* p_eff__Console, struct E_Coll__List__K__Term* p_ts) { srs_tail: return ({ __auto_type s0 = p_ts; s0->tag == 0 ? ({ ((int64_t)0); }) : ({ __auto_type v_t_0 = s0->u.C_Coll__Cons.f_h; __auto_type v_rest_1 = s0->u.C_Coll__Cons.f_t; ({ (void)(({ __auto_type r_ = ((int64_t(*)(void*, srs_str))(p_eff__Console->vt[3]))(p_eff__Console->self, ((srs_str){(const uint8_t*)", ", 2})); p_eff__Console->live = 0; r_; })); (void)(f_S2c__term(p_eff__Console, v_t_0)); __auto_type res_ = ({ srs_cap* t0 = p_eff__Console; struct E_Coll__List__K__Term* t1 = v_rest_1; p_eff__Console = t0; p_ts = t1; goto srs_tail; (int64_t){0}; }); res_; }); }); }); } static void* h_Srs__Arena_init(void) { return rt_arena_new(); } diff --git a/lib/datalog.srs b/lib/datalog.srs index 7cefa37d..3267d2f7 100644 --- a/lib/datalog.srs +++ b/lib/datalog.srs @@ -100,12 +100,12 @@ def hasFact(db: Facts, f: Fact): Bool = db match case FactCons(h, _, t) => factEq(h, f) || hasFact(t, f) // ── matching ── -def envGet {r: Region} (e: Env, n: I64): Arg = e match +def envGet(e: Env, n: I64): Arg = e match case EnvNil => AVar(n) case EnvBind(m, v, t) => if m == n then AVal(v) else envGet(t, n) // e extended so args match vals, or none -def matchArgs {r: Region} (e: Env, args: ArgList, vals: Vals): Envs = args match +def matchArgs(e: Env, args: ArgList, vals: Vals): Envs = args match case ArgNil => vals match case ValNil => EnvsCons(e, EnvsNil) case ValCons(_, _) => EnvsNil @@ -115,14 +115,14 @@ def matchArgs {r: Region} (e: Env, args: ArgList, vals: Vals): Envs = args match case EnvsNil => EnvsNil case EnvsCons(e2, _) => matchArgs(e2, at, vt) -def matchOne {r: Region} (e: Env, a: Arg, v: Val): Envs = a match +def matchOne(e: Env, a: Arg, v: Val): Envs = a match case AVal(w) => if valEq(w, v) then EnvsCons(e, EnvsNil) else EnvsNil case AVar(n) => envGet(e, n) match case AVal(w) => if valEq(w, v) then EnvsCons(e, EnvsNil) else EnvsNil case AVar(_) => EnvsCons(EnvBind(n, v, e), EnvsNil) // every extension of e that matches atom a against a fact of db, in db order -def matchFacts {r: Region} (e: Env, a: Atom, db: Facts): Envs = db match +def matchFacts(e: Env, a: Atom, db: Facts): Envs = db match case FactNil => EnvsNil case FactCons(f, _, t) => a match case Atom(p, args) => f match @@ -130,17 +130,17 @@ def matchFacts {r: Region} (e: Env, a: Atom, db: Facts): Envs = db match val rest = matchFacts(e, a, t) if Str.eq(p, q) then envsAppend(matchArgs(e, args, vals), rest) else rest -def envsAppend {r: Region} (a: Envs, b: Envs): Envs = a match +def envsAppend(a: Envs, b: Envs): Envs = a match case EnvsNil => b case EnvsCons(h, t) => EnvsCons(h, envsAppend(t, b)) -def matchEach {r: Region} (es: Envs, a: Atom, db: Facts): Envs = es match +def matchEach(es: Envs, a: Atom, db: Facts): Envs = es match case EnvsNil => EnvsNil case EnvsCons(e, t) => envsAppend(matchFacts(e, a, db), matchEach(t, a, db)) // the values of args under e. evalDatalog runs only safe rules, so every variable is bound here // shortcut: an unbound variable is skipped, not an error; a typed safe clause (vars proven bound) would remove it -def ground {r: Region} (e: Env, args: ArgList): Vals = args match +def ground(e: Env, args: ArgList): Vals = args match case ArgNil => ValNil case ArgCons(a, t) => a match case AVal(v) => ValCons(v, ground(e, t)) @@ -148,23 +148,23 @@ def ground {r: Region} (e: Env, args: ArgList): Vals = args match case AVal(v) => ValCons(v, ground(e, t)) case AVar(_) => ground(e, t) -def factOf {r: Region} (e: Env, a: Atom): Fact = a match +def factOf(e: Env, a: Atom): Fact = a match case Atom(p, args) => Fact(p, ground(e, args)) // the environments of the positive literals, then the ones no negative literal matches -def joinPos {r: Region} (es: Envs, body: Lits, db: Facts): Envs = body match +def joinPos(es: Envs, body: Lits, db: Facts): Envs = body match case LitNil => es case LitCons(l, t) => l match case Pos(a) => joinPos(matchEach(es, a, db), t, db) case Neg(_) => joinPos(es, t, db) -def dropNeg {r: Region} (es: Envs, body: Lits, db: Facts): Envs = body match +def dropNeg(es: Envs, body: Lits, db: Facts): Envs = body match case LitNil => es case LitCons(l, t) => l match case Pos(_) => dropNeg(es, t, db) case Neg(a) => dropNeg(keepAbsent(es, a, db), t, db) -def keepAbsent {r: Region} (es: Envs, a: Atom, db: Facts): Envs = es match +def keepAbsent(es: Envs, a: Atom, db: Facts): Envs = es match case EnvsNil => EnvsNil case EnvsCons(e, t) => if hasFact(db, factOf(e, a)) then keepAbsent(t, a, db) else EnvsCons(e, keepAbsent(t, a, db)) @@ -206,7 +206,7 @@ def stratum(st: Strata, p: Str): I64 = st match case StNil => 0 case StCons(q, k, t) => if Str.eq(p, q) then k else stratum(t, p) -def setStratum {r: Region} (st: Strata, p: Str, k: I64): Strata = st match +def setStratum(st: Strata, p: Str, k: I64): Strata = st match case StNil => StCons(p, k, StNil) case StCons(q, j, t) => if Str.eq(p, q) then StCons(q, k, t) else StCons(q, j, setStratum(t, p, k)) @@ -220,7 +220,7 @@ def needs(st: Strata, body: Lits, k: I64): I64 = body match case Pos(a) => needs(st, t, if stratum(st, relOf(a)) > k then stratum(st, relOf(a)) else k) case Neg(a) => needs(st, t, if stratum(st, relOf(a)) + 1 > k then stratum(st, relOf(a)) + 1 else k) -def raise {r: Region} (st: Strata, cs: Clauses): Strata = cs match +def raise(st: Strata, cs: Clauses): Strata = cs match case ClNil => st case ClCons(c, t) => c match case Clause(h, body) => @@ -251,16 +251,16 @@ def overRel(st: Strata, n: I64): Str = st match // ── evaluation ── // facts of db plus the new facts rule c derives from db -def derive {r: Region} (c: Clause, i: I64, db: Facts, acc: Facts): Facts = c match +def derive(c: Clause, i: I64, db: Facts, acc: Facts): Facts = c match case Clause(h, body) => addAll(dropNeg(joinPos(EnvsCons(EnvNil, EnvsNil), body, db), body, db), h, i, acc) -def addAll {r: Region} (es: Envs, h: Atom, i: I64, acc: Facts): Facts = es match +def addAll(es: Envs, h: Atom, i: I64, acc: Facts): Facts = es match case EnvsNil => acc case EnvsCons(e, t) => val f = factOf(e, h) addAll(t, h, i, if hasFact(acc, f) then acc else factAppend(acc, f, ByRule(i, e))) -def factAppend {r: Region} (db: Facts, f: Fact, src: Source): Facts = db match +def factAppend(db: Facts, f: Fact, src: Source): Facts = db match case FactNil => FactCons(f, src, FactNil) case FactCons(h, s, t) => FactCons(h, s, factAppend(t, f, src)) @@ -291,12 +291,12 @@ def fmGet(m: FMap, h: I64): Facts = m match case FmTip => FactNil case FmBin(k, b, l, rt) => if h == k then b else if h < k then fmGet(l, h) else fmGet(rt, h) -def fmAdd {r: Region} (m: FMap, h: I64, f: Fact, src: Source): FMap = m match +def fmAdd(m: FMap, h: I64, f: Fact, src: Source): FMap = m match case FmTip => FmBin(h, FactCons(f, src, FactNil), FmTip, FmTip) case FmBin(k, b, l, rt) => if h == k then FmBin(k, FactCons(f, src, b), l, rt) else if h < k then FmBin(k, b, fmAdd(l, h, f, src), rt) else FmBin(k, b, l, fmAdd(rt, h, f, src)) -def colsAdd {r: Region} (cs: Cols, vs: Vals, f: Fact, src: Source): Cols = vs match +def colsAdd(cs: Cols, vs: Vals, f: Fact, src: Source): Cols = vs match case ValNil => cs case ValCons(v, vt) => cs match case ColNil => Col(fmAdd(FmTip, valHash(v), f, src), colsAdd(ColNil, vt, f, src)) @@ -306,27 +306,27 @@ def factsOf(rs: Rels, p: Str, delta: Bool): Facts = rs match case RelNil => FactNil case Rel(q, all, d, _, t) => if Str.eq(p, q) then (if delta then d else all) else factsOf(t, p, delta) -def addFact {r: Region} (rs: Rels, f: Fact, src: Source, delta: Bool): Rels = f match +def addFact(rs: Rels, f: Fact, src: Source, delta: Bool): Rels = f match case Fact(p, vs) => rs match case RelNil => Rel(p, FactCons(f, src, FactNil), if delta then FactCons(f, src, FactNil) else FactNil, colsAdd(ColNil, vs, f, src), RelNil) case Rel(q, all, d, cs, t) => if Str.eq(p, q) then Rel(q, FactCons(f, src, all), if delta then FactCons(f, src, d) else d, colsAdd(cs, vs, f, src), t) else Rel(q, all, d, cs, addFact(t, f, src, delta)) -def resetDelta {r: Region} (rs: Rels): Rels = rs match +def resetDelta(rs: Rels): Rels = rs match case RelNil => RelNil case Rel(q, all, _, cs, t) => Rel(q, all, FactNil, cs, resetDelta(t)) -def addFacts {r: Region} (rs: Rels, fs: Facts, delta: Bool): Rels = fs match +def addFacts(rs: Rels, fs: Facts, delta: Bool): Rels = fs match case FactNil => rs case FactCons(f, src, t) => addFacts(addFact(rs, f, src, delta), t, delta) // the facts of p that can match args under e: the bucket of the first bound column, else all -def candidates {r: Region} (rs: Rels, p: Str, args: ArgList, e: Env): Facts = rs match +def candidates(rs: Rels, p: Str, args: ArgList, e: Env): Facts = rs match case RelNil => FactNil case Rel(q, all, _, cs, t) => if Str.eq(p, q) then boundCol(all, cs, args, e) else candidates(t, p, args, e) -def boundCol {r: Region} (all: Facts, cs: Cols, args: ArgList, e: Env): Facts = args match +def boundCol(all: Facts, cs: Cols, args: ArgList, e: Env): Facts = args match case ArgNil => all case ArgCons(a, at) => cs match case ColNil => all @@ -337,26 +337,26 @@ def boundCol {r: Region} (all: Facts, cs: Cols, args: ArgList, e: Env): Facts = case AVar(_) => boundCol(all, ct, at, e) // f is a fact of rs: look in the bucket of its first column -def knownFact {r: Region} (rs: Rels, f: Fact): Bool = f match +def knownFact(rs: Rels, f: Fact): Bool = f match case Fact(p, vs) => vs match case ValNil => hasFact(factsOf(rs, p, false), f) case ValCons(v, _) => hasFact(candidates(rs, p, ArgCons(AVal(v), ArgNil), EnvNil), f) // every extension of e that matches args against a fact of fs (one relation) -def matchRel {r: Region} (e: Env, args: ArgList, fs: Facts): Envs = fs match +def matchRel(e: Env, args: ArgList, fs: Facts): Envs = fs match case FactNil => EnvsNil case FactCons(f, _, t) => f match case Fact(_, vals) => envsAppend(matchArgs(e, args, vals), matchRel(e, args, t)) // each env joined with relation p: on its delta, or on the facts its bound columns select -def matchAll {r: Region} (es: Envs, args: ArgList, rs: Rels, p: Str, delta: Bool): Envs = es match +def matchAll(es: Envs, args: ArgList, rs: Rels, p: Str, delta: Bool): Envs = es match case EnvsNil => EnvsNil case EnvsCons(e, t) => val fs = if delta then factsOf(rs, p, true) else candidates(rs, p, args, e) envsAppend(matchRel(e, args, fs), matchAll(t, args, rs, p, delta)) // the positive literals joined: literal number at on the delta of its relation, the others on all facts -def joinRels {r: Region} (es: Envs, body: Lits, rs: Rels, at: I64, i: I64): Envs = body match +def joinRels(es: Envs, body: Lits, rs: Rels, at: I64, i: I64): Envs = body match case LitNil => es case LitCons(l, t) => l match case Pos(a) => a match @@ -364,22 +364,22 @@ def joinRels {r: Region} (es: Envs, body: Lits, rs: Rels, at: I64, i: I64): Envs case Neg(_) => joinRels(es, t, rs, at, i + 1) // negative literals: stratified, so their relations are complete -def dropNegRels {r: Region} (es: Envs, body: Lits, rs: Rels): Envs = body match +def dropNegRels(es: Envs, body: Lits, rs: Rels): Envs = body match case LitNil => es case LitCons(l, t) => l match case Pos(_) => dropNegRels(es, t, rs) case Neg(a) => dropNegRels(absentIn(es, a, rs), t, rs) -def absentIn {r: Region} (es: Envs, a: Atom, rs: Rels): Envs = es match +def absentIn(es: Envs, a: Atom, rs: Rels): Envs = es match case EnvsNil => EnvsNil case EnvsCons(e, t) => if knownFact(rs, factOf(e, a)) then absentIn(t, a, rs) else EnvsCons(e, absentIn(t, a, rs)) // the new facts of clause i (at = its delta literal, -1 = none) added to acc, the new facts of this round -def fireRule {r: Region} (c: Clause, i: I64, at: I64, rs: Rels, acc: Facts): Facts = c match +def fireRule(c: Clause, i: I64, at: I64, rs: Rels, acc: Facts): Facts = c match case Clause(h, body) => addNew(dropNegRels(joinRels(EnvsCons(EnvNil, EnvsNil), body, rs, at, 0), body, rs), h, i, rs, acc) -def addNew {r: Region} (es: Envs, h: Atom, i: I64, rs: Rels, acc: Facts): Facts = es match +def addNew(es: Envs, h: Atom, i: I64, rs: Rels, acc: Facts): Facts = es match case EnvsNil => acc case EnvsCons(e, t) => val f = factOf(e, h) @@ -387,14 +387,14 @@ def addNew {r: Region} (es: Envs, h: Atom, i: I64, rs: Rels, acc: Facts): Facts addNew(t, h, i, rs, if known then acc else FactCons(f, ByRule(i, e), acc)) // after the first round, a new fact needs a fact of the last round: fire once per literal whose relation grew -def fireDeltas {r: Region} (c: Clause, i: I64, body: Lits, at: I64, rs: Rels, acc: Facts): Facts = body match +def fireDeltas(c: Clause, i: I64, body: Lits, at: I64, rs: Rels, acc: Facts): Facts = body match case LitNil => acc case LitCons(l, t) => l match case Pos(a) => fireDeltas(c, i, t, at + 1, rs, if noFacts(factsOf(rs, relOf(a), true)) then acc else fireRule(c, i, at, rs, acc)) case Neg(_) => fireDeltas(c, i, t, at + 1, rs, acc) // one round of every clause of stratum k -def dlRound {r: Region} (st: Strata, cs: Clauses, i: I64, k: I64, first: Bool, rs: Rels, acc: Facts): Facts = cs match +def dlRound(st: Strata, cs: Clauses, i: I64, k: I64, first: Bool, rs: Rels, acc: Facts): Facts = cs match case ClNil => acc case ClCons(c, t) => c match case Clause(h, body) => @@ -405,11 +405,11 @@ def noFacts(fs: Facts): Bool = fs match case FactNil => true case FactCons(_, _, _) => false -def factsCat {r: Region} (a: Facts, b: Facts): Facts = a match +def factsCat(a: Facts, b: Facts): Facts = a match case FactNil => b case FactCons(f, s, t) => FactCons(f, s, factsCat(t, b)) -def factsRev {r: Region} (a: Facts, out: Facts): Facts = a match +def factsRev(a: Facts, out: Facts): Facts = a match case FactNil => out case FactCons(f, s, t) => factsRev(t, FactCons(f, s, out)) @@ -417,13 +417,13 @@ enum Safety: case AllSafe case UnsafeIn(rel: Str) -def safety {r: Region} (cs: Clauses): Safety = cs match +def safety(cs: Clauses): Safety = cs match case ClNil => AllSafe case ClCons(c, t) => if safe(c) then safety(t) else c match case Clause(h, _) => UnsafeIn(relOf(h)) // the model of rules cs over facts db, strata in order -def evalDatalog {r: Region} (cs: Clauses, edb: Edb): Model = safety(cs) match +def evalDatalog(cs: Clauses, edb: Edb): Model = safety(cs) match case UnsafeIn(p) => Unsafe(p) case AllSafe => // a stratum is at most the clause count unless a relation depends on itself through negation @@ -451,7 +451,7 @@ def evalDatalog {r: Region} (cs: Clauses, edb: Edb): Model = safety(cs) match k = k + 1 Model(factsCat(gs, factsRev(log, FactNil))) -def given {r: Region} (edb: Edb): Facts = edb match +def given(edb: Edb): Facts = edb match case EdbNil => FactNil case EdbCons(f, t) => FactCons(f, Given, given(t)) @@ -467,7 +467,7 @@ enum ClauseAt: case NoClause case ClauseAt(c: Clause) -def clauseAt {r: Region} (cs: Clauses, i: I64): ClauseAt = cs match +def clauseAt(cs: Clauses, i: I64): ClauseAt = cs match case ClNil => NoClause case ClCons(c, t) => if i == 0 then ClauseAt(c) else clauseAt(t, i - 1) @@ -475,33 +475,33 @@ def edbHas(edb: Edb, f: Fact): Bool = edb match case EdbNil => false case EdbCons(h, t) => factEq(h, f) || edbHas(t, f) -def posIn {r: Region} (e: Env, body: Lits, seen: Facts): Bool = body match +def posIn(e: Env, body: Lits, seen: Facts): Bool = body match case LitNil => true case LitCons(l, t) => l match case Pos(a) => hasFact(seen, factOf(e, a)) && posIn(e, t, seen) case Neg(_) => posIn(e, t, seen) -def negOut {r: Region} (e: Env, body: Lits, model: Facts): Bool = body match +def negOut(e: Env, body: Lits, model: Facts): Bool = body match case LitNil => true case LitCons(l, t) => l match case Pos(_) => negOut(e, t, model) case Neg(a) => !hasFact(model, factOf(e, a)) && negOut(e, t, model) -def supported {r: Region} (cs: Clauses, edb: Edb, model: Facts, f: Fact, src: Source, seen: Facts): Bool = src match +def supported(cs: Clauses, edb: Edb, model: Facts, f: Fact, src: Source, seen: Facts): Bool = src match case Given => edbHas(edb, f) case ByRule(i, e) => clauseAt(cs, i) match case NoClause => false case ClauseAt(c) => c match case Clause(h, body) => factEq(factOf(e, h), f) && posIn(e, body, seen) && negOut(e, body, model) -def checkFrom {r: Region} (cs: Clauses, edb: Edb, model: Facts, rest: Facts, seen: Facts): Verdict = rest match +def checkFrom(cs: Clauses, edb: Edb, model: Facts, rest: Facts, seen: Facts): Verdict = rest match case FactNil => Valid case FactCons(f, src, t) => if supported(cs, edb, model, f, src, seen) then checkFrom(cs, edb, model, t, factAppend(seen, f, src)) else Invalid(f) // the first fact some clause derives from the model that the model lacks -def closed {r: Region} (cs: Clauses, i: I64, model: Facts): Verdict = cs match +def closed(cs: Clauses, i: I64, model: Facts): Verdict = cs match case ClNil => Valid case ClCons(c, t) => val more = derive(c, i, model, model) @@ -509,10 +509,10 @@ def closed {r: Region} (cs: Clauses, i: I64, model: Facts): Verdict = cs match case Valid => closed(t, i + 1, model) case Invalid(f) => Invalid(f) -def checkModel {r: Region} (cs: Clauses, edb: Edb, model: Facts): Verdict = checkFrom(cs, edb, model, model, FactNil) match +def checkModel(cs: Clauses, edb: Edb, model: Facts): Verdict = checkFrom(cs, edb, model, model, FactNil) match case Invalid(f) => Invalid(f) case Valid => closed(cs, 0, model) -def missing {r: Region} (more: Facts, model: Facts): Verdict = more match +def missing(more: Facts, model: Facts): Verdict = more match case FactNil => Valid case FactCons(f, _, t) => if hasFact(model, f) then missing(t, model) else Invalid(f) diff --git a/lib/kanren.srs b/lib/kanren.srs index ef2166c6..98421a67 100644 --- a/lib/kanren.srs +++ b/lib/kanren.srs @@ -39,7 +39,7 @@ def occursIn(s: Subst, n: I64, ts: Terms): Bool = ts match case TCons(h, t) => occurs(s, n, h) || occursIn(s, n, t) // s extended so a and b are equal, or Fail -def unify {r: Region} (s: Subst, a: Term, b: Term): Unified = +def unify(s: Subst, a: Term, b: Term): Unified = val x = walk(s, a) val y = walk(s, b) x match @@ -53,12 +53,12 @@ def unify {r: Region} (s: Subst, a: Term, b: Term): Unified = case KInt(w) => if v == w then Ok(s) else Fail case TCon(_, _) => Fail -def bind {r: Region} (s: Subst, n: I64, t: Term): Unified = t match +def bind(s: Subst, n: I64, t: Term): Unified = t match case TVar(m) => if m == n then Ok(s) else Ok(SBind(n, t, s)) case TCon(_, _) => if occurs(s, n, t) then Fail else Ok(SBind(n, t, s)) case KInt(_) => Ok(SBind(n, t, s)) -def unifyAll {r: Region} (s: Subst, xs: Terms, ys: Terms): Unified = xs match +def unifyAll(s: Subst, xs: Terms, ys: Terms): Unified = xs match case TNil => ys match case TNil => Ok(s) case TCons(_, _) => Fail @@ -69,12 +69,12 @@ def unifyAll {r: Region} (s: Subst, xs: Terms, ys: Terms): Unified = xs match case Ok(s2) => unifyAll(s2, xt, yt) // t with every bound variable replaced, deeply -def walkAll {r: Region} (s: Subst, t: Term): Term = walk(s, t) match +def walkAll(s: Subst, t: Term): Term = walk(s, t) match case TVar(n) => TVar(n) case TCon(f, args) => TCon(f, walkEach(s, args)) case KInt(v) => KInt(v) -def walkEach {r: Region} (s: Subst, ts: Terms): Terms = ts match +def walkEach(s: Subst, ts: Terms): Terms = ts match case TNil => TNil case TCons(h, t) => TCons(walkAll(s, h), walkEach(s, t)) @@ -199,16 +199,16 @@ enum Run: case Run(answers: Answers, status: Status) // rename apart: every variable moved by k -def shift {r: Region} (t: Term, k: I64): Term = t match +def shift(t: Term, k: I64): Term = t match case TVar(n) => TVar(n + k) case TCon(f, args) => TCon(f, shiftAll(args, k)) case KInt(v) => KInt(v) -def shiftAll {r: Region} (ts: Terms, k: I64): Terms = ts match +def shiftAll(ts: Terms, k: I64): Terms = ts match case TNil => TNil case TCons(h, t) => TCons(shift(h, k), shiftAll(t, k)) -def shiftGoal {r: Region} (g: Goal, k: I64): Goal = g match +def shiftGoal(g: Goal, k: I64): Goal = g match case GTrue => GTrue case GEq(a, b) => GEq(shift(a, k), shift(b, k)) case GEqAll(as, bs) => GEqAll(shiftAll(as, k), shiftAll(bs, k)) @@ -220,7 +220,7 @@ def shiftGoal {r: Region} (g: Goal, k: I64): Goal = g match case GLabel(xs) => GLabel(shiftAll(xs, k)) case GCall(f, args) => GCall(f, shiftAll(args, k)) -def shiftFd {r: Region} (c: Fd, k: I64): Fd = c match +def shiftFd(c: Fd, k: I64): Fd = c match case FBin(op, x, y) => FBin(op, shift(x, k), shift(y, k)) case FPlus(x, y, z) => FPlus(shift(x, k), shift(y, k), shift(z, k)) @@ -229,19 +229,19 @@ def substSize(s: Subst): I64 = s match case SBind(_, _, rest) => 1 + substSize(rest) // the first n bindings of s: what unify added on top of the substitution it started from -def newest {r: Region} (s: Subst, n: I64): Subst = if n <= 0 then SNil else s match +def newest(s: Subst, n: I64): Subst = if n <= 0 then SNil else s match case SNil => SNil case SBind(v, t, rest) => SBind(v, t, newest(rest, n - 1)) // s extended with every binding of p -def unifyBinds {r: Region} (s: Subst, p: Subst): Unified = p match +def unifyBinds(s: Subst, p: Subst): Unified = p match case SNil => Ok(s) case SBind(v, t, rest) => unify(s, TVar(v), t) match case Fail => Fail case Ok(s2) => unifyBinds(s2, rest) // a =/= b: drop it when they can never unify, Bad when they already are equal, else store what equality needs -def addNeq {r: Region} (st: State, a: Term, b: Term): Checked = st match +def addNeq(st: State, a: Term, b: Term): Checked = st match case State(s, ns, ds, fs, nx) => unify(s, a, b) match case Fail => Good(st) case Ok(s2) => @@ -253,7 +253,7 @@ enum NeqsR: case Kept(ns: Neqs) // the store under substitution s: each disequality checked again (as addNeq) -def recheck {r: Region} (s: Subst, ns: Neqs): NeqsR = ns match +def recheck(s: Subst, ns: Neqs): NeqsR = ns match case NeqNil => Kept(NeqNil) case NeqCons(p, t) => recheck(s, t) match case Violated => Violated @@ -264,12 +264,12 @@ def recheck {r: Region} (s: Subst, ns: Neqs): NeqsR = ns match if n == 0 then Violated else Kept(NeqCons(newest(s2, n), kept)) // the state after unify gave u: dead on Fail, else every constraint settled again -def post {r: Region} (st: State, u: Unified): Checked = u match +def post(st: State, u: Unified): Checked = u match case Fail => Bad case Ok(s2) => st match case State(_, ns, ds, fs, nx) => settle(State(s2, ns, ds, fs, nx)) -def settled {r: Region} (c: Checked): Checked = c match +def settled(c: Checked): Checked = c match case Bad => Bad case Good(st) => settle(st) @@ -281,7 +281,7 @@ def member(v: I64, xs: Ints): Bool = xs match def inDom(v: I64, d: Dom): Bool = d match case Dom(h, t) => h == v || member(v, t) -def ints {r: Region} (d: Dom): Ints = d match +def ints(d: Dom): Ints = d match case Dom(h, t) => ICons(h, t) def lastOf(h: I64, t: Ints): I64 = t match @@ -302,18 +302,18 @@ def domSize(d: Dom): I64 = d match case Dom(_, t) => 1 + intsSize(t) // a..b ascending -def range {r: Region} (a: I64, b: I64): Ints = if a > b then INil else ICons(a, range(a + 1, b)) +def range(a: I64, b: I64): Ints = if a > b then INil else ICons(a, range(a + 1, b)) // the values of xs in a..b -def between {r: Region} (xs: Ints, a: I64, b: I64): Ints = xs match +def between(xs: Ints, a: I64, b: I64): Ints = xs match case INil => INil case ICons(h, t) => if h >= a && h <= b then ICons(h, between(t, a, b)) else between(t, a, b) -def kwithout {r: Region} (xs: Ints, v: I64): Ints = xs match +def kwithout(xs: Ints, v: I64): Ints = xs match case INil => INil case ICons(h, t) => if h == v then kwithout(t, v) else ICons(h, kwithout(t, v)) -def meetInts {r: Region} (xs: Ints, d: Dom): Ints = xs match +def meetInts(xs: Ints, d: Dom): Ints = xs match case INil => INil case ICons(h, t) => if inDom(h, d) then ICons(h, meetInts(t, d)) else meetInts(t, d) @@ -322,23 +322,23 @@ enum DomOf: case Has(d: Dom) case NotInt -def lookupDom {r: Region} (ds: Doms, n: I64): DomOf = ds match +def lookupDom(ds: Doms, n: I64): DomOf = ds match case DNil => NoDom case DCons(v, d, t) => if v == n then Has(d) else lookupDom(t, n) -def dropDom {r: Region} (ds: Doms, n: I64): Doms = ds match +def dropDom(ds: Doms, n: I64): Doms = ds match case DNil => DNil case DCons(v, d, t) => if v == n then dropDom(t, n) else DCons(v, d, dropDom(t, n)) // the domain of t: an integer has itself, a variable its entry (or none), a constructor is not an integer -def domOf {r: Region} (st: State, t: Term): DomOf = st match +def domOf(st: State, t: Term): DomOf = st match case State(s, _, ds, _, _) => walk(s, t) match case TVar(n) => lookupDom(ds, n) case KInt(v) => Has(Dom(v, INil)) case TCon(_, _) => NotInt // t takes a value of xs (ascending): Bad when none is left, bound when one is left -def setDom {r: Region} (st: State, t: Term, xs: Ints): Checked = st match +def setDom(st: State, t: Term, xs: Ints): Checked = st match case State(s, ns, ds, fs, nx) => xs match case INil => Bad case ICons(h, rest) => walk(s, t) match @@ -351,13 +351,13 @@ def setDom {r: Region} (st: State, t: Term, xs: Ints): Checked = st match case ICons(_, _) => Good(State(s, ns, DCons(n, Dom(h, rest), dropDom(ds, n)), fs, nx)) // t takes a value of xs and of the domain it already has -def meet {r: Region} (st: State, t: Term, xs: Ints): Checked = domOf(st, t) match +def meet(st: State, t: Term, xs: Ints): Checked = domOf(st, t) match case NoDom => setDom(st, t, xs) case Has(d) => setDom(st, t, meetInts(xs, d)) case NotInt => Bad // every domain entry added again under the current substitution: bound ones checked, unified ones met -def redom {r: Region} (st: State, ds: Doms): Checked = ds match +def redom(st: State, ds: Doms): Checked = ds match case DNil => Good(st) case DCons(n, d, t) => redom(st, t) match case Bad => Bad @@ -365,24 +365,24 @@ def redom {r: Region} (st: State, ds: Doms): Checked = ds match // ── propagators (bounds) ── // x <= y - k: k = 0 for <=, 1 for < -def leAt {r: Region} (st: State, x: Term, y: Term, dx: Dom, dy: Dom, k: I64): Checked = +def leAt(st: State, x: Term, y: Term, dx: Dom, dy: Dom, k: I64): Checked = setDom(st, x, between(ints(dx), lo(dx), hi(dy) - k)) match case Bad => Bad case Good(st2) => setDom(st2, y, between(ints(dy), lo(dx) + k, hi(dy))) -def neqAt {r: Region} (st: State, x: Term, y: Term, dx: Dom, dy: Dom): Checked = +def neqAt(st: State, x: Term, y: Term, dx: Dom, dy: Dom): Checked = if domSize(dx) == 1 && domSize(dy) == 1 then (if lo(dx) == lo(dy) then Bad else Good(st)) else if domSize(dx) == 1 then setDom(st, y, kwithout(ints(dy), lo(dx))) else if domSize(dy) == 1 then setDom(st, x, kwithout(ints(dx), lo(dy))) else Good(st) -def binAt {r: Region} (st: State, op: Bin, x: Term, y: Term, dx: Dom, dy: Dom): Checked = op match +def binAt(st: State, op: Bin, x: Term, y: Term, dx: Dom, dy: Dom): Checked = op match case BLe => leAt(st, x, y, dx, dy, 0) case BLt => leAt(st, x, y, dx, dy, 1) case BNeq => neqAt(st, x, y, dx, dy) // x + y = z -def plusAt {r: Region} (st: State, x: Term, y: Term, z: Term, dx: Dom, dy: Dom, dz: Dom): Checked = +def plusAt(st: State, x: Term, y: Term, z: Term, dx: Dom, dy: Dom, dz: Dom): Checked = setDom(st, z, between(ints(dz), lo(dx) + lo(dy), hi(dx) + hi(dy))) match case Bad => Bad case Good(st1) => setDom(st1, x, between(ints(dx), lo(dz) - hi(dy), hi(dz) - lo(dy))) match @@ -390,7 +390,7 @@ def plusAt {r: Region} (st: State, x: Term, y: Term, z: Term, dx: Dom, dy: Dom, case Good(st2) => setDom(st2, y, between(ints(dy), lo(dz) - hi(dx), hi(dz) - lo(dx))) // a propagator runs once every variable it reads has a domain -def fire {r: Region} (st: State, c: Fd): Checked = c match +def fire(st: State, c: Fd): Checked = c match case FBin(op, x, y) => domOf(st, x) match case NoDom => Good(st) case NotInt => Bad @@ -409,7 +409,7 @@ def fire {r: Region} (st: State, c: Fd): Checked = c match case NotInt => Bad case Has(dz) => plusAt(st, x, y, z, dx, dy, dz) -def fireAll {r: Region} (st: State, fs: Fds): Checked = fs match +def fireAll(st: State, fs: Fds): Checked = fs match case FNil => Good(st) case FCons(c, t) => fire(st, c) match case Bad => Bad @@ -420,7 +420,7 @@ def domTotal(ds: Doms): I64 = ds match case DCons(_, d, t) => 1 + domSize(d) + domTotal(t) // one round: disequalities, domains, propagators -def round {r: Region} (st: State): Checked = st match +def round(st: State): Checked = st match case State(s, ns, ds, fs, nx) => recheck(s, ns) match case Violated => Bad case Kept(ns2) => redom(State(s, ns2, DNil, fs, nx), ds) match @@ -428,7 +428,7 @@ def round {r: Region} (st: State): Checked = st match case Good(st2) => fireAll(st2, fs) // rounds until nothing changes. Ends: a changing round binds a variable or removes a domain value or entry -def settle {r: Region} (st: State): Checked = round(st) match +def settle(st: State): Checked = round(st) match case Bad => Bad case Good(st2) => if same(st, st2) then Good(st2) else settle(st2) @@ -442,7 +442,7 @@ enum Pick: case Pick(t: Term, d: Dom) // the variable of xs with the smallest domain of 2 or more values (first-fail) -def pickVar {r: Region} (st: State, xs: Terms, best: Pick): Pick = xs match +def pickVar(st: State, xs: Terms, best: Pick): Pick = xs match case TNil => best case TCons(h, t) => domOf(st, h) match case Has(d) => if domSize(d) > 1 && smaller(d, best) then pickVar(st, t, Pick(h, d)) else pickVar(st, t, best) @@ -453,20 +453,20 @@ def smaller(d: Dom, best: Pick): Bool = best match case NoPick => true case Pick(_, e) => domSize(d) < domSize(e) -def labelBranches {r: Region} (st: State, t: Term, vs: Ints, after: Goals): Queue = vs match +def labelBranches(st: State, t: Term, vs: Ints, after: Goals): Queue = vs match case INil => QNil case ICons(v, more) => QCons(Branch(st, GCons(GEq(t, KInt(v)), after)), labelBranches(st, t, more, after)) // every two of xs differ -def distinct {r: Region} (xs: Terms): Goal = xs match +def distinct(xs: Terms): Goal = xs match case TNil => GTrue case TCons(h, t) => GConj(neqEach(h, t), distinct(t)) -def neqEach {r: Region} (x: Term, ys: Terms): Goal = ys match +def neqEach(x: Term, ys: Terms): Goal = ys match case TNil => GTrue case TCons(y, t) => GConj(GFd(FBin(BNeq, x, y)), neqEach(x, t)) -def onward {r: Region} (c: Checked, rest: Goals): Step = c match +def onward(c: Checked, rest: Goals): Step = c match case Bad => Dead case Good(st) => More(Branch(st, rest)) @@ -474,7 +474,7 @@ def onward {r: Region} (c: Checked, rest: Goals): Step = c match enum Picked: case Picked(bs: Queue, cost: I64) -def picks {r: Region} (rules: Rules, rel: Str, args: Terms, st: State, nx: I64, rest: Goals): Picked = rules match +def picks(rules: Rules, rel: Str, args: Terms, st: State, nx: I64, rest: Goals): Picked = rules match case RNil => Picked(QNil, 0) case RCons(h, t) => picks(t, rel, args, st, nx, rest) match case Picked(bs, cost) => h match @@ -484,7 +484,7 @@ def picks {r: Region} (rules: Rules, rel: Str, args: Terms, st: State, nx: I64, Picked(QCons(b, bs), cost + 1) else Picked(bs, cost) -def kstep {r: Region} (rules: Rules, b: Branch): Step = b match +def kstep(rules: Rules, b: Branch): Step = b match case Branch(st, gs) => gs match case GNil => Done(st) case GCons(g, rest) => st match @@ -503,17 +503,17 @@ def kstep {r: Region} (rules: Rules, b: Branch): Step = b match case GCall(f, args) => picks(rules, f, args, st, nx, rest) match case Picked(bs, cost) => Split(bs, cost) -def enqueue {r: Region} (q: Queue, bs: Queue): Queue = q match +def enqueue(q: Queue, bs: Queue): Queue = q match case QNil => bs case QCons(h, t) => QCons(h, enqueue(t, bs)) -def revAnswers {r: Region} (xs: Answers, acc: Answers): Answers = xs match +def revAnswers(xs: Answers, acc: Answers): Answers = xs match case ANil => acc case ACons(h, t) => revAnswers(t, ACons(h, acc)) // prove g (variables 0..nvars-1) over rules. Deterministic: a branch runs until a choice, the choice's branches // go to the back of the queue (fair, so complete). Every infinite path makes choices, so fuel bounds the run (§17). -def solve {r: Region} (rules: Rules, g: Goal, nvars: I64, fuel: I64, limit: I64): Run = +def solve(rules: Rules, g: Goal, nvars: I64, fuel: I64, limit: I64): Run = var q = QCons(Branch(State(SNil, NeqNil, DNil, FNil, nvars), GCons(g, GNil)), QNil) var left = fuel var found = ANil @@ -548,8 +548,8 @@ def solve {r: Region} (rules: Rules, g: Goal, nvars: I64, fuel: I64, limit: I64) def substOf(st: State): Subst = st match case State(s, _, _, _, _) => s -def withNext {r: Region} (st: State, nx: I64): State = st match +def withNext(st: State, nx: I64): State = st match case State(s, ns, ds, fs, _) => State(s, ns, ds, fs, nx) -def withFds {r: Region} (st: State, fs: Fds): State = st match +def withFds(st: State, fs: Fds): State = st match case State(s, ns, ds, _, nx) => State(s, ns, ds, fs, nx) diff --git a/s2/ast.srs b/s2/ast.srs index 666f260b..024f8635 100644 --- a/s2/ast.srs +++ b/s2/ast.srs @@ -202,7 +202,7 @@ def Ast.syms(xs: Coll.List[Sym.Sym], sep: Str): Unit = xs match Console.print(sep) Ast.syms(t, sep) -def Ast.tys {r: Region} (xs: Coll.List[Ast.Ty]): Unit = xs match +def Ast.tys(xs: Coll.List[Ast.Ty]): Unit = xs match case Coll.Nil => () case Coll.Cons(h, t) => Ast.ty(h) @@ -212,7 +212,7 @@ def Ast.tys {r: Region} (xs: Coll.List[Ast.Ty]): Unit = xs match Console.print(", ") Ast.tys(t) -def Ast.ty {r: Region} (t: Ast.Ty): Unit = +def Ast.ty(t: Ast.Ty): Unit = val Ast.Ty(_, n, args, caps, vals) = t Ast.sym(n) args match @@ -283,7 +283,7 @@ def Ast.rank(b: Ast.Bind): I64 = b match case Ast.Prefix => 7 case Ast.Atomic => 8 -def Ast.bindOf {r: Region} (e: Ast.Expr): Ast.Bind = e match +def Ast.bindOf(e: Ast.Expr): Ast.Bind = e match case Ast.Bin(_, op, _, _) => Ast.Infix(op) case Ast.Un(_, _, _) => Ast.Prefix case Ast.If(_, _, _, _) => Ast.Loose @@ -294,19 +294,19 @@ def Ast.bindOf {r: Region} (e: Ast.Expr): Ast.Bind = e match case Ast.Quant(_, _, _, _, _) => Ast.Loose case _ => Ast.Atomic -def Ast.fits {r: Region} (e: Ast.Expr, n: Ast.Need): Bool = n match +def Ast.fits(e: Ast.Expr, n: Ast.Need): Bool = n match case Ast.AtLeast(b) => Ast.rank(Ast.bindOf(e)) >= Ast.rank(b) case Ast.Above(b) => Ast.rank(Ast.bindOf(e)) > Ast.rank(b) // e in an operand position: in ( ) when it does not fit -def Ast.operand {r: Region} (e: Ast.Expr, n: Ast.Need, ind: I64): Unit = +def Ast.operand(e: Ast.Expr, n: Ast.Need, ind: I64): Unit = if Ast.fits(e, n) then Ast.expr(e, ind) else Console.print("(") Ast.expr(e, ind) Console.print(")") -def Ast.args {r: Region} (xs: Coll.List[Ast.Expr], ind: I64): Unit = xs match +def Ast.args(xs: Coll.List[Ast.Expr], ind: I64): Unit = xs match case Coll.Nil => () case Coll.Cons(h, t) => Ast.expr(h, ind) @@ -317,7 +317,7 @@ def Ast.args {r: Region} (xs: Coll.List[Ast.Expr], ind: I64): Unit = xs match Ast.args(t, ind) // e after `=`, `then`, `else`, `do` or `=>`: a block on its own lines one level in, anything else on this line -def Ast.body {r: Region} (e: Ast.Expr, ind: I64): Unit = e match +def Ast.body(e: Ast.Expr, ind: I64): Unit = e match case Ast.Block(_, ss, last) => Ast.stmts(ss, ind + Ast.step()) Ast.line(ind + Ast.step()) @@ -326,7 +326,7 @@ def Ast.body {r: Region} (e: Ast.Expr, ind: I64): Unit = e match Console.print(" ") Ast.expr(e, ind) -def Ast.expr {r: Region} (e: Ast.Expr, ind: I64): Unit = e match +def Ast.expr(e: Ast.Expr, ind: I64): Unit = e match case Ast.Int(_, v) => Console.printI64(v) case Ast.Bool(_, v) => Console.print(if v then "true" else "false") case Ast.Str(_, s) => @@ -412,7 +412,7 @@ def Ast.unText(op: Ast.UnOp): Str = op match // `else` on the line of a one-line then, on its own line after a block then // else starts a new line when either branch takes more than one line (a block, a match, a multi-line if or while): // after one, a same-line else would read as part of its last line -def Ast.elseBody {r: Region} (t: Ast.Expr, x: Ast.Expr, ind: I64): Unit = +def Ast.elseBody(t: Ast.Expr, x: Ast.Expr, ind: I64): Unit = if Ast.multiLine(t) || Ast.multiLine(x) then Ast.line(ind) Console.print("else") @@ -428,7 +428,7 @@ def Ast.multiLine(e: Ast.Expr): Bool = e match case Ast.If(_, _, t, x) => Ast.multiLine(t) || Ast.multiLine(x) case _ => false -def Ast.arms {r: Region} (xs: Coll.List[Ast.Arm], ind: I64): Unit = xs match +def Ast.arms(xs: Coll.List[Ast.Arm], ind: I64): Unit = xs match case Coll.Nil => () case Coll.Cons(a, t) => val Ast.Arm(_, p, b) = a @@ -451,14 +451,14 @@ def Ast.pat(p: Ast.Pat): Unit = p match Console.print(")") // each statement on its own line at ind -def Ast.stmts {r: Region} (xs: Coll.List[Ast.Stmt], ind: I64): Unit = xs match +def Ast.stmts(xs: Coll.List[Ast.Stmt], ind: I64): Unit = xs match case Coll.Nil => () case Coll.Cons(s, t) => Ast.line(ind) Ast.stmt(s, ind) Ast.stmts(t, ind) -def Ast.stmt {r: Region} (s: Ast.Stmt, ind: I64): Unit = s match +def Ast.stmt(s: Ast.Stmt, ind: I64): Unit = s match case Ast.Val(_, x, ann, e) => Console.print("val ") Ast.binding(x, ann, e, ind) @@ -487,7 +487,7 @@ def Ast.loopText(k: Ast.LoopCond): Str = k match case Ast.LInvariant => "invariant" case Ast.LDecreases => "decreases" -def Ast.binding {r: Region} (x: Sym.Sym, ann: Coll.Option[Ast.Ty], e: Ast.Expr, ind: I64): Unit = +def Ast.binding(x: Sym.Sym, ann: Coll.Option[Ast.Ty], e: Ast.Expr, ind: I64): Unit = Ast.sym(x) ann match case Coll.None => () @@ -525,7 +525,7 @@ def Ast.atoms(xs: Coll.List[Ast.Atom]): Unit = xs match Console.print(", ") Ast.atoms(t) -def Ast.binders {r: Region} (xs: Coll.List[Ast.Binder]): Unit = xs match +def Ast.binders(xs: Coll.List[Ast.Binder]): Unit = xs match case Coll.Nil => () case Coll.Cons(b, t) => val Ast.Binder(_, x, ty) = b @@ -539,7 +539,7 @@ def Ast.binders {r: Region} (xs: Coll.List[Ast.Binder]): Unit = xs match Ast.binders(t) // each group followed by a space: ` [A: Type] {s: Show[A]} ` -def Ast.groups {r: Region} (xs: Coll.List[Ast.Group]): Unit = xs match +def Ast.groups(xs: Coll.List[Ast.Group]): Unit = xs match case Coll.Nil => () case Coll.Cons(g, t) => Console.print(" ") @@ -558,7 +558,7 @@ def Ast.groups {r: Region} (xs: Coll.List[Ast.Group]): Unit = xs match Console.print(">") Ast.groups(t) -def Ast.fn {r: Region} (f: Ast.Fn, ind: I64): Unit = +def Ast.fn(f: Ast.Fn, ind: I64): Unit = val Ast.Fn(_, _, _, _, _, _, body) = f body match case Ast.Extern => Console.print("extern ") @@ -567,7 +567,7 @@ def Ast.fn {r: Region} (f: Ast.Fn, ind: I64): Unit = Ast.fnSig(f, ind) // a trait method signature: a def without body and without extern -def Ast.sigs {r: Region} (xs: Coll.List[Ast.Fn], ind: I64): Unit = xs match +def Ast.sigs(xs: Coll.List[Ast.Fn], ind: I64): Unit = xs match case Coll.Nil => () case Coll.Cons(f, t) => Ast.line(ind) @@ -575,7 +575,7 @@ def Ast.sigs {r: Region} (xs: Coll.List[Ast.Fn], ind: I64): Unit = xs match Ast.sigs(t, ind) // def name groups (params): ty [= body] -def Ast.fnSig {r: Region} (f: Ast.Fn, ind: I64): Unit = +def Ast.fnSig(f: Ast.Fn, ind: I64): Unit = val Ast.Fn(_, name, gs, ps, ret, exit, body) = f Console.print("def ") Ast.sym(name) @@ -599,7 +599,7 @@ def Ast.fnSig {r: Region} (f: Ast.Fn, ind: I64): Unit = case Ast.Spec(cs, e) => Ast.withClauses(cs, e, ind) // = body; with clauses: each on its own line one step in, then = at the start of a line (as tests/s2/prog/contracts.srs) -def Ast.withClauses {r: Region} (cs: Coll.List[Ast.Clause], e: Ast.Expr, ind: I64): Unit = cs match +def Ast.withClauses(cs: Coll.List[Ast.Clause], e: Ast.Expr, ind: I64): Unit = cs match case Coll.Nil => Console.print(" =") Ast.body(e, ind) @@ -616,7 +616,7 @@ def Ast.condText(k: Ast.Cond): Str = k match case Ast.Decreases => "decreases" case Ast.Invariant => "invariant" -def Ast.clauses {r: Region} (cs: Coll.List[Ast.Clause], ind: I64): Unit = cs match +def Ast.clauses(cs: Coll.List[Ast.Clause], ind: I64): Unit = cs match case Coll.Nil => () case Coll.Cons(c, rest) => Ast.line(ind) @@ -637,7 +637,7 @@ def Ast.clauses {r: Region} (cs: Coll.List[Ast.Clause], ind: I64): Unit = cs mat Console.print("\"") Ast.clauses(rest, ind) -def Ast.fns {r: Region} (xs: Coll.List[Ast.Fn], ind: I64): Unit = xs match +def Ast.fns(xs: Coll.List[Ast.Fn], ind: I64): Unit = xs match case Coll.Nil => () case Coll.Cons(f, t) => Ast.line(ind) @@ -657,7 +657,7 @@ def Ast.trans(xs: Coll.List[Ast.Trans]): Unit = xs match Console.print(", ") Ast.trans(t) -def Ast.ops {r: Region} (xs: Coll.List[Ast.Op]): Unit = xs match +def Ast.ops(xs: Coll.List[Ast.Op]): Unit = xs match case Coll.Nil => () case Coll.Cons(o, t) => val Ast.Op(_, name, ps, ret, trs) = o @@ -685,7 +685,7 @@ def Ast.rules(xs: Coll.List[Ast.RuleDef]): Unit = xs match Ast.atoms(body) Ast.rules(t) -def Ast.cases {r: Region} (xs: Coll.List[Ast.Case]): Unit = xs match +def Ast.cases(xs: Coll.List[Ast.Case]): Unit = xs match case Coll.Nil => () case Coll.Cons(c, t) => val Ast.Case(_, name, fs) = c @@ -700,7 +700,7 @@ def Ast.cases {r: Region} (xs: Coll.List[Ast.Case]): Unit = xs match Console.print(")") Ast.cases(t) -def Ast.decl {r: Region} (d: Ast.Decl): Unit = d match +def Ast.decl(d: Ast.Decl): Unit = d match case Ast.DFn(f) => Ast.fn(f, 0) case Ast.DEnum(en) => val Ast.Enum(_, name, gs, cs) = en @@ -777,7 +777,7 @@ def Ast.decl {r: Region} (d: Ast.Decl): Unit = d match Console.print(" match") Ast.valArms(arms) -def Ast.tyArms {r: Region} (xs: Coll.List[Ast.TyArm]): Unit = xs match +def Ast.tyArms(xs: Coll.List[Ast.TyArm]): Unit = xs match case Coll.Nil => () case Coll.Cons(a, t) => val Ast.TyArm(_, p, res) = a @@ -788,7 +788,7 @@ def Ast.tyArms {r: Region} (xs: Coll.List[Ast.TyArm]): Unit = xs match Ast.ty(res) Ast.tyArms(t) -def Ast.valArms {r: Region} (xs: Coll.List[Ast.ValArm]): Unit = xs match +def Ast.valArms(xs: Coll.List[Ast.ValArm]): Unit = xs match case Coll.Nil => () case Coll.Cons(a, t) => val Ast.ValArm(_, p, res) = a @@ -807,7 +807,7 @@ def Ast.valArms {r: Region} (xs: Coll.List[Ast.ValArm]): Unit = xs match Ast.valArms(t) // a program: its decls, one blank line between two, a newline after the last -def Ast.print {r: Region} (ds: Coll.List[Ast.Decl]): Unit = ds match +def Ast.print(ds: Coll.List[Ast.Decl]): Unit = ds match case Coll.Nil => () case Coll.Cons(d, t) => Ast.decl(d) diff --git a/s2/bmap.srs b/s2/bmap.srs index 3037e89c..c8549392 100644 --- a/s2/bmap.srs +++ b/s2/bmap.srs @@ -10,7 +10,7 @@ enum Coll.BTree [V: Type]: enum Coll.BMap [V: Type]: case Coll.BMap(n: I64, t: Coll.BTree[V]) -def Coll.bEmpty [V: Type] {r: Region} (): Coll.BMap[V] = Coll.BMap(0, Coll.BTip) +def Coll.bEmpty [V: Type] (): Coll.BMap[V] = Coll.BMap(0, Coll.BTip) def Coll.bSize [V: Type] (m: Coll.BMap[V]): I64 = m match case Coll.BMap(n, _) => n @@ -44,11 +44,11 @@ def Coll.bIsNode [V: Type] (n: Coll.BTree[V]): Bool = n match def Coll.bHas [V: Type] (m: Coll.BMap[V], k: I64): Bool = m match case Coll.BMap(_, t) => Coll.bIsNode(Coll.bFind(t, k)) -def Coll.bLookup [V: Type] {r: Region} (m: Coll.BMap[V], k: I64): Coll.Option[V] = m match +def Coll.bLookup [V: Type] (m: Coll.BMap[V], k: I64): Coll.Option[V] = m match case Coll.BMap(_, t) => Coll.bGet(t, k) // the value of k in one descent -def Coll.bGet [V: Type] {r: Region} (t: Coll.BTree[V], k: I64): Coll.Option[V] = t match +def Coll.bGet [V: Type] (t: Coll.BTree[V], k: I64): Coll.Option[V] = t match case Coll.BTip => Coll.None case Coll.B2(a, k1, v1, b) => if k < k1 then Coll.bGet(a, k) else if k > k1 then Coll.bGet(b, k) else Coll.Some(v1) case Coll.B3(a, k1, v1, b, k2, v2, c) => @@ -58,7 +58,7 @@ def Coll.bGet [V: Type] {r: Region} (t: Coll.BTree[V], k: I64): Coll.Option[V] = else if k < k3 then Coll.bGet(c, k) else if k == k3 then Coll.Some(v3) else Coll.bGet(d, k) // t with the value of k replaced: the path is copied and the shape is kept (no split); t when k is absent -def Coll.bRep [V: Type] {r: Region} (t: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = t match +def Coll.bRep [V: Type] (t: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = t match case Coll.BTip => t case Coll.B2(a, k1, v1, b) => if k < k1 then Coll.B2(Coll.bRep(a, k, v), k1, v1, b) else if k > k1 then Coll.B2(a, k1, v1, Coll.bRep(b, k, v)) else Coll.B2(a, k1, v, b) @@ -78,17 +78,17 @@ enum Coll.Split [V: Type]: // the halves of a full node (its fields, so no other shape can be passed), k inserted into the half it belongs to. // the halves are B2s, so bIns may enter them. -def Coll.bSplitIns [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k3: I64, v3: V, d: Coll.BTree[V], k: I64, v: V): Coll.Split[V] = +def Coll.bSplitIns [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k3: I64, v3: V, d: Coll.BTree[V], k: I64, v: V): Coll.Split[V] = if k == k2 then Coll.Split(Coll.B2(a, k1, v1, b), k2, v, Coll.B2(c, k3, v3, d)) else if k < k2 then Coll.Split(Coll.bIns(Coll.B2(a, k1, v1, b), k, v), k2, v2, Coll.B2(c, k3, v3, d)) else Coll.Split(Coll.B2(a, k1, v1, b), k2, v2, Coll.bIns(Coll.B2(c, k3, v3, d), k, v)) // a B4 root becomes a B2 over two B2s, then k enters it -def Coll.bRootIns [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k3: I64, v3: V, d: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = +def Coll.bRootIns [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k3: I64, v3: V, d: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = Coll.bIns(Coll.B2(Coll.B2(a, k1, v1, b), k2, v2, Coll.B2(c, k3, v3, d)), k, v) // a B4 is only met at the root (children are split before they are entered) -def Coll.bIns [V: Type] {r: Region} (t: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = t match +def Coll.bIns [V: Type] (t: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = t match case Coll.BTip => Coll.B2(Coll.BTip, k, v, Coll.BTip) case Coll.B2(a, k1, v1, b) => if k == k1 then Coll.B2(a, k1, v, b) @@ -102,47 +102,47 @@ def Coll.bIns [V: Type] {r: Region} (t: Coll.BTree[V], k: I64, v: V): Coll.BTree else Coll.bInto3C(a, k1, v1, b, k2, v2, c, k, v) case Coll.B4(a, k1, v1, b, k2, v2, c, k3, v3, d) => Coll.bRootIns(a, k1, v1, b, k2, v2, c, k3, v3, d, k, v) -def Coll.bLift2L [V: Type] {r: Region} (s: Coll.Split[V], k1: I64, v1: V, b: Coll.BTree[V]): Coll.BTree[V] = s match +def Coll.bLift2L [V: Type] (s: Coll.Split[V], k1: I64, v1: V, b: Coll.BTree[V]): Coll.BTree[V] = s match case Coll.Split(l, km, vm, rr) => Coll.B3(l, km, vm, rr, k1, v1, b) -def Coll.bLift2R [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, s: Coll.Split[V]): Coll.BTree[V] = s match +def Coll.bLift2R [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, s: Coll.Split[V]): Coll.BTree[V] = s match case Coll.Split(l, km, vm, rr) => Coll.B3(a, k1, v1, l, km, vm, rr) // descend into the left child a of B2(a, k1, v1, b) with k < k1 -def Coll.bInto2L [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = a match +def Coll.bInto2L [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = a match case Coll.BTip => Coll.B3(Coll.BTip, k, v, Coll.BTip, k1, v1, Coll.BTip) case Coll.B4(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4) => Coll.bLift2L(Coll.bSplitIns(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, k, v), k1, v1, b) case Coll.B2(_, _, _, _) => Coll.B2(Coll.bIns(a, k, v), k1, v1, b) case Coll.B3(_, _, _, _, _, _, _) => Coll.B2(Coll.bIns(a, k, v), k1, v1, b) -def Coll.bInto2R [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = b match +def Coll.bInto2R [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = b match case Coll.BTip => Coll.B3(Coll.BTip, k1, v1, Coll.BTip, k, v, Coll.BTip) case Coll.B4(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4) => Coll.bLift2R(a, k1, v1, Coll.bSplitIns(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, k, v)) case Coll.B2(_, _, _, _) => Coll.B2(a, k1, v1, Coll.bIns(b, k, v)) case Coll.B3(_, _, _, _, _, _, _) => Coll.B2(a, k1, v1, Coll.bIns(b, k, v)) -def Coll.bLift3A [V: Type] {r: Region} (s: Coll.Split[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V]): Coll.BTree[V] = s match +def Coll.bLift3A [V: Type] (s: Coll.Split[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V]): Coll.BTree[V] = s match case Coll.Split(l, km, vm, rr) => Coll.B4(l, km, vm, rr, k1, v1, b, k2, v2, c) -def Coll.bLift3B [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, s: Coll.Split[V], k2: I64, v2: V, c: Coll.BTree[V]): Coll.BTree[V] = s match +def Coll.bLift3B [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, s: Coll.Split[V], k2: I64, v2: V, c: Coll.BTree[V]): Coll.BTree[V] = s match case Coll.Split(l, km, vm, rr) => Coll.B4(a, k1, v1, l, km, vm, rr, k2, v2, c) -def Coll.bLift3C [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, s: Coll.Split[V]): Coll.BTree[V] = s match +def Coll.bLift3C [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, s: Coll.Split[V]): Coll.BTree[V] = s match case Coll.Split(l, km, vm, rr) => Coll.B4(a, k1, v1, b, k2, v2, l, km, vm, rr) -def Coll.bInto3A [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = a match +def Coll.bInto3A [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = a match case Coll.BTip => Coll.B4(Coll.BTip, k, v, Coll.BTip, k1, v1, Coll.BTip, k2, v2, Coll.BTip) case Coll.B4(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4) => Coll.bLift3A(Coll.bSplitIns(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, k, v), k1, v1, b, k2, v2, c) case Coll.B2(_, _, _, _) => Coll.B3(Coll.bIns(a, k, v), k1, v1, b, k2, v2, c) case Coll.B3(_, _, _, _, _, _, _) => Coll.B3(Coll.bIns(a, k, v), k1, v1, b, k2, v2, c) -def Coll.bInto3B [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = b match +def Coll.bInto3B [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = b match case Coll.BTip => Coll.B4(Coll.BTip, k1, v1, Coll.BTip, k, v, Coll.BTip, k2, v2, Coll.BTip) case Coll.B4(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4) => Coll.bLift3B(a, k1, v1, Coll.bSplitIns(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, k, v), k2, v2, c) case Coll.B2(_, _, _, _) => Coll.B3(a, k1, v1, Coll.bIns(b, k, v), k2, v2, c) case Coll.B3(_, _, _, _, _, _, _) => Coll.B3(a, k1, v1, Coll.bIns(b, k, v), k2, v2, c) -def Coll.bInto3C [V: Type] {r: Region} (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = c match +def Coll.bInto3C [V: Type] (a: Coll.BTree[V], k1: I64, v1: V, b: Coll.BTree[V], k2: I64, v2: V, c: Coll.BTree[V], k: I64, v: V): Coll.BTree[V] = c match case Coll.BTip => Coll.B4(Coll.BTip, k1, v1, Coll.BTip, k2, v2, Coll.BTip, k, v, Coll.BTip) case Coll.B4(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4) => Coll.bLift3C(a, k1, v1, b, k2, v2, Coll.bSplitIns(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, k, v)) case Coll.B2(_, _, _, _) => Coll.B3(a, k1, v1, b, k2, v2, Coll.bIns(c, k, v)) @@ -153,7 +153,7 @@ enum Coll.Put [V: Type]: case Coll.Added(m: Coll.BMap[V]) case Coll.Replaced(m: Coll.BMap[V]) -def Coll.bPut [V: Type] {r: Region} (m: Coll.BMap[V], k: I64, v: V): Coll.Put[V] = m match +def Coll.bPut [V: Type] (m: Coll.BMap[V], k: I64, v: V): Coll.Put[V] = m match case Coll.BMap(n, t) => if Coll.bIsNode(Coll.bFind(t, k)) then Coll.Replaced(Coll.BMap(n, Coll.bRep(t, k, v))) else Coll.Added(Coll.BMap(n + 1, Coll.bIns(t, k, v))) // b4: a BMap from a Sorted batch in O(n), built bottom-up one level at a time. A level of r entries becomes nodes of @@ -174,20 +174,20 @@ enum Coll.BLvlA [V: Type]: enum Coll.BLvlD [V: Type]: case Coll.BLvlD(es: Coll.List[Coll.BTK[V]], t: Coll.BTree[V]) -def Coll.blL2 [V: Type] {r: Region} (a: Coll.KV[V]): Coll.BTree[V] = a match +def Coll.blL2 [V: Type] (a: Coll.KV[V]): Coll.BTree[V] = a match case Coll.KV(k1, v1) => Coll.B2(Coll.BTip, k1, v1, Coll.BTip) -def Coll.blL3 [V: Type] {r: Region} (a: Coll.KV[V], b: Coll.KV[V]): Coll.BTree[V] = a match +def Coll.blL3 [V: Type] (a: Coll.KV[V], b: Coll.KV[V]): Coll.BTree[V] = a match case Coll.KV(k1, v1) => b match case Coll.KV(k2, v2) => Coll.B3(Coll.BTip, k1, v1, Coll.BTip, k2, v2, Coll.BTip) -def Coll.blL4 [V: Type] {r: Region} (a: Coll.KV[V], b: Coll.KV[V], c: Coll.KV[V]): Coll.BTree[V] = a match +def Coll.blL4 [V: Type] (a: Coll.KV[V], b: Coll.KV[V], c: Coll.KV[V]): Coll.BTree[V] = a match case Coll.KV(k1, v1) => b match case Coll.KV(k2, v2) => c match case Coll.KV(k3, v3) => Coll.B4(Coll.BTip, k1, v1, Coll.BTip, k2, v2, Coll.BTip, k3, v3, Coll.BTip) // the leaf level: ascending pairs, a first; acc holds the promoted keys, descending -def Coll.blLeaf [V: Type] {r: Region} (a: Coll.KV[V], rest: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.BTK[V]]): Coll.BLvlD[V] = rest match +def Coll.blLeaf [V: Type] (a: Coll.KV[V], rest: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.BTK[V]]): Coll.BLvlD[V] = rest match case Coll.Nil => Coll.BLvlD(acc, Coll.blL2(a)) case Coll.Cons(b, r2) => r2 match case Coll.Nil => Coll.BLvlD(acc, Coll.blL3(a, b)) @@ -196,20 +196,20 @@ def Coll.blLeaf [V: Type] {r: Region} (a: Coll.KV[V], rest: Coll.List[Coll.KV[V] case Coll.Cons(d, r4) => c match case Coll.KV(kc, vc) => Coll.blLeaf(d, r4, Coll.Cons(Coll.BTK(Coll.blL3(a, b), kc, vc), acc)) -def Coll.blA2 [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BKT[V]): Coll.BTree[V] = a match +def Coll.blA2 [V: Type] (t: Coll.BTree[V], a: Coll.BKT[V]): Coll.BTree[V] = a match case Coll.BKT(k1, v1, t1) => Coll.B2(t, k1, v1, t1) -def Coll.blA3 [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BKT[V], b: Coll.BKT[V]): Coll.BTree[V] = a match +def Coll.blA3 [V: Type] (t: Coll.BTree[V], a: Coll.BKT[V], b: Coll.BKT[V]): Coll.BTree[V] = a match case Coll.BKT(k1, v1, t1) => b match case Coll.BKT(k2, v2, t2) => Coll.B3(t, k1, v1, t1, k2, v2, t2) -def Coll.blA4 [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BKT[V], b: Coll.BKT[V], c: Coll.BKT[V]): Coll.BTree[V] = a match +def Coll.blA4 [V: Type] (t: Coll.BTree[V], a: Coll.BKT[V], b: Coll.BKT[V], c: Coll.BKT[V]): Coll.BTree[V] = a match case Coll.BKT(k1, v1, t1) => b match case Coll.BKT(k2, v2, t2) => c match case Coll.BKT(k3, v3, t3) => Coll.B4(t, k1, v1, t1, k2, v2, t2, k3, v3, t3) // an ascending level: t is the leftmost tree of the group, a its first entry -def Coll.blPassA [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BKT[V], rest: Coll.List[Coll.BKT[V]], acc: Coll.List[Coll.BTK[V]]): Coll.BLvlD[V] = rest match +def Coll.blPassA [V: Type] (t: Coll.BTree[V], a: Coll.BKT[V], rest: Coll.List[Coll.BKT[V]], acc: Coll.List[Coll.BTK[V]]): Coll.BLvlD[V] = rest match case Coll.Nil => Coll.BLvlD(acc, Coll.blA2(t, a)) case Coll.Cons(b, r2) => r2 match case Coll.Nil => Coll.BLvlD(acc, Coll.blA3(t, a, b)) @@ -219,20 +219,20 @@ def Coll.blPassA [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BKT[V], rest: case Coll.BKT(kc, vc, tc) => Coll.blPassA(tc, d, r4, Coll.Cons(Coll.BTK(Coll.blA3(t, a, b), kc, vc), acc)) // the entries in ascending order (a left of b left of c), t is the rightmost tree -def Coll.blD2 [V: Type] {r: Region} (a: Coll.BTK[V], t: Coll.BTree[V]): Coll.BTree[V] = a match +def Coll.blD2 [V: Type] (a: Coll.BTK[V], t: Coll.BTree[V]): Coll.BTree[V] = a match case Coll.BTK(t1, k1, v1) => Coll.B2(t1, k1, v1, t) -def Coll.blD3 [V: Type] {r: Region} (a: Coll.BTK[V], b: Coll.BTK[V], t: Coll.BTree[V]): Coll.BTree[V] = a match +def Coll.blD3 [V: Type] (a: Coll.BTK[V], b: Coll.BTK[V], t: Coll.BTree[V]): Coll.BTree[V] = a match case Coll.BTK(t1, k1, v1) => b match case Coll.BTK(t2, k2, v2) => Coll.B3(t1, k1, v1, t2, k2, v2, t) -def Coll.blD4 [V: Type] {r: Region} (a: Coll.BTK[V], b: Coll.BTK[V], c: Coll.BTK[V], t: Coll.BTree[V]): Coll.BTree[V] = a match +def Coll.blD4 [V: Type] (a: Coll.BTK[V], b: Coll.BTK[V], c: Coll.BTK[V], t: Coll.BTree[V]): Coll.BTree[V] = a match case Coll.BTK(t1, k1, v1) => b match case Coll.BTK(t2, k2, v2) => c match case Coll.BTK(t3, k3, v3) => Coll.B4(t1, k1, v1, t2, k2, v2, t3, k3, v3, t) // a descending level: t is the rightmost tree of the group, a its last entry; acc holds the promoted keys, ascending -def Coll.blPassD [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BTK[V], rest: Coll.List[Coll.BTK[V]], acc: Coll.List[Coll.BKT[V]]): Coll.BLvlA[V] = rest match +def Coll.blPassD [V: Type] (t: Coll.BTree[V], a: Coll.BTK[V], rest: Coll.List[Coll.BTK[V]], acc: Coll.List[Coll.BKT[V]]): Coll.BLvlA[V] = rest match case Coll.Nil => Coll.BLvlA(Coll.blD2(a, t), acc) case Coll.Cons(b, r2) => r2 match case Coll.Nil => Coll.BLvlA(Coll.blD3(b, a, t), acc) @@ -241,17 +241,17 @@ def Coll.blPassD [V: Type] {r: Region} (t: Coll.BTree[V], a: Coll.BTK[V], rest: case Coll.Cons(d, r4) => c match case Coll.BTK(tc, kc, vc) => Coll.blPassD(tc, d, r4, Coll.Cons(Coll.BKT(kc, vc, Coll.blD3(b, a, t)), acc)) -def Coll.blFromA [V: Type] {r: Region} (l: Coll.BLvlA[V]): Coll.BTree[V] = l match +def Coll.blFromA [V: Type] (l: Coll.BLvlA[V]): Coll.BTree[V] = l match case Coll.BLvlA(t, es) => es match case Coll.Nil => t case Coll.Cons(a, rest) => Coll.blFromD(Coll.blPassA(t, a, rest, Coll.Nil)) -def Coll.blFromD [V: Type] {r: Region} (l: Coll.BLvlD[V]): Coll.BTree[V] = l match +def Coll.blFromD [V: Type] (l: Coll.BLvlD[V]): Coll.BTree[V] = l match case Coll.BLvlD(es, t) => es match case Coll.Nil => t case Coll.Cons(a, rest) => Coll.blFromA(Coll.blPassD(t, a, rest, Coll.Nil)) -def Coll.bFromSorted [V: Type] {r: Region} (s: Coll.Sorted[V]): Coll.BMap[V] = s match +def Coll.bFromSorted [V: Type] (s: Coll.Sorted[V]): Coll.BMap[V] = s match case Coll.Sorted(xs) => xs match case Coll.Nil => Coll.BMap(0, Coll.BTip) case Coll.Cons(a, rest) => Coll.BMap(Coll.length(xs), Coll.blFromD(Coll.blLeaf(a, rest, Coll.Nil))) @@ -260,7 +260,7 @@ def Coll.bFromSorted [V: Type] {r: Region} (s: Coll.Sorted[V]): Coll.BMap[V] = s def Coll.bTGetOr [V: Type] (t: Coll.BTree[V], k: I64, d: V): V = Coll.bValOr(Coll.bFind(t, k), k, d) // t with x consed onto the list bound to k (a one-element list when k is absent): one find, then one path copy -def Coll.bPushT [A: Type] {r: Region} (t: Coll.BTree[Coll.List[A]], k: I64, x: A): Coll.BTree[Coll.List[A]] = +def Coll.bPushT [A: Type] (t: Coll.BTree[Coll.List[A]], k: I64, x: A): Coll.BTree[Coll.List[A]] = val n = Coll.bFind(t, k) if Coll.bIsNode(n) then Coll.bRep(t, k, Coll.Cons(x, Coll.bValOr(n, k, Coll.Nil))) else Coll.bIns(t, k, Coll.Cons(x, Coll.Nil)) @@ -272,27 +272,27 @@ enum Coll.SEntry [V: Type]: enum Coll.SMap [V: Type]: case Coll.SMap(t: Coll.BTree[Coll.List[Coll.SEntry[V]]]) -def Coll.sEmpty [V: Type] {r: Region} (): Coll.SMap[V] = Coll.SMap(Coll.BTip) +def Coll.sEmpty [V: Type] (): Coll.SMap[V] = Coll.SMap(Coll.BTip) // xs with the entry of s bound to v (added last when s is absent) -def Coll.sSet [V: Type] {r: Region} (xs: Coll.List[Coll.SEntry[V]], s: Sym.Sym, v: V): Coll.List[Coll.SEntry[V]] = xs match +def Coll.sSet [V: Type] (xs: Coll.List[Coll.SEntry[V]], s: Sym.Sym, v: V): Coll.List[Coll.SEntry[V]] = xs match case Coll.Nil => Coll.Cons(Coll.SEntry(s, v), Coll.Nil) case Coll.Cons(e, t) => e match case Coll.SEntry(s2, _) => if Sym.eq(s, s2) then Coll.Cons(Coll.SEntry(s, v), t) else Coll.Cons(e, Coll.sSet(t, s, v)) -def Coll.sFind [V: Type] {r: Region} (xs: Coll.List[Coll.SEntry[V]], s: Sym.Sym): Coll.Option[V] = xs match +def Coll.sFind [V: Type] (xs: Coll.List[Coll.SEntry[V]], s: Sym.Sym): Coll.Option[V] = xs match case Coll.Nil => Coll.None case Coll.Cons(e, t) => e match case Coll.SEntry(s2, v) => if Sym.eq(s, s2) then Coll.Some(v) else Coll.sFind(t, s) // m with s bound to v (a binding of s is replaced): one find, then one path copy -def Coll.sInsert [V: Type] {r: Region} (m: Coll.SMap[V], s: Sym.Sym, v: V): Coll.SMap[V] = m match +def Coll.sInsert [V: Type] (m: Coll.SMap[V], s: Sym.Sym, v: V): Coll.SMap[V] = m match case Coll.SMap(t) => val h = Sym.hash(s) val n = Coll.bFind(t, h) if Coll.bIsNode(n) then Coll.SMap(Coll.bRep(t, h, Coll.sSet(Coll.bValOr(n, h, Coll.Nil), s, v))) else Coll.SMap(Coll.bIns(t, h, Coll.Cons(Coll.SEntry(s, v), Coll.Nil))) -def Coll.sLookup [V: Type] {r: Region} (m: Coll.SMap[V], s: Sym.Sym): Coll.Option[V] = m match +def Coll.sLookup [V: Type] (m: Coll.SMap[V], s: Sym.Sym): Coll.Option[V] = m match case Coll.SMap(t) => Coll.sFind(Coll.bTGetOr(t, Sym.hash(s), Coll.Nil), s) // an I64 set: a BMap to the one value U, so its count is the set size @@ -302,9 +302,9 @@ enum Coll.Unit: enum Coll.ISet: case Coll.ISet(m: Coll.BMap[Coll.Unit]) -def Coll.setEmpty {r: Region} (): Coll.ISet = Coll.ISet(Coll.bEmpty[Coll.Unit]()) +def Coll.setEmpty(): Coll.ISet = Coll.ISet(Coll.bEmpty[Coll.Unit]()) -def Coll.setAdd {r: Region} (s: Coll.ISet, k: I64): Coll.ISet = s match +def Coll.setAdd(s: Coll.ISet, k: I64): Coll.ISet = s match case Coll.ISet(m) => Coll.ISet(Coll.bInsert(m, k, Coll.U)) def Coll.setHas (s: Coll.ISet, k: I64): Bool = s match @@ -314,5 +314,5 @@ def Coll.setSize (s: Coll.ISet): I64 = s match case Coll.ISet(m) => Coll.bSize(m) // bPut without the answer wrapper -def Coll.bInsert [V: Type] {r: Region} (m: Coll.BMap[V], k: I64, v: V): Coll.BMap[V] = m match +def Coll.bInsert [V: Type] (m: Coll.BMap[V], k: I64, v: V): Coll.BMap[V] = m match case Coll.BMap(n, t) => if Coll.bIsNode(Coll.bFind(t, k)) then Coll.BMap(n, Coll.bRep(t, k, v)) else Coll.BMap(n + 1, Coll.bIns(t, k, v)) diff --git a/s2/coll.srs b/s2/coll.srs index 7d1d97a4..322ee197 100644 --- a/s2/coll.srs +++ b/s2/coll.srs @@ -10,11 +10,11 @@ enum Coll.Option [A: Type]: case Coll.Some(v: A) // xs reversed onto acc -def Coll.revOnto [A: Type] {r: Region} (xs: Coll.List[A], acc: Coll.List[A]): Coll.List[A] = xs match +def Coll.revOnto [A: Type] (xs: Coll.List[A], acc: Coll.List[A]): Coll.List[A] = xs match case Coll.Nil => acc case Coll.Cons(h, t) => Coll.revOnto(t, Coll.Cons(h, acc)) -def Coll.rev [A: Type] {r: Region} (xs: Coll.List[A]): Coll.List[A] = Coll.revOnto(xs, Coll.Nil) +def Coll.rev [A: Type] (xs: Coll.List[A]): Coll.List[A] = Coll.revOnto(xs, Coll.Nil) def Coll.lengthFrom [A: Type] (xs: Coll.List[A], n: I64): I64 = xs match case Coll.Nil => n @@ -22,7 +22,7 @@ def Coll.lengthFrom [A: Type] (xs: Coll.List[A], n: I64): I64 = xs match def Coll.length [A: Type] (xs: Coll.List[A]): I64 = Coll.lengthFrom(xs, 0) -def Coll.headOpt [A: Type] {r: Region} (xs: Coll.List[A]): Coll.Option[A] = xs match +def Coll.headOpt [A: Type] (xs: Coll.List[A]): Coll.Option[A] = xs match case Coll.Nil => Coll.None case Coll.Cons(h, _) => Coll.Some(h) @@ -50,16 +50,16 @@ def Coll.size [V: Type] (m: Coll.IMap[V]): I64 = m match case Coll.Tip => 0 case Coll.Bin(s, _, _, _, _) => s -def Coll.lookup [V: Type] {r: Region} (m: Coll.IMap[V], k: I64): Coll.Option[V] = m match +def Coll.lookup [V: Type] (m: Coll.IMap[V], k: I64): Coll.Option[V] = m match case Coll.Tip => Coll.None case Coll.Bin(_, k2, v, l, r2) => if k < k2 then Coll.lookup(l, k) else if k > k2 then Coll.lookup(r2, k) else Coll.Some(v) // a node over l and r (their sizes known) -def Coll.bin [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = +def Coll.bin [V: Type] (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = Coll.Bin(Coll.size(l) + Coll.size(r2) + 1, k, v, l, r2) // k, v over l and r where one side grew or shrank by at most one element: rotate back into balance -def Coll.balance [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = +def Coll.balance [V: Type] (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = val sl = Coll.size(l) val sr = Coll.size(r2) if sl + sr <= 1 then Coll.bin(k, v, l, r2) @@ -67,7 +67,7 @@ def Coll.balance [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll. else if sl > Coll.delta() * sr then Coll.rotateR(k, v, l, r2) else Coll.bin(k, v, l, r2) -def Coll.rotateL [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = r2 match +def Coll.rotateL [V: Type] (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = r2 match case Coll.Tip => Coll.bin(k, v, l, r2) case Coll.Bin(_, k2, v2, rl, rr) => if Coll.size(rl) < Coll.ratio() * Coll.size(rr) then Coll.bin(k2, v2, Coll.bin(k, v, l, rl), rr) @@ -75,7 +75,7 @@ def Coll.rotateL [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll. case Coll.Tip => Coll.bin(k2, v2, Coll.bin(k, v, l, rl), rr) case Coll.Bin(_, k3, v3, rll, rlr) => Coll.bin(k3, v3, Coll.bin(k, v, l, rll), Coll.bin(k2, v2, rlr, rr)) -def Coll.rotateR [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = l match +def Coll.rotateR [V: Type] (k: I64, v: V, l: Coll.IMap[V], r2: Coll.IMap[V]): Coll.IMap[V] = l match case Coll.Tip => Coll.bin(k, v, l, r2) case Coll.Bin(_, k2, v2, ll, lr) => if Coll.size(lr) < Coll.ratio() * Coll.size(ll) then Coll.bin(k2, v2, ll, Coll.bin(k, v, lr, r2)) @@ -84,7 +84,7 @@ def Coll.rotateR [V: Type] {r: Region} (k: I64, v: V, l: Coll.IMap[V], r2: Coll. case Coll.Bin(_, k3, v3, lrl, lrr) => Coll.bin(k3, v3, Coll.bin(k2, v2, ll, lrl), Coll.bin(k, v, lrr, r2)) // m with k bound to v (a binding of k is replaced) -def Coll.insert [V: Type] {r: Region} (m: Coll.IMap[V], k: I64, v: V): Coll.IMap[V] = m match +def Coll.insert [V: Type] (m: Coll.IMap[V], k: I64, v: V): Coll.IMap[V] = m match case Coll.Tip => Coll.Bin(1, k, v, Coll.Tip, Coll.Tip) case Coll.Bin(s, k2, v2, l, r2) => if k < k2 then Coll.balance(k2, v2, Coll.insert(l, k, v), r2) @@ -114,18 +114,18 @@ enum Coll.Dir: case Coll.Down // the run Cons(h, rt) as a strictly descending run -def Coll.closeRun [V: Type] {r: Region} (d: Coll.Dir, h: Coll.KV[V], rt: Coll.List[Coll.KV[V]]): Coll.List[Coll.KV[V]] = d match +def Coll.closeRun [V: Type] (d: Coll.Dir, h: Coll.KV[V], rt: Coll.List[Coll.KV[V]]): Coll.List[Coll.KV[V]] = d match case Coll.Up => Coll.Cons(h, rt) case Coll.Down => Coll.revOnto(rt, Coll.Cons(h, Coll.Nil)) // the natural runs of xs, each strictly descending, the latest run first. In an Up run an equal key replaces the run // head (the later binding wins); a one-element Up run turns Down when the next key is smaller. -def Coll.runs [V: Type] {r: Region} (xs: Coll.List[Coll.KV[V]]): Coll.List[Coll.List[Coll.KV[V]]] = xs match +def Coll.runs [V: Type] (xs: Coll.List[Coll.KV[V]]): Coll.List[Coll.List[Coll.KV[V]]] = xs match case Coll.Nil => Coll.Nil case Coll.Cons(x, t) => Coll.runStep(t, Coll.Up, x, Coll.Nil, Coll.Nil) // h is the last element taken into the current run Cons(h, rt) -def Coll.runStep [V: Type] {r: Region} (xs: Coll.List[Coll.KV[V]], d: Coll.Dir, h: Coll.KV[V], rt: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.List[Coll.KV[V]]] = xs match +def Coll.runStep [V: Type] (xs: Coll.List[Coll.KV[V]], d: Coll.Dir, h: Coll.KV[V], rt: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.List[Coll.KV[V]]] = xs match case Coll.Nil => Coll.Cons(Coll.closeRun(d, h, rt), acc) case Coll.Cons(y, t) => val ky = Coll.kvKey(y) @@ -142,7 +142,7 @@ def Coll.runStep [V: Type] {r: Region} (xs: Coll.List[Coll.KV[V]], d: Coll.Dir, else Coll.runStep(t, Coll.Up, y, Coll.Nil, Coll.Cons(Coll.closeRun(d, h, rt), acc)) // merge of two ascending runs onto acc, giving a descending run; equal keys: the element of b (the later run) wins -def Coll.mergeRev [V: Type] {r: Region} (a: Coll.List[Coll.KV[V]], b: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.KV[V]]): Coll.List[Coll.KV[V]] = a match +def Coll.mergeRev [V: Type] (a: Coll.List[Coll.KV[V]], b: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.KV[V]]): Coll.List[Coll.KV[V]] = a match case Coll.Nil => Coll.revOnto(b, acc) case Coll.Cons(x, ta) => b match case Coll.Nil => Coll.revOnto(a, acc) @@ -154,7 +154,7 @@ def Coll.mergeRev [V: Type] {r: Region} (a: Coll.List[Coll.KV[V]], b: Coll.List[ else Coll.mergeRev(a, tb, Coll.Cons(y, acc)) // merge of two descending runs onto acc, giving an ascending run; equal keys: the element of a (the later run) wins -def Coll.mergeRevD [V: Type] {r: Region} (a: Coll.List[Coll.KV[V]], b: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.KV[V]]): Coll.List[Coll.KV[V]] = a match +def Coll.mergeRevD [V: Type] (a: Coll.List[Coll.KV[V]], b: Coll.List[Coll.KV[V]], acc: Coll.List[Coll.KV[V]]): Coll.List[Coll.KV[V]] = a match case Coll.Nil => Coll.revOnto(b, acc) case Coll.Cons(x, ta) => b match case Coll.Nil => Coll.revOnto(a, acc) @@ -166,31 +166,31 @@ def Coll.mergeRevD [V: Type] {r: Region} (a: Coll.List[Coll.KV[V]], b: Coll.List else Coll.mergeRevD(a, tb, Coll.Cons(y, acc)) // one pass over ascending runs, earliest first: descending runs, latest first (a last odd run is reversed) -def Coll.passA [V: Type] {r: Region} (runs: Coll.List[Coll.List[Coll.KV[V]]], acc: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.List[Coll.KV[V]]] = runs match +def Coll.passA [V: Type] (runs: Coll.List[Coll.List[Coll.KV[V]]], acc: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.List[Coll.KV[V]]] = runs match case Coll.Nil => acc case Coll.Cons(a, t) => t match case Coll.Nil => Coll.Cons(Coll.rev(a), acc) case Coll.Cons(b, t2) => Coll.passA(t2, Coll.Cons(Coll.mergeRev(a, b, Coll.Nil), acc)) // one pass over descending runs, latest first: ascending runs, earliest first (a last odd run is reversed) -def Coll.passD [V: Type] {r: Region} (runs: Coll.List[Coll.List[Coll.KV[V]]], acc: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.List[Coll.KV[V]]] = runs match +def Coll.passD [V: Type] (runs: Coll.List[Coll.List[Coll.KV[V]]], acc: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.List[Coll.KV[V]]] = runs match case Coll.Nil => acc case Coll.Cons(a, t) => t match case Coll.Nil => Coll.Cons(Coll.rev(a), acc) case Coll.Cons(b, t2) => Coll.passD(t2, Coll.Cons(Coll.mergeRevD(a, b, Coll.Nil), acc)) // the run order is in the function: mergeAllA gets ascending runs earliest first, mergeAllD descending runs latest first -def Coll.mergeAllA [V: Type] {r: Region} (runs: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.KV[V]] = runs match +def Coll.mergeAllA [V: Type] (runs: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.KV[V]] = runs match case Coll.Nil => Coll.Nil case Coll.Cons(a, t) => t match case Coll.Nil => a case Coll.Cons(_, _) => Coll.mergeAllD(Coll.passA(runs, Coll.Nil)) -def Coll.mergeAllD [V: Type] {r: Region} (runs: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.KV[V]] = runs match +def Coll.mergeAllD [V: Type] (runs: Coll.List[Coll.List[Coll.KV[V]]]): Coll.List[Coll.KV[V]] = runs match case Coll.Nil => Coll.Nil case Coll.Cons(a, t) => t match case Coll.Nil => Coll.rev(a) case Coll.Cons(_, _) => Coll.mergeAllA(Coll.passD(runs, Coll.Nil)) // natural bottom-up merge sort, O(n log r) for r runs; a duplicate key keeps the last binding of the input -def Coll.sortDedup [V: Type] {r: Region} (xs: Coll.List[Coll.KV[V]]): Coll.Sorted[V] = Coll.Sorted(Coll.mergeAllD(Coll.runs(xs))) +def Coll.sortDedup [V: Type] (xs: Coll.List[Coll.KV[V]]): Coll.Sorted[V] = Coll.Sorted(Coll.mergeAllD(Coll.runs(xs))) diff --git a/s2/datalog.srs b/s2/datalog.srs index 2bc9d8f7..c40bee5d 100644 --- a/s2/datalog.srs +++ b/s2/datalog.srs @@ -79,9 +79,9 @@ def D.stampOf(row: D.Row): I64 = row match enum D.Rel: case D.Rel(ic: Coll.List[I64], set: Coll.BTree[Coll.List[D.Row]], cols: Coll.BTree[Coll.BTree[Coll.List[D.Row]]], all: Coll.List[D.Row], recent: I64, fresh: I64) -def D.newRel {r: Region} (ic: Coll.List[I64]): D.Rel = D.Rel(ic, Coll.BTip, Coll.BTip, Coll.Nil, 0, 0) +def D.newRel(ic: Coll.List[I64]): D.Rel = D.Rel(ic, Coll.BTip, Coll.BTip, Coll.Nil, 0, 0) -def D.bucket {r: Region} (m: Coll.BTree[Coll.List[D.Row]], h: I64): Coll.List[D.Row] = Coll.bTGetOr(m, h, Coll.Nil) +def D.bucket(m: Coll.BTree[Coll.List[D.Row]], h: I64): Coll.List[D.Row] = Coll.bTGetOr(m, h, Coll.Nil) def D.inRows(rows: Coll.List[D.Row], t: Coll.List[D.Val]): Bool = rows match case Coll.Nil => false @@ -89,7 +89,7 @@ def D.inRows(rows: Coll.List[D.Row], t: Coll.List[D.Val]): Bool = rows match val u = D.tupleOf(row) if D.tupleEq(u, t) then true else D.inRows(rest, t) -def D.has {r: Region} (rl: D.Rel, t: Coll.List[D.Val]): Bool = +def D.has(rl: D.Rel, t: Coll.List[D.Val]): Bool = val D.Rel(_, set, _, _, _, _) = rl D.inRows(D.bucket(set, D.tupleHash(t)), t) @@ -101,7 +101,7 @@ def D.from(t: Coll.List[D.Val], c: I64): Coll.List[D.Val] = case Coll.Cons(_, rest) => D.from(rest, c - 1) // row added under each column of ic; a tuple without column c is not under c (no atom that probes c matches it) -def D.indexCols {r: Region} (cols: Coll.BTree[Coll.BTree[Coll.List[D.Row]]], row: D.Row, t: Coll.List[D.Val], ic: Coll.List[I64]): Coll.BTree[Coll.BTree[Coll.List[D.Row]]] = ic match +def D.indexCols(cols: Coll.BTree[Coll.BTree[Coll.List[D.Row]]], row: D.Row, t: Coll.List[D.Val], ic: Coll.List[I64]): Coll.BTree[Coll.BTree[Coll.List[D.Row]]] = ic match case Coll.Nil => cols case Coll.Cons(c, rest) => D.from(t, c) match case Coll.Nil => D.indexCols(cols, row, t, rest) @@ -111,14 +111,14 @@ def D.indexCols {r: Region} (cols: Coll.BTree[Coll.BTree[Coll.List[D.Row]]], row D.indexCols(if Coll.bIsNode(n) then Coll.bRep(cols, c, col) else Coll.bIns(cols, c, col), row, t, rest) // row added (the caller checked its tuple is new) -def D.add {r: Region} (rl: D.Rel, row: D.Row): D.Rel = +def D.add(rl: D.Rel, row: D.Row): D.Rel = val D.Rel(ic, set, cols, all, rc, fr) = rl val t = D.tupleOf(row) val h = D.tupleHash(t) D.Rel(ic, Coll.bPushT(set, h, row), D.indexCols(cols, row, t, ic), Coll.Cons(row, all), rc, fr + 1) // the rows an atom may match under a probe (a superset: the match checks values) -def D.cands {r: Region} (rl: D.Rel, p: D.Probe): Coll.List[D.Row] = +def D.cands(rl: D.Rel, p: D.Probe): Coll.List[D.Row] = val D.Rel(_, _, cols, all, _, _) = rl p match case D.Scan => all @@ -167,14 +167,14 @@ enum D.Draft: enum D.With [A: Type]: case D.With(tab: Coll.List[D.RelRef], v: A) -def D.refOf {r: Region} (tab: Coll.List[D.RelRef], s: Sym.Sym): Coll.Option[D.RelRef] = tab match +def D.refOf(tab: Coll.List[D.RelRef], s: Sym.Sym): Coll.Option[D.RelRef] = tab match case Coll.Nil => Coll.None case Coll.Cons(h, t) => val D.RelRef(_, name) = h if Sym.eq(name, s) then Coll.Some(h) else D.refOf(t, s) // the relation named s; a new name gets the next id and goes at the end of tab -def D.internId {r: Region} (tab: Coll.List[D.RelRef], s: Sym.Sym): D.With[D.RelRef] = D.refOf(tab, s) match +def D.internId(tab: Coll.List[D.RelRef], s: Sym.Sym): D.With[D.RelRef] = D.refOf(tab, s) match case Coll.Some(ref) => D.With(tab, ref) case Coll.None => val ref = D.RelRef(Coll.length(tab), s) @@ -188,7 +188,7 @@ def D.nameOfRef(ref: D.RelRef): Sym.Sym = val D.RelRef(_, name) = ref name -def D.catom {r: Region} (tab: Coll.List[D.RelRef], a: D.Atom): D.With[D.CAtom] = +def D.catom(tab: Coll.List[D.RelRef], a: D.Atom): D.With[D.CAtom] = val D.Atom(rel, args) = a val D.With(tab2, ref) = D.internId(tab, rel) D.With(tab2, D.CAtom(ref, args)) @@ -197,7 +197,7 @@ enum D.Body: case D.Body(pos: Coll.List[D.CAtom], neg: Coll.List[D.CAtom]) // the literals compiled in written order (so names get their ids in that order): the positive atoms, the negated ones -def D.cbody {r: Region} (tab: Coll.List[D.RelRef], ls: Coll.List[D.Lit], pos: Coll.List[D.CAtom], neg: Coll.List[D.CAtom]): D.With[D.Body] = ls match +def D.cbody(tab: Coll.List[D.RelRef], ls: Coll.List[D.Lit], pos: Coll.List[D.CAtom], neg: Coll.List[D.CAtom]): D.With[D.Body] = ls match case Coll.Nil => D.With(tab, D.Body(Coll.rev(pos), Coll.rev(neg))) case Coll.Cons(l, rest) => l match case D.Pos(a) => @@ -208,7 +208,7 @@ def D.cbody {r: Region} (tab: Coll.List[D.RelRef], ls: Coll.List[D.Lit], pos: Co D.cbody(tab2, rest, pos, Coll.Cons(ca, neg)) // rule i of rs has id i: its position in the list given to D.solve; the head's name gets its id first -def D.drafts {r: Region} (tab: Coll.List[D.RelRef], rs: Coll.List[D.Rule], i: I64, acc: Coll.List[D.Draft]): D.With[Coll.List[D.Draft]] = rs match +def D.drafts(tab: Coll.List[D.RelRef], rs: Coll.List[D.Rule], i: I64, acc: Coll.List[D.Draft]): D.With[Coll.List[D.Draft]] = rs match case Coll.Nil => D.With(tab, Coll.rev(acc)) case Coll.Cons(rl, rest) => val D.Rule(h, b) = rl @@ -217,7 +217,7 @@ def D.drafts {r: Region} (tab: Coll.List[D.RelRef], rs: Coll.List[D.Rule], i: I6 val D.Body(pos, neg) = bd D.drafts(tab3, rest, i + 1, Coll.Cons(D.Draft(ch, pos, neg, i), acc)) -def D.headIds {r: Region} (ds: Coll.List[D.Draft], acc: Coll.List[I64]): Coll.List[I64] = ds match +def D.headIds(ds: Coll.List[D.Draft], acc: Coll.List[I64]): Coll.List[I64] = ds match case Coll.Nil => acc case Coll.Cons(d, rest) => val D.Draft(h, _, _, _) = d @@ -226,14 +226,14 @@ def D.headIds {r: Region} (ds: Coll.List[D.Draft], acc: Coll.List[I64]): Coll.Li // each draft with its plans: one per body atom whose relation is a head (an input relation has recent rows only // before the first pass, which reads in written order, so a plan for it would never run) -def D.crules {r: Region} (ds: Coll.List[D.Draft], heads: Coll.List[I64], acc: Coll.List[D.CRule]): Coll.List[D.CRule] = ds match +def D.crules(ds: Coll.List[D.Draft], heads: Coll.List[I64], acc: Coll.List[D.CRule]): Coll.List[D.CRule] = ds match case Coll.Nil => Coll.rev(acc) case Coll.Cons(d, rest) => val D.Draft(h, body, neg, i) = d D.crules(rest, heads, Coll.Cons(D.CRule(h, body, neg, i, D.plans(body, body, heads, 0, Coll.Nil)), acc)) // the plans for the atoms of xs (xs = the suffix of body from position j) -def D.plans {r: Region} (body: Coll.List[D.CAtom], xs: Coll.List[D.CAtom], heads: Coll.List[I64], j: I64, acc: Coll.List[D.Plan]): Coll.List[D.Plan] = xs match +def D.plans(body: Coll.List[D.CAtom], xs: Coll.List[D.CAtom], heads: Coll.List[I64], j: I64, acc: Coll.List[D.Plan]): Coll.List[D.Plan] = xs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(a, rest) => val D.CAtom(ref, _) = a @@ -241,7 +241,7 @@ def D.plans {r: Region} (body: Coll.List[D.CAtom], xs: Coll.List[D.CAtom], heads else D.plans(body, rest, heads, j + 1, acc) // the other atoms of body around position j, in written order -def D.steps {r: Region} (body: Coll.List[D.CAtom], j: I64, i: I64, acc: Coll.List[D.Step]): Coll.List[D.Step] = body match +def D.steps(body: Coll.List[D.CAtom], j: I64, i: I64, acc: Coll.List[D.Step]): Coll.List[D.Step] = body match case Coll.Nil => Coll.rev(acc) case Coll.Cons(a, rest) => if i < j then D.steps(rest, j, i + 1, Coll.Cons(D.ReadOld(a), acc)) @@ -253,7 +253,7 @@ enum D.Bound: case D.Unbound case D.Is(v: D.Val) -def D.argVal {r: Region} (env: Coll.IMap[D.Val], a: D.Arg): D.Bound = a match +def D.argVal(env: Coll.IMap[D.Val], a: D.Arg): D.Bound = a match case D.AVal(v) => D.Is(v) case D.AVar(n) => Coll.node(env, n) match case Coll.Tip => D.Unbound @@ -264,14 +264,14 @@ enum D.Probe: case D.Scan case D.Col(c: I64, h: I64) -def D.probe {r: Region} (env: Coll.IMap[D.Val], args: Coll.List[D.Arg], c: I64): D.Probe = args match +def D.probe(env: Coll.IMap[D.Val], args: Coll.List[D.Arg], c: I64): D.Probe = args match case Coll.Nil => D.Scan case Coll.Cons(a, rest) => D.argVal(env, a) match case D.Is(v) => D.Col(c, D.vhash(v)) case D.Unbound => D.probe(env, rest, c + 1) // env extended so args match t, or None -def D.matchT {r: Region} (env: Coll.IMap[D.Val], args: Coll.List[D.Arg], t: Coll.List[D.Val]): Coll.Option[Coll.IMap[D.Val]] = args match +def D.matchT(env: Coll.IMap[D.Val], args: Coll.List[D.Arg], t: Coll.List[D.Val]): Coll.Option[Coll.IMap[D.Val]] = args match case Coll.Nil => Coll.Some(env) case Coll.Cons(a, rest) => t match case Coll.Nil => Coll.None @@ -283,7 +283,7 @@ def D.matchT {r: Region} (env: Coll.IMap[D.Val], args: Coll.List[D.Arg], t: Coll // the extensions of e by the rows (newest first) that u reads in round r: rows of round r are skipped; recent ends at // the first older row -def D.matchRows {r: Region} (e: Coll.IMap[D.Val], args: Coll.List[D.Arg], rows: Coll.List[D.Row], u: D.Use, rd: I64, out: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = rows match +def D.matchRows(e: Coll.IMap[D.Val], args: Coll.List[D.Arg], rows: Coll.List[D.Row], u: D.Use, rd: I64, out: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = rows match case Coll.Nil => out case Coll.Cons(row, rest) => val at = D.stampOf(row) @@ -303,12 +303,12 @@ def D.matchRows {r: Region} (e: Coll.IMap[D.Val], args: Coll.List[D.Arg], rows: case Coll.None => D.matchRows(e, args, rest, u, rd, out) case Coll.Some(e2) => D.matchRows(e, args, rest, u, rd, Coll.Cons(e2, out)) -def D.relOf {r: Region} (rels: Coll.IMap[D.Rel], id: I64): D.Rel = Coll.node(rels, id) match +def D.relOf(rels: Coll.IMap[D.Rel], id: I64): D.Rel = Coll.node(rels, id) match case Coll.Tip => D.newRel(Coll.Nil) case Coll.Bin(_, _, rl, _, _) => rl // every extension of each env by a row of the atom's relation that u reads -def D.joinAtom {r: Region} (rels: Coll.IMap[D.Rel], a: D.CAtom, u: D.Use, rd: I64, envs: Coll.List[Coll.IMap[D.Val]], out: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = envs match +def D.joinAtom(rels: Coll.IMap[D.Rel], a: D.CAtom, u: D.Use, rd: I64, envs: Coll.List[Coll.IMap[D.Val]], out: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = envs match case Coll.Nil => out case Coll.Cons(e, rest) => val D.CAtom(relRef, args) = a @@ -316,18 +316,18 @@ def D.joinAtom {r: Region} (rels: Coll.IMap[D.Rel], a: D.CAtom, u: D.Use, rd: I6 D.joinAtom(rels, a, u, rd, rest, D.matchRows(e, args, D.cands(D.relOf(rels, rel), D.probe(e, args, 0)), u, rd, out)) // a body evaluated in written order, every atom reading all older rows: the first round of a stratum, and D.why -def D.evalAll {r: Region} (rels: Coll.IMap[D.Rel], body: Coll.List[D.CAtom], rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = body match +def D.evalAll(rels: Coll.IMap[D.Rel], body: Coll.List[D.CAtom], rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = body match case Coll.Nil => envs case Coll.Cons(a, rest) => envs match case Coll.Nil => Coll.Nil case Coll.Cons(_, _) => D.evalAll(rels, rest, rd, D.joinAtom(rels, a, D.Full, rd, envs, Coll.Nil)) // a plan: its recent atom first, then its steps -def D.evalPlan {r: Region} (rels: Coll.IMap[D.Rel], p: D.Plan, rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = +def D.evalPlan(rels: Coll.IMap[D.Rel], p: D.Plan, rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = val D.Plan(first, steps) = p D.joinSteps(rels, steps, rd, D.joinAtom(rels, first, D.Recent, rd, envs, Coll.Nil)) -def D.joinSteps {r: Region} (rels: Coll.IMap[D.Rel], steps: Coll.List[D.Step], rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = steps match +def D.joinSteps(rels: Coll.IMap[D.Rel], steps: Coll.List[D.Step], rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = steps match case Coll.Nil => envs case Coll.Cons(s, rest) => envs match case Coll.Nil => Coll.Nil @@ -335,21 +335,21 @@ def D.joinSteps {r: Region} (rels: Coll.IMap[D.Rel], steps: Coll.List[D.Step], r case D.ReadOld(a) => D.joinSteps(rels, rest, rd, D.joinAtom(rels, a, D.Stable, rd, envs, Coll.Nil)) case D.ReadAll(a) => D.joinSteps(rels, rest, rd, D.joinAtom(rels, a, D.Full, rd, envs, Coll.Nil)) -def D.recentOf {r: Region} (rels: Coll.IMap[D.Rel], a: D.CAtom): I64 = +def D.recentOf(rels: Coll.IMap[D.Rel], a: D.CAtom): I64 = val D.CAtom(relRef, _) = a val rel = D.idOfRef(relRef) val D.Rel(_, _, _, _, rc, _) = D.relOf(rels, rel) rc // ── heads ── -def D.inst {r: Region} (env: Coll.IMap[D.Val], args: Coll.List[D.Arg], acc: Coll.List[D.Val]): Coll.Option[Coll.List[D.Val]] = args match +def D.inst(env: Coll.IMap[D.Val], args: Coll.List[D.Arg], acc: Coll.List[D.Val]): Coll.Option[Coll.List[D.Val]] = args match case Coll.Nil => Coll.Some(Coll.rev(acc)) case Coll.Cons(a, rest) => D.argVal(env, a) match case D.Unbound => Coll.None case D.Is(v) => D.inst(env, rest, Coll.Cons(v, acc)) // each env's head tuple added as a row of round rd, unless its relation has it (from any round) -def D.heads {r: Region} (rels: Coll.IMap[D.Rel], h: D.CAtom, rule: D.CRule, rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.IMap[D.Rel] = envs match +def D.heads(rels: Coll.IMap[D.Rel], h: D.CAtom, rule: D.CRule, rd: I64, envs: Coll.List[Coll.IMap[D.Val]]): Coll.IMap[D.Rel] = envs match case Coll.Nil => rels case Coll.Cons(e, rest) => val D.CAtom(relRef, args) = h @@ -361,7 +361,7 @@ def D.heads {r: Region} (rels: Coll.IMap[D.Rel], h: D.CAtom, rule: D.CRule, rd: if D.has(rl, t) then D.heads(rels, h, rule, rd, rest) else D.heads(Coll.insert(rels, rel, D.add(rl, D.Made(rd, rule, t))), h, rule, rd, rest) // the envs whose negated atoms all fail: each tuple is in no round of its relation (a lower stratum, complete) -def D.negOk {r: Region} (rels: Coll.IMap[D.Rel], negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val]): Bool = negs match +def D.negOk(rels: Coll.IMap[D.Rel], negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val]): Bool = negs match case Coll.Nil => true case Coll.Cons(a, rest) => val D.CAtom(relRef, args) = a @@ -370,13 +370,13 @@ def D.negOk {r: Region} (rels: Coll.IMap[D.Rel], negs: Coll.List[D.CAtom], e: Co case Coll.None => false case Coll.Some(t) => if D.has(D.relOf(rels, rel), t) then false else D.negOk(rels, rest, e) -def D.filterNeg {r: Region} (rels: Coll.IMap[D.Rel], negs: Coll.List[D.CAtom], envs: Coll.List[Coll.IMap[D.Val]], out: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = envs match +def D.filterNeg(rels: Coll.IMap[D.Rel], negs: Coll.List[D.CAtom], envs: Coll.List[Coll.IMap[D.Val]], out: Coll.List[Coll.IMap[D.Val]]): Coll.List[Coll.IMap[D.Val]] = envs match case Coll.Nil => out case Coll.Cons(e, rest) => D.filterNeg(rels, negs, rest, if D.negOk(rels, negs, e) then Coll.Cons(e, out) else out) // one rule in round rd, once per plan whose recent atom's relation has recent rows. the joins read the relations as // the round began (rels0) -def D.fireAt {r: Region} (rels0: Coll.IMap[D.Rel], rl: D.CRule, ps: Coll.List[D.Plan], rd: I64, rels: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = ps match +def D.fireAt(rels0: Coll.IMap[D.Rel], rl: D.CRule, ps: Coll.List[D.Plan], rd: I64, rels: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = ps match case Coll.Nil => rels case Coll.Cons(p, rest) => val D.Plan(first, _) = p @@ -385,7 +385,7 @@ def D.fireAt {r: Region} (rels0: Coll.IMap[D.Rel], rl: D.CRule, ps: Coll.List[D. else D.fireAt(rels0, rl, rest, rd, D.fireWith(rels0, rl, D.evalPlan(rels0, p, rd, Coll.Cons(e0, Coll.Nil)), rd, rels)) // the body matches envs of rule rl, filtered by its negated atoms, as head rows of round rd -def D.fireWith {r: Region} (rels0: Coll.IMap[D.Rel], rl: D.CRule, envs: Coll.List[Coll.IMap[D.Val]], rd: I64, rels: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = +def D.fireWith(rels0: Coll.IMap[D.Rel], rl: D.CRule, envs: Coll.List[Coll.IMap[D.Val]], rd: I64, rels: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = val D.CRule(h, _, neg, _, _) = rl D.heads(rels, h, rl, rd, D.filterNeg(rels0, neg, envs, Coll.Nil)) @@ -394,7 +394,7 @@ enum D.Pass: case D.FirstPass case D.NextPass -def D.fireAll {r: Region} (rels0: Coll.IMap[D.Rel], rs: Coll.List[D.CRule], rd: I64, pass: D.Pass, rels: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = rs match +def D.fireAll(rels0: Coll.IMap[D.Rel], rs: Coll.List[D.CRule], rd: I64, pass: D.Pass, rels: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = rs match case Coll.Nil => rels case Coll.Cons(rl, rest) => val D.CRule(_, body, _, _, plans) = rl @@ -406,7 +406,7 @@ def D.fireAll {r: Region} (rels0: Coll.IMap[D.Rel], rs: Coll.List[D.CRule], rd: // a round ends: this round's rows become the recent ones; the number of new rows in all relations. a relation with no // recent and no fresh rows is the same record after the round: it stays as it is in acc (which starts as rels) -def D.advance {r: Region} (rels: Coll.IMap[D.Rel], id: I64, k: I64, acc: Coll.IMap[D.Rel], news: I64): D.Next = +def D.advance(rels: Coll.IMap[D.Rel], id: I64, k: I64, acc: Coll.IMap[D.Rel], news: I64): D.Next = if id == k then D.Next(acc, news) else val D.Rel(ic, set, cols, all, rc, fr) = D.relOf(rels, id) @@ -425,7 +425,7 @@ def D.inputRound(): I64 = 0 def D.firstRound(): I64 = D.inputRound() + 1 // round rd reads rows of rounds < rd -def D.rounds {r: Region} (rs: Coll.List[D.CRule], rels: Coll.IMap[D.Rel], rd: I64, k: I64, pass: D.Pass): D.Stage = +def D.rounds(rs: Coll.List[D.CRule], rels: Coll.IMap[D.Rel], rd: I64, k: I64, pass: D.Pass): D.Stage = val fired = D.fireAll(rels, rs, rd, pass, rels) val D.Next(rels2, news) = D.advance(fired, 0, k, fired, 0) if news == 0 then D.Stage(rels2, rd + 1) else D.rounds(rs, rels2, rd + 1, k, D.NextPass) @@ -446,7 +446,7 @@ def D.maxSt(st: Coll.IMap[I64], as: Coll.List[D.CAtom], plus: I64, m: I64): I64 enum D.Raised: case D.Raised(st: Coll.IMap[I64], changed: Bool) -def D.raiseAll {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], changed: Bool): D.Raised = rs match +def D.raiseAll(rs: Coll.List[D.CRule], st: Coll.IMap[I64], changed: Bool): D.Raised = rs match case Coll.Nil => D.Raised(st, changed) case Coll.Cons(rl, rest) => val D.CRule(h, body, neg, _, _) = rl @@ -458,12 +458,12 @@ def D.raiseAll {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], changed: def D.topOf(st: Coll.IMap[I64], id: I64, k: I64, m: I64): I64 = if id == k then m else D.topOf(st, id + 1, k, if D.stOf(st, id) > m then D.stOf(st, id) else m) // raise until no stratum changes, or one passes k (a cycle through negation: a stratification has at most k strata) -def D.strata {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], k: I64): Coll.IMap[I64] = +def D.strata(rs: Coll.List[D.CRule], st: Coll.IMap[I64], k: I64): Coll.IMap[I64] = val D.Raised(st2, changed) = D.raiseAll(rs, st, false) if !changed || D.topOf(st2, 0, k, 0) > k then st2 else D.strata(rs, st2, k) // the head with the smallest id whose stratum passed k (only heads are ever raised), or None: no cycle through negation -def D.overHead {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], k: I64, best: Coll.Option[D.CAtom]): Coll.Option[Sym.Sym] = rs match +def D.overHead(rs: Coll.List[D.CRule], st: Coll.IMap[I64], k: I64, best: Coll.Option[D.CAtom]): Coll.Option[Sym.Sym] = rs match case Coll.Nil => best match case Coll.None => Coll.None case Coll.Some(a) => @@ -476,7 +476,7 @@ def D.overHead {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], k: I64, val hr = D.idOfRef(hrRef) if D.stOf(st, hr) <= k then D.overHead(rest, st, k, best) else D.overHead(rest, st, k, D.smaller(h, best)) -def D.smaller {r: Region} (h: D.CAtom, best: Coll.Option[D.CAtom]): Coll.Option[D.CAtom] = best match +def D.smaller(h: D.CAtom, best: Coll.Option[D.CAtom]): Coll.Option[D.CAtom] = best match case Coll.None => Coll.Some(h) case Coll.Some(b) => val D.CAtom(hrRef, _) = h @@ -485,7 +485,7 @@ def D.smaller {r: Region} (h: D.CAtom, best: Coll.Option[D.CAtom]): Coll.Option[ val br = D.idOfRef(brRef) if hr < br then Coll.Some(h) else best -def D.rulesAt {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], s: I64, acc: Coll.List[D.CRule]): Coll.List[D.CRule] = rs match +def D.rulesAt(rs: Coll.List[D.CRule], st: Coll.IMap[I64], s: I64, acc: Coll.List[D.CRule]): Coll.List[D.CRule] = rs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(rl, rest) => val D.CRule(h, _, _, _, _) = rl @@ -493,7 +493,7 @@ def D.rulesAt {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], s: I64, a val hr = D.idOfRef(hrRef) D.rulesAt(rest, st, s, if D.stOf(st, hr) == s then Coll.Cons(rl, acc) else acc) -def D.runStrata {r: Region} (rs: Coll.List[D.CRule], st: Coll.IMap[I64], s: I64, top: I64, rels: Coll.IMap[D.Rel], rd: I64, k: I64): Coll.IMap[D.Rel] = +def D.runStrata(rs: Coll.List[D.CRule], st: Coll.IMap[I64], s: I64, top: I64, rels: Coll.IMap[D.Rel], rd: I64, k: I64): Coll.IMap[D.Rel] = if s > top then rels else val D.Stage(rels2, rd2) = D.rounds(D.rulesAt(rs, st, s, Coll.Nil), rels, rd, k, D.FirstPass) @@ -504,14 +504,14 @@ def D.allIn(vs: Coll.List[I64], bound: Coll.List[I64]): Bool = vs match case Coll.Nil => true case Coll.Cons(v, rest) => if D.memberI(v, bound) then D.allIn(rest, bound) else false -def D.atomsVars {r: Region} (as: Coll.List[D.CAtom], acc: Coll.List[I64]): Coll.List[I64] = as match +def D.atomsVars(as: Coll.List[D.CAtom], acc: Coll.List[I64]): Coll.List[I64] = as match case Coll.Nil => acc case Coll.Cons(a, rest) => val D.CAtom(_, args) = a D.atomsVars(rest, D.argVars(args, acc)) // the head relation of the first unsafe rule, or None: every rule is safe -def D.firstUnsafe {r: Region} (rs: Coll.List[D.CRule]): Coll.Option[Sym.Sym] = rs match +def D.firstUnsafe(rs: Coll.List[D.CRule]): Coll.Option[Sym.Sym] = rs match case Coll.Nil => Coll.None case Coll.Cons(rl, rest) => val D.CRule(h, body, neg, _, _) = rl @@ -528,30 +528,30 @@ def D.memberI(v: I64, xs: Coll.List[I64]): Bool = xs match case Coll.Cons(h, t) => if h == v then true else D.memberI(v, t) // the first column bound under bound (a constant, or a bound variable), or None: the atom is scanned -def D.firstBound {r: Region} (args: Coll.List[D.Arg], bound: Coll.List[I64], c: I64): Coll.Option[I64] = args match +def D.firstBound(args: Coll.List[D.Arg], bound: Coll.List[I64], c: I64): Coll.Option[I64] = args match case Coll.Nil => Coll.None case Coll.Cons(a, rest) => a match case D.AVal(_) => Coll.Some(c) case D.AVar(n) => if D.memberI(n, bound) then Coll.Some(c) else D.firstBound(rest, bound, c + 1) -def D.argVars {r: Region} (args: Coll.List[D.Arg], acc: Coll.List[I64]): Coll.List[I64] = args match +def D.argVars(args: Coll.List[D.Arg], acc: Coll.List[I64]): Coll.List[I64] = args match case Coll.Nil => acc case Coll.Cons(a, rest) => a match case D.AVal(_) => D.argVars(rest, acc) case D.AVar(n) => D.argVars(rest, Coll.Cons(n, acc)) -def D.colsOf {r: Region} (ics: Coll.IMap[Coll.List[I64]], rel: I64): Coll.List[I64] = Coll.node(ics, rel) match +def D.colsOf(ics: Coll.IMap[Coll.List[I64]], rel: I64): Coll.List[I64] = Coll.node(ics, rel) match case Coll.Tip => Coll.Nil case Coll.Bin(_, _, cs, _, _) => cs -def D.probesOf {r: Region} (body: Coll.List[D.CAtom], bound: Coll.List[I64], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = body match +def D.probesOf(body: Coll.List[D.CAtom], bound: Coll.List[I64], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = body match case Coll.Nil => ics case Coll.Cons(a, rest) => val D.CAtom(_, args) = a D.probesOf(rest, D.argVars(args, bound), D.probeAtom(a, bound, ics)) // the column atom a probes under bound, recorded for its relation -def D.probeAtom {r: Region} (a: D.CAtom, bound: Coll.List[I64], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = +def D.probeAtom(a: D.CAtom, bound: Coll.List[I64], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = val D.CAtom(relRef, args) = a val rel = D.idOfRef(relRef) val old = D.colsOf(ics, rel) @@ -560,12 +560,12 @@ def D.probeAtom {r: Region} (a: D.CAtom, bound: Coll.List[I64], ics: Coll.IMap[C case Coll.Some(c) => if D.memberI(c, old) then ics else Coll.insert(ics, rel, Coll.Cons(c, old)) // the probes of a plan: its recent atom with nothing bound, then its steps in order -def D.probesPlan {r: Region} (p: D.Plan, ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = +def D.probesPlan(p: D.Plan, ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = val D.Plan(first, steps) = p val D.CAtom(_, args) = first D.probesSteps(steps, D.argVars(args, Coll.Nil), D.probeAtom(first, Coll.Nil, ics)) -def D.probesSteps {r: Region} (steps: Coll.List[D.Step], bound: Coll.List[I64], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = steps match +def D.probesSteps(steps: Coll.List[D.Step], bound: Coll.List[I64], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = steps match case Coll.Nil => ics case Coll.Cons(s, rest) => val a: D.CAtom = s match @@ -574,18 +574,18 @@ def D.probesSteps {r: Region} (steps: Coll.List[D.Step], bound: Coll.List[I64], val D.CAtom(_, args) = a D.probesSteps(rest, D.argVars(args, bound), D.probeAtom(a, bound, ics)) -def D.probesPlans {r: Region} (ps: Coll.List[D.Plan], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = ps match +def D.probesPlans(ps: Coll.List[D.Plan], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = ps match case Coll.Nil => ics case Coll.Cons(p, rest) => D.probesPlans(rest, D.probesPlan(p, ics)) // the probes of every rule: written order (the first pass, D.why) and each plan -def D.probesAll {r: Region} (rs: Coll.List[D.CRule], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = rs match +def D.probesAll(rs: Coll.List[D.CRule], ics: Coll.IMap[Coll.List[I64]]): Coll.IMap[Coll.List[I64]] = rs match case Coll.Nil => ics case Coll.Cons(rl, rest) => val D.CRule(_, body, _, _, plans) = rl D.probesAll(rest, D.probesPlans(plans, D.probesOf(body, Coll.Nil, ics))) -def D.initRels {r: Region} (ics: Coll.IMap[Coll.List[I64]], id: I64, k: I64, acc: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = +def D.initRels(ics: Coll.IMap[Coll.List[I64]], id: I64, k: I64, acc: Coll.IMap[D.Rel]): Coll.IMap[D.Rel] = if id == k then acc else D.initRels(ics, id + 1, k, Coll.insert(acc, id, D.newRel(D.colsOf(ics, id)))) @@ -594,7 +594,7 @@ enum D.Model: case D.Model(tab: Coll.List[D.RelRef], rels: Coll.IMap[D.Rel]) // the input facts as rows of the input round; a relation that only facts name gets its id here -def D.load {r: Region} (tab: Coll.List[D.RelRef], fs: Coll.List[D.Fact], rels: Coll.IMap[D.Rel]): D.With[Coll.IMap[D.Rel]] = fs match +def D.load(tab: Coll.List[D.RelRef], fs: Coll.List[D.Fact], rels: Coll.IMap[D.Rel]): D.With[Coll.IMap[D.Rel]] = fs match case Coll.Nil => D.With(tab, rels) case Coll.Cons(f, rest) => val D.Fact(rel, vals) = f @@ -611,7 +611,7 @@ enum D.Result: // the model of rules over facts: strata in order, each to its fixpoint. ids: the rules' names in written order, then // the names only facts use -def D.solve {r: Region} (rules: Coll.List[D.Rule], facts: Coll.List[D.Fact]): D.Result = +def D.solve(rules: Coll.List[D.Rule], facts: Coll.List[D.Fact]): D.Result = val D.With(tab1, ds) = D.drafts(Coll.Nil, rules, 0, Coll.Nil) val crs = D.crules(ds, D.headIds(ds, Coll.Nil), Coll.Nil) D.firstUnsafe(crs) match @@ -626,14 +626,14 @@ def D.solve {r: Region} (rules: Coll.List[D.Rule], facts: Coll.List[D.Fact]): D. val D.Next(rels, _) = D.advance(rels0, 0, k, rels0, 0) D.Solved(D.Model(tab, D.runStrata(crs, st, 0, D.topOf(st, 0, k, 0), rels, D.firstRound(), k))) -def D.rowsOf {r: Region} (rows: Coll.List[D.Row], acc: Coll.List[Coll.List[D.Val]]): Coll.List[Coll.List[D.Val]] = rows match +def D.rowsOf(rows: Coll.List[D.Row], acc: Coll.List[Coll.List[D.Val]]): Coll.List[Coll.List[D.Val]] = rows match case Coll.Nil => acc case Coll.Cons(row, rest) => val t = D.tupleOf(row) D.rowsOf(rest, Coll.Cons(t, acc)) // the facts of rel in a model, oldest first (none when the model has no relation rel) -def D.tuples {r: Region} (m: D.Model, rel: Sym.Sym): Coll.List[Coll.List[D.Val]] = +def D.tuples(m: D.Model, rel: Sym.Sym): Coll.List[Coll.List[D.Val]] = val D.Model(tab, rels) = m D.refOf(tab, rel) match case Coll.None => Coll.Nil @@ -648,12 +648,12 @@ enum D.Proof: // a negated premise: the atom is not in its relation, a complete lower stratum case D.Absent(rel: Sym.Sym, t: Coll.List[D.Val]) -def D.rowIn {r: Region} (rows: Coll.List[D.Row], t: Coll.List[D.Val]): Coll.Option[D.Row] = rows match +def D.rowIn(rows: Coll.List[D.Row], t: Coll.List[D.Val]): Coll.Option[D.Row] = rows match case Coll.Nil => Coll.None case Coll.Cons(row, rest) => if D.tupleEq(D.tupleOf(row), t) then Coll.Some(row) else D.rowIn(rest, t) // the row of t in rl, found through the dedup set -def D.findRow {r: Region} (rl: D.Rel, t: Coll.List[D.Val]): Coll.Option[D.Row] = +def D.findRow(rl: D.Rel, t: Coll.List[D.Val]): Coll.Option[D.Row] = val D.Rel(_, set, _, _, _, _) = rl D.rowIn(D.bucket(set, D.tupleHash(t)), t) @@ -661,7 +661,7 @@ def D.findRow {r: Region} (rl: D.Rel, t: Coll.List[D.Val]): Coll.Option[D.Row] = // body match among rows of smaller stamps, so the recursion ends. in a stratum that reads only inputs a row's stamp // is its minimal proof height, and so is the height of this proof (zhao-2020 txt:575-576); across strata it can be // taller (bead vic-m5r.35) -def D.proofOf {r: Region} (rels: Coll.IMap[D.Rel], ref: D.RelRef, t: Coll.List[D.Val]): Coll.Option[D.Proof] = +def D.proofOf(rels: Coll.IMap[D.Rel], ref: D.RelRef, t: Coll.List[D.Val]): Coll.Option[D.Proof] = val D.RelRef(id, rel) = ref D.findRow(D.relOf(rels, id), t) match case Coll.None => Coll.None @@ -669,7 +669,7 @@ def D.proofOf {r: Region} (rels: Coll.IMap[D.Rel], ref: D.RelRef, t: Coll.List[D case D.Input(_) => Coll.Some(D.Given(rel, t)) case D.Made(at, rl, _) => D.byRule(rels, rl, rel, at, t) -def D.byRule {r: Region} (rels: Coll.IMap[D.Rel], rl: D.CRule, rel: Sym.Sym, at: I64, t: Coll.List[D.Val]): Coll.Option[D.Proof] = +def D.byRule(rels: Coll.IMap[D.Rel], rl: D.CRule, rel: Sym.Sym, at: I64, t: Coll.List[D.Val]): Coll.Option[D.Proof] = val D.CRule(h, body, neg, i, _) = rl val D.CAtom(_, hargs) = h val e0: Coll.IMap[D.Val] = Coll.Tip @@ -682,7 +682,7 @@ def D.byRule {r: Region} (rels: Coll.IMap[D.Rel], rl: D.CRule, rel: Sym.Sym, at: case Coll.Some(ps) => Coll.Some(D.ByRule(i, rel, t, ps)) // the proofs of the positive atoms xs under e, in body order, then the negated atoms negs as absent -def D.premises {r: Region} (rels: Coll.IMap[D.Rel], xs: Coll.List[D.CAtom], negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val], acc: Coll.List[D.Proof]): Coll.Option[Coll.List[D.Proof]] = xs match +def D.premises(rels: Coll.IMap[D.Rel], xs: Coll.List[D.CAtom], negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val], acc: Coll.List[D.Proof]): Coll.Option[Coll.List[D.Proof]] = xs match case Coll.Nil => D.absents(negs, e, acc) case Coll.Cons(a, rest) => val D.CAtom(ref, args) = a @@ -692,7 +692,7 @@ def D.premises {r: Region} (rels: Coll.IMap[D.Rel], xs: Coll.List[D.CAtom], negs case Coll.None => Coll.None case Coll.Some(p) => D.premises(rels, rest, negs, e, Coll.Cons(p, acc)) -def D.absents {r: Region} (negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val], acc: Coll.List[D.Proof]): Coll.Option[Coll.List[D.Proof]] = negs match +def D.absents(negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val], acc: Coll.List[D.Proof]): Coll.Option[Coll.List[D.Proof]] = negs match case Coll.Nil => Coll.Some(Coll.rev(acc)) case Coll.Cons(a, rest) => val D.CAtom(ref, args) = a @@ -701,7 +701,7 @@ def D.absents {r: Region} (negs: Coll.List[D.CAtom], e: Coll.IMap[D.Val], acc: C case Coll.Some(t) => D.absents(rest, e, Coll.Cons(D.Absent(D.nameOfRef(ref), t), acc)) // why tuple t of rel holds in m: its proof tree down to input facts, or None when t is not in m -def D.why {r: Region} (m: D.Model, rel: Sym.Sym, t: Coll.List[D.Val]): Coll.Option[D.Proof] = +def D.why(m: D.Model, rel: Sym.Sym, t: Coll.List[D.Val]): Coll.Option[D.Proof] = val D.Model(tab, rels) = m D.refOf(tab, rel) match case Coll.None => Coll.None diff --git a/s2/eff.srs b/s2/eff.srs index 72c55710..71337692 100644 --- a/s2/eff.srs +++ b/s2/eff.srs @@ -16,7 +16,7 @@ enum Eff.Rel: case Eff.RNeeds case Eff.RRow -def Eff.relSym {r: Region} (rel: Eff.Rel): Sym.Sym = rel match +def Eff.relSym(rel: Eff.Rel): Sym.Sym = rel match case Eff.RReq => Sym.of("req") case Eff.RDecl => Sym.of("decl") case Eff.RCalls => Sym.of("calls") @@ -28,7 +28,7 @@ def Eff.relSym {r: Region} (rel: Eff.Rel): Sym.Sym = rel match enum Eff.Req: case Eff.Req(p: Sym.Sym, op: Sym.Sym) -def Eff.reqOf {r: Region} (ps: Coll.List[Ast.Proto], f: Sym.Sym): Coll.Option[Eff.Req] = +def Eff.reqOf(ps: Coll.List[Ast.Proto], f: Sym.Sym): Coll.Option[Eff.Req] = val s = Sym.str(f) Eff.lastDot(s, Str.len(s) - 1) match case Coll.None => Coll.None @@ -40,11 +40,11 @@ def Eff.reqOf {r: Region} (ps: Coll.List[Ast.Proto], f: Sym.Sym): Coll.Option[Ef case Coll.None => Coll.None // 46 = `.` -def Eff.lastDot {r: Region} (s: Str, i: I64): Coll.Option[I64] = +def Eff.lastDot(s: Str, i: I64): Coll.Option[I64] = if i < 0 then Coll.None else if Str.at(s, i) == 46 then Coll.Some(i) else Eff.lastDot(s, i - 1) // the symbol `a.b` (srs has no string concatenation: the printer writes it) -def Eff.dotted {r: Region} (a: Str, b: Sym.Sym): Sym.Sym = +def Eff.dotted(a: Str, b: Sym.Sym): Sym.Sym = Console.captureBegin() Console.print(a) Console.print(".") @@ -62,15 +62,15 @@ enum Eff.Set: case Eff.Got(rows: Eff.Rows) case Eff.RulesBad(rel: Sym.Sym) -def Eff.none {r: Region} (): Eff.Rows = Eff.Rows(Coll.sEmpty()) +def Eff.none(): Eff.Rows = Eff.Rows(Coll.sEmpty()) -def Eff.row {r: Region} (rs: Eff.Rows, f: Sym.Sym): Coll.List[Eff.Cap] = +def Eff.row(rs: Eff.Rows, f: Sym.Sym): Coll.List[Eff.Cap] = val Eff.Rows(m) = rs Coll.sLookup(m, f) match case Coll.Some(cs) => cs case Coll.None => Coll.Nil -def Eff.has {r: Region} (rs: Eff.Rows, f: Sym.Sym, p: Sym.Sym): Bool = Eff.capIn(Eff.row(rs, f), p) +def Eff.has(rs: Eff.Rows, f: Sym.Sym, p: Sym.Sym): Bool = Eff.capIn(Eff.row(rs, f), p) def Eff.capIn(cs: Coll.List[Eff.Cap], p: Sym.Sym): Bool = cs match case Coll.Nil => false @@ -78,7 +78,7 @@ def Eff.capIn(cs: Coll.List[Eff.Cap], p: Sym.Sym): Bool = cs match val Eff.Cap(q, _) = c if Sym.eq(q, p) then true else Eff.capIn(rest, p) -def Eff.rows {r: Region} (ds: Coll.List[Ast.Decl]): Eff.Set = +def Eff.rows(ds: Coll.List[Ast.Decl]): Eff.Set = val cx = Eff.cxOf(ds, Eff.Cx(Coll.Nil, Coll.sEmpty(), Coll.sEmpty(), Coll.sEmpty(), Eff.syms())) D.solve(Eff.rules(), Eff.decls(cx, ds, Eff.W(1, Coll.Nil, Coll.Nil, Coll.sEmpty()))) match case D.Solved(m) => Eff.Got(Eff.Rows(Eff.group(Eff.capNames(cx), D.tuples(m, Eff.relSym(Eff.RRow)), Coll.sEmpty()))) @@ -86,7 +86,7 @@ def Eff.rows {r: Region} (ds: Coll.List[Ast.Decl]): Eff.Set = case D.NegCycle(rel) => Eff.RulesBad(rel) // row tuples (F, P) by F; main has no row (vic: main must have the empty row) -def Eff.group {r: Region} (names: Coll.SMap[Sym.Sym], ts: Coll.List[Coll.List[D.Val]], m: Coll.SMap[Coll.List[Eff.Cap]]): Coll.SMap[Coll.List[Eff.Cap]] = ts match +def Eff.group(names: Coll.SMap[Sym.Sym], ts: Coll.List[Coll.List[D.Val]], m: Coll.SMap[Coll.List[Eff.Cap]]): Coll.SMap[Coll.List[Eff.Cap]] = ts match case Coll.Nil => m case Coll.Cons(t, rest) => t match case Coll.Cons(fv, more) => more match @@ -108,20 +108,20 @@ def Eff.group {r: Region} (names: Coll.SMap[Sym.Sym], ts: Coll.List[Coll.List[D. case Coll.Nil => Eff.group(names, rest, m) // eff.P for each protocol P -def Eff.capNames {r: Region} (cx: Eff.Cx): Coll.SMap[Sym.Sym] = +def Eff.capNames(cx: Eff.Cx): Coll.SMap[Sym.Sym] = val Eff.Cx(ps, _, _, _, _) = cx Eff.namesOf(ps, Coll.sEmpty()) -def Eff.namesOf {r: Region} (ps: Coll.List[Ast.Proto], m: Coll.SMap[Sym.Sym]): Coll.SMap[Sym.Sym] = ps match +def Eff.namesOf(ps: Coll.List[Ast.Proto], m: Coll.SMap[Sym.Sym]): Coll.SMap[Sym.Sym] = ps match case Coll.Nil => m case Coll.Cons(p, rest) => val Ast.Proto(_, n, _, _, _, _, _, _) = p Eff.namesOf(rest, Coll.sInsert(m, n, Eff.dotted("eff", n))) // ── rules ── -def Eff.atom {r: Region} (rel: Eff.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Eff.relSym(rel), Pure.vars(xs)) +def Eff.atom(rel: Eff.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Eff.relSym(rel), Pure.vars(xs)) -def Eff.rules {r: Region} (): Coll.List[D.Rule] = +def Eff.rules(): Coll.List[D.Rule] = val n1 = D.Rule(Eff.atom(Eff.RNeeds, Pure.two(0, 1)), Coll.Cons(D.Pos(Eff.atom(Eff.RReq, Pure.two(0, 1))), Coll.Nil)) val n2 = D.Rule(Eff.atom(Eff.RNeeds, Pure.two(0, 1)), Coll.Cons(D.Pos(Eff.atom(Eff.RDecl, Pure.two(0, 1))), Coll.Nil)) // needs(0, 1) :- calls(0, 2, 3), needs(2, 1), not hd(3, 1) @@ -145,9 +145,9 @@ enum Eff.Syms: enum Eff.Cx: case Eff.Cx(ps: Coll.List[Ast.Proto], hp: Coll.SMap[Sym.Sym], fns: Coll.SMap[Eff.Callee], ctors: Coll.SMap[Bool], ss: Eff.Syms) -def Eff.syms {r: Region} (): Eff.Syms = Eff.Syms(Eff.relSym(Eff.RReq), Eff.relSym(Eff.RDecl), Eff.relSym(Eff.RCalls), Eff.relSym(Eff.RHd), Sym.of("Region")) +def Eff.syms(): Eff.Syms = Eff.Syms(Eff.relSym(Eff.RReq), Eff.relSym(Eff.RDecl), Eff.relSym(Eff.RCalls), Eff.relSym(Eff.RHd), Sym.of("Region")) -def Eff.cxOf {r: Region} (ds: Coll.List[Ast.Decl], cx: Eff.Cx): Eff.Cx = ds match +def Eff.cxOf(ds: Coll.List[Ast.Decl], cx: Eff.Cx): Eff.Cx = ds match case Coll.Nil => cx case Coll.Cons(d, rest) => val Eff.Cx(ps, hp, fns, ctors, ss) = cx @@ -165,7 +165,7 @@ def Eff.cxOf {r: Region} (ds: Coll.List[Ast.Decl], cx: Eff.Cx): Eff.Cx = ds matc case _ => Eff.cxOf(rest, cx) // an extern with no {} binder is a leaf (rt_print, rt_str_eq, ...) -def Eff.calleeOf {r: Region} (f: Ast.Fn): Eff.Callee = +def Eff.calleeOf(f: Ast.Fn): Eff.Callee = val Ast.Fn(_, _, gs, _, _, _, body) = f body match case Ast.Extern => Ty.evidence(gs, Coll.Nil) match @@ -173,7 +173,7 @@ def Eff.calleeOf {r: Region} (f: Ast.Fn): Eff.Callee = case Coll.Cons(_, _) => Eff.Runs case _ => Eff.Runs -def Eff.ctorsOf {r: Region} (cs: Coll.List[Ast.Case], m: Coll.SMap[Bool]): Coll.SMap[Bool] = cs match +def Eff.ctorsOf(cs: Coll.List[Ast.Case], m: Coll.SMap[Bool]): Coll.SMap[Bool] = cs match case Coll.Nil => m case Coll.Cons(c, rest) => val Ast.Case(_, n, fields) = c @@ -190,17 +190,17 @@ enum Eff.W: enum Eff.At: case Eff.At(f: Sym.Sym, s: I64, hd: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym]) -def Eff.add {r: Region} (w: Eff.W, rel: Sym.Sym, vs: Coll.List[D.Val]): Eff.W = +def Eff.add(w: Eff.W, rel: Sym.Sym, vs: Coll.List[D.Val]): Eff.W = val Eff.W(n, fs, rq, cs) = w Eff.W(n, Coll.Cons(D.Fact(rel, vs), fs), rq, cs) -def Eff.v2 {r: Region} (a: D.Val, b: D.Val): Coll.List[D.Val] = Coll.Cons(a, Coll.Cons(b, Coll.Nil)) +def Eff.v2(a: D.Val, b: D.Val): Coll.List[D.Val] = Coll.Cons(a, Coll.Cons(b, Coll.Nil)) -def Eff.isIn {r: Region} (m: Coll.SMap[Bool], x: Sym.Sym): Bool = Coll.sLookup(m, x) match +def Eff.isIn(m: Coll.SMap[Bool], x: Sym.Sym): Bool = Coll.sLookup(m, x) match case Coll.Some(_) => true case Coll.None => false -def Eff.decls {r: Region} (cx: Eff.Cx, ds: Coll.List[Ast.Decl], w: Eff.W): Coll.List[D.Fact] = ds match +def Eff.decls(cx: Eff.Cx, ds: Coll.List[Ast.Decl], w: Eff.W): Coll.List[D.Fact] = ds match case Coll.Nil => val Eff.W(_, fs, _, _) = w fs @@ -218,7 +218,7 @@ def Eff.decls {r: Region} (cx: Eff.Cx, ds: Coll.List[Ast.Decl], w: Eff.W): Coll. // decl(F, P) for each {} binder of a protocol; the body of a run def (a spec def is pure: it has no row) // n: the subject, the def itself or its handler -def Eff.fn {r: Region} (cx: Eff.Cx, n: Sym.Sym, f: Ast.Fn, w: Eff.W): Eff.W = +def Eff.fn(cx: Eff.Cx, n: Sym.Sym, f: Ast.Fn, w: Eff.W): Eff.W = val Ast.Fn(_, _, gs, ps, _, _, body) = f val ev = Ty.evidence(gs, Coll.Nil) val w1 = Eff.declsOf(cx, n, ev, w) @@ -226,11 +226,11 @@ def Eff.fn {r: Region} (cx: Eff.Cx, n: Sym.Sym, f: Ast.Fn, w: Eff.W): Eff.W = case Ast.Def(_, e) => Eff.expr(cx, Eff.At(n, 0, Coll.Nil, Ty.names(ps, Ty.names(ev, Coll.Nil))), e, w1) case _ => w1 -def Eff.hfns {r: Region} (cx: Eff.Cx, h: Sym.Sym, fs: Coll.List[Ast.Fn], w: Eff.W): Eff.W = fs match +def Eff.hfns(cx: Eff.Cx, h: Sym.Sym, fs: Coll.List[Ast.Fn], w: Eff.W): Eff.W = fs match case Coll.Nil => w case Coll.Cons(f, rest) => Eff.hfns(cx, h, rest, Eff.fn(cx, h, f, w)) -def Eff.declsOf {r: Region} (cx: Eff.Cx, f: Sym.Sym, bs: Coll.List[Ast.Binder], w: Eff.W): Eff.W = bs match +def Eff.declsOf(cx: Eff.Cx, f: Sym.Sym, bs: Coll.List[Ast.Binder], w: Eff.W): Eff.W = bs match case Coll.Nil => w case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b @@ -239,7 +239,7 @@ def Eff.declsOf {r: Region} (cx: Eff.Cx, f: Sym.Sym, bs: Coll.List[Ast.Binder], val Eff.Syms(_, decl, _, _, _) = ss if Ty.isProto(ps, tn) then Eff.declsOf(cx, f, rest, Eff.add(w, decl, Eff.v2(D.VSym(f), D.VSym(tn)))) else Eff.declsOf(cx, f, rest, w) -def Eff.req {r: Region} (cx: Eff.Cx, at: Eff.At, p: Sym.Sym, w: Eff.W): Eff.W = +def Eff.req(cx: Eff.Cx, at: Eff.At, p: Sym.Sym, w: Eff.W): Eff.W = val Eff.At(f, _, hd, _) = at val Eff.W(n, fs, rq, cs) = w if Ty.memberSym(p, hd) || Ty.memberSym(p, rq) then w @@ -249,7 +249,7 @@ def Eff.req {r: Region} (cx: Eff.Cx, at: Eff.At, p: Sym.Sym, w: Eff.W): Eff.W = Eff.W(n, Coll.Cons(D.Fact(req, Eff.v2(D.VSym(f), D.VSym(p))), fs), Coll.Cons(p, rq), cs) // calls(F, G, S): a leaf, F itself, or a pair already called adds nothing -def Eff.call {r: Region} (cx: Eff.Cx, at: Eff.At, g: Sym.Sym, w: Eff.W): Eff.W = +def Eff.call(cx: Eff.Cx, at: Eff.At, g: Sym.Sym, w: Eff.W): Eff.W = val Eff.At(f, s, _, _) = at val Eff.Cx(_, _, fns, _, ss) = cx val Eff.W(n, fs, rq, cs) = w @@ -270,21 +270,21 @@ def Eff.memberI(x: I64, xs: Coll.List[I64]): Bool = xs match case Coll.Nil => false case Coll.Cons(h, t) => if h == x then true else Eff.memberI(x, t) -def Eff.isFn {r: Region} (m: Coll.SMap[Eff.Callee], x: Sym.Sym): Bool = Coll.sLookup(m, x) match +def Eff.isFn(m: Coll.SMap[Eff.Callee], x: Sym.Sym): Bool = Coll.sLookup(m, x) match case Coll.Some(_) => true case Coll.None => false -def Eff.reqTo {r: Region} (cx: Eff.Cx, at: Eff.At, q: Coll.Option[Eff.Req], w: Eff.W): Eff.W = q match +def Eff.reqTo(cx: Eff.Cx, at: Eff.At, q: Coll.Option[Eff.Req], w: Eff.W): Eff.W = q match case Coll.Some(rq) => val Eff.Req(p, _) = rq Eff.req(cx, at, p, w) case Coll.None => w -def Eff.local {r: Region} (at: Eff.At, xs: Coll.List[Sym.Sym]): Eff.At = +def Eff.local(at: Eff.At, xs: Coll.List[Sym.Sym]): Eff.At = val Eff.At(f, s, hd, ls) = at Eff.At(f, s, hd, Coll.revOnto(xs, ls)) -def Eff.expr {r: Region} (cx: Eff.Cx, at: Eff.At, e: Ast.Expr, w: Eff.W): Eff.W = e match +def Eff.expr(cx: Eff.Cx, at: Eff.At, e: Ast.Expr, w: Eff.W): Eff.W = e match case Ast.Name(_, x) => val Eff.At(_, _, _, ls) = at if Ty.memberSym(x, ls) then w else Eff.call(cx, at, x, w) @@ -306,11 +306,11 @@ def Eff.expr {r: Region} (cx: Eff.Cx, at: Eff.At, e: Ast.Expr, w: Eff.W): Eff.W case Ast.Quant(_, _, x, _, b) => Eff.expr(cx, Eff.local(at, Coll.Cons(x, Coll.Nil)), b, w) case _ => w -def Eff.exprs {r: Region} (cx: Eff.Cx, at: Eff.At, xs: Coll.List[Ast.Expr], w: Eff.W): Eff.W = xs match +def Eff.exprs(cx: Eff.Cx, at: Eff.At, xs: Coll.List[Ast.Expr], w: Eff.W): Eff.W = xs match case Coll.Nil => w case Coll.Cons(x, rest) => Eff.exprs(cx, at, rest, Eff.expr(cx, at, x, w)) -def Eff.arms {r: Region} (cx: Eff.Cx, at: Eff.At, as: Coll.List[Ast.Arm], w: Eff.W): Eff.W = as match +def Eff.arms(cx: Eff.Cx, at: Eff.At, as: Coll.List[Ast.Arm], w: Eff.W): Eff.W = as match case Coll.Nil => w case Coll.Cons(a, rest) => val Ast.Arm(_, p, b) = a @@ -320,7 +320,7 @@ def Eff.arms {r: Region} (cx: Eff.Cx, at: Eff.At, as: Coll.List[Ast.Arm], w: Eff Eff.arms(cx, at, rest, Eff.expr(cx, at2, b, w)) // a handle opens a new scope for the rest of the block: hd(S, P) for every protocol handled there -def Eff.stmts {r: Region} (cx: Eff.Cx, at: Eff.At, ss: Coll.List[Ast.Stmt], last: Ast.Expr, w: Eff.W): Eff.W = ss match +def Eff.stmts(cx: Eff.Cx, at: Eff.At, ss: Coll.List[Ast.Stmt], last: Ast.Expr, w: Eff.W): Eff.W = ss match case Coll.Nil => Eff.expr(cx, at, last, w) case Coll.Cons(s, rest) => s match case Ast.Val(_, x, _, e) => Eff.stmts(cx, Eff.local(at, Coll.Cons(x, Coll.Nil)), rest, last, Eff.expr(cx, at, e, w)) @@ -338,6 +338,6 @@ def Eff.stmts {r: Region} (cx: Eff.Cx, at: Eff.At, ss: Coll.List[Ast.Stmt], last case Ast.Do(e) => Eff.stmts(cx, at, rest, last, Eff.expr(cx, at, e, w)) case Ast.Check(_, _, e) => Eff.stmts(cx, at, rest, last, Eff.expr(cx, at, e, w)) -def Eff.hds {r: Region} (rel: Sym.Sym, s: I64, ps: Coll.List[Sym.Sym], w: Eff.W): Eff.W = ps match +def Eff.hds(rel: Sym.Sym, s: I64, ps: Coll.List[Sym.Sym], w: Eff.W): Eff.W = ps match case Coll.Nil => w case Coll.Cons(p, rest) => Eff.hds(rel, s, rest, Eff.add(w, rel, Eff.v2(D.VInt(s), D.VSym(p)))) diff --git a/s2/emit.srs b/s2/emit.srs index 6ce4e2a4..735206a4 100644 --- a/s2/emit.srs +++ b/s2/emit.srs @@ -64,16 +64,16 @@ enum Emit.Part: case Emit.Code // ── the declarations by name ── -def Emit.cxOf {r: Region} (ds: Coll.List[Ast.Decl], s: Coll.IMap[K.Term], fs: Coll.List[El.Fn]): Emit.Cx = +def Emit.cxOf(ds: Coll.List[Ast.Decl], s: Coll.IMap[K.Term], fs: Coll.List[El.Fn]): Emit.Cx = Emit.cxDecls(ds, Emit.Cx(s, Emit.fnMap(fs, Coll.sEmpty()), Coll.sEmpty(), Coll.sEmpty(), Coll.sEmpty(), Coll.sEmpty(), Emit.VTable, Coll.sEmpty())) -def Emit.fnMap {r: Region} (fs: Coll.List[El.Fn], m: Coll.SMap[El.Fn]): Coll.SMap[El.Fn] = fs match +def Emit.fnMap(fs: Coll.List[El.Fn], m: Coll.SMap[El.Fn]): Coll.SMap[El.Fn] = fs match case Coll.Nil => m case Coll.Cons(f, rest) => val El.Fn(_, n, _, _, _, _, _) = f Emit.fnMap(rest, Coll.sInsert(m, n, f)) -def Emit.cxDecls {r: Region} (ds: Coll.List[Ast.Decl], cx: Emit.Cx): Emit.Cx = ds match +def Emit.cxDecls(ds: Coll.List[Ast.Decl], cx: Emit.Cx): Emit.Cx = ds match case Coll.Nil => cx case Coll.Cons(d, rest) => val Emit.Cx(s, fns, cs, es, ps, hp, al, nm) = cx @@ -95,19 +95,19 @@ def Emit.cxDecls {r: Region} (ds: Coll.List[Ast.Decl], cx: Emit.Cx): Emit.Cx = d case _ => Emit.cxDecls(rest, cx) case _ => Emit.cxDecls(rest, cx) -def Emit.caseMap {r: Region} (cs: Coll.List[Ast.Case], e: Ast.Enum, i: I64, m: Coll.SMap[Emit.CaseAt]): Coll.SMap[Emit.CaseAt] = cs match +def Emit.caseMap(cs: Coll.List[Ast.Case], e: Ast.Enum, i: I64, m: Coll.SMap[Emit.CaseAt]): Coll.SMap[Emit.CaseAt] = cs match case Coll.Nil => m case Coll.Cons(c, rest) => val Ast.Case(_, n, _) = c Emit.caseMap(rest, e, i + 1, Coll.sInsert(m, n, Emit.CaseAt(i, e, c))) -def Emit.isProto {r: Region} (cx: Emit.Cx, n: Sym.Sym): Bool = +def Emit.isProto(cx: Emit.Cx, n: Sym.Sym): Bool = val Emit.Cx(_, _, _, _, ps, _, _, _) = cx Coll.sLookup(ps, n) match case Coll.Some(_) => true case Coll.None => false -def Emit.caseAt {r: Region} (cx: Emit.Cx, c: Sym.Sym): Coll.Option[Emit.CaseAt] = +def Emit.caseAt(cx: Emit.Cx, c: Sym.Sym): Coll.Option[Emit.CaseAt] = val Emit.Cx(_, _, cs, _, _, _, _, _) = cx Coll.sLookup(cs, c) @@ -115,11 +115,11 @@ def Emit.subst(cx: Emit.Cx): Coll.IMap[K.Term] = val Emit.Cx(s, _, _, _, _, _, _, _) = cx s -def Emit.grAll {r: Region} (cx: Emit.Cx, fi: Emit.Fi, ts: Coll.List[K.Term]): Coll.List[K.Term] = +def Emit.grAll(cx: Emit.Cx, fi: Emit.Fi, ts: Coll.List[K.Term]): Coll.List[K.Term] = val Emit.Fi(_, _, sub, _, _) = fi Mono.groundAll(Emit.subst(cx), sub, ts, Coll.Nil) -def Emit.gr {r: Region} (cx: Emit.Cx, fi: Emit.Fi, t: K.Term): K.Term = +def Emit.gr(cx: Emit.Cx, fi: Emit.Fi, t: K.Term): K.Term = val Emit.Fi(_, _, sub, _, _) = fi Mono.ground(Emit.subst(cx), sub, t) @@ -194,12 +194,12 @@ def Emit.envN(env: Emit.Env): I64 = val Emit.Env(_, n) = env n -def Emit.bind {r: Region} (env: Emit.Env, x: Sym.Sym): Emit.Env = +def Emit.bind(env: Emit.Env, x: Sym.Sym): Emit.Env = val Emit.Env(vs, n) = env Emit.Env(Coll.Cons(Emit.L(x, n), vs), n + 1) // ── types (spec sec 3): a ground term ── -def Emit.ctype {r: Region} (cx: Emit.Cx, t: K.Term): Unit = t match +def Emit.ctype(cx: Emit.Cx, t: K.Term): Unit = t match case K.Con(n, args) => val x = Sym.str(n) if Str.eq(x, "I64") || Str.eq(x, "Unit") then Console.print("int64_t") @@ -215,12 +215,12 @@ def Emit.ctype {r: Region} (cx: Emit.Cx, t: K.Term): Unit = t match Console.print("*") case _ => Console.print("int64_t") -def Emit.nominalOf {r: Region} (cx: Emit.Cx, n: Sym.Sym): Coll.Option[K.Term] = +def Emit.nominalOf(cx: Emit.Cx, n: Sym.Sym): Coll.Option[K.Term] = val Emit.Cx(_, _, _, _, _, _, _, nm) = cx Coll.sLookup(nm, n) // ── expressions (spec sec 4) ── -def Emit.ex {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, pos: Emit.Pos, e: El.Expr): Unit = e match +def Emit.ex(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, pos: Emit.Pos, e: El.Expr): Unit = e match case El.Int(_, v) => Console.print("((int64_t)") Console.printI64(v) @@ -338,7 +338,7 @@ def Emit.isSelf(fi: Emit.Fi, f: Sym.Sym, ts: Coll.List[K.Term]): Bool = val Emit.Fi(self, sts, _, _, _) = fi Sym.eq(f, self) && Mono.termsEq(ts, sts) -def Emit.fnName {r: Region} (cx: Emit.Cx, f: Sym.Sym, ts: Coll.List[K.Term]): Unit = +def Emit.fnName(cx: Emit.Cx, f: Sym.Sym, ts: Coll.List[K.Term]): Unit = val Emit.Cx(_, fns, _, _, _, _, _, _) = cx Coll.sLookup(fns, f) match case Coll.Some(g) => @@ -365,7 +365,7 @@ def Emit.capArgs(env: Emit.Env, caps: Coll.List[Sym.Sym], s: Emit.Sep): Unit = c Emit.capArgs(env, rest, Emit.Comma) // h_H_init(caps, args): the handler's state -def Emit.initCall {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, h: Sym.Sym, caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr]): Unit = +def Emit.initCall(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, h: Sym.Sym, caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr]): Unit = Console.print("h_") Emit.id(h) Console.print("_init(") @@ -374,7 +374,7 @@ def Emit.initCall {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, h: Sym.S Console.print(")") // a handler with a row (E1b): its state and the capabilities of the handle site, the self of its ops (srs_env) -def Emit.handleEnv {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, v: Emit.Name, h: Sym.Sym, caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr]): Unit = caps match +def Emit.handleEnv(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, v: Emit.Name, h: Sym.Sym, caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr]): Unit = caps match case Coll.Nil => () case Coll.Cons(_, _) => Console.print("struct { void* st; srs_cap* c[") @@ -387,7 +387,7 @@ def Emit.handleEnv {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, v: Emit Emit.capArgs(env, caps, Emit.First) Console.print(" } }; ") -def Emit.args {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, xs: Coll.List[El.Expr], s: Emit.Sep): Unit = xs match +def Emit.args(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, xs: Coll.List[El.Expr], s: Emit.Sep): Unit = xs match case Coll.Nil => () case Coll.Cons(x, rest) => Emit.sep(s) @@ -395,7 +395,7 @@ def Emit.args {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, xs: Coll.Lis Emit.args(cx, fi, env, rest, Emit.Comma) // a self tail call (spec sec 4.4): every arg to a temp, then to its param, then back to the top of the body -def Emit.jump {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr]): Unit = +def Emit.jump(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr]): Unit = val Emit.Fi(_, _, _, slots, ret) = fi Console.print("({ ") Emit.temps(cx, fi, env, slots, caps, args, 0) @@ -404,7 +404,7 @@ def Emit.jump {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, caps: Coll.L Emit.ctype(cx, ret) Console.print("){0}; })") -def Emit.temps {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, slots: Coll.List[Emit.Slot], caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr], i: I64): Unit = slots match +def Emit.temps(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, slots: Coll.List[Emit.Slot], caps: Coll.List[Sym.Sym], args: Coll.List[El.Expr], i: I64): Unit = slots match case Coll.Nil => () case Coll.Cons(sl, rest) => sl match case Emit.SCap(_) => caps match @@ -442,7 +442,7 @@ def Emit.slotName(sl: Emit.Slot): Sym.Sym = sl match case Emit.SVal(x, _) => x // a constructor (spec sec 4.3): its own case's size in the region reg, then the fields in order -def Emit.ctor {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, en: Sym.Sym, ts: Coll.List[K.Term], c: Sym.Sym, reg: Sym.Sym, args: Coll.List[El.Expr]): Unit = Emit.caseAt(cx, c) match +def Emit.ctor(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, en: Sym.Sym, ts: Coll.List[K.Term], c: Sym.Sym, reg: Sym.Sym, args: Coll.List[El.Expr]): Unit = Emit.caseAt(cx, c) match case Coll.None => Console.print("0") case Coll.Some(ca) => val Emit.CaseAt(tag, _, cs) = ca @@ -485,7 +485,7 @@ def Emit.ctor {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, en: Sym.Sym, Console.printI64(n) Console.print("; })") -def Emit.fieldSets {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, n: I64, c: Sym.Sym, fs: Coll.List[Ast.Binder], xs: Coll.List[El.Expr]): Unit = fs match +def Emit.fieldSets(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, n: I64, c: Sym.Sym, fs: Coll.List[Ast.Binder], xs: Coll.List[El.Expr]): Unit = fs match case Coll.Nil => () case Coll.Cons(f, frest) => xs match case Coll.Nil => () @@ -503,7 +503,7 @@ def Emit.fieldSets {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, n: I64, Emit.fieldSets(cx, fi, env, n, c, frest, xrest) // the index of op in protocol p's op list -def Emit.opIndex {r: Region} (cx: Emit.Cx, p: Sym.Sym, op: Sym.Sym): I64 = +def Emit.opIndex(cx: Emit.Cx, p: Sym.Sym, op: Sym.Sym): I64 = val Emit.Cx(_, _, _, _, ps, _, _, _) = cx Coll.sLookup(ps, p) match case Coll.None => 0 @@ -519,7 +519,7 @@ def Emit.opIn(os: Coll.List[Ast.Op], op: Sym.Sym, i: I64): I64 = os match // recv.op(args): through the capability's vtable (an op whose every transition ends the protocol clears live), or a // trait method of {} evidence: the given's static fn (rung T2) -def Emit.op {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, recv: Sym.Sym, ty: K.Term, op: Sym.Sym, args: Coll.List[El.Expr]): Unit = ty match +def Emit.op(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, recv: Sym.Sym, ty: K.Term, op: Sym.Sym, args: Coll.List[El.Expr]): Unit = ty match case K.Con(pn, targs) => val Emit.Cx(_, _, _, _, ps, _, _, _) = cx Coll.sLookup(ps, pn) match @@ -558,7 +558,7 @@ def Emit.op {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, recv: Sym.Sym, Console.print(")") case _ => Console.print("0") -def Emit.opTys {r: Region} (cx: Emit.Cx, ps: Coll.List[Ast.Binder]): Unit = ps match +def Emit.opTys(cx: Emit.Cx, ps: Coll.List[Ast.Binder]): Unit = ps match case Coll.Nil => () case Coll.Cons(p, rest) => val Ast.Binder(_, _, t) = p @@ -578,7 +578,7 @@ def Emit.allEnd(ts: Coll.List[Ast.Trans], ends: Coll.List[Sym.Sym]): Bool = ts m if Ty.memberSym(to, ends) then Emit.allEnd(rest, ends) else false // match (spec sec 4.1): the scrutinee once in s; the last arm has no tag test -def Emit.arms {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, pos: Emit.Pos, as: Coll.List[El.Arm]): Unit = as match +def Emit.arms(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, pos: Emit.Pos, as: Coll.List[El.Arm]): Unit = as match case Coll.Nil => () case Coll.Cons(a, rest) => val El.Arm(_, p, b) = a @@ -617,7 +617,7 @@ def Emit.test(rest: Coll.List[El.Arm], n: I64, g: Emit.Guard): Unit = rest match Console.print(" ? ") // each binder of an arm (not `_`) to its case field of s -def Emit.binds {r: Region} (env: Emit.Env, n: I64, c: Sym.Sym, xs: Coll.List[Sym.Sym], fs: Coll.List[Ast.Binder]): Emit.Env = xs match +def Emit.binds(env: Emit.Env, n: I64, c: Sym.Sym, xs: Coll.List[Sym.Sym], fs: Coll.List[Ast.Binder]): Emit.Env = xs match case Coll.Nil => env case Coll.Cons(x, rest) => fs match case Coll.Nil => env @@ -638,7 +638,7 @@ def Emit.binds {r: Region} (env: Emit.Env, n: I64, c: Sym.Sym, xs: Coll.List[Sym Emit.binds(env2, n, c, rest, frest) // a block (spec sec 4.2): statements in order, the last expression in res_, then the drops of its handles (latest first) -def Emit.block {r: Region} (cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, pos: Emit.Pos, ss: Coll.List[El.Stmt], last: El.Expr, drops: Coll.List[Emit.Drop]): Unit = ss match +def Emit.block(cx: Emit.Cx, fi: Emit.Fi, env: Emit.Env, pos: Emit.Pos, ss: Coll.List[El.Stmt], last: El.Expr, drops: Coll.List[Emit.Drop]): Unit = ss match case Coll.Nil => Console.print("__auto_type res_ = ") Emit.ex(cx, fi, env, Emit.lastPos(drops, pos), last) @@ -685,7 +685,7 @@ def Emit.lastPos(drops: Coll.List[Emit.Drop], pos: Emit.Pos): Emit.Pos = drops m case Coll.Nil => pos case Coll.Cons(_, _) => Emit.Inner -def Emit.drops {r: Region} (cx: Emit.Cx, ds: Coll.List[Emit.Drop]): Unit = ds match +def Emit.drops(cx: Emit.Cx, ds: Coll.List[Emit.Drop]): Unit = ds match case Coll.Nil => () case Coll.Cons(d, rest) => val Emit.Drop(v, p) = d @@ -709,21 +709,21 @@ def Emit.drops {r: Region} (cx: Emit.Cx, ds: Coll.List[Emit.Drop]): Unit = ds ma Emit.drops(cx, rest) // the protocol of handler h -def Emit.protoOfH {r: Region} (cx: Emit.Cx, h: Sym.Sym): Sym.Sym = +def Emit.protoOfH(cx: Emit.Cx, h: Sym.Sym): Sym.Sym = val Emit.Cx(_, _, _, _, _, hp, _, _) = cx Coll.sLookup(hp, h) match case Coll.Some(p) => p case Coll.None => h // ── a self call in tail position (spec sec 4.4): the body then gets the srs_tail label ── -def Emit.hasTail {r: Region} (cx: Emit.Cx, fi: Emit.Fi, e: El.Expr): Bool = e match +def Emit.hasTail(cx: Emit.Cx, fi: Emit.Fi, e: El.Expr): Bool = e match case El.CallFn(_, f, ts, _, _) => Emit.isSelf(fi, f, Emit.grAll(cx, fi, ts)) case El.If(_, _, t, x) => Emit.hasTail(cx, fi, t) || Emit.hasTail(cx, fi, x) case El.Match(_, _, _, arms) => Emit.armsTail(cx, fi, arms) case El.Block(_, ss, last) => if Emit.hasHandle(ss) then false else Emit.hasTail(cx, fi, last) case _ => false -def Emit.armsTail {r: Region} (cx: Emit.Cx, fi: Emit.Fi, as: Coll.List[El.Arm]): Bool = as match +def Emit.armsTail(cx: Emit.Cx, fi: Emit.Fi, as: Coll.List[El.Arm]): Bool = as match case Coll.Nil => false case Coll.Cons(a, rest) => val El.Arm(_, _, b) = a @@ -736,23 +736,23 @@ def Emit.hasHandle(ss: Coll.List[El.Stmt]): Bool = ss match case _ => Emit.hasHandle(rest) // ── an instance as the fn emit prints ── -def Emit.fiOf {r: Region} (cx: Emit.Cx, i: Mono.Inst): Emit.Fi = +def Emit.fiOf(cx: Emit.Cx, i: Mono.Inst): Emit.Fi = val Mono.Inst(f, sub, _) = i val El.Fn(_, name, tps, caps, ps, ret, _) = f Emit.Fi(name, Emit.targsOf(sub, tps, Coll.Nil), sub, Emit.slots(cx, sub, caps, ps), Mono.ground(Emit.subst(cx), sub, ret)) -def Emit.targsOf {r: Region} (sub: Coll.List[Ty.Bind], tps: Coll.List[Sym.Sym], acc: Coll.List[K.Term]): Coll.List[K.Term] = tps match +def Emit.targsOf(sub: Coll.List[Ty.Bind], tps: Coll.List[Sym.Sym], acc: Coll.List[K.Term]): Coll.List[K.Term] = tps match case Coll.Nil => Coll.rev(acc) case Coll.Cons(x, rest) => Ty.lookup(sub, x) match case Coll.Some(t) => Emit.targsOf(sub, rest, Coll.Cons(t, acc)) case Coll.None => Emit.targsOf(sub, rest, Coll.Cons(K.Con(x, Coll.Nil), acc)) // the capabilities first, then the params -def Emit.slots {r: Region} (cx: Emit.Cx, sub: Coll.List[Ty.Bind], caps: Coll.List[Sym.Sym], ps: Coll.List[El.Param]): Coll.List[Emit.Slot] = caps match +def Emit.slots(cx: Emit.Cx, sub: Coll.List[Ty.Bind], caps: Coll.List[Sym.Sym], ps: Coll.List[El.Param]): Coll.List[Emit.Slot] = caps match case Coll.Cons(c, rest) => Coll.Cons(Emit.SCap(c), Emit.slots(cx, sub, rest, ps)) case Coll.Nil => Emit.valSlots(cx, sub, ps, Coll.Nil) -def Emit.valSlots {r: Region} (cx: Emit.Cx, sub: Coll.List[Ty.Bind], ps: Coll.List[El.Param], acc: Coll.List[Emit.Slot]): Coll.List[Emit.Slot] = ps match +def Emit.valSlots(cx: Emit.Cx, sub: Coll.List[Ty.Bind], ps: Coll.List[El.Param], acc: Coll.List[Emit.Slot]): Coll.List[Emit.Slot] = ps match case Coll.Nil => Coll.rev(acc) case Coll.Cons(p, rest) => val El.Param(x, t) = p @@ -766,7 +766,7 @@ def Emit.isDef(i: Mono.Inst): Bool = case _ => false // ── signatures (spec sec 3) and bodies (sec 4.4) ── -def Emit.sig {r: Region} (cx: Emit.Cx, fi: Emit.Fi, k: Emit.Kind): Unit = +def Emit.sig(cx: Emit.Cx, fi: Emit.Fi, k: Emit.Kind): Unit = val Emit.Fi(self, targs, _, slots, ret) = fi k match case Emit.KExtern => () @@ -792,7 +792,7 @@ def Emit.sig {r: Region} (cx: Emit.Cx, fi: Emit.Fi, k: Emit.Kind): Unit = case Coll.Cons(_, _) => Emit.params(cx, slots, Emit.First) Console.print(")") -def Emit.params {r: Region} (cx: Emit.Cx, slots: Coll.List[Emit.Slot], s: Emit.Sep): Unit = slots match +def Emit.params(cx: Emit.Cx, slots: Coll.List[Emit.Slot], s: Emit.Sep): Unit = slots match case Coll.Nil => () case Coll.Cons(sl, rest) => Emit.sep(s) @@ -803,12 +803,12 @@ def Emit.params {r: Region} (cx: Emit.Cx, slots: Coll.List[Emit.Slot], s: Emit.S Emit.id(Emit.slotName(sl)) Emit.params(cx, rest, Emit.Comma) -def Emit.paramEnv {r: Region} (slots: Coll.List[Emit.Slot], acc: Coll.List[Emit.Name]): Emit.Env = slots match +def Emit.paramEnv(slots: Coll.List[Emit.Slot], acc: Coll.List[Emit.Name]): Emit.Env = slots match case Coll.Nil => Emit.Env(acc, 0) case Coll.Cons(sl, rest) => Emit.paramEnv(rest, Coll.Cons(Emit.P(Emit.slotName(sl)), acc)) // a def loops on its self tail calls; a handler fn does not (s1 emit.srs:270-275) -def Emit.body {r: Region} (cx: Emit.Cx, fi: Emit.Fi, k: Emit.Kind, e: El.Expr): Unit = +def Emit.body(cx: Emit.Cx, fi: Emit.Fi, k: Emit.Kind, e: El.Expr): Unit = val Emit.Fi(_, _, _, slots, _) = fi Emit.sig(cx, fi, k) val pos = k match @@ -821,7 +821,7 @@ def Emit.body {r: Region} (cx: Emit.Cx, fi: Emit.Fi, k: Emit.Kind, e: El.Expr): Console.print("; }\n") // ── the enum instances the C names: of every signature and expression, closed over their fields (spec sec 1 B, C) ── -def Emit.instTys {r: Region} (cx: Emit.Cx, is: Coll.List[Mono.Inst], acc: Coll.List[K.Term]): Coll.List[K.Term] = is match +def Emit.instTys(cx: Emit.Cx, is: Coll.List[Mono.Inst], acc: Coll.List[K.Term]): Coll.List[K.Term] = is match case Coll.Nil => acc case Coll.Cons(i, rest) => val Mono.Inst(f, _, _) = i @@ -833,13 +833,13 @@ def Emit.instTys {r: Region} (cx: Emit.Cx, is: Coll.List[Mono.Inst], acc: Coll.L Emit.instTys(cx, rest, Emit.exTys(cx, fi, e, Emit.slotTys(slots, Coll.Cons(ret, acc)))) case _ => Emit.instTys(cx, rest, acc) -def Emit.slotTys {r: Region} (slots: Coll.List[Emit.Slot], acc: Coll.List[K.Term]): Coll.List[K.Term] = slots match +def Emit.slotTys(slots: Coll.List[Emit.Slot], acc: Coll.List[K.Term]): Coll.List[K.Term] = slots match case Coll.Nil => acc case Coll.Cons(sl, rest) => sl match case Emit.SCap(_) => Emit.slotTys(rest, acc) case Emit.SVal(_, t) => Emit.slotTys(rest, Coll.Cons(t, acc)) -def Emit.exTys {r: Region} (cx: Emit.Cx, fi: Emit.Fi, e: El.Expr, acc: Coll.List[K.Term]): Coll.List[K.Term] = e match +def Emit.exTys(cx: Emit.Cx, fi: Emit.Fi, e: El.Expr, acc: Coll.List[K.Term]): Coll.List[K.Term] = e match case El.CallFn(_, _, _, _, args) => Emit.exsTys(cx, fi, args, acc) case El.New(_, en, ts, _, _, args) => Emit.exsTys(cx, fi, args, Coll.Cons(K.Con(en, Emit.grAll(cx, fi, ts)), acc)) case El.Nullary(_, en, ts, _) => Coll.Cons(K.Con(en, Emit.grAll(cx, fi, ts)), acc) @@ -853,17 +853,17 @@ def Emit.exTys {r: Region} (cx: Emit.Cx, fi: Emit.Fi, e: El.Expr, acc: Coll.List case El.Assign(_, _, x) => Emit.exTys(cx, fi, x, acc) case _ => acc -def Emit.exsTys {r: Region} (cx: Emit.Cx, fi: Emit.Fi, xs: Coll.List[El.Expr], acc: Coll.List[K.Term]): Coll.List[K.Term] = xs match +def Emit.exsTys(cx: Emit.Cx, fi: Emit.Fi, xs: Coll.List[El.Expr], acc: Coll.List[K.Term]): Coll.List[K.Term] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Emit.exsTys(cx, fi, rest, Emit.exTys(cx, fi, x, acc)) -def Emit.armsTys {r: Region} (cx: Emit.Cx, fi: Emit.Fi, as: Coll.List[El.Arm], acc: Coll.List[K.Term]): Coll.List[K.Term] = as match +def Emit.armsTys(cx: Emit.Cx, fi: Emit.Fi, as: Coll.List[El.Arm], acc: Coll.List[K.Term]): Coll.List[K.Term] = as match case Coll.Nil => acc case Coll.Cons(a, rest) => val El.Arm(_, _, b) = a Emit.armsTys(cx, fi, rest, Emit.exTys(cx, fi, b, acc)) -def Emit.stmtsTys {r: Region} (cx: Emit.Cx, fi: Emit.Fi, ss: Coll.List[El.Stmt], acc: Coll.List[K.Term]): Coll.List[K.Term] = ss match +def Emit.stmtsTys(cx: Emit.Cx, fi: Emit.Fi, ss: Coll.List[El.Stmt], acc: Coll.List[K.Term]): Coll.List[K.Term] = ss match case Coll.Nil => acc case Coll.Cons(s, rest) => s match case El.Val(_, _, ty, _, e) => Emit.stmtsTys(cx, fi, rest, Emit.exTys(cx, fi, e, Coll.Cons(Emit.gr(cx, fi, ty), acc))) @@ -871,7 +871,7 @@ def Emit.stmtsTys {r: Region} (cx: Emit.Cx, fi: Emit.Fi, ss: Coll.List[El.Stmt], case El.Do(e) => Emit.stmtsTys(cx, fi, rest, Emit.exTys(cx, fi, e, acc)) // the distinct enum terms of todo and of their fields, in the order found (seen: by hash bucket) -def Emit.closeEnums {r: Region} (cx: Emit.Cx, todo: Coll.List[K.Term], seen: Coll.BTree[Coll.List[K.Term]], out: Coll.List[K.Term]): Coll.List[K.Term] = todo match +def Emit.closeEnums(cx: Emit.Cx, todo: Coll.List[K.Term], seen: Coll.BTree[Coll.List[K.Term]], out: Coll.List[K.Term]): Coll.List[K.Term] = todo match case Coll.Nil => Coll.rev(out) case Coll.Cons(t, rest) => t match case K.Con(n, args) => @@ -889,17 +889,17 @@ def Emit.inTerms(ts: Coll.List[K.Term], t: K.Term): Bool = ts match case Coll.Cons(x, rest) => if Mono.termEq(x, t) then true else Emit.inTerms(rest, t) // the field types of enum e at args -def Emit.fieldTys {r: Region} (e: Ast.Enum, args: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = +def Emit.fieldTys(e: Ast.Enum, args: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = val Ast.Enum(_, _, gs, cases) = e Emit.casesTys(cases, Ty.zipBind(Ty.tparams(gs, Coll.Nil), args, Coll.Nil), acc) -def Emit.casesTys {r: Region} (cs: Coll.List[Ast.Case], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = cs match +def Emit.casesTys(cs: Coll.List[Ast.Case], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = cs match case Coll.Nil => acc case Coll.Cons(c, rest) => val Ast.Case(_, _, fs) = c Emit.casesTys(rest, tv, Emit.bindersTys(fs, tv, acc)) -def Emit.bindersTys {r: Region} (fs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = fs match +def Emit.bindersTys(fs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = fs match case Coll.Nil => acc case Coll.Cons(f, rest) => val Ast.Binder(_, _, t) = f @@ -918,20 +918,20 @@ def Emit.termName(t: K.Term): Unit = t match case K.Con(n, args) => Emit.enumName(n, args) case _ => Emit.mangle(t) -def Emit.structs {r: Region} (cx: Emit.Cx, ts: Coll.List[K.Term]): Unit = ts match +def Emit.structs(cx: Emit.Cx, ts: Coll.List[K.Term]): Unit = ts match case Coll.Nil => () case Coll.Cons(t, rest) => Emit.withEnum(cx, t, Emit.Layout) Emit.structs(cx, rest) -def Emit.statics {r: Region} (cx: Emit.Cx, ts: Coll.List[K.Term]): Unit = ts match +def Emit.statics(cx: Emit.Cx, ts: Coll.List[K.Term]): Unit = ts match case Coll.Nil => () case Coll.Cons(t, rest) => Emit.withEnum(cx, t, Emit.Code) Emit.statics(cx, rest) // the struct (Layout) or the nullary statics (Code) of enum term t -def Emit.withEnum {r: Region} (cx: Emit.Cx, t: K.Term, what: Emit.Part): Unit = t match +def Emit.withEnum(cx: Emit.Cx, t: K.Term, what: Emit.Part): Unit = t match case K.Con(n, args) => val Emit.Cx(_, _, _, es, _, _, _, _) = cx Coll.sLookup(es, n) match @@ -949,7 +949,7 @@ def Emit.withEnum {r: Region} (cx: Emit.Cx, t: K.Term, what: Emit.Part): Unit = case Emit.Code => Emit.nullaries(n, args, cases, 0) case _ => () -def Emit.caseStructs {r: Region} (cx: Emit.Cx, cs: Coll.List[Ast.Case], tv: Coll.List[Ty.Bind]): Unit = cs match +def Emit.caseStructs(cx: Emit.Cx, cs: Coll.List[Ast.Case], tv: Coll.List[Ty.Bind]): Unit = cs match case Coll.Nil => () case Coll.Cons(c, rest) => val Ast.Case(_, cn, fs) = c @@ -963,7 +963,7 @@ def Emit.caseStructs {r: Region} (cx: Emit.Cx, cs: Coll.List[Ast.Case], tv: Coll Console.print(";") Emit.caseStructs(cx, rest, tv) -def Emit.fieldDecls {r: Region} (cx: Emit.Cx, fs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind]): Unit = fs match +def Emit.fieldDecls(cx: Emit.Cx, fs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind]): Unit = fs match case Coll.Nil => () case Coll.Cons(f, rest) => val Ast.Binder(_, x, t) = f @@ -992,7 +992,7 @@ def Emit.nullaries(n: Sym.Sym, args: Coll.List[K.Term], cs: Coll.List[Ast.Case], Emit.nullaries(n, args, rest, i + 1) // ── prototypes (spec sec 1 D), vtables (E), bodies (G) ── -def Emit.externs {r: Region} (cx: Emit.Cx, fs: Coll.List[El.Fn]): Unit = fs match +def Emit.externs(cx: Emit.Cx, fs: Coll.List[El.Fn]): Unit = fs match case Coll.Nil => () case Coll.Cons(f, rest) => val El.Fn(_, _, tps, _, _, _, body) = f @@ -1004,12 +1004,12 @@ def Emit.externs {r: Region} (cx: Emit.Cx, fs: Coll.List[El.Fn]): Unit = fs matc case _ => () Emit.externs(cx, rest) -def Emit.ptrs {r: Region} (tps: Coll.List[Sym.Sym], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = tps match +def Emit.ptrs(tps: Coll.List[Sym.Sym], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = tps match case Coll.Nil => acc case Coll.Cons(x, rest) => Emit.ptrs(rest, Coll.Cons(Ty.Bind(x, Ty.con("Ptr")), acc)) // a generic extern whose result is a [] binder returns void*: the call casts it to the instance's type (spec sec 4 XInst) -def Emit.externCast {r: Region} (cx: Emit.Cx, f: Sym.Sym, gts: Coll.List[K.Term]): Coll.Option[K.Term] = +def Emit.externCast(cx: Emit.Cx, f: Sym.Sym, gts: Coll.List[K.Term]): Coll.Option[K.Term] = val Emit.Cx(_, fns, _, _, _, _, _, _) = cx Coll.sLookup(fns, f) match case Coll.Some(g) => @@ -1021,7 +1021,7 @@ def Emit.externCast {r: Region} (cx: Emit.Cx, f: Sym.Sym, gts: Coll.List[K.Term] case _ => Coll.None case Coll.None => Coll.None -def Emit.protos {r: Region} (cx: Emit.Cx, is: Coll.List[Mono.Inst]): Unit = is match +def Emit.protos(cx: Emit.Cx, is: Coll.List[Mono.Inst]): Unit = is match case Coll.Nil => () case Coll.Cons(i, rest) => if Emit.isDef(i) then @@ -1030,7 +1030,7 @@ def Emit.protos {r: Region} (cx: Emit.Cx, is: Coll.List[Mono.Inst]): Unit = is m else () Emit.protos(cx, rest) -def Emit.bodies {r: Region} (cx: Emit.Cx, is: Coll.List[Mono.Inst]): Unit = is match +def Emit.bodies(cx: Emit.Cx, is: Coll.List[Mono.Inst]): Unit = is match case Coll.Nil => () case Coll.Cons(i, rest) => val Mono.Inst(f, _, _) = i @@ -1041,14 +1041,14 @@ def Emit.bodies {r: Region} (cx: Emit.Cx, is: Coll.List[Mono.Inst]): Unit = is m Emit.bodies(cx, rest) // the fns of every handler: prototypes (Layout) or bodies (Code) -def Emit.handlers {r: Region} (cx: Emit.Cx, hs: Coll.List[El.Handler], what: Emit.Part): Unit = hs match +def Emit.handlers(cx: Emit.Cx, hs: Coll.List[El.Handler], what: Emit.Part): Unit = hs match case Coll.Nil => () case Coll.Cons(h, rest) => val El.Handler(hn, _, fs) = h Emit.implFns(cx, Emit.KHandler(hn), fs, what) Emit.handlers(cx, rest, what) -def Emit.implFns {r: Region} (cx: Emit.Cx, k: Emit.Kind, fs: Coll.List[El.Fn], what: Emit.Part): Unit = fs match +def Emit.implFns(cx: Emit.Cx, k: Emit.Kind, fs: Coll.List[El.Fn], what: Emit.Part): Unit = fs match case Coll.Nil => () case Coll.Cons(f, rest) => val El.Fn(_, _, _, _, _, _, body) = f @@ -1063,7 +1063,7 @@ def Emit.implFns {r: Region} (cx: Emit.Cx, k: Emit.Kind, fs: Coll.List[El.Fn], w Emit.implFns(cx, k, rest, what) // the vtable of a handler: its fn per op of its protocol, in the protocol's op order (spec sec 5.1) -def Emit.vtables {r: Region} (cx: Emit.Cx, hs: Coll.List[El.Handler]): Unit = hs match +def Emit.vtables(cx: Emit.Cx, hs: Coll.List[El.Handler]): Unit = hs match case Coll.Nil => () case Coll.Cons(h, rest) => val El.Handler(hn, p, fs) = h @@ -1089,7 +1089,7 @@ def Emit.hasRow(fs: Coll.List[El.Fn]): Bool = fs match Coll.length(caps) > 0 // its vtable entries: w_H_op(srs_env* e, args) calls h_H_op(e->c[0], .., e->st, args) (init is not in the vtable) -def Emit.wrappers {r: Region} (cx: Emit.Cx, hn: Sym.Sym, fs: Coll.List[El.Fn]): Unit = fs match +def Emit.wrappers(cx: Emit.Cx, hn: Sym.Sym, fs: Coll.List[El.Fn]): Unit = fs match case Coll.Nil => () case Coll.Cons(f, rest) => val El.Fn(_, name, _, caps, _, _, _) = f @@ -1150,7 +1150,7 @@ def Emit.vtOps(pre: Str, hn: Sym.Sym, ops: Coll.List[Ast.Op]): Unit = ops match Emit.vtOps(pre, hn, rest) // the inline Arena bump (spec sec 5.2): the chunk layout of rt/srs_rt.c:24-25 -def Emit.allocFast {r: Region} (cx: Emit.Cx): Unit = +def Emit.allocFast(cx: Emit.Cx): Unit = Console.print("typedef struct srs_chunk { struct srs_chunk* next; size_t used, cap; } srs_chunk;\n") Console.print("static inline void* srs_alloc(srs_cap* c, int64_t size) {\n") Console.print(" if (c->vt == vt_Srs__Arena) {\n") @@ -1164,14 +1164,14 @@ def Emit.allocFast {r: Region} (cx: Emit.Cx): Unit = Console.print("])(c->self, size);\n") Console.print("}\n") -def Emit.hasMain {r: Region} (cx: Emit.Cx): Bool = +def Emit.hasMain(cx: Emit.Cx): Bool = val Emit.Cx(_, fns, _, _, _, _, _, _) = cx Coll.sLookup(fns, Sym.of("main")) match case Coll.Some(_) => true case Coll.None => false // ── the program (spec sec 1): one C file to stdout ── -def Emit.program {r: Region} (ds: Coll.List[Ast.Decl], res: Ty.Result): Unit = +def Emit.program(ds: Coll.List[Ast.Decl], res: Ty.Result): Unit = val Ty.Result(_, _, s, fs, hs, _) = res val cx = Emit.cxOf(ds, s, fs) val is = Mono.run(res) @@ -1198,7 +1198,7 @@ def Emit.program {r: Region} (ds: Coll.List[Ast.Decl], res: Ty.Result): Unit = if Emit.hasMain(cx) then Console.print("int main(int argc, char** argv) { rt_init(argc, argv); return (int)f_main(); }\n") else () // a def instance is f_; a given method instance is named by its goal -def Emit.kindOf {r: Region} (i: Mono.Inst): Emit.Kind = +def Emit.kindOf(i: Mono.Inst): Emit.Kind = val Mono.Inst(_, _, site) = i site match case Mono.Top => Emit.KDef diff --git a/s2/eval.srs b/s2/eval.srs index 8706fdef..fb4e908f 100644 --- a/s2/eval.srs +++ b/s2/eval.srs @@ -30,9 +30,9 @@ enum Ev.Cx: def Ev.fuel(): I64 = 1000000 -def Ev.cxOf {r: Region} (ds: Coll.List[Ast.Decl], imp: Coll.SMap[Bool]): Ev.Cx = Ev.cxDecls(ds, Ev.Cx(Coll.sEmpty(), Coll.sEmpty(), imp)) +def Ev.cxOf(ds: Coll.List[Ast.Decl], imp: Coll.SMap[Bool]): Ev.Cx = Ev.cxDecls(ds, Ev.Cx(Coll.sEmpty(), Coll.sEmpty(), imp)) -def Ev.cxDecls {r: Region} (ds: Coll.List[Ast.Decl], cx: Ev.Cx): Ev.Cx = ds match +def Ev.cxDecls(ds: Coll.List[Ast.Decl], cx: Ev.Cx): Ev.Cx = ds match case Coll.Nil => cx case Coll.Cons(d, rest) => val Ev.Cx(fs, cs, imp) = cx @@ -45,32 +45,32 @@ def Ev.cxDecls {r: Region} (ds: Coll.List[Ast.Decl], cx: Ev.Cx): Ev.Cx = ds matc Ev.cxDecls(rest, Ev.Cx(fs, Ev.caseMap(cases, cs), imp)) case _ => Ev.cxDecls(rest, cx) -def Ev.caseMap {r: Region} (cs: Coll.List[Ast.Case], m: Coll.SMap[I64]): Coll.SMap[I64] = cs match +def Ev.caseMap(cs: Coll.List[Ast.Case], m: Coll.SMap[I64]): Coll.SMap[I64] = cs match case Coll.Nil => m case Coll.Cons(c, rest) => val Ast.Case(_, n, fs) = c Ev.caseMap(rest, Coll.sInsert(m, n, Coll.length(fs))) -def Ev.get {r: Region} (env: Coll.List[Ev.Bind], x: Sym.Sym): Coll.Option[Ev.V] = env match +def Ev.get(env: Coll.List[Ev.Bind], x: Sym.Sym): Coll.Option[Ev.V] = env match case Coll.Nil => Coll.None case Coll.Cons(b, rest) => val Ev.Bind(y, v) = b if Sym.eq(x, y) then Coll.Some(v) else Ev.get(rest, x) // an assignment replaces the innermost binding of x in place -def Ev.set {r: Region} (env: Coll.List[Ev.Bind], x: Sym.Sym, v: Ev.V): Coll.List[Ev.Bind] = env match +def Ev.set(env: Coll.List[Ev.Bind], x: Sym.Sym, v: Ev.V): Coll.List[Ev.Bind] = env match case Coll.Nil => Coll.Nil case Coll.Cons(b, rest) => val Ev.Bind(y, w) = b if Sym.eq(x, y) then Coll.Cons(Ev.Bind(y, v), rest) else Coll.Cons(b, Ev.set(rest, x, v)) // the last k bindings dropped (a block ends: what it bound goes) -def Ev.drop {r: Region} (env: Coll.List[Ev.Bind], k: I64): Coll.List[Ev.Bind] = if k <= 0 then env else env match +def Ev.drop(env: Coll.List[Ev.Bind], k: I64): Coll.List[Ev.Bind] = if k <= 0 then env else env match case Coll.Nil => Coll.Nil case Coll.Cons(_, rest) => Ev.drop(rest, k - 1) // ── e in env, inside fn f (for messages) ── -def Ev.expr {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, e: Ast.Expr): Ev.R = e match +def Ev.expr(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, e: Ast.Expr): Ev.R = e match case Ast.Int(_, v) => Ev.Ok(Ev.VInt(v), env, fuel) case Ast.Bool(_, v) => Ev.Ok(Ev.VBool(v), env, fuel) case Ast.Str(_, s) => Ev.Ok(Ev.VStr(s), env, fuel) @@ -104,14 +104,14 @@ enum Ev.Rs: case Ev.Vals(vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64) case Ev.Errs(e: Ev.Fail) -def Ev.args {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, xs: Coll.List[Ast.Expr], acc: Coll.List[Ev.V]): Ev.Rs = xs match +def Ev.args(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, xs: Coll.List[Ast.Expr], acc: Coll.List[Ev.V]): Ev.Rs = xs match case Coll.Nil => Ev.Vals(Coll.rev(acc), env, fuel) case Coll.Cons(x, rest) => Ev.expr(cx, f, env, fuel, x) match case Ev.Ok(v, env2, fuel2) => Ev.args(cx, f, env2, fuel2, rest, Coll.Cons(v, acc)) case Ev.Err(e) => Ev.Errs(e) // a constructor, a pure extern, or a def (its params bound, its body run with 1 fuel less) -def Ev.call {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, g: Sym.Sym, xs: Coll.List[Ast.Expr]): Ev.R = +def Ev.call(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, g: Sym.Sym, xs: Coll.List[Ast.Expr]): Ev.R = val Ev.Cx(fns, cases, imp) = cx Ev.args(cx, f, env, fuel, xs, Coll.Nil) match case Ev.Errs(e) => Ev.Err(e) @@ -131,11 +131,11 @@ def Ev.call {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I case Ast.Extern => Ev.extern(line, g, vs, env2, fuel2) // the callee's value with the caller's locals -def Ev.result {r: Region} (res: Ev.R, env: Coll.List[Ev.Bind]): Ev.R = res match +def Ev.result(res: Ev.R, env: Coll.List[Ev.Bind]): Ev.R = res match case Ev.Ok(v, _, fuel) => Ev.Ok(v, env, fuel) case Ev.Err(x) => Ev.Err(x) -def Ev.bindAll {r: Region} (ps: Coll.List[Ast.Binder], vs: Coll.List[Ev.V], acc: Coll.List[Ev.Bind]): Coll.List[Ev.Bind] = ps match +def Ev.bindAll(ps: Coll.List[Ast.Binder], vs: Coll.List[Ev.V], acc: Coll.List[Ev.Bind]): Coll.List[Ev.Bind] = ps match case Coll.Nil => acc case Coll.Cons(p, rest) => vs match case Coll.Nil => acc @@ -144,19 +144,19 @@ def Ev.bindAll {r: Region} (ps: Coll.List[Ast.Binder], vs: Coll.List[Ev.V], acc: Ev.bindAll(rest, vrest, Coll.Cons(Ev.Bind(x, v), acc)) // the pure externs (s2/pure.srs Pure.pureExtern) at compile time -def Ev.extern {r: Region} (line: I64, g: Sym.Sym, vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = Pure.prim(g) match +def Ev.extern(line: I64, g: Sym.Sym, vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = Pure.prim(g) match case Coll.Some(p) => p match case Pure.PLen => Ev.str1(line, g, vs, env, fuel) case _ => Ev.str2(line, g, p, vs, env, fuel) case Coll.None => Ev.Err(Ev.NoValue(line, g)) -def Ev.str1 {r: Region} (line: I64, g: Sym.Sym, vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = vs match +def Ev.str1(line: I64, g: Sym.Sym, vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = vs match case Coll.Cons(a, _) => a match case Ev.VStr(s) => Ev.Ok(Ev.VInt(Str.len(s)), env, fuel) case _ => Ev.Err(Ev.NoValue(line, g)) case Coll.Nil => Ev.Err(Ev.NoValue(line, g)) -def Ev.str2 {r: Region} (line: I64, g: Sym.Sym, p: Pure.Prim, vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = vs match +def Ev.str2(line: I64, g: Sym.Sym, p: Pure.Prim, vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = vs match case Coll.Cons(a, rest) => rest match case Coll.Cons(b, more) => a match case Ev.VStr(s) => p match @@ -168,15 +168,15 @@ def Ev.str2 {r: Region} (line: I64, g: Sym.Sym, p: Pure.Prim, vs: Coll.List[Ev.V case Coll.Nil => Ev.Err(Ev.NoValue(line, g)) case Coll.Nil => Ev.Err(Ev.NoValue(line, g)) -def Ev.strEq {r: Region} (line: I64, g: Sym.Sym, s: Str, b: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = b match +def Ev.strEq(line: I64, g: Sym.Sym, s: Str, b: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = b match case Ev.VStr(t) => Ev.Ok(Ev.VBool(Str.eq(s, t)), env, fuel) case _ => Ev.Err(Ev.NoValue(line, g)) -def Ev.strAt {r: Region} (line: I64, g: Sym.Sym, s: Str, b: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = b match +def Ev.strAt(line: I64, g: Sym.Sym, s: Str, b: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = b match case Ev.VInt(i) => Ev.Ok(Ev.VInt(Str.at(s, i)), env, fuel) case _ => Ev.Err(Ev.NoValue(line, g)) -def Ev.strSlice {r: Region} (line: I64, g: Sym.Sym, s: Str, b: Ev.V, more: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = b match +def Ev.strSlice(line: I64, g: Sym.Sym, s: Str, b: Ev.V, more: Coll.List[Ev.V], env: Coll.List[Ev.Bind], fuel: I64): Ev.R = b match case Ev.VInt(i) => more match case Coll.Cons(c, _) => c match case Ev.VInt(j) => Ev.Ok(Ev.VStr(Str.slice(s, i, j)), env, fuel) @@ -185,7 +185,7 @@ def Ev.strSlice {r: Region} (line: I64, g: Sym.Sym, s: Str, b: Ev.V, more: Coll. case _ => Ev.Err(Ev.NoValue(line, g)) // && and || do not run their right side when the left decides -def Ev.bin {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, op: Ast.BinOp, l: Ast.Expr, x: Ast.Expr): Ev.R = Ev.expr(cx, f, env, fuel, l) match +def Ev.bin(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, op: Ast.BinOp, l: Ast.Expr, x: Ast.Expr): Ev.R = Ev.expr(cx, f, env, fuel, l) match case Ev.Ok(a, env2, fuel2) => op match case Ast.And => a match case Ev.VBool(b) => if b then Ev.expr(cx, f, env2, fuel2, x) else Ev.Ok(a, env2, fuel2) @@ -198,7 +198,7 @@ def Ev.bin {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I6 case Ev.Err(x) => Ev.Err(x) case Ev.Err(x) => Ev.Err(x) -def Ev.binV {r: Region} (f: Sym.Sym, line: I64, op: Ast.BinOp, a: Ev.V, b: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = op match +def Ev.binV(f: Sym.Sym, line: I64, op: Ast.BinOp, a: Ev.V, b: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = op match case Ast.Eq => Ev.Ok(Ev.VBool(Ev.eq(a, b)), env, fuel) case Ast.Ne => Ev.Ok(Ev.VBool(!Ev.eq(a, b)), env, fuel) case _ => a match @@ -207,7 +207,7 @@ def Ev.binV {r: Region} (f: Sym.Sym, line: I64, op: Ast.BinOp, a: Ev.V, b: Ev.V, case _ => Ev.Err(Ev.NoValue(line, f)) case _ => Ev.Err(Ev.NoValue(line, f)) -def Ev.binI {r: Region} (f: Sym.Sym, line: I64, op: Ast.BinOp, x: I64, y: I64, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = op match +def Ev.binI(f: Sym.Sym, line: I64, op: Ast.BinOp, x: I64, y: I64, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = op match case Ast.Add => Ev.Ok(Ev.VInt(x + y), env, fuel) case Ast.Sub => Ev.Ok(Ev.VInt(x - y), env, fuel) case Ast.Mul => Ev.Ok(Ev.VInt(x * y), env, fuel) @@ -219,7 +219,7 @@ def Ev.binI {r: Region} (f: Sym.Sym, line: I64, op: Ast.BinOp, x: I64, y: I64, e case Ast.Ge => Ev.Ok(Ev.VBool(x >= y), env, fuel) case _ => Ev.Err(Ev.NoValue(line, f)) -def Ev.un {r: Region} (f: Sym.Sym, line: I64, op: Ast.UnOp, v: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = op match +def Ev.un(f: Sym.Sym, line: I64, op: Ast.UnOp, v: Ev.V, env: Coll.List[Ev.Bind], fuel: I64): Ev.R = op match case Ast.Neg => v match case Ev.VInt(x) => Ev.Ok(Ev.VInt(0 - x), env, fuel) case _ => Ev.Err(Ev.NoValue(line, f)) @@ -253,7 +253,7 @@ def Ev.eqAll(xs: Coll.List[Ev.V], ys: Coll.List[Ev.V]): Bool = xs match case Coll.Cons(y, yt) => if Ev.eq(x, y) then Ev.eqAll(xt, yt) else false // the first arm whose case is the value's (or `_`), its binders bound to the fields -def Ev.arms {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, v: Ev.V, as: Coll.List[Ast.Arm]): Ev.R = as match +def Ev.arms(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, v: Ev.V, as: Coll.List[Ast.Arm]): Ev.R = as match case Coll.Nil => Ev.Err(Ev.NoValue(line, f)) case Coll.Cons(a, rest) => val Ast.Arm(_, p, b) = a @@ -267,14 +267,14 @@ def Ev.arms {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I else Ev.arms(cx, f, env, fuel, line, v, rest) case _ => Ev.Err(Ev.NoValue(line, f)) -def Ev.bindPat {r: Region} (xs: Coll.List[Sym.Sym], vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind]): Coll.List[Ev.Bind] = xs match +def Ev.bindPat(xs: Coll.List[Sym.Sym], vs: Coll.List[Ev.V], env: Coll.List[Ev.Bind]): Coll.List[Ev.Bind] = xs match case Coll.Nil => env case Coll.Cons(x, rest) => vs match case Coll.Nil => env case Coll.Cons(v, vrest) => Ev.bindPat(rest, vrest, if Str.eq(Sym.str(x), "_") then env else Coll.Cons(Ev.Bind(x, v), env)) // a block: each statement in turn, k = the bindings it made; they go when it ends -def Ev.block {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, ss: Coll.List[Ast.Stmt], last: Ast.Expr, k: I64): Ev.R = ss match +def Ev.block(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, ss: Coll.List[Ast.Stmt], last: Ast.Expr, k: I64): Ev.R = ss match case Coll.Nil => Ev.expr(cx, f, env, fuel, last) match case Ev.Ok(v, env2, fuel2) => Ev.Ok(v, Ev.drop(env2, k), fuel2) case Ev.Err(x) => Ev.Err(x) @@ -287,12 +287,12 @@ def Ev.block {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: case Ast.Check(_, _, _) => Ev.block(cx, f, env, fuel, rest, last, k) case Ast.Handle(line, _, _, _) => Ev.Err(Ev.NoValue(line, f)) -def Ev.bindStmt {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, x: Sym.Sym, e: Ast.Expr, rest: Coll.List[Ast.Stmt], last: Ast.Expr, k: I64): Ev.R = Ev.expr(cx, f, env, fuel, e) match +def Ev.bindStmt(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, x: Sym.Sym, e: Ast.Expr, rest: Coll.List[Ast.Stmt], last: Ast.Expr, k: I64): Ev.R = Ev.expr(cx, f, env, fuel, e) match case Ev.Ok(v, env2, fuel2) => Ev.block(cx, f, Coll.Cons(Ev.Bind(x, v), env2), fuel2, rest, last, k + 1) case Ev.Err(x) => Ev.Err(x) // a loop: 1 fuel per turn -def Ev.loop {r: Region} (cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, c: Ast.Expr, b: Ast.Expr): Ev.R = +def Ev.loop(cx: Ev.Cx, f: Sym.Sym, env: Coll.List[Ev.Bind], fuel: I64, line: I64, c: Ast.Expr, b: Ast.Expr): Ev.R = if fuel <= 0 then Ev.Err(Ev.Fuel(line, f)) else Ev.expr(cx, f, env, fuel, c) match case Ev.Ok(v, env2, fuel2) => v match @@ -312,9 +312,9 @@ enum Ev.Out: case Ev.Lines(ls: Coll.List[Ev.Line]) case Ev.Failed(e: Ev.Fail) -def Ev.all {r: Region} (ds: Coll.List[Ast.Decl], imp: Coll.SMap[Bool]): Ev.Out = Ev.run(Ev.cxOf(ds, imp), ds, Coll.Nil) +def Ev.all(ds: Coll.List[Ast.Decl], imp: Coll.SMap[Bool]): Ev.Out = Ev.run(Ev.cxOf(ds, imp), ds, Coll.Nil) -def Ev.run {r: Region} (cx: Ev.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Ev.Line]): Ev.Out = ds match +def Ev.run(cx: Ev.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Ev.Line]): Ev.Out = ds match case Coll.Nil => Ev.Lines(Coll.rev(acc)) case Coll.Cons(d, rest) => d match case Ast.DFn(f) => diff --git a/s2/facts.srs b/s2/facts.srs index ca25258a..07e59420 100644 --- a/s2/facts.srs +++ b/s2/facts.srs @@ -67,7 +67,7 @@ enum Fx.Rel: case Fx.RRuleUnknownAt case Fx.RRuleOpAt -def Fx.relSym {r: Region} (rel: Fx.Rel): Sym.Sym = rel match +def Fx.relSym(rel: Fx.Rel): Sym.Sym = rel match case Fx.RCap => Sym.of("fxCap") case Fx.RState => Sym.of("fxState") case Fx.ROpOf => Sym.of("fxOpOf") @@ -108,22 +108,22 @@ def Fx.relSym {r: Region} (rel: Fx.Rel): Sym.Sym = rel match case Fx.RRuleOpAt => Sym.of("fxRuleOpAt") // ── rule builders: a var by number, a constant, an atom ── -def Fx.v {r: Region} (n: I64): D.Arg = D.AVar(n) -def Fx.c {r: Region} (n: I64): D.Arg = D.AVal(D.VInt(n)) -def Fx.at {r: Region} (rel: Fx.Rel, xs: Coll.List[D.Arg]): D.Atom = D.Atom(Fx.relSym(rel), xs) -def Fx.p {r: Region} (rel: Fx.Rel, xs: Coll.List[D.Arg]): D.Lit = D.Pos(Fx.at(rel, xs)) -def Fx.n {r: Region} (rel: Fx.Rel, xs: Coll.List[D.Arg]): D.Lit = D.Neg(Fx.at(rel, xs)) -def Fx.vs {r: Region} (xs: Coll.List[I64]): Coll.List[D.Arg] = xs match +def Fx.v(n: I64): D.Arg = D.AVar(n) +def Fx.c(n: I64): D.Arg = D.AVal(D.VInt(n)) +def Fx.at(rel: Fx.Rel, xs: Coll.List[D.Arg]): D.Atom = D.Atom(Fx.relSym(rel), xs) +def Fx.p(rel: Fx.Rel, xs: Coll.List[D.Arg]): D.Lit = D.Pos(Fx.at(rel, xs)) +def Fx.n(rel: Fx.Rel, xs: Coll.List[D.Arg]): D.Lit = D.Neg(Fx.at(rel, xs)) +def Fx.vs(xs: Coll.List[I64]): Coll.List[D.Arg] = xs match case Coll.Nil => Coll.Nil case Coll.Cons(x, rest) => Coll.Cons(Fx.v(x), Fx.vs(rest)) -def Fx.l1 [A: Type] {r: Region} (a: A): Coll.List[A] = Coll.Cons(a, Coll.Nil) -def Fx.l2 [A: Type] {r: Region} (a: A, b: A): Coll.List[A] = Coll.Cons(a, Fx.l1(b)) -def Fx.l3 [A: Type] {r: Region} (a: A, b: A, c: A): Coll.List[A] = Coll.Cons(a, Fx.l2(b, c)) -def Fx.l4 [A: Type] {r: Region} (a: A, b: A, c: A, d: A): Coll.List[A] = Coll.Cons(a, Fx.l3(b, c, d)) -def Fx.l5 [A: Type] {r: Region} (a: A, b: A, c: A, d: A, e: A): Coll.List[A] = Coll.Cons(a, Fx.l4(b, c, d, e)) -def Fx.rule {r: Region} (rel: Fx.Rel, hs: Coll.List[I64], body: Coll.List[D.Lit]): D.Rule = D.Rule(Fx.at(rel, Fx.vs(hs)), body) - -def Fx.rules {r: Region} (): Coll.List[D.Rule] = +def Fx.l1 [A: Type] (a: A): Coll.List[A] = Coll.Cons(a, Coll.Nil) +def Fx.l2 [A: Type] (a: A, b: A): Coll.List[A] = Coll.Cons(a, Fx.l1(b)) +def Fx.l3 [A: Type] (a: A, b: A, c: A): Coll.List[A] = Coll.Cons(a, Fx.l2(b, c)) +def Fx.l4 [A: Type] (a: A, b: A, c: A, d: A): Coll.List[A] = Coll.Cons(a, Fx.l3(b, c, d)) +def Fx.l5 [A: Type] (a: A, b: A, c: A, d: A, e: A): Coll.List[A] = Coll.Cons(a, Fx.l4(b, c, d, e)) +def Fx.rule(rel: Fx.Rel, hs: Coll.List[I64], body: Coll.List[D.Lit]): D.Rule = D.Rule(Fx.at(rel, Fx.vs(hs)), body) + +def Fx.rules(): Coll.List[D.Rule] = val isCap = Fx.rule(Fx.RIsCap, Fx.l2(0, 1), Fx.l1(Fx.p(Fx.RCap, Fx.vs(Fx.l3(0, 1, 2))))) val defOp = Fx.rule(Fx.RDefOp, Fx.l2(0, 3), Fx.l2(Fx.p(Fx.RCap, Fx.vs(Fx.l3(0, 1, 2))), Fx.p(Fx.ROpOf, Fx.vs(Fx.l2(2, 3))))) val defRel = Fx.rule(Fx.RDefRel, Fx.l2(0, 3), Fx.l2(Fx.p(Fx.RCap, Fx.vs(Fx.l3(0, 1, 2))), Fx.p(Fx.RRuleRel, Fx.vs(Fx.l4(2, 3, 4, 5))))) @@ -150,15 +150,15 @@ def Fx.rules {r: Region} (): Coll.List[D.Rule] = Coll.revOnto(Coll.rev(a), Coll.revOnto(Coll.rev(b), Coll.revOnto(Coll.rev(c), d))) // ── facts ── -def Fx.s {r: Region} (x: Sym.Sym): D.Val = D.VSym(x) -def Fx.i {r: Region} (n: I64): D.Val = D.VInt(n) -def Fx.fact {r: Region} (rel: Fx.Rel, vs: Coll.List[D.Val]): D.Fact = D.Fact(Fx.relSym(rel), vs) +def Fx.s(x: Sym.Sym): D.Val = D.VSym(x) +def Fx.i(n: I64): D.Val = D.VInt(n) +def Fx.fact(rel: Fx.Rel, vs: Coll.List[D.Val]): D.Fact = D.Fact(Fx.relSym(rel), vs) // the walk: the next id (atoms, rule defs) and the facts enum Fx.St: case Fx.St(next: I64, facts: Coll.List[D.Fact]) -def Fx.add {r: Region} (st: Fx.St, f: D.Fact): Fx.St = +def Fx.add(st: Fx.St, f: D.Fact): Fx.St = val Fx.St(n, fs) = st Fx.St(n, Coll.Cons(f, fs)) @@ -166,7 +166,7 @@ def Fx.fresh(st: Fx.St): I64 = val Fx.St(n, _) = st n -def Fx.bump {r: Region} (st: Fx.St): Fx.St = +def Fx.bump(st: Fx.St): Fx.St = val Fx.St(n, fs) = st Fx.St(n + 1, fs) @@ -175,14 +175,14 @@ def Fx.isConst(x: Sym.Sym): Bool = val c = Str.at(Sym.str(x), 0) c >= 65 && c <= 90 -def Fx.sameNs {r: Region} (n: I64, st: Fx.St): Fx.St = if n < 0 then st else Fx.sameNs(n - 1, Fx.add(st, Fx.fact(Fx.RSameN, Fx.l2(Fx.i(n), Fx.i(n))))) +def Fx.sameNs(n: I64, st: Fx.St): Fx.St = if n < 0 then st else Fx.sameNs(n - 1, Fx.add(st, Fx.fact(Fx.RSameN, Fx.l2(Fx.i(n), Fx.i(n))))) -def Fx.facts {r: Region} (ds: Coll.List[Ast.Decl]): Coll.List[D.Fact] = +def Fx.facts(ds: Coll.List[Ast.Decl]): Coll.List[D.Fact] = val ps = Pure.protos(ds, Coll.Nil) val Fx.St(_, fs) = Fx.decls(ps, ds, Fx.sameNs(16, Fx.St(0, Coll.Nil))) fs -def Fx.decls {r: Region} (ps: Coll.List[Sym.Sym], ds: Coll.List[Ast.Decl], st: Fx.St): Fx.St = ds match +def Fx.decls(ps: Coll.List[Sym.Sym], ds: Coll.List[Ast.Decl], st: Fx.St): Fx.St = ds match case Coll.Nil => st case Coll.Cons(d, rest) => d match case Ast.DProto(p) => Fx.decls(ps, rest, Fx.proto(p, st)) @@ -192,22 +192,22 @@ def Fx.decls {r: Region} (ps: Coll.List[Sym.Sym], ds: Coll.List[Ast.Decl], st: F Fx.decls(ps, rest, Fx.groups(n, gs, Fx.caps(ps, n, Ty.evidence(gs, Coll.Nil), st))) case _ => Fx.decls(ps, rest, st) -def Fx.proto {r: Region} (p: Ast.Proto, st: Fx.St): Fx.St = +def Fx.proto(p: Ast.Proto, st: Fx.St): Fx.St = val Ast.Proto(_, n, states, _, _, _, ops, rules) = p Fx.ruleDefs(n, rules, Fx.opsF(n, ops, Fx.statesF(n, states, st))) -def Fx.statesF {r: Region} (p: Sym.Sym, ss: Coll.List[Sym.Sym], st: Fx.St): Fx.St = ss match +def Fx.statesF(p: Sym.Sym, ss: Coll.List[Sym.Sym], st: Fx.St): Fx.St = ss match case Coll.Nil => st case Coll.Cons(s, rest) => Fx.statesF(p, rest, Fx.add(st, Fx.fact(Fx.RState, Fx.l2(Fx.s(p), Fx.s(s))))) -def Fx.opsF {r: Region} (p: Sym.Sym, os: Coll.List[Ast.Op], st: Fx.St): Fx.St = os match +def Fx.opsF(p: Sym.Sym, os: Coll.List[Ast.Op], st: Fx.St): Fx.St = os match case Coll.Nil => st case Coll.Cons(o, rest) => val Ast.Op(_, n, _, _, _) = o Fx.opsF(p, rest, Fx.add(st, Fx.fact(Fx.ROpOf, Fx.l2(Fx.s(p), Fx.s(n))))) // a rule def: its relation and arity; reserved names; its params; its body's names and relations -def Fx.ruleDefs {r: Region} (p: Sym.Sym, rs: Coll.List[Ast.RuleDef], st: Fx.St): Fx.St = rs match +def Fx.ruleDefs(p: Sym.Sym, rs: Coll.List[Ast.RuleDef], st: Fx.St): Fx.St = rs match case Coll.Nil => st case Coll.Cons(rd, rest) => val Ast.RuleDef(line, n, params, body) = rd @@ -218,11 +218,11 @@ def Fx.ruleDefs {r: Region} (p: Sym.Sym, rs: Coll.List[Ast.RuleDef], st: Fx.St): def Fx.builtinRel(n: Sym.Sym): Bool = Str.eq(Sym.str(n), "at") || Str.eq(Sym.str(n), "next") -def Fx.params {r: Region} (rid: I64, line: I64, xs: Coll.List[Sym.Sym], st: Fx.St): Fx.St = xs match +def Fx.params(rid: I64, line: I64, xs: Coll.List[Sym.Sym], st: Fx.St): Fx.St = xs match case Coll.Nil => st case Coll.Cons(x, rest) => Fx.params(rid, line, rest, Fx.add(st, Fx.fact(Fx.RParam, Fx.l3(Fx.i(rid), Fx.s(x), Fx.i(line))))) -def Fx.bodyAtoms {r: Region} (p: Sym.Sym, rid: I64, as: Coll.List[Ast.Atom], st: Fx.St): Fx.St = as match +def Fx.bodyAtoms(p: Sym.Sym, rid: I64, as: Coll.List[Ast.Atom], st: Fx.St): Fx.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => val Ast.Atom(line, rel, args) = a @@ -230,23 +230,23 @@ def Fx.bodyAtoms {r: Region} (p: Sym.Sym, rid: I64, as: Coll.List[Ast.Atom], st: Fx.bodyAtoms(p, rid, rest, Fx.bodyRel(p, line, rel, args, st1)) // next names an op; at is the protocol's own; any other relation is a use of a rule def -def Fx.bodyRel {r: Region} (p: Sym.Sym, line: I64, rel: Sym.Sym, args: Coll.List[Ast.Term], st: Fx.St): Fx.St = +def Fx.bodyRel(p: Sym.Sym, line: I64, rel: Sym.Sym, args: Coll.List[Ast.Term], st: Fx.St): Fx.St = if Str.eq(Sym.str(rel), "next") then Fx.ruleNext(p, line, args, st) else if Str.eq(Sym.str(rel), "at") then st else Fx.add(st, Fx.fact(Fx.RRUse, Fx.l3(Fx.s(p), Fx.s(rel), Fx.i(line)))) -def Fx.bodyNames {r: Region} (rid: I64, ts: Coll.List[Ast.Term], st: Fx.St): Fx.St = ts match +def Fx.bodyNames(rid: I64, ts: Coll.List[Ast.Term], st: Fx.St): Fx.St = ts match case Coll.Nil => st case Coll.Cons(t, rest) => t match case Ast.TName(x) => Fx.bodyNames(rid, rest, Fx.add(st, Fx.fact(Fx.RBodyVar, Fx.l2(Fx.i(rid), Fx.s(x))))) case Ast.TNum(_) => Fx.bodyNames(rid, rest, st) // the op of next(s, op, t): its second arg -def Fx.ruleNext {r: Region} (p: Sym.Sym, line: I64, ts: Coll.List[Ast.Term], st: Fx.St): Fx.St = Fx.nth(ts, 1) match +def Fx.ruleNext(p: Sym.Sym, line: I64, ts: Coll.List[Ast.Term], st: Fx.St): Fx.St = Fx.nth(ts, 1) match case Coll.Some(op) => Fx.add(st, Fx.fact(Fx.RRNext, Fx.l3(Fx.s(p), Fx.s(op), Fx.i(line)))) case Coll.None => st -def Fx.nth {r: Region} (ts: Coll.List[Ast.Term], i: I64): Coll.Option[Sym.Sym] = ts match +def Fx.nth(ts: Coll.List[Ast.Term], i: I64): Coll.Option[Sym.Sym] = ts match case Coll.Nil => Coll.None case Coll.Cons(t, rest) => if i == 0 then t match @@ -255,29 +255,29 @@ def Fx.nth {r: Region} (ts: Coll.List[Ast.Term], i: I64): Coll.Option[Sym.Sym] = else Fx.nth(rest, i - 1) // a def: its {} capabilities, its entry groups (g 0) and its exit facts (g 1) -def Fx.fn {r: Region} (ps: Coll.List[Sym.Sym], f: Ast.Fn, st: Fx.St): Fx.St = +def Fx.fn(ps: Coll.List[Sym.Sym], f: Ast.Fn, st: Fx.St): Fx.St = val Ast.Fn(_, d, gs, _, _, exit, _) = f val st1 = Fx.caps(ps, d, Ty.evidence(gs, Coll.Nil), st) Fx.atoms(d, 1, exit, Fx.groups(d, gs, st1)) -def Fx.caps {r: Region} (ps: Coll.List[Sym.Sym], d: Sym.Sym, bs: Coll.List[Ast.Binder], st: Fx.St): Fx.St = bs match +def Fx.caps(ps: Coll.List[Sym.Sym], d: Sym.Sym, bs: Coll.List[Ast.Binder], st: Fx.St): Fx.St = bs match case Coll.Nil => st case Coll.Cons(b, rest) => val Ast.Binder(_, x, t) = b val Ast.Ty(_, n, _, _, _) = t Fx.caps(ps, d, rest, if Ty.memberSym(n, ps) then Fx.add(st, Fx.fact(Fx.RCap, Fx.l3(Fx.s(d), Fx.s(x), Fx.s(n)))) else st) -def Fx.groups {r: Region} (d: Sym.Sym, gs: Coll.List[Ast.Group], st: Fx.St): Fx.St = gs match +def Fx.groups(d: Sym.Sym, gs: Coll.List[Ast.Group], st: Fx.St): Fx.St = gs match case Coll.Nil => st case Coll.Cons(g, rest) => g match case Ast.Facts(as) => Fx.groups(d, rest, Fx.atoms(d, 0, as, st)) case _ => Fx.groups(d, rest, st) -def Fx.atoms {r: Region} (d: Sym.Sym, g: I64, as: Coll.List[Ast.Atom], st: Fx.St): Fx.St = as match +def Fx.atoms(d: Sym.Sym, g: I64, as: Coll.List[Ast.Atom], st: Fx.St): Fx.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => Fx.atoms(d, g, rest, Fx.atom(d, g, a, st)) -def Fx.atom {r: Region} (d: Sym.Sym, g: I64, a: Ast.Atom, st: Fx.St): Fx.St = +def Fx.atom(d: Sym.Sym, g: I64, a: Ast.Atom, st: Fx.St): Fx.St = val Ast.Atom(line, rel, args) = a val rn = Sym.str(rel) if Str.eq(rn, "at") then Fx.atAtom(d, g, line, args, st) @@ -291,7 +291,7 @@ def Fx.atom {r: Region} (d: Sym.Sym, g: I64, a: Ast.Atom, st: Fx.St): Fx.St = if g == 1 then Fx.add(st2, Fx.fact(Fx.RExitOther, Fx.l2(Fx.s(rel), Fx.i(line)))) else st2 // at(x, S): x a capability; S a state (constant) or a variable; one id per at atom (two of one x in a group clash) -def Fx.atAtom {r: Region} (d: Sym.Sym, g: I64, line: I64, args: Coll.List[Ast.Term], st: Fx.St): Fx.St = Fx.nth(args, 0) match +def Fx.atAtom(d: Sym.Sym, g: I64, line: I64, args: Coll.List[Ast.Term], st: Fx.St): Fx.St = Fx.nth(args, 0) match case Coll.None => st case Coll.Some(x) => val id = Fx.fresh(st) @@ -303,7 +303,7 @@ def Fx.atAtom {r: Region} (d: Sym.Sym, g: I64, line: I64, args: Coll.List[Ast.Te else Fx.add(st1, Fx.fact(Fx.RVarIn, Fx.l4(Fx.s(d), Fx.i(g), Fx.s(s), Fx.i(line)))) // the variables of an atom: its lower-case names, except the op of next(s, op, t) (Fx.opPos) -def Fx.varsFrom {r: Region} (d: Sym.Sym, g: I64, line: I64, ts: Coll.List[Ast.Term], i: I64, op: Coll.Option[I64], st: Fx.St): Fx.St = ts match +def Fx.varsFrom(d: Sym.Sym, g: I64, line: I64, ts: Coll.List[Ast.Term], i: I64, op: Coll.Option[I64], st: Fx.St): Fx.St = ts match case Coll.Nil => st case Coll.Cons(t, rest) => t match case Ast.TNum(_) => Fx.varsFrom(d, g, line, rest, i + 1, op, st) @@ -312,18 +312,18 @@ def Fx.varsFrom {r: Region} (d: Sym.Sym, g: I64, line: I64, ts: Coll.List[Ast.Te else Fx.varsFrom(d, g, line, rest, i + 1, op, Fx.add(st, Fx.fact(Fx.RVarIn, Fx.l4(Fx.s(d), Fx.i(g), Fx.s(x), Fx.i(line))))) // ── the verdict: each clash relation read as (line, name) ── -def Fx.check {r: Region} (ds: Coll.List[Ast.Decl]): Fx.Verdict = D.solve(Fx.rules(), Fx.facts(ds)) match +def Fx.check(ds: Coll.List[Ast.Decl]): Fx.Verdict = D.solve(Fx.rules(), Fx.facts(ds)) match case D.Solved(m) => Fx.readAll(m, Fx.kinds(), Coll.Nil) case D.Unsafe(rel) => Fx.RulesBad(rel) case D.NegCycle(rel) => Fx.RulesBad(rel) -def Fx.kinds {r: Region} (): Coll.List[Fx.Rel] = +def Fx.kinds(): Coll.List[Fx.Rel] = val a = Fx.l5(Fx.RNotCapAt, Fx.RBadStateAt, Fx.RTwiceAt, Fx.RNotOpAt, Fx.RUnknownRelAt) val b = Fx.l4(Fx.RRelArityAt, Fx.RUnboundAt, Fx.RExitOtherAt, Fx.RReservedAt) val c = Fx.l4(Fx.RClauseArityAt, Fx.RUnsafeAt, Fx.RRuleUnknownAt, Fx.RRuleOpAt) Coll.revOnto(Coll.rev(a), Coll.revOnto(Coll.rev(b), c)) -def Fx.readAll {r: Region} (m: D.Model, ks: Coll.List[Fx.Rel], acc: Coll.List[Fx.Clash]): Fx.Verdict = ks match +def Fx.readAll(m: D.Model, ks: Coll.List[Fx.Rel], acc: Coll.List[Fx.Clash]): Fx.Verdict = ks match case Coll.Nil => acc match case Coll.Nil => Fx.Ok case Coll.Cons(_, _) => Fx.Bad(Coll.rev(acc)) @@ -331,7 +331,7 @@ def Fx.readAll {r: Region} (m: D.Model, ks: Coll.List[Fx.Rel], acc: Coll.List[Fx case Coll.Some(acc2) => Fx.readAll(m, rest, acc2) case Coll.None => Fx.RulesBad(Fx.relSym(k)) -def Fx.rows {r: Region} (k: Fx.Rel, ts: Coll.List[Coll.List[D.Val]], acc: Coll.List[Fx.Clash]): Coll.Option[Coll.List[Fx.Clash]] = ts match +def Fx.rows(k: Fx.Rel, ts: Coll.List[Coll.List[D.Val]], acc: Coll.List[Fx.Clash]): Coll.Option[Coll.List[Fx.Clash]] = ts match case Coll.Nil => Coll.Some(acc) case Coll.Cons(t, rest) => t match case Coll.Cons(a, more) => more match @@ -345,7 +345,7 @@ def Fx.rows {r: Region} (k: Fx.Rel, ts: Coll.List[Coll.List[D.Val]], acc: Coll.L case Coll.Nil => Coll.None case Coll.Nil => Coll.None -def Fx.make {r: Region} (k: Fx.Rel, line: I64, n: Sym.Sym): Coll.Option[Fx.Clash] = k match +def Fx.make(k: Fx.Rel, line: I64, n: Sym.Sym): Coll.Option[Fx.Clash] = k match case Fx.RNotCapAt => Coll.Some(Fx.NotCap(line, n)) case Fx.RBadStateAt => Coll.Some(Fx.BadState(line, n)) case Fx.RTwiceAt => Coll.Some(Fx.Twice(line, n)) @@ -362,7 +362,7 @@ def Fx.make {r: Region} (k: Fx.Rel, line: I64, n: Sym.Sym): Coll.Option[Fx.Clash case _ => Coll.None // the position of an op name in an atom: next(s, op, t) has one at 1, other relations none -def Fx.opPos {r: Region} (rel: Sym.Sym): Coll.Option[I64] = if Str.eq(Sym.str(rel), "next") then Coll.Some(1) else Coll.None +def Fx.opPos(rel: Sym.Sym): Coll.Option[I64] = if Str.eq(Sym.str(rel), "next") then Coll.Some(1) else Coll.None def Fx.isPos(op: Coll.Option[I64], i: I64): Bool = op match case Coll.Some(j) => i == j diff --git a/s2/flow.srs b/s2/flow.srs index a60066f8..f36e98aa 100644 --- a/s2/flow.srs +++ b/s2/flow.srs @@ -103,7 +103,7 @@ enum Flow.Rel: case Flow.RSameS case Flow.RStale -def Flow.relSym {r: Region} (x: Flow.Rel): Sym.Sym = x match +def Flow.relSym(x: Flow.Rel): Sym.Sym = x match case Flow.RFlow => Sym.of("flow") case Flow.RStep => Sym.of("step") case Flow.RAt => Sym.of("at") @@ -193,79 +193,79 @@ enum Flow.Verdict: case Flow.RulesIllTyped(rel: Sym.Sym) // ── facts: one constructor per relation, with its arity and column types ── -def Flow.i {r: Region} (n: I64): D.Val = D.VInt(n) -def Flow.s {r: Region} (x: Sym.Sym): D.Val = D.VSym(x) -def Flow.fact1 {r: Region} (rel: Flow.Rel, a: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Nil)) -def Flow.fact2 {r: Region} (rel: Flow.Rel, a: D.Val, b: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Nil))) -def Flow.fact4 {r: Region} (rel: Flow.Rel, a: D.Val, b: D.Val, c: D.Val, d: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Cons(d, Coll.Nil))))) -def Flow.fFlow {r: Region} (p: I64, q: I64): D.Fact = Flow.fact2(Flow.RFlow, Flow.i(p), Flow.i(q)) -def Flow.fStep {r: Region} (p: I64, q: I64, cap: I64, op: Sym.Sym): D.Fact = Flow.fact4(Flow.RStep, Flow.i(p), Flow.i(q), Flow.i(cap), Flow.s(op)) -def Flow.fLine {r: Region} (p: I64, line: I64): D.Fact = Flow.fact2(Flow.RLine, Flow.i(p), Flow.i(line)) -def Flow.fMerge {r: Region} (m: I64): D.Fact = Flow.fact1(Flow.RMerge, Flow.i(m)) -def Flow.fClose {r: Region} (e: I64, cap: I64): D.Fact = Flow.fact2(Flow.RClose, Flow.i(e), Flow.i(cap)) -def Flow.fCapOf {r: Region} (cap: I64, proto: Sym.Sym): D.Fact = Flow.fact2(Flow.RCapOf, Flow.i(cap), Flow.s(proto)) -def Flow.fCapName {r: Region} (cap: I64, name: Sym.Sym): D.Fact = Flow.fact2(Flow.RCapName, Flow.i(cap), Flow.s(name)) -def Flow.fCapLine {r: Region} (cap: I64, line: I64): D.Fact = Flow.fact2(Flow.RCapLine, Flow.i(cap), Flow.i(line)) -def Flow.fHandle {r: Region} (p: I64, cap: I64): D.Fact = Flow.fact2(Flow.RHandle, Flow.i(p), Flow.i(cap)) -def Flow.fTr {r: Region} (proto: Sym.Sym, op: Sym.Sym, a: Sym.Sym, b: Sym.Sym): D.Fact = Flow.fact4(Flow.RTr, Flow.s(proto), Flow.s(op), Flow.s(a), Flow.s(b)) -def Flow.fStart {r: Region} (proto: Sym.Sym, s: Sym.Sym): D.Fact = Flow.fact2(Flow.RStart, Flow.s(proto), Flow.s(s)) -def Flow.fSame {r: Region} (a: Sym.Sym, b: Sym.Sym): D.Fact = Flow.fact2(Flow.RSame, Flow.s(a), Flow.s(b)) -def Flow.fEndOk {r: Region} (proto: Sym.Sym, s: Sym.Sym): D.Fact = Flow.fact2(Flow.REndOk, Flow.s(proto), Flow.s(s)) -def Flow.fWorld {r: Region} (w: I64): D.Fact = Flow.fact1(Flow.RWorld, Flow.i(w)) -def Flow.fact3 {r: Region} (rel: Flow.Rel, a: D.Val, b: D.Val, c: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Nil)))) -def Flow.fCStep {r: Region} (p: I64, q: I64): D.Fact = Flow.fact2(Flow.RCStep, Flow.i(p), Flow.i(q)) -def Flow.fCallee {r: Region} (p: I64, f: Sym.Sym): D.Fact = Flow.fact2(Flow.RCallee, Flow.i(p), Flow.s(f)) -def Flow.fBind {r: Region} (p: I64, m: I64, cap: I64): D.Fact = Flow.fact3(Flow.RBind, Flow.i(p), Flow.i(m), Flow.i(cap)) -def Flow.fFirst {r: Region} (p: I64, m: I64): D.Fact = Flow.fact2(Flow.RFirst, Flow.i(p), Flow.i(m)) -def Flow.fNext {r: Region} (p: I64, m: I64, n: I64): D.Fact = Flow.fact3(Flow.RNext, Flow.i(p), Flow.i(m), Flow.i(n)) -def Flow.fLast {r: Region} (p: I64, m: I64): D.Fact = Flow.fact2(Flow.RLast, Flow.i(p), Flow.i(m)) -def Flow.fPre {r: Region} (p: I64, j: I64, m: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.RPre, Flow.i(p), Flow.i(j), Flow.i(m), Flow.s(s)) -def Flow.fPost {r: Region} (p: I64, j: I64, m: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.RPost, Flow.i(p), Flow.i(j), Flow.i(m), Flow.s(s)) +def Flow.i(n: I64): D.Val = D.VInt(n) +def Flow.s(x: Sym.Sym): D.Val = D.VSym(x) +def Flow.fact1(rel: Flow.Rel, a: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Nil)) +def Flow.fact2(rel: Flow.Rel, a: D.Val, b: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Nil))) +def Flow.fact4(rel: Flow.Rel, a: D.Val, b: D.Val, c: D.Val, d: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Cons(d, Coll.Nil))))) +def Flow.fFlow(p: I64, q: I64): D.Fact = Flow.fact2(Flow.RFlow, Flow.i(p), Flow.i(q)) +def Flow.fStep(p: I64, q: I64, cap: I64, op: Sym.Sym): D.Fact = Flow.fact4(Flow.RStep, Flow.i(p), Flow.i(q), Flow.i(cap), Flow.s(op)) +def Flow.fLine(p: I64, line: I64): D.Fact = Flow.fact2(Flow.RLine, Flow.i(p), Flow.i(line)) +def Flow.fMerge(m: I64): D.Fact = Flow.fact1(Flow.RMerge, Flow.i(m)) +def Flow.fClose(e: I64, cap: I64): D.Fact = Flow.fact2(Flow.RClose, Flow.i(e), Flow.i(cap)) +def Flow.fCapOf(cap: I64, proto: Sym.Sym): D.Fact = Flow.fact2(Flow.RCapOf, Flow.i(cap), Flow.s(proto)) +def Flow.fCapName(cap: I64, name: Sym.Sym): D.Fact = Flow.fact2(Flow.RCapName, Flow.i(cap), Flow.s(name)) +def Flow.fCapLine(cap: I64, line: I64): D.Fact = Flow.fact2(Flow.RCapLine, Flow.i(cap), Flow.i(line)) +def Flow.fHandle(p: I64, cap: I64): D.Fact = Flow.fact2(Flow.RHandle, Flow.i(p), Flow.i(cap)) +def Flow.fTr(proto: Sym.Sym, op: Sym.Sym, a: Sym.Sym, b: Sym.Sym): D.Fact = Flow.fact4(Flow.RTr, Flow.s(proto), Flow.s(op), Flow.s(a), Flow.s(b)) +def Flow.fStart(proto: Sym.Sym, s: Sym.Sym): D.Fact = Flow.fact2(Flow.RStart, Flow.s(proto), Flow.s(s)) +def Flow.fSame(a: Sym.Sym, b: Sym.Sym): D.Fact = Flow.fact2(Flow.RSame, Flow.s(a), Flow.s(b)) +def Flow.fEndOk(proto: Sym.Sym, s: Sym.Sym): D.Fact = Flow.fact2(Flow.REndOk, Flow.s(proto), Flow.s(s)) +def Flow.fWorld(w: I64): D.Fact = Flow.fact1(Flow.RWorld, Flow.i(w)) +def Flow.fact3(rel: Flow.Rel, a: D.Val, b: D.Val, c: D.Val): D.Fact = D.Fact(Flow.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Nil)))) +def Flow.fCStep(p: I64, q: I64): D.Fact = Flow.fact2(Flow.RCStep, Flow.i(p), Flow.i(q)) +def Flow.fCallee(p: I64, f: Sym.Sym): D.Fact = Flow.fact2(Flow.RCallee, Flow.i(p), Flow.s(f)) +def Flow.fBind(p: I64, m: I64, cap: I64): D.Fact = Flow.fact3(Flow.RBind, Flow.i(p), Flow.i(m), Flow.i(cap)) +def Flow.fFirst(p: I64, m: I64): D.Fact = Flow.fact2(Flow.RFirst, Flow.i(p), Flow.i(m)) +def Flow.fNext(p: I64, m: I64, n: I64): D.Fact = Flow.fact3(Flow.RNext, Flow.i(p), Flow.i(m), Flow.i(n)) +def Flow.fLast(p: I64, m: I64): D.Fact = Flow.fact2(Flow.RLast, Flow.i(p), Flow.i(m)) +def Flow.fPre(p: I64, j: I64, m: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.RPre, Flow.i(p), Flow.i(j), Flow.i(m), Flow.s(s)) +def Flow.fPost(p: I64, j: I64, m: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.RPost, Flow.i(p), Flow.i(j), Flow.i(m), Flow.s(s)) // a solution id is equal to itself (ambig compares solution ids with !same, as split compares states) -def Flow.fSameI {r: Region} (j: I64): D.Fact = Flow.fact2(Flow.RSame, Flow.i(j), Flow.i(j)) -def Flow.fEnter {r: Region} (p: I64, w: I64, cap: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.REnter, Flow.i(p), Flow.i(w), Flow.i(cap), Flow.s(s)) -def Flow.fWant {r: Region} (p: I64, w: I64, cap: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.RWant, Flow.i(p), Flow.i(w), Flow.i(cap), Flow.s(s)) -def Flow.fNoSol {r: Region} (line: I64, f: Sym.Sym): D.Fact = Flow.fact2(Flow.RNoSol, Flow.i(line), Flow.s(f)) -def Flow.fReadAt {r: Region} (p: I64, x: Sym.Sym, line: I64): D.Fact = Flow.fact3(Flow.RReadAt, Flow.i(p), Flow.s(x), Flow.i(line)) -def Flow.fAssign {r: Region} (p: I64, x: Sym.Sym, cap: I64): D.Fact = Flow.fact3(Flow.RAssign, Flow.i(p), Flow.s(x), Flow.i(cap)) -def Flow.fAssignFrom {r: Region} (p: I64, x: Sym.Sym, y: Sym.Sym): D.Fact = Flow.fact3(Flow.RAssignFrom, Flow.i(p), Flow.s(x), Flow.s(y)) -def Flow.fAssigns {r: Region} (p: I64, x: Sym.Sym): D.Fact = Flow.fact2(Flow.RAssigns, Flow.i(p), Flow.s(x)) -def Flow.fEscCap {r: Region} (e: I64, cap: I64, line: I64): D.Fact = Flow.fact3(Flow.REscCap, Flow.i(e), Flow.i(cap), Flow.i(line)) -def Flow.fEscVar {r: Region} (e: I64, y: Sym.Sym, line: I64): D.Fact = Flow.fact3(Flow.REscVar, Flow.i(e), Flow.s(y), Flow.i(line)) -def Flow.fFin {r: Region} (proto: Sym.Sym, s: Sym.Sym): D.Fact = Flow.fact2(Flow.RFin, Flow.s(proto), Flow.s(s)) - -def Flow.add {r: Region} (st: Flow.St, f: D.Fact): Flow.St = +def Flow.fSameI(j: I64): D.Fact = Flow.fact2(Flow.RSame, Flow.i(j), Flow.i(j)) +def Flow.fEnter(p: I64, w: I64, cap: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.REnter, Flow.i(p), Flow.i(w), Flow.i(cap), Flow.s(s)) +def Flow.fWant(p: I64, w: I64, cap: I64, s: Sym.Sym): D.Fact = Flow.fact4(Flow.RWant, Flow.i(p), Flow.i(w), Flow.i(cap), Flow.s(s)) +def Flow.fNoSol(line: I64, f: Sym.Sym): D.Fact = Flow.fact2(Flow.RNoSol, Flow.i(line), Flow.s(f)) +def Flow.fReadAt(p: I64, x: Sym.Sym, line: I64): D.Fact = Flow.fact3(Flow.RReadAt, Flow.i(p), Flow.s(x), Flow.i(line)) +def Flow.fAssign(p: I64, x: Sym.Sym, cap: I64): D.Fact = Flow.fact3(Flow.RAssign, Flow.i(p), Flow.s(x), Flow.i(cap)) +def Flow.fAssignFrom(p: I64, x: Sym.Sym, y: Sym.Sym): D.Fact = Flow.fact3(Flow.RAssignFrom, Flow.i(p), Flow.s(x), Flow.s(y)) +def Flow.fAssigns(p: I64, x: Sym.Sym): D.Fact = Flow.fact2(Flow.RAssigns, Flow.i(p), Flow.s(x)) +def Flow.fEscCap(e: I64, cap: I64, line: I64): D.Fact = Flow.fact3(Flow.REscCap, Flow.i(e), Flow.i(cap), Flow.i(line)) +def Flow.fEscVar(e: I64, y: Sym.Sym, line: I64): D.Fact = Flow.fact3(Flow.REscVar, Flow.i(e), Flow.s(y), Flow.i(line)) +def Flow.fFin(proto: Sym.Sym, s: Sym.Sym): D.Fact = Flow.fact2(Flow.RFin, Flow.s(proto), Flow.s(s)) + +def Flow.add(st: Flow.St, f: D.Fact): Flow.St = val Flow.St(n, fs, cs) = st Flow.St(n, Coll.Cons(f, fs), cs) // a fresh id -def Flow.fresh {r: Region} (st: Flow.St): Flow.At = +def Flow.fresh(st: Flow.St): Flow.At = val Flow.St(n, fs, cs) = st Flow.At(Flow.St(n + 1, fs, cs), n) -def Flow.edge {r: Region} (st: Flow.St, p: I64, q: I64): Flow.St = Flow.add(st, Flow.fFlow(p, q)) +def Flow.edge(st: Flow.St, p: I64, q: I64): Flow.St = Flow.add(st, Flow.fFlow(p, q)) // a fresh point that control reaches from p -def Flow.next {r: Region} (st: Flow.St, p: I64): Flow.At = +def Flow.next(st: Flow.St, p: I64): Flow.At = val Flow.At(st2, q) = Flow.fresh(st) Flow.At(Flow.edge(st2, p, q), q) // the capability named x in scope, innermost first -def Flow.capNamed {r: Region} (cs: Coll.List[Flow.Cap], x: Sym.Sym): Coll.Option[Flow.Cap] = cs match +def Flow.capNamed(cs: Coll.List[Flow.Cap], x: Sym.Sym): Coll.Option[Flow.Cap] = cs match case Coll.Nil => Coll.None case Coll.Cons(c, rest) => val Flow.Cap(n, _, _, _) = c if Sym.eq(n, x) then Coll.Some(c) else Flow.capNamed(rest, x) // the protocol a handler implements -def Flow.protoOf {r: Region} (hs: Coll.List[Ast.Handler], h: Sym.Sym): Coll.Option[Sym.Sym] = hs match +def Flow.protoOf(hs: Coll.List[Ast.Handler], h: Sym.Sym): Coll.Option[Sym.Sym] = hs match case Coll.Nil => Coll.None case Coll.Cons(x, rest) => val Ast.Handler(_, n, p, _) = x if Sym.eq(n, h) then Coll.Some(p) else Flow.protoOf(rest, h) // ── the walk: e from point p ── -def Flow.expr {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, e: Ast.Expr): Flow.At = e match +def Flow.expr(cx: Flow.Cx, st: Flow.St, p: I64, e: Ast.Expr): Flow.At = e match case Ast.Call(line, f, _, chosen, xs) => val Flow.At(st2, pa) = Flow.exprs(cx, st, p, xs) val Flow.Cx(ps, _, fns, es, _, _) = cx @@ -309,7 +309,7 @@ def Flow.expr {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, e: Ast.Expr): Flow. // each arm a branch from ps (the point after the scrutinee) to the merge point m; its pattern binders hold what the // scrutinee holds (sv) -def Flow.arms {r: Region} (cx: Flow.Cx, st: Flow.St, ps: I64, m: I64, sv: Coll.List[Flow.Src], arms: Coll.List[Ast.Arm]): Flow.St = arms match +def Flow.arms(cx: Flow.Cx, st: Flow.St, ps: I64, m: I64, sv: Coll.List[Flow.Src], arms: Coll.List[Ast.Arm]): Flow.St = arms match case Coll.Nil => st case Coll.Cons(a, rest) => val Ast.Arm(_, pat, b) = a @@ -320,7 +320,7 @@ def Flow.arms {r: Region} (cx: Flow.Cx, st: Flow.St, ps: I64, m: I64, sv: Coll.L Flow.arms(cx, Flow.edge(st3, pa, m), ps, m, sv, rest) // the names a pattern binds (a wildcard binds none) -def Flow.patBinds {r: Region} (p: Ast.Pat): Coll.List[Sym.Sym] = p match +def Flow.patBinds(p: Ast.Pat): Coll.List[Sym.Sym] = p match case Ast.PCase(_, binds) => binds case Ast.PAny => Coll.Nil @@ -333,7 +333,7 @@ enum Flow.Src: // the sources of e: a constructor lives in the innermost Region and in its args' sources; a call whose result is data // (an enum) lives in the capabilities its region binders take, in the innermost Region when its row has Region, and in // its args' sources (s1 rho); if, match and block take the union of their values -def Flow.srcs {r: Region} (cx: Flow.Cx, cs: Coll.List[Flow.Cap], e: Ast.Expr, acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = e match +def Flow.srcs(cx: Flow.Cx, cs: Coll.List[Flow.Cap], e: Ast.Expr, acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = e match case Ast.Name(_, x) => Coll.Cons(Flow.SVar(x), acc) case Ast.Call(_, f, _, chosen, xs) => val Flow.Cx(ps, _, fns, es, _, rows) = cx @@ -354,11 +354,11 @@ def Flow.srcs {r: Region} (cx: Flow.Cx, cs: Coll.List[Flow.Cap], e: Ast.Expr, ac case Ast.Method(_, _, _, xs) => Flow.srcsAll(cx, cs, xs, acc) case _ => acc -def Flow.srcsAll {r: Region} (cx: Flow.Cx, cs: Coll.List[Flow.Cap], xs: Coll.List[Ast.Expr], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = xs match +def Flow.srcsAll(cx: Flow.Cx, cs: Coll.List[Flow.Cap], xs: Coll.List[Ast.Expr], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Flow.srcsAll(cx, cs, rest, Flow.srcs(cx, cs, x, acc)) -def Flow.srcsArms {r: Region} (cx: Flow.Cx, cs: Coll.List[Flow.Cap], arms: Coll.List[Ast.Arm], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = arms match +def Flow.srcsArms(cx: Flow.Cx, cs: Coll.List[Flow.Cap], arms: Coll.List[Ast.Arm], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = arms match case Coll.Nil => acc case Coll.Cons(a, rest) => val Ast.Arm(_, _, b) = a @@ -371,14 +371,14 @@ def Flow.isEnumName(es: Coll.List[Ast.Enum], n: Sym.Sym): Bool = es match if Sym.eq(name, n) then true else Flow.isEnumName(rest, n) // the binders of protocol Region -def Flow.regionBs {r: Region} (bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = bs match +def Flow.regionBs(bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = bs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(b, rest) => val Flow.CapB(_, _, proto) = b if Sym.eq(proto, Sym.of("Region")) then Flow.regionBs(rest, Coll.Cons(b, acc)) else Flow.regionBs(rest, acc) // the caller capability each region binder takes (as at the call: the chosen name or the one in scope) -def Flow.regionSrcs {r: Region} (cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym], bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = bs match +def Flow.regionSrcs(cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym], bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => Flow.capFor(cs, chosen, b) match case Coll.None => Flow.regionSrcs(cs, chosen, rest, acc) @@ -387,13 +387,13 @@ def Flow.regionSrcs {r: Region} (cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym. Flow.regionSrcs(cs, chosen, rest, Coll.Cons(Flow.SCap(id), acc)) // x = v (val, var, assign): v is walked; when v has sources, a fresh point assigns them to x (strong update) -def Flow.bindVal {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, x: Sym.Sym, v: Ast.Expr): Flow.At = +def Flow.bindVal(cx: Flow.Cx, st: Flow.St, p: I64, x: Sym.Sym, v: Ast.Expr): Flow.At = val Flow.At(st1, pv) = Flow.expr(cx, st, p, v) val Flow.St(_, _, cs) = st1 Flow.assignAll(st1, pv, Coll.Cons(x, Coll.Nil), Flow.srcs(cx, cs, v, Coll.Nil)) // each x of xs gets the sources sv at a fresh point after p (no sources: nothing to assign, no point) -def Flow.assignAll {r: Region} (st: Flow.St, p: I64, xs: Coll.List[Sym.Sym], sv: Coll.List[Flow.Src]): Flow.At = sv match +def Flow.assignAll(st: Flow.St, p: I64, xs: Coll.List[Sym.Sym], sv: Coll.List[Flow.Src]): Flow.At = sv match case Coll.Nil => Flow.At(st, p) case Coll.Cons(_, _) => xs match case Coll.Nil => Flow.At(st, p) @@ -402,29 +402,29 @@ def Flow.assignAll {r: Region} (st: Flow.St, p: I64, xs: Coll.List[Sym.Sym], sv: val st2 = Flow.assignFacts(st1, a, xs, sv) Flow.next(st2, a) -def Flow.assignFacts {r: Region} (st: Flow.St, a: I64, xs: Coll.List[Sym.Sym], sv: Coll.List[Flow.Src]): Flow.St = xs match +def Flow.assignFacts(st: Flow.St, a: I64, xs: Coll.List[Sym.Sym], sv: Coll.List[Flow.Src]): Flow.St = xs match case Coll.Nil => st case Coll.Cons(x, rest) => Flow.assignFacts(Flow.srcFacts(Flow.add(st, Flow.fAssigns(a, x)), a, x, sv), a, rest, sv) -def Flow.srcFacts {r: Region} (st: Flow.St, a: I64, x: Sym.Sym, sv: Coll.List[Flow.Src]): Flow.St = sv match +def Flow.srcFacts(st: Flow.St, a: I64, x: Sym.Sym, sv: Coll.List[Flow.Src]): Flow.St = sv match case Coll.Nil => st case Coll.Cons(s, rest) => s match case Flow.SCap(c) => Flow.srcFacts(Flow.add(st, Flow.fAssign(a, x, c)), a, x, rest) case Flow.SVar(y) => Flow.srcFacts(Flow.add(st, Flow.fAssignFrom(a, x, y)), a, x, rest) -def Flow.exprs {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, xs: Coll.List[Ast.Expr]): Flow.At = xs match +def Flow.exprs(cx: Flow.Cx, st: Flow.St, p: I64, xs: Coll.List[Ast.Expr]): Flow.At = xs match case Coll.Nil => Flow.At(st, p) case Coll.Cons(x, rest) => val Flow.At(st2, p2) = Flow.expr(cx, st, p, x) Flow.exprs(cx, st2, p2, rest) // m is a merge point (branches or a loop meet) at line -def Flow.merge {r: Region} (st: Flow.St, m: I64, line: I64): Flow.St = +def Flow.merge(st: Flow.St, m: I64, line: I64): Flow.St = Flow.add(Flow.add(st, Flow.fMerge(m)), Flow.fLine(m, line)) // op on capability c after point p: a step from a fresh point of its own (its only out edge, its only line) to a // fresh point -def Flow.step {r: Region} (st: Flow.St, p: I64, c: Flow.Cap, op: Sym.Sym, line: I64): Flow.At = +def Flow.step(st: Flow.St, p: I64, c: Flow.Cap, op: Sym.Sym, line: I64): Flow.At = val Flow.Cap(_, id, _, _) = c val Flow.At(st1, s) = Flow.next(st, p) val Flow.At(st2, q) = Flow.fresh(st1) @@ -434,10 +434,10 @@ def Flow.step {r: Region} (st: Flow.St, p: I64, c: Flow.Cap, op: Sym.Sym, line: // a constructor call (written with args: a nullary case takes no ()) is a request on Region: an alloc step on the // innermost Region in scope. none here: the def's implicit Region (its row, s2/eff.srs), owned by a caller. not yet: a // spec def allocates nothing (the s2 Ast has no spec marker) -def Flow.alloc {r: Region} (st: Flow.St, p: I64, line: I64): Flow.At = Flow.request(st, p, Coll.Some(Eff.Req(Sym.of("Region"), Sym.of("alloc"))), line) +def Flow.alloc(st: Flow.St, p: I64, line: I64): Flow.At = Flow.request(st, p, Coll.Some(Eff.Req(Sym.of("Region"), Sym.of("alloc"))), line) // a request P.op(...): a step of the innermost capability of P in scope (none: the implicit one, not tracked here) -def Flow.request {r: Region} (st: Flow.St, p: I64, q: Coll.Option[Eff.Req], line: I64): Flow.At = q match +def Flow.request(st: Flow.St, p: I64, q: Coll.Option[Eff.Req], line: I64): Flow.At = q match case Coll.None => Flow.At(st, p) case Coll.Some(rq) => val Eff.Req(proto, op) = rq @@ -447,19 +447,19 @@ def Flow.request {r: Region} (st: Flow.St, p: I64, q: Coll.Option[Eff.Req], line case Coll.Some(c) => Flow.step(st, p, c, op, line) // the innermost Region in scope as a source (none: the implicit one, a caller's) -def Flow.inRegion {r: Region} (cs: Coll.List[Flow.Cap], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = Flow.innermost(cs, Sym.of("Region")) match +def Flow.inRegion(cs: Coll.List[Flow.Cap], acc: Coll.List[Flow.Src]): Coll.List[Flow.Src] = Flow.innermost(cs, Sym.of("Region")) match case Coll.None => acc case Coll.Some(c) => val Flow.Cap(_, id, _, _) = c Coll.Cons(Flow.SCap(id), acc) -def Flow.innermost {r: Region} (cs: Coll.List[Flow.Cap], proto: Sym.Sym): Coll.Option[Flow.Cap] = cs match +def Flow.innermost(cs: Coll.List[Flow.Cap], proto: Sym.Sym): Coll.Option[Flow.Cap] = cs match case Coll.Nil => Coll.None case Coll.Cons(c, rest) => val Flow.Cap(_, _, p, _) = c if Sym.eq(p, proto) then Coll.Some(c) else Flow.innermost(rest, proto) -def Flow.isCtor {r: Region} (es: Coll.List[Ast.Enum], f: Sym.Sym): Bool = es match +def Flow.isCtor(es: Coll.List[Ast.Enum], f: Sym.Sym): Bool = es match case Coll.Nil => false case Coll.Cons(e, rest) => val Ast.Enum(_, _, _, cases) = e @@ -481,27 +481,27 @@ enum Flow.CapB: enum Flow.VS: case Flow.VS(x: Sym.Sym, s: Sym.Sym) -def Flow.fnNamed {r: Region} (fns: Coll.List[Ast.Fn], f: Sym.Sym): Coll.Option[Ast.Fn] = fns match +def Flow.fnNamed(fns: Coll.List[Ast.Fn], f: Sym.Sym): Coll.Option[Ast.Fn] = fns match case Coll.Nil => Coll.None case Coll.Cons(g, rest) => val Ast.Fn(_, n, _, _, _, _, _) = g if Sym.eq(n, f) then Coll.Some(g) else Flow.fnNamed(rest, f) -def Flow.protoNamed {r: Region} (ps: Coll.List[Ast.Proto], n: Sym.Sym): Coll.Option[Ast.Proto] = ps match +def Flow.protoNamed(ps: Coll.List[Ast.Proto], n: Sym.Sym): Coll.Option[Ast.Proto] = ps match case Coll.Nil => Coll.None case Coll.Cons(p, rest) => val Ast.Proto(_, name, _, _, _, _, _, _) = p if Sym.eq(name, n) then Coll.Some(p) else Flow.protoNamed(rest, n) // the {} binders of the groups gs whose type is a protocol, in written order; i = the {} index of the next binder -def Flow.capBs {r: Region} (ps: Coll.List[Ast.Proto], gs: Coll.List[Ast.Group], i: I64, acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = gs match +def Flow.capBs(ps: Coll.List[Ast.Proto], gs: Coll.List[Ast.Group], i: I64, acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = gs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(g, rest) => g match case Ast.Evidence(bs) => Flow.capBsOf(ps, rest, bs, i, acc) case Ast.Types(_) => Flow.capBs(ps, rest, i, acc) case Ast.Facts(_) => Flow.capBs(ps, rest, i, acc) -def Flow.capBsOf {r: Region} (ps: Coll.List[Ast.Proto], gs: Coll.List[Ast.Group], bs: Coll.List[Ast.Binder], i: I64, acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = bs match +def Flow.capBsOf(ps: Coll.List[Ast.Proto], gs: Coll.List[Ast.Group], bs: Coll.List[Ast.Binder], i: I64, acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = bs match case Coll.Nil => Flow.capBs(ps, gs, i, acc) case Coll.Cons(b, rest) => val Ast.Binder(_, x, ty) = b @@ -511,7 +511,7 @@ def Flow.capBsOf {r: Region} (ps: Coll.List[Ast.Proto], gs: Coll.List[Ast.Group] case Coll.Some(_) => Flow.capBsOf(ps, gs, rest, i + 1, Coll.Cons(Flow.CapB(x, i, tn), acc)) // the entry atoms of f (its <> groups before the params) -def Flow.entryAtoms {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Atom]): Coll.List[Ast.Atom] = gs match +def Flow.entryAtoms(gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Atom]): Coll.List[Ast.Atom] = gs match case Coll.Nil => acc case Coll.Cons(g, rest) => g match case Ast.Facts(atoms) => Flow.entryAtoms(rest, Coll.revOnto(Coll.rev(atoms), acc)) @@ -520,7 +520,7 @@ def Flow.entryAtoms {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Ast.At // the caller capability a binder takes: the chosen name (f{a}(x)), else the one capability of its protocol in scope; // None when there is none or more than one (the names check reports it, s1/check.srs:643-660) -def Flow.capFor {r: Region} (cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym], b: Flow.CapB): Coll.Option[Flow.Cap] = +def Flow.capFor(cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym], b: Flow.CapB): Coll.Option[Flow.Cap] = val Flow.CapB(_, i, proto) = b chosen match case Coll.Nil => Flow.onlyCap(cs, proto, Coll.None) @@ -528,18 +528,18 @@ def Flow.capFor {r: Region} (cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym] case Coll.None => Coll.None case Coll.Some(n) => Flow.capOfProto(Flow.capNamed(cs, n), proto) -def Flow.capOfProto {r: Region} (c: Coll.Option[Flow.Cap], proto: Sym.Sym): Coll.Option[Flow.Cap] = c match +def Flow.capOfProto(c: Coll.Option[Flow.Cap], proto: Sym.Sym): Coll.Option[Flow.Cap] = c match case Coll.None => c case Coll.Some(x) => val Flow.Cap(_, _, p, _) = x if Sym.eq(p, proto) then c else Coll.None -def Flow.nthSym {r: Region} (xs: Coll.List[Sym.Sym], i: I64): Coll.Option[Sym.Sym] = xs match +def Flow.nthSym(xs: Coll.List[Sym.Sym], i: I64): Coll.Option[Sym.Sym] = xs match case Coll.Nil => Coll.None case Coll.Cons(x, rest) => if i == 0 then Coll.Some(x) else Flow.nthSym(rest, i - 1) // the one capability of protocol proto in cs (a name shadowed by an inner one counts once) -def Flow.onlyCap {r: Region} (cs: Coll.List[Flow.Cap], proto: Sym.Sym, found: Coll.Option[Flow.Cap]): Coll.Option[Flow.Cap] = cs match +def Flow.onlyCap(cs: Coll.List[Flow.Cap], proto: Sym.Sym, found: Coll.Option[Flow.Cap]): Coll.Option[Flow.Cap] = cs match case Coll.Nil => found case Coll.Cons(c, rest) => val Flow.Cap(n, _, p, _) = c @@ -551,7 +551,7 @@ def Flow.onlyCap {r: Region} (cs: Coll.List[Flow.Cap], proto: Sym.Sym, found: Co if Sym.eq(fn, n) then Flow.onlyCap(rest, proto, found) else Coll.None // the caller capability of every binder, in order; None when one is missing -def Flow.capsFor {r: Region} (cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym], bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.Cap]): Coll.Option[Coll.List[Flow.Cap]] = bs match +def Flow.capsFor(cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym], bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.Cap]): Coll.Option[Coll.List[Flow.Cap]] = bs match case Coll.Nil => Coll.Some(Coll.rev(acc)) case Coll.Cons(b, rest) => Flow.capFor(cs, chosen, b) match case Coll.None => Coll.None @@ -559,7 +559,7 @@ def Flow.capsFor {r: Region} (cs: Coll.List[Flow.Cap], chosen: Coll.List[Sym.Sym // a call of g after point p: a step from a fresh point to a fresh point, each capability binder bound to its caller // capability, and the solutions of g's entry facts as pre/post states per binder -def Flow.call {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, p: I64, g: Ast.Fn, chosen: Coll.List[Sym.Sym], line: I64): Flow.At = +def Flow.call(ps: Coll.List[Ast.Proto], st: Flow.St, p: I64, g: Ast.Fn, chosen: Coll.List[Sym.Sym], line: I64): Flow.At = val Ast.Fn(_, name, gs, _, _, exit, _) = g val bs = Flow.capBs(ps, gs, 0, Coll.Nil) val Flow.St(_, _, cs) = st @@ -577,7 +577,7 @@ def Flow.call {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, p: I64, g: Ast Flow.At(Flow.sols(ps, st4, s, bs, atoms, exit, Flow.assigns(ps, Flow.ruleModels(ps, bs, Coll.Nil), bs, atoms, vars, Coll.Nil, Coll.Nil), 0), q) // bind(s, i, c), and the param chain firstParam / nextParam / lastParam -def Flow.binds {r: Region} (st: Flow.St, s: I64, caps: Coll.List[Flow.Cap], i: I64): Flow.St = caps match +def Flow.binds(st: Flow.St, s: I64, caps: Coll.List[Flow.Cap], i: I64): Flow.St = caps match case Coll.Nil => st case Coll.Cons(c, rest) => val Flow.Cap(_, id, _, _) = c @@ -593,17 +593,17 @@ def Flow.isVar(x: Sym.Sym): Bool = c >= 'a' && c <= 'z' // the state positions of an atom: at(_, S), next(S1, _, S2), every arg of a rule atom (s1/facts.srs statePos) -def Flow.statePos {r: Region} (a: Ast.Atom): Coll.List[Ast.Term] = +def Flow.statePos(a: Ast.Atom): Coll.List[Ast.Term] = val Ast.Atom(_, rel, args) = a if Sym.eq(rel, Sym.of("at")) then Flow.dropOne(args) else if Sym.eq(rel, Sym.of("next")) then Flow.firstLast(args) else args -def Flow.dropOne {r: Region} (xs: Coll.List[Ast.Term]): Coll.List[Ast.Term] = xs match +def Flow.dropOne(xs: Coll.List[Ast.Term]): Coll.List[Ast.Term] = xs match case Coll.Nil => xs case Coll.Cons(_, rest) => rest -def Flow.firstLast {r: Region} (xs: Coll.List[Ast.Term]): Coll.List[Ast.Term] = xs match +def Flow.firstLast(xs: Coll.List[Ast.Term]): Coll.List[Ast.Term] = xs match case Coll.Cons(a, r1) => r1 match case Coll.Cons(_, r2) => r2 match case Coll.Cons(b, _) => Coll.Cons(a, Coll.Cons(b, Coll.Nil)) @@ -611,32 +611,32 @@ def Flow.firstLast {r: Region} (xs: Coll.List[Ast.Term]): Coll.List[Ast.Term] = case Coll.Nil => Coll.Nil case Coll.Nil => Coll.Nil -def Flow.termSym {r: Region} (t: Ast.Term): Coll.Option[Sym.Sym] = t match +def Flow.termSym(t: Ast.Term): Coll.Option[Sym.Sym] = t match case Ast.TName(n) => Coll.Some(n) case Ast.TNum(_) => Coll.None // the fact variables of the atoms, each once, in written order -def Flow.varsOf {r: Region} (atoms: Coll.List[Ast.Atom], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = atoms match +def Flow.varsOf(atoms: Coll.List[Ast.Atom], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = atoms match case Coll.Nil => Coll.rev(acc) case Coll.Cons(a, rest) => Flow.varsOf(rest, Flow.varsIn(Flow.statePos(a), acc)) -def Flow.varsIn {r: Region} (ts: Coll.List[Ast.Term], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ts match +def Flow.varsIn(ts: Coll.List[Ast.Term], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ts match case Coll.Nil => acc case Coll.Cons(t, rest) => Flow.termSym(t) match case Coll.None => Flow.varsIn(rest, acc) case Coll.Some(x) => if Flow.isVar(x) && !Flow.memberSym(x, acc) then Flow.varsIn(rest, Coll.Cons(x, acc)) else Flow.varsIn(rest, acc) // every assignment of vars to states (each over the states of all binder protocols) whose next and rule atoms hold -def Flow.assigns {r: Region} (ps: Coll.List[Ast.Proto], ms: Coll.List[Flow.PM], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], vars: Coll.List[Sym.Sym], a: Coll.List[Flow.VS], acc: Coll.List[Coll.List[Flow.VS]]): Coll.List[Coll.List[Flow.VS]] = vars match +def Flow.assigns(ps: Coll.List[Ast.Proto], ms: Coll.List[Flow.PM], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], vars: Coll.List[Sym.Sym], a: Coll.List[Flow.VS], acc: Coll.List[Coll.List[Flow.VS]]): Coll.List[Coll.List[Flow.VS]] = vars match case Coll.Nil => if Flow.atomsHold(ps, ms, bs, atoms, a) then Coll.Cons(a, acc) else acc case Coll.Cons(x, rest) => Flow.assignEach(ps, ms, bs, atoms, x, rest, a, Flow.statesOf(ps, bs, Coll.Nil), acc) -def Flow.assignEach {r: Region} (ps: Coll.List[Ast.Proto], ms: Coll.List[Flow.PM], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], x: Sym.Sym, rest: Coll.List[Sym.Sym], a: Coll.List[Flow.VS], ss: Coll.List[Sym.Sym], acc: Coll.List[Coll.List[Flow.VS]]): Coll.List[Coll.List[Flow.VS]] = ss match +def Flow.assignEach(ps: Coll.List[Ast.Proto], ms: Coll.List[Flow.PM], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], x: Sym.Sym, rest: Coll.List[Sym.Sym], a: Coll.List[Flow.VS], ss: Coll.List[Sym.Sym], acc: Coll.List[Coll.List[Flow.VS]]): Coll.List[Coll.List[Flow.VS]] = ss match case Coll.Nil => acc case Coll.Cons(s, more) => Flow.assignEach(ps, ms, bs, atoms, x, rest, a, more, Flow.assigns(ps, ms, bs, atoms, rest, Coll.Cons(Flow.VS(x, s), a), acc)) // the states of the binder protocols, each once -def Flow.statesOf {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Flow.statesOf(ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Flow.CapB(_, _, proto) = b @@ -646,7 +646,7 @@ def Flow.statesOf {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB val Ast.Proto(_, _, states, _, _, _, _, _) = pr Flow.statesOf(ps, rest, Flow.addNew(states, acc)) -def Flow.addNew {r: Region} (xs: Coll.List[Sym.Sym], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match +def Flow.addNew(xs: Coll.List[Sym.Sym], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => if Flow.memberSym(x, acc) then Flow.addNew(rest, acc) else Flow.addNew(rest, Coll.Cons(x, acc)) @@ -659,7 +659,7 @@ def Flow.resolve(a: Coll.List[Flow.VS], x: Sym.Sym): Sym.Sym = a match // every next(S1, op, S2) atom is a transition of op in a binder protocol, and every rule atom holds in the rule model of // a binder protocol (at atoms are pre/post states, not filters) -def Flow.atomsHold {r: Region} (ps: Coll.List[Ast.Proto], ms: Coll.List[Flow.PM], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], a: Coll.List[Flow.VS]): Bool = atoms match +def Flow.atomsHold(ps: Coll.List[Ast.Proto], ms: Coll.List[Flow.PM], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], a: Coll.List[Flow.VS]): Bool = atoms match case Coll.Nil => true case Coll.Cons(at, rest) => val Ast.Atom(_, rel, args) = at @@ -677,13 +677,13 @@ enum Flow.PM: case Flow.PM(proto: Sym.Sym, m: D.Model) // the args of an atom under an assignment, as values -def Flow.tupleOf {r: Region} (ts: Coll.List[Ast.Term], a: Coll.List[Flow.VS], acc: Coll.List[D.Val]): Coll.List[D.Val] = ts match +def Flow.tupleOf(ts: Coll.List[Ast.Term], a: Coll.List[Flow.VS], acc: Coll.List[D.Val]): Coll.List[D.Val] = ts match case Coll.Nil => Coll.rev(acc) case Coll.Cons(t, rest) => t match case Ast.TName(n) => Flow.tupleOf(rest, a, Coll.Cons(D.VSym(Flow.resolve(a, n)), acc)) case Ast.TNum(v) => Flow.tupleOf(rest, a, Coll.Cons(D.VInt(v), acc)) -def Flow.ruleHolds {r: Region} (ms: Coll.List[Flow.PM], rel: Sym.Sym, t: Coll.List[D.Val]): Bool = ms match +def Flow.ruleHolds(ms: Coll.List[Flow.PM], rel: Sym.Sym, t: Coll.List[D.Val]): Bool = ms match case Coll.Nil => false case Coll.Cons(pm, rest) => val Flow.PM(_, m) = pm @@ -695,7 +695,7 @@ def Flow.inTuples(ts: Coll.List[Coll.List[D.Val]], t: Coll.List[D.Val]): Bool = // the rule model of every binder protocol that has rule defs (a protocol whose rules D rejects has none: the decl check // reports it) -def Flow.ruleModels {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.PM]): Coll.List[Flow.PM] = bs match +def Flow.ruleModels(ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], acc: Coll.List[Flow.PM]): Coll.List[Flow.PM] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Flow.CapB(_, _, proto) = b @@ -711,13 +711,13 @@ def Flow.ruleModels {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.Ca case D.NegCycle(_) => Flow.ruleModels(ps, rest, acc) // next(S1, op, S2) for every transition of every op -def Flow.nextFacts {r: Region} (ops: Coll.List[Ast.Op], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = ops match +def Flow.nextFacts(ops: Coll.List[Ast.Op], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = ops match case Coll.Nil => acc case Coll.Cons(o, rest) => val Ast.Op(_, name, _, _, trs) = o Flow.nextFacts(rest, Flow.nextOf(name, trs, acc)) -def Flow.nextOf {r: Region} (op: Sym.Sym, trs: Coll.List[Ast.Trans], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = trs match +def Flow.nextOf(op: Sym.Sym, trs: Coll.List[Ast.Trans], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = trs match case Coll.Nil => acc case Coll.Cons(t, rest) => val Ast.Trans(a, b) = t @@ -725,41 +725,41 @@ def Flow.nextOf {r: Region} (op: Sym.Sym, trs: Coll.List[Ast.Trans], acc: Coll.L // rule def name(params) = body as a D.Rule: variables are the lowercase names in state positions (the op of next is a // constant), numbered in first-seen order from the params -def Flow.ruleDefs {r: Region} (rs: Coll.List[Ast.RuleDef], acc: Coll.List[D.Rule]): Coll.List[D.Rule] = rs match +def Flow.ruleDefs(rs: Coll.List[Ast.RuleDef], acc: Coll.List[D.Rule]): Coll.List[D.Rule] = rs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(rd, rest) => val Ast.RuleDef(_, name, params, body) = rd val vs = Flow.varsOf(body, Coll.rev(params)) Flow.ruleDefs(rest, Coll.Cons(D.Rule(D.Atom(name, Flow.argsOfNames(params, vs, Coll.Nil)), Flow.bodyLits(body, vs, Coll.Nil)), acc)) -def Flow.argOf {r: Region} (x: Sym.Sym, vs: Coll.List[Sym.Sym]): D.Arg = Flow.indexSym(vs, x, 0) match +def Flow.argOf(x: Sym.Sym, vs: Coll.List[Sym.Sym]): D.Arg = Flow.indexSym(vs, x, 0) match case Coll.Some(i) => D.AVar(i) case Coll.None => D.AVal(D.VSym(x)) -def Flow.indexSym {r: Region} (xs: Coll.List[Sym.Sym], x: Sym.Sym, i: I64): Coll.Option[I64] = xs match +def Flow.indexSym(xs: Coll.List[Sym.Sym], x: Sym.Sym, i: I64): Coll.Option[I64] = xs match case Coll.Nil => Coll.None case Coll.Cons(y, rest) => if Sym.eq(x, y) then Coll.Some(i) else Flow.indexSym(rest, x, i + 1) -def Flow.argsOfNames {r: Region} (xs: Coll.List[Sym.Sym], vs: Coll.List[Sym.Sym], acc: Coll.List[D.Arg]): Coll.List[D.Arg] = xs match +def Flow.argsOfNames(xs: Coll.List[Sym.Sym], vs: Coll.List[Sym.Sym], acc: Coll.List[D.Arg]): Coll.List[D.Arg] = xs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(x, rest) => Flow.argsOfNames(rest, vs, Coll.Cons(Flow.argOf(x, vs), acc)) // a body atom: next keeps its op as a constant, any other relation maps each name (variable or constant) -def Flow.bodyLits {r: Region} (atoms: Coll.List[Ast.Atom], vs: Coll.List[Sym.Sym], acc: Coll.List[D.Lit]): Coll.List[D.Lit] = atoms match +def Flow.bodyLits(atoms: Coll.List[Ast.Atom], vs: Coll.List[Sym.Sym], acc: Coll.List[D.Lit]): Coll.List[D.Lit] = atoms match case Coll.Nil => Coll.rev(acc) case Coll.Cons(at, rest) => val Ast.Atom(_, rel, args) = at Flow.bodyLits(rest, vs, Coll.Cons(D.Pos(D.Atom(rel, Flow.termArgs(args, vs, Coll.Nil))), acc)) // the args of an atom: a name in vs is a variable, any other a constant (the op of next is never in vs: statePos skips it) -def Flow.termArgs {r: Region} (ts: Coll.List[Ast.Term], vs: Coll.List[Sym.Sym], acc: Coll.List[D.Arg]): Coll.List[D.Arg] = ts match +def Flow.termArgs(ts: Coll.List[Ast.Term], vs: Coll.List[Sym.Sym], acc: Coll.List[D.Arg]): Coll.List[D.Arg] = ts match case Coll.Nil => Coll.rev(acc) case Coll.Cons(t, rest) => t match case Ast.TNum(v) => Flow.termArgs(rest, vs, Coll.Cons(D.AVal(D.VInt(v)), acc)) case Ast.TName(n) => Flow.termArgs(rest, vs, Coll.Cons(Flow.argOf(n, vs), acc)) // the binder protocols with a transition op: S1 -> S2 for the args of a next atom (empty = it does not hold) -def Flow.nextHolds {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], args: Coll.List[Ast.Term], a: Coll.List[Flow.VS]): Coll.List[Flow.CapB] = args match +def Flow.nextHolds(ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], args: Coll.List[Ast.Term], a: Coll.List[Flow.VS]): Coll.List[Flow.CapB] = args match case Coll.Cons(t1, r1) => r1 match case Coll.Cons(t2, r2) => r2 match case Coll.Cons(t3, _) => Flow.nextIn(ps, bs, Flow.termSym(t1), Flow.termSym(t2), Flow.termSym(t3), a, Coll.Nil) @@ -767,7 +767,7 @@ def Flow.nextHolds {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.Cap case Coll.Nil => Coll.Nil case Coll.Nil => Coll.Nil -def Flow.nextIn {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], s1: Coll.Option[Sym.Sym], op: Coll.Option[Sym.Sym], s2: Coll.Option[Sym.Sym], a: Coll.List[Flow.VS], acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = s1 match +def Flow.nextIn(ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], s1: Coll.Option[Sym.Sym], op: Coll.Option[Sym.Sym], s2: Coll.Option[Sym.Sym], a: Coll.List[Flow.VS], acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = s1 match case Coll.None => acc case Coll.Some(x1) => op match case Coll.None => acc @@ -775,7 +775,7 @@ def Flow.nextIn {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], case Coll.None => acc case Coll.Some(x2) => Flow.withTrans(ps, bs, Flow.resolve(a, x1), o, Flow.resolve(a, x2), acc) -def Flow.withTrans {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], a: Sym.Sym, op: Sym.Sym, b: Sym.Sym, acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = bs match +def Flow.withTrans(ps: Coll.List[Ast.Proto], bs: Coll.List[Flow.CapB], a: Sym.Sym, op: Sym.Sym, b: Sym.Sym, acc: Coll.List[Flow.CapB]): Coll.List[Flow.CapB] = bs match case Coll.Nil => acc case Coll.Cons(x, rest) => val Flow.CapB(_, _, proto) = x @@ -799,13 +799,13 @@ def Flow.transHas(trs: Coll.List[Ast.Trans], a: Sym.Sym, b: Sym.Sym): Bool = trs if Sym.eq(x, a) && Sym.eq(y, b) then true else Flow.transHas(rest, a, b) // the state an at(binder, S) atom gives under a, or None when the binder has no such atom -def Flow.atState {r: Region} (atoms: Coll.List[Ast.Atom], x: Sym.Sym, a: Coll.List[Flow.VS]): Coll.Option[Sym.Sym] = atoms match +def Flow.atState(atoms: Coll.List[Ast.Atom], x: Sym.Sym, a: Coll.List[Flow.VS]): Coll.Option[Sym.Sym] = atoms match case Coll.Nil => Coll.None case Coll.Cons(at, rest) => val Ast.Atom(_, rel, args) = at if Sym.eq(rel, Sym.of("at")) then Flow.atArgs(args, x, a, rest) else Flow.atState(rest, x, a) -def Flow.atArgs {r: Region} (args: Coll.List[Ast.Term], x: Sym.Sym, a: Coll.List[Flow.VS], rest: Coll.List[Ast.Atom]): Coll.Option[Sym.Sym] = args match +def Flow.atArgs(args: Coll.List[Ast.Term], x: Sym.Sym, a: Coll.List[Flow.VS], rest: Coll.List[Ast.Atom]): Coll.Option[Sym.Sym] = args match case Coll.Cons(t1, r1) => r1 match case Coll.Cons(t2, _) => Flow.termSym(t1) match case Coll.Some(c) => if Sym.eq(c, x) then Flow.resolved(Flow.termSym(t2), a) else Flow.atState(rest, x, a) @@ -813,17 +813,17 @@ def Flow.atArgs {r: Region} (args: Coll.List[Ast.Term], x: Sym.Sym, a: Coll.List case Coll.Nil => Flow.atState(rest, x, a) case Coll.Nil => Flow.atState(rest, x, a) -def Flow.resolved {r: Region} (t: Coll.Option[Sym.Sym], a: Coll.List[Flow.VS]): Coll.Option[Sym.Sym] = t match +def Flow.resolved(t: Coll.Option[Sym.Sym], a: Coll.List[Flow.VS]): Coll.Option[Sym.Sym] = t match case Coll.None => t case Coll.Some(s) => Coll.Some(Flow.resolve(a, s)) // solution j per assignment: pre = the entry at() state, else the protocol start (s1/check.srs:899); post = the exit // at() state, else pre -def Flow.sols {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, s: I64, bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], as: Coll.List[Coll.List[Flow.VS]], j: I64): Flow.St = as match +def Flow.sols(ps: Coll.List[Ast.Proto], st: Flow.St, s: I64, bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], as: Coll.List[Coll.List[Flow.VS]], j: I64): Flow.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => Flow.sols(ps, Flow.prePost(ps, Flow.add(st, Flow.fSameI(j)), s, j, bs, atoms, exit, a, 0), s, bs, atoms, exit, rest, j + 1) -def Flow.prePost {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, s: I64, j: I64, bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], a: Coll.List[Flow.VS], m: I64): Flow.St = bs match +def Flow.prePost(ps: Coll.List[Ast.Proto], st: Flow.St, s: I64, j: I64, bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], a: Coll.List[Flow.VS], m: I64): Flow.St = bs match case Coll.Nil => st case Coll.Cons(b, rest) => val Flow.CapB(x, _, proto) = b @@ -838,14 +838,14 @@ def Flow.prePost {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, s: I64, j: case Coll.None => e Flow.prePost(ps, Flow.add(Flow.add(st, Flow.fPre(s, j, m, e)), Flow.fPost(s, j, m, post)), s, j, rest, atoms, exit, a, m + 1) -def Flow.startOf {r: Region} (ps: Coll.List[Ast.Proto], proto: Sym.Sym): Coll.Option[Sym.Sym] = Flow.protoNamed(ps, proto) match +def Flow.startOf(ps: Coll.List[Ast.Proto], proto: Sym.Sym): Coll.Option[Sym.Sym] = Flow.protoNamed(ps, proto) match case Coll.None => Coll.None case Coll.Some(pr) => val Ast.Proto(_, _, _, start, _, _, _, _) = pr Coll.Some(start) // a block: its statements, its value, then a block end point where its own capabilities end their scope -def Flow.block {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, ss: Coll.List[Ast.Stmt], last: Ast.Expr, line: I64): Flow.At = +def Flow.block(cx: Flow.Cx, st: Flow.St, p: I64, ss: Coll.List[Ast.Stmt], last: Ast.Expr, line: I64): Flow.At = val Flow.St(_, _, outer) = st val Flow.At(st1, p1) = Flow.stmts(cx, st, p, ss) val Flow.At(st2, p2) = Flow.expr(cx, st1, p1, last) @@ -855,14 +855,14 @@ def Flow.block {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, ss: Coll.List[Ast. val fs2 = if Coll.length(inner) <= Coll.length(outer) then fs else Flow.escFacts(Flow.srcs(cx, inner, last, Coll.Nil), e, line, fs) Flow.At(Flow.St(n, Flow.closes(inner, outer, e, fs2), outer), e) -def Flow.escFacts {r: Region} (sv: Coll.List[Flow.Src], e: I64, line: I64, fs: Coll.List[D.Fact]): Coll.List[D.Fact] = sv match +def Flow.escFacts(sv: Coll.List[Flow.Src], e: I64, line: I64, fs: Coll.List[D.Fact]): Coll.List[D.Fact] = sv match case Coll.Nil => fs case Coll.Cons(s, rest) => s match case Flow.SCap(c) => Flow.escFacts(rest, e, line, Coll.Cons(Flow.fEscCap(e, c, line), fs)) case Flow.SVar(y) => Flow.escFacts(rest, e, line, Coll.Cons(Flow.fEscVar(e, y, line), fs)) // close(e, c) for every capability of inner that is not in outer (the block's own, innermost first) -def Flow.closes {r: Region} (inner: Coll.List[Flow.Cap], outer: Coll.List[Flow.Cap], e: I64, fs: Coll.List[D.Fact]): Coll.List[D.Fact] = +def Flow.closes(inner: Coll.List[Flow.Cap], outer: Coll.List[Flow.Cap], e: I64, fs: Coll.List[D.Fact]): Coll.List[D.Fact] = if Coll.length(inner) <= Coll.length(outer) then fs else inner match case Coll.Nil => fs @@ -870,13 +870,13 @@ def Flow.closes {r: Region} (inner: Coll.List[Flow.Cap], outer: Coll.List[Flow.C val Flow.Cap(_, id, _, _) = c Flow.closes(rest, outer, e, Coll.Cons(Flow.fClose(e, id), fs)) -def Flow.stmts {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, ss: Coll.List[Ast.Stmt]): Flow.At = ss match +def Flow.stmts(cx: Flow.Cx, st: Flow.St, p: I64, ss: Coll.List[Ast.Stmt]): Flow.At = ss match case Coll.Nil => Flow.At(st, p) case Coll.Cons(s, rest) => val Flow.At(st2, p2) = Flow.stmt(cx, st, p, s) Flow.stmts(cx, st2, p2, rest) -def Flow.stmt {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, s: Ast.Stmt): Flow.At = s match +def Flow.stmt(cx: Flow.Cx, st: Flow.St, p: I64, s: Ast.Stmt): Flow.At = s match case Ast.Val(_, x, ann, e) => Flow.bindVal(cx, Flow.needs(cx, st, x, ann), p, x, e) case Ast.Var(_, x, _, e) => Flow.bindVal(cx, st, p, x, e) case Ast.Do(e) => Flow.expr(cx, st, p, e) @@ -893,7 +893,7 @@ def Flow.stmt {r: Region} (cx: Flow.Cx, st: Flow.St, p: I64, s: Ast.Stmt): Flow. Flow.At(Flow.add(Flow.add(st4, Flow.fCapLine(id, line)), Flow.fHandle(pa, id)), pa) // ── the protocols as facts: transitions, end states (an end state, or a state whose drop op reaches one), states ── -def Flow.protoFacts {r: Region} (ps: Coll.List[Ast.Proto], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = ps match +def Flow.protoFacts(ps: Coll.List[Ast.Proto], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = ps match case Coll.Nil => fs case Coll.Cons(p, rest) => val Ast.Proto(_, name, states, start, ends, dropOp, ops, _) = p @@ -901,19 +901,19 @@ def Flow.protoFacts {r: Region} (ps: Coll.List[Ast.Proto], fs: Coll.List[D.Fact] val fs2 = Flow.stateFacts(name, start, states, ends, dropOp, ops, fs1) Flow.protoFacts(rest, fs2) -def Flow.opFacts {r: Region} (proto: Sym.Sym, ops: Coll.List[Ast.Op], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = ops match +def Flow.opFacts(proto: Sym.Sym, ops: Coll.List[Ast.Op], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = ops match case Coll.Nil => fs case Coll.Cons(o, rest) => val Ast.Op(_, name, _, _, trs) = o Flow.opFacts(proto, rest, Flow.transFacts(proto, name, trs, fs)) -def Flow.transFacts {r: Region} (proto: Sym.Sym, op: Sym.Sym, trs: Coll.List[Ast.Trans], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = trs match +def Flow.transFacts(proto: Sym.Sym, op: Sym.Sym, trs: Coll.List[Ast.Trans], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = trs match case Coll.Nil => fs case Coll.Cons(t, rest) => val Ast.Trans(a, b) = t Flow.transFacts(proto, op, rest, Coll.Cons(Flow.fTr(proto, op, a, b), fs)) -def Flow.stateFacts {r: Region} (proto: Sym.Sym, start: Sym.Sym, states: Coll.List[Sym.Sym], ends: Coll.List[Sym.Sym], dropOp: Coll.Option[Sym.Sym], ops: Coll.List[Ast.Op], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = states match +def Flow.stateFacts(proto: Sym.Sym, start: Sym.Sym, states: Coll.List[Sym.Sym], ends: Coll.List[Sym.Sym], dropOp: Coll.Option[Sym.Sym], ops: Coll.List[Ast.Op], fs: Coll.List[D.Fact]): Coll.List[D.Fact] = states match case Coll.Nil => Coll.Cons(Flow.fStart(proto, start), fs) case Coll.Cons(s, rest) => val fs1 = Coll.Cons(Flow.fSame(s, s), fs) @@ -945,22 +945,22 @@ def Flow.transReaches(s: Sym.Sym, trs: Coll.List[Ast.Trans], ends: Coll.List[Sym if Sym.eq(a, s) && Flow.memberSym(b, ends) then true else Flow.transReaches(s, rest, ends) // ── the rule library (variables are numbered per rule) ── -def Flow.v {r: Region} (n: I64): D.Arg = D.AVar(n) -def Flow.atom {r: Region} (rel: Flow.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Flow.relSym(rel), Flow.vars(xs)) -def Flow.vars {r: Region} (xs: Coll.List[I64]): Coll.List[D.Arg] = xs match +def Flow.v(n: I64): D.Arg = D.AVar(n) +def Flow.atom(rel: Flow.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Flow.relSym(rel), Flow.vars(xs)) +def Flow.vars(xs: Coll.List[I64]): Coll.List[D.Arg] = xs match case Coll.Nil => Coll.Nil case Coll.Cons(x, rest) => Coll.Cons(Flow.v(x), Flow.vars(rest)) -def Flow.l1 [A: Type] {r: Region} (a: A): Coll.List[A] = Coll.Cons(a, Coll.Nil) -def Flow.l2 [A: Type] {r: Region} (a: A, b: A): Coll.List[A] = Coll.Cons(a, Flow.l1(b)) -def Flow.l3 [A: Type] {r: Region} (a: A, b: A, c: A): Coll.List[A] = Coll.Cons(a, Flow.l2(b, c)) -def Flow.l4 [A: Type] {r: Region} (a: A, b: A, c: A, d: A): Coll.List[A] = Coll.Cons(a, Flow.l3(b, c, d)) -def Flow.l5 [A: Type] {r: Region} (a: A, b: A, c: A, d: A, e: A): Coll.List[A] = Coll.Cons(a, Flow.l4(b, c, d, e)) -def Flow.pos {r: Region} (rel: Flow.Rel, xs: Coll.List[I64]): D.Lit = D.Pos(Flow.atom(rel, xs)) -def Flow.neg {r: Region} (rel: Flow.Rel, xs: Coll.List[I64]): D.Lit = D.Neg(Flow.atom(rel, xs)) -def Flow.rule {r: Region} (rel: Flow.Rel, xs: Coll.List[I64], body: Coll.List[D.Lit]): D.Rule = D.Rule(Flow.atom(rel, xs), body) +def Flow.l1 [A: Type] (a: A): Coll.List[A] = Coll.Cons(a, Coll.Nil) +def Flow.l2 [A: Type] (a: A, b: A): Coll.List[A] = Coll.Cons(a, Flow.l1(b)) +def Flow.l3 [A: Type] (a: A, b: A, c: A): Coll.List[A] = Coll.Cons(a, Flow.l2(b, c)) +def Flow.l4 [A: Type] (a: A, b: A, c: A, d: A): Coll.List[A] = Coll.Cons(a, Flow.l3(b, c, d)) +def Flow.l5 [A: Type] (a: A, b: A, c: A, d: A, e: A): Coll.List[A] = Coll.Cons(a, Flow.l4(b, c, d, e)) +def Flow.pos(rel: Flow.Rel, xs: Coll.List[I64]): D.Lit = D.Pos(Flow.atom(rel, xs)) +def Flow.neg(rel: Flow.Rel, xs: Coll.List[I64]): D.Lit = D.Neg(Flow.atom(rel, xs)) +def Flow.rule(rel: Flow.Rel, xs: Coll.List[I64], body: Coll.List[D.Lit]): D.Rule = D.Rule(Flow.atom(rel, xs), body) // variables: p 0, q 1, w 2, c 3, s 4, t 5, op 6, proto 7, line 8, name 9 -def Flow.rules {r: Region} (): Coll.List[D.Rule] = +def Flow.rules(): Coll.List[D.Rule] = // a handle puts its capability in the start state of its protocol (world 0: one world until facts with variables) val enter = Flow.rule(Flow.RAt, Flow.l4(0, 2, 3, 4), Flow.l4(Flow.pos(Flow.RHandle, Flow.l2(0, 3)), Flow.pos(Flow.RCapOf, Flow.l2(3, 7)), Flow.pos(Flow.RStart, Flow.l2(7, 4)), Flow.pos(Flow.RWorld, Flow.l1(2)))) // frame along control edges; a capability ends at the block end that closes it @@ -981,7 +981,7 @@ def Flow.rules {r: Region} (): Coll.List[D.Rule] = Coll.revOnto(Coll.rev(f1), Coll.revOnto(Coll.rev(Flow.callRules()), Flow.capsRules())) // R2 for calls (flow-design.md): the call point p is its own kind; j 10, m 11, n 12, i 13 -def Flow.callRules {r: Region} (): Coll.List[D.Rule] = +def Flow.callRules(): Coll.List[D.Rule] = // a bound capability is touched: no frame across the call, its state comes from the solution that fits val touchB = Flow.rule(Flow.RTouch, Flow.l2(0, 3), Flow.l1(Flow.pos(Flow.RBind, Flow.l3(0, 11, 3)))) val cframe = Flow.rule(Flow.RAt, Flow.l4(1, 2, 3, 4), Flow.l3(Flow.pos(Flow.RCStep, Flow.l2(0, 1)), Flow.pos(Flow.RAt, Flow.l4(0, 2, 3, 4)), Flow.neg(Flow.RTouch, Flow.l2(0, 3)))) @@ -1005,7 +1005,7 @@ def Flow.callRules {r: Region} (): Coll.List[D.Rule] = // the facts of fn f: its walk from a first point, the protocols. each solution j of f's entry facts is world j: the // capability binders enter point 0 in their pre states and must leave the body in their post states (s1/check.srs:498); // no binders: one world. no solution: the def has none (NoSol) -def Flow.facts {r: Region} (cx: Flow.Cx, f: Ast.Fn): Coll.List[D.Fact] = +def Flow.facts(cx: Flow.Cx, f: Ast.Fn): Coll.List[D.Fact] = val Ast.Fn(line, name, gs, _, _, exit, body) = f val Flow.Cx(ps, _, _, _, _, _) = cx val bs = Flow.capBs(ps, gs, 0, Coll.Nil) @@ -1034,7 +1034,7 @@ enum Flow.End: case Flow.Exit(e: I64) // each capability binder is a capability in scope from point 0, named and lined by the def -def Flow.binderCaps {r: Region} (st: Flow.St, bs: Coll.List[Flow.CapB], line: I64): Flow.St = bs match +def Flow.binderCaps(st: Flow.St, bs: Coll.List[Flow.CapB], line: I64): Flow.St = bs match case Coll.Nil => st case Coll.Cons(b, rest) => val Flow.CapB(x, _, proto) = b @@ -1044,7 +1044,7 @@ def Flow.binderCaps {r: Region} (st: Flow.St, bs: Coll.List[Flow.CapB], line: I6 Flow.binderCaps(Flow.add(Flow.add(Flow.add(st2, Flow.fCapOf(id, proto)), Flow.fCapName(id, x)), Flow.fCapLine(id, line)), rest, line) // per solution j: world(j) and enter(0, j, c, pre) at the entry, want(e, j, c, post) at the exit -def Flow.worlds {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, caps: Coll.List[Flow.Cap], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], as: Coll.List[Coll.List[Flow.VS]], j: I64, end: Flow.End): Flow.St = as match +def Flow.worlds(ps: Coll.List[Ast.Proto], st: Flow.St, caps: Coll.List[Flow.Cap], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], as: Coll.List[Coll.List[Flow.VS]], j: I64, end: Flow.End): Flow.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => val st1 = end match @@ -1052,7 +1052,7 @@ def Flow.worlds {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, caps: Coll.L case Flow.Exit(_) => st Flow.worlds(ps, Flow.worldCaps(ps, st1, caps, bs, atoms, exit, a, j, end), caps, bs, atoms, exit, rest, j + 1, end) -def Flow.worldCaps {r: Region} (ps: Coll.List[Ast.Proto], st: Flow.St, caps: Coll.List[Flow.Cap], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], a: Coll.List[Flow.VS], j: I64, end: Flow.End): Flow.St = caps match +def Flow.worldCaps(ps: Coll.List[Ast.Proto], st: Flow.St, caps: Coll.List[Flow.Cap], bs: Coll.List[Flow.CapB], atoms: Coll.List[Ast.Atom], exit: Coll.List[Ast.Atom], a: Coll.List[Flow.VS], j: I64, end: Flow.End): Flow.St = caps match case Coll.Nil => st case Coll.Cons(c, crest) => bs match case Coll.Nil => st @@ -1077,18 +1077,18 @@ enum Flow.Read: case Flow.Got(cs: Coll.List[Flow.Clash]) case Flow.IllTyped(rel: Sym.Sym) -def Flow.clashes {r: Region} (m: D.Model, k: Flow.Kind, prev: Flow.Read): Flow.Read = prev match +def Flow.clashes(m: D.Model, k: Flow.Kind, prev: Flow.Read): Flow.Read = prev match case Flow.IllTyped(_) => prev case Flow.Got(acc) => Flow.clashList(k, D.tuples(m, Flow.relSym(Flow.relOf(k))), acc) -def Flow.clashList {r: Region} (k: Flow.Kind, ts: Coll.List[Coll.List[D.Val]], acc: Coll.List[Flow.Clash]): Flow.Read = ts match +def Flow.clashList(k: Flow.Kind, ts: Coll.List[Coll.List[D.Val]], acc: Coll.List[Flow.Clash]): Flow.Read = ts match case Coll.Nil => Flow.Got(acc) case Coll.Cons(t, rest) => Flow.clashOf(k, t) match case Coll.None => Flow.IllTyped(Flow.relSym(Flow.relOf(k))) case Coll.Some(c) => Flow.clashList(k, rest, Coll.Cons(c, acc)) // a clash tuple is (line, capability name), exactly two values -def Flow.clashOf {r: Region} (k: Flow.Kind, t: Coll.List[D.Val]): Coll.Option[Flow.Clash] = t match +def Flow.clashOf(k: Flow.Kind, t: Coll.List[D.Val]): Coll.Option[Flow.Clash] = t match case Coll.Cons(a, rest) => rest match case Coll.Cons(b, more) => more match case Coll.Nil => Flow.clashLN(k, a, b) @@ -1096,17 +1096,17 @@ def Flow.clashOf {r: Region} (k: Flow.Kind, t: Coll.List[D.Val]): Coll.Option[Fl case Coll.Nil => Coll.None case Coll.Nil => Coll.None -def Flow.clashLN {r: Region} (k: Flow.Kind, a: D.Val, b: D.Val): Coll.Option[Flow.Clash] = a match +def Flow.clashLN(k: Flow.Kind, a: D.Val, b: D.Val): Coll.Option[Flow.Clash] = a match case D.VInt(line) => b match case D.VSym(name) => Coll.Some(Flow.make(k, line, name)) case D.VInt(_) => Coll.None case D.VSym(_) => Coll.None // every clash relation of a solved model, read -def Flow.readAll {r: Region} (m: D.Model): Flow.Read = +def Flow.readAll(m: D.Model): Flow.Read = Flow.clashes(m, Flow.KStale, Flow.clashes(m, Flow.KStuck, Flow.clashes(m, Flow.KSplit, Flow.clashes(m, Flow.KUnended, Flow.clashes(m, Flow.KAmbig, Flow.clashes(m, Flow.KExitBad, Flow.clashes(m, Flow.KNoSol, Flow.clashes(m, Flow.KDead, Flow.clashes(m, Flow.KEscape, Flow.Got(Coll.Nil)))))))))) -def Flow.make {r: Region} (k: Flow.Kind, line: I64, name: Sym.Sym): Flow.Clash = k match +def Flow.make(k: Flow.Kind, line: I64, name: Sym.Sym): Flow.Clash = k match case Flow.KStuck => Flow.Stuck(line, name) case Flow.KSplit => Flow.Split(line, name) case Flow.KUnended => Flow.Unended(line, name) @@ -1117,13 +1117,13 @@ def Flow.make {r: Region} (k: Flow.Kind, line: I64, name: Sym.Sym): Flow.Clash = case Flow.KEscape => Flow.Escape(line, name) case Flow.KStale => Flow.Stale(line, name) -def Flow.verdictOf {r: Region} (rd: Flow.Read): Flow.Verdict = rd match +def Flow.verdictOf(rd: Flow.Read): Flow.Verdict = rd match case Flow.IllTyped(rel) => Flow.RulesIllTyped(rel) case Flow.Got(cs) => cs match case Coll.Nil => Flow.Ok case Coll.Cons(_, _) => Flow.Bad(cs) -def Flow.check {r: Region} (cx: Flow.Cx, f: Ast.Fn): Flow.Verdict = +def Flow.check(cx: Flow.Cx, f: Ast.Fn): Flow.Verdict = D.solve(Flow.rules(), Flow.facts(cx, f)) match case D.Solved(m) => Flow.verdictOf(Flow.readAll(m)) case D.Unsafe(rel) => Flow.RulesUnsafe(rel) @@ -1131,7 +1131,7 @@ def Flow.check {r: Region} (cx: Flow.Cx, f: Ast.Fn): Flow.Verdict = // CAPS (R3): what each name holds flows along every edge; an assignment replaces it (strong update), a join is the union, // a loop reaches its fixpoint. x 14, y 15 -def Flow.capsRules {r: Region} (): Coll.List[D.Rule] = +def Flow.capsRules(): Coll.List[D.Rule] = val e1 = Flow.rule(Flow.REdge, Flow.l2(0, 1), Flow.l1(Flow.pos(Flow.RFlow, Flow.l2(0, 1)))) val e2 = Flow.rule(Flow.REdge, Flow.l2(0, 1), Flow.l1(Flow.pos(Flow.RStep, Flow.l4(0, 1, 3, 6)))) val e3 = Flow.rule(Flow.REdge, Flow.l2(0, 1), Flow.l1(Flow.pos(Flow.RCStep, Flow.l2(0, 1)))) @@ -1150,7 +1150,7 @@ def Flow.capsRules {r: Region} (): Coll.List[D.Rule] = // x: T where T's decl has with b a {} capability of protocol P: x needs the one P in scope in state S at // every read (vic-jxk type facts); sameS gives the states of P to compare -def Flow.needs {r: Region} (cx: Flow.Cx, st: Flow.St, x: Sym.Sym, ann: Coll.Option[Ast.Ty]): Flow.St = ann match +def Flow.needs(cx: Flow.Cx, st: Flow.St, x: Sym.Sym, ann: Coll.Option[Ast.Ty]): Flow.St = ann match case Coll.None => st case Coll.Some(t) => val Ast.Ty(_, tn, _, _, _) = t @@ -1161,20 +1161,20 @@ def Flow.needs {r: Region} (cx: Flow.Cx, st: Flow.St, x: Sym.Sym, ann: Coll.Opti val Ast.TypeDecl(_, _, gs, _, _) = td Flow.needAtoms(ps, Ty.evidence(gs, Coll.Nil), x, Flow.entryAtoms(gs, Coll.Nil), st) -def Flow.typeDecl {r: Region} (ts: Coll.List[Ast.TypeDecl], n: Sym.Sym): Coll.Option[Ast.TypeDecl] = ts match +def Flow.typeDecl(ts: Coll.List[Ast.TypeDecl], n: Sym.Sym): Coll.Option[Ast.TypeDecl] = ts match case Coll.Nil => Coll.None case Coll.Cons(td, rest) => val Ast.TypeDecl(_, m, _, _, _) = td if Sym.eq(m, n) then Coll.Some(td) else Flow.typeDecl(rest, n) -def Flow.needAtoms {r: Region} (ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder], x: Sym.Sym, as: Coll.List[Ast.Atom], st: Flow.St): Flow.St = as match +def Flow.needAtoms(ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder], x: Sym.Sym, as: Coll.List[Ast.Atom], st: Flow.St): Flow.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => val Ast.Atom(_, rel, args) = a val st2 = if Str.eq(Sym.str(rel), "at") then Flow.needAt(ps, ev, x, args, st) else st Flow.needAtoms(ps, ev, x, rest, st2) -def Flow.needAt {r: Region} (ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder], x: Sym.Sym, args: Coll.List[Ast.Term], st: Flow.St): Flow.St = Fx.nth(args, 0) match +def Flow.needAt(ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder], x: Sym.Sym, args: Coll.List[Ast.Term], st: Flow.St): Flow.St = Fx.nth(args, 0) match case Coll.None => st case Coll.Some(b) => Fx.nth(args, 1) match case Coll.None => st @@ -1188,19 +1188,19 @@ def Flow.needAt {r: Region} (ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder] val Flow.Cap(_, id, _, _) = c Flow.sameStates(ps, p, Flow.add(st, Flow.fact3(Flow.RNeed, Flow.s(x), Flow.i(id), Flow.s(s)))) -def Flow.binderProto {r: Region} (bs: Coll.List[Ast.Binder], b: Sym.Sym): Coll.Option[Sym.Sym] = bs match +def Flow.binderProto(bs: Coll.List[Ast.Binder], b: Sym.Sym): Coll.Option[Sym.Sym] = bs match case Coll.Nil => Coll.None case Coll.Cons(x, rest) => val Ast.Binder(_, n, t) = x val Ast.Ty(_, tn, _, _, _) = t if Sym.eq(n, b) then Coll.Some(tn) else Flow.binderProto(rest, b) -def Flow.sameStates {r: Region} (ps: Coll.List[Ast.Proto], p: Sym.Sym, st: Flow.St): Flow.St = ps match +def Flow.sameStates(ps: Coll.List[Ast.Proto], p: Sym.Sym, st: Flow.St): Flow.St = ps match case Coll.Nil => st case Coll.Cons(pr, rest) => val Ast.Proto(_, n, states, _, _, _, _, _) = pr if Sym.eq(n, p) then Flow.sameAll(states, st) else Flow.sameStates(rest, p, st) -def Flow.sameAll {r: Region} (ss: Coll.List[Sym.Sym], st: Flow.St): Flow.St = ss match +def Flow.sameAll(ss: Coll.List[Sym.Sym], st: Flow.St): Flow.St = ss match case Coll.Nil => st case Coll.Cons(s, rest) => Flow.sameAll(rest, Flow.add(st, Flow.fact2(Flow.RSameS, Flow.s(s), Flow.s(s)))) diff --git a/s2/hash.srs b/s2/hash.srs index c5b0225e..4e0cc2ec 100644 --- a/s2/hash.srs +++ b/s2/hash.srs @@ -8,19 +8,19 @@ enum Hs.Dg: def Hs.lane(h: I64, x: I64, p: I64, m: I64): I64 = if x >= 0 && x < 2147483648 then (h * p + x) % m else (h * p + ((x % m) + m) % m) % m -def Hs.add {r: Region} (g: Hs.Dg, x: I64): Hs.Dg = +def Hs.add(g: Hs.Dg, x: I64): Hs.Dg = val Hs.Dg(a, b, c, d) = g Hs.Dg(Hs.lane(a, x, 1000000007, 4294967291), Hs.lane(b, x, 998244353, 4294967279), Hs.lane(c, x, 754974721, 4294967231), Hs.lane(d, x, 167772161, 4294967197)) // a string: its length, then its bytes, 3 per step (the length keeps it prefix-free) -def Hs.str {r: Region} (g: Hs.Dg, s: Str): Hs.Dg = Hs.bytes(Hs.add(g, Str.len(s)), s, 0, Str.len(s)) +def Hs.str(g: Hs.Dg, s: Str): Hs.Dg = Hs.bytes(Hs.add(g, Str.len(s)), s, 0, Str.len(s)) -def Hs.bytes {r: Region} (g: Hs.Dg, s: Str, i: I64, n: I64): Hs.Dg = +def Hs.bytes(g: Hs.Dg, s: Str, i: I64, n: I64): Hs.Dg = if i + 2 < n then Hs.bytes(Hs.add(g, Str.at(s, i) + 256 * Str.at(s, i + 1) + 65536 * Str.at(s, i + 2)), s, i + 3, n) else if i < n then Hs.bytes(Hs.add(g, Str.at(s, i)), s, i + 1, n) else g -def Hs.dg {r: Region} (g: Hs.Dg, h: Hs.Dg): Hs.Dg = +def Hs.dg(g: Hs.Dg, h: Hs.Dg): Hs.Dg = val Hs.Dg(a, b, c, d) = h Hs.add(Hs.add(Hs.add(Hs.add(g, a), b), c), d) @@ -42,7 +42,7 @@ enum Hs.Where: case Hs.Local case Hs.Global -def Hs.name {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, x: Sym.Sym, w: Hs.Where): Hs.Dg = +def Hs.name(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, x: Sym.Sym, w: Hs.Where): Hs.Dg = val Hs.Cx(hm, mem, pass) = cx val pos: Coll.Option[I64] = w match case Hs.Local => Hs.index(env, x, 0) @@ -57,7 +57,7 @@ def Hs.name {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, x: Sym.Sy case Coll.Some(h) => Hs.dg(Hs.add(g, 4), h) case Coll.None => Hs.str(Hs.add(g, 2), Sym.str(x)) -def Hs.index {r: Region} (xs: Coll.List[Sym.Sym], x: Sym.Sym, i: I64): Coll.Option[I64] = xs match +def Hs.index(xs: Coll.List[Sym.Sym], x: Sym.Sym, i: I64): Coll.Option[I64] = xs match case Coll.Nil => Coll.None case Coll.Cons(y, rest) => if Sym.eq(x, y) then Coll.Some(i) else Hs.index(rest, x, i + 1) @@ -65,11 +65,11 @@ def Hs.index {r: Region} (xs: Coll.List[Sym.Sym], x: Sym.Sym, i: I64): Coll.Opti enum Hs.W: case Hs.W(g: Hs.Dg, env: Coll.List[Sym.Sym]) -def Hs.ty {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, t: Ast.Ty): Hs.Dg = +def Hs.ty(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, t: Ast.Ty): Hs.Dg = val Ast.Ty(_, n, args, _, vals) = t Hs.exprs(cx, env, Hs.tys(cx, env, Hs.name(cx, env, Hs.add(Hs.add(g, 9), Coll.length(args)), n, Hs.Local), args), vals) -def Hs.tys {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, ts: Coll.List[Ast.Ty]): Hs.Dg = ts match +def Hs.tys(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, ts: Coll.List[Ast.Ty]): Hs.Dg = ts match case Coll.Nil => g case Coll.Cons(t, rest) => Hs.tys(cx, env, Hs.ty(cx, env, g, t), rest) @@ -88,7 +88,7 @@ def Hs.binOp(op: Ast.BinOp): I64 = op match case Ast.And => 11 case Ast.Or => 12 -def Hs.expr {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, e: Ast.Expr): Hs.Dg = e match +def Hs.expr(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, e: Ast.Expr): Hs.Dg = e match case Ast.Int(_, v) => Hs.add(Hs.add(g, 32), v) case Ast.Bool(_, v) => Hs.add(Hs.add(g, 33), if v then 1 else 0) case Ast.Str(_, s) => Hs.str(Hs.add(g, 34), s) @@ -117,16 +117,16 @@ def Hs.expr {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, e: Ast.Ex case Ast.Exists => 48 Hs.expr(cx, Coll.Cons(x, env), Hs.ty(cx, env, Hs.add(g, k), t), b) -def Hs.exprs {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, xs: Coll.List[Ast.Expr]): Hs.Dg = xs match +def Hs.exprs(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, xs: Coll.List[Ast.Expr]): Hs.Dg = xs match case Coll.Nil => g case Coll.Cons(x, rest) => Hs.exprs(cx, env, Hs.expr(cx, env, g, x), rest) -def Hs.names {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, xs: Coll.List[Sym.Sym]): Hs.Dg = xs match +def Hs.names(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, xs: Coll.List[Sym.Sym]): Hs.Dg = xs match case Coll.Nil => g case Coll.Cons(x, rest) => Hs.names(cx, env, Hs.name(cx, env, g, x, Hs.Local), rest) // an arm: its case (a ref), its binders bound in its body (each one, `_` too: positions stay fixed) -def Hs.arms {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, as: Coll.List[Ast.Arm]): Hs.Dg = as match +def Hs.arms(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, as: Coll.List[Ast.Arm]): Hs.Dg = as match case Coll.Nil => g case Coll.Cons(a, rest) => val Ast.Arm(_, p, b) = a @@ -135,7 +135,7 @@ def Hs.arms {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, as: Coll. case Ast.PCase(c, binds) => Hs.expr(cx, Coll.revOnto(binds, env), Hs.add(Hs.name(cx, env, Hs.add(g, 49), c, Hs.Global), Coll.length(binds)), b) Hs.arms(cx, env, g2, rest) -def Hs.stmts {r: Region} (cx: Hs.Cx, w: Hs.W, ss: Coll.List[Ast.Stmt]): Hs.W = ss match +def Hs.stmts(cx: Hs.Cx, w: Hs.W, ss: Coll.List[Ast.Stmt]): Hs.W = ss match case Coll.Nil => w case Coll.Cons(s, rest) => val Hs.W(g, env) = w @@ -151,19 +151,19 @@ def Hs.stmts {r: Region} (cx: Hs.Cx, w: Hs.W, ss: Coll.List[Ast.Stmt]): Hs.W = s Hs.W(Hs.expr(cx, env, Hs.add(Hs.add(g, 56), c), e), env) Hs.stmts(cx, w2, rest) -def Hs.ann {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, a: Coll.Option[Ast.Ty]): Hs.Dg = a match +def Hs.ann(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, a: Coll.Option[Ast.Ty]): Hs.Dg = a match case Coll.None => Hs.add(g, 0) case Coll.Some(t) => Hs.ty(cx, env, Hs.add(g, 1), t) // binders in order: each type sees the ones before, then its name is the next position -def Hs.binders {r: Region} (cx: Hs.Cx, w: Hs.W, bs: Coll.List[Ast.Binder]): Hs.W = bs match +def Hs.binders(cx: Hs.Cx, w: Hs.W, bs: Coll.List[Ast.Binder]): Hs.W = bs match case Coll.Nil => w case Coll.Cons(b, rest) => val Hs.W(g, env) = w val Ast.Binder(_, x, t) = b Hs.binders(cx, Hs.W(Hs.ty(cx, env, Hs.add(g, 28), t), Coll.Cons(x, env)), rest) -def Hs.groups {r: Region} (cx: Hs.Cx, w: Hs.W, gs: Coll.List[Ast.Group]): Hs.W = gs match +def Hs.groups(cx: Hs.Cx, w: Hs.W, gs: Coll.List[Ast.Group]): Hs.W = gs match case Coll.Nil => w case Coll.Cons(gr, rest) => val Hs.W(g, env) = w @@ -173,13 +173,13 @@ def Hs.groups {r: Region} (cx: Hs.Cx, w: Hs.W, gs: Coll.List[Ast.Group]): Hs.W = case Ast.Facts(as) => Hs.W(Hs.atoms(cx, env, Hs.add(g, 29), as), env) Hs.groups(cx, w2, rest) -def Hs.atoms {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, as: Coll.List[Ast.Atom]): Hs.Dg = as match +def Hs.atoms(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, as: Coll.List[Ast.Atom]): Hs.Dg = as match case Coll.Nil => g case Coll.Cons(a, rest) => val Ast.Atom(_, rel, ts) = a Hs.atoms(cx, env, Hs.terms(cx, env, Hs.str(Hs.add(g, Coll.length(ts)), Sym.str(rel)), ts), rest) -def Hs.terms {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, ts: Coll.List[Ast.Term]): Hs.Dg = ts match +def Hs.terms(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, ts: Coll.List[Ast.Term]): Hs.Dg = ts match case Coll.Nil => g case Coll.Cons(t, rest) => val g2 = t match @@ -187,7 +187,7 @@ def Hs.terms {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, ts: Coll case Ast.TNum(v) => Hs.add(Hs.add(g, 31), v) Hs.terms(cx, env, g2, rest) -def Hs.clauses {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, cs: Coll.List[Ast.Clause]): Hs.Dg = cs match +def Hs.clauses(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, cs: Coll.List[Ast.Clause]): Hs.Dg = cs match case Coll.Nil => g case Coll.Cons(c, rest) => val g2 = c match @@ -205,7 +205,7 @@ def Hs.clauses {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, cs: Co Hs.clauses(cx, env, g2, rest) // a def: its groups, params, result, exit facts, then its body and clauses (all see the params) -def Hs.fn {r: Region} (cx: Hs.Cx, f: Ast.Fn): Hs.Dg = +def Hs.fn(cx: Hs.Cx, f: Ast.Fn): Hs.Dg = val Ast.Fn(_, _, gs, ps, ret, exit, body) = f val Hs.W(g1, env1) = Hs.groups(cx, Hs.W(Hs.add(Hs.Dg(1, 2, 3, 4), 12), Coll.Nil), gs) val Hs.W(g2, env2) = Hs.binders(cx, Hs.W(Hs.add(g1, Coll.length(ps)), env1), ps) @@ -216,12 +216,12 @@ def Hs.fn {r: Region} (cx: Hs.Cx, f: Ast.Fn): Hs.Dg = case Ast.Spec(cs, e) => Hs.clauses(cx, env2, Hs.expr(cx, env2, Hs.add(g3, 72), e), cs) // an enum: its groups, then each case's fields (the field and case names are metadata: positions only) -def Hs.enum_ {r: Region} (cx: Hs.Cx, e: Ast.Enum): Hs.Dg = +def Hs.enum_(cx: Hs.Cx, e: Ast.Enum): Hs.Dg = val Ast.Enum(_, _, gs, cases) = e val Hs.W(g1, env1) = Hs.groups(cx, Hs.W(Hs.add(Hs.Dg(1, 2, 3, 4), 13), Coll.Nil), gs) Hs.cases(cx, env1, Hs.add(g1, Coll.length(cases)), cases) -def Hs.cases {r: Region} (cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, cs: Coll.List[Ast.Case]): Hs.Dg = cs match +def Hs.cases(cx: Hs.Cx, env: Coll.List[Sym.Sym], g: Hs.Dg, cs: Coll.List[Ast.Case]): Hs.Dg = cs match case Coll.Nil => g case Coll.Cons(c, rest) => val Ast.Case(_, _, fs) = c @@ -241,12 +241,12 @@ def Hs.dName(d: Hs.D): Sym.Sym = d match val Ast.Enum(_, n, _, _) = e n -def Hs.hashD {r: Region} (cx: Hs.Cx, d: Hs.D): Hs.Dg = d match +def Hs.hashD(cx: Hs.Cx, d: Hs.D): Hs.Dg = d match case Hs.DF(f) => Hs.fn(cx, f) case Hs.DE(e) => Hs.enum_(cx, e) // the names that d mentions (an over-approximation is fine: only the SCC split depends on it, and only names in ds count) -def Hs.refs {r: Region} (d: Hs.D, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = d match +def Hs.refs(d: Hs.D, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = d match case Hs.DF(f) => val Ast.Fn(_, _, _, _, _, _, body) = f body match @@ -257,27 +257,27 @@ def Hs.refs {r: Region} (d: Hs.D, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = val Ast.Enum(_, _, _, cases) = e Hs.caseRefs(cases, acc) -def Hs.caseRefs {r: Region} (cs: Coll.List[Ast.Case], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = cs match +def Hs.caseRefs(cs: Coll.List[Ast.Case], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = cs match case Coll.Nil => acc case Coll.Cons(c, rest) => val Ast.Case(_, _, fs) = c Hs.caseRefs(rest, Hs.binderRefs(fs, acc)) -def Hs.binderRefs {r: Region} (bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Hs.binderRefs(bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b Hs.binderRefs(rest, Hs.tyRefs(t, acc)) -def Hs.tyRefs {r: Region} (t: Ast.Ty, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = +def Hs.tyRefs(t: Ast.Ty, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = val Ast.Ty(_, n, args, _, _) = t Hs.tysRefs(args, Coll.Cons(n, acc)) -def Hs.tysRefs {r: Region} (ts: Coll.List[Ast.Ty], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ts match +def Hs.tysRefs(ts: Coll.List[Ast.Ty], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ts match case Coll.Nil => acc case Coll.Cons(t, rest) => Hs.tysRefs(rest, Hs.tyRefs(t, acc)) -def Hs.eRefs {r: Region} (e: Ast.Expr, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = e match +def Hs.eRefs(e: Ast.Expr, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = e match case Ast.Name(_, x) => Coll.Cons(x, acc) case Ast.Call(_, f, _, _, xs) => Hs.esRefs(xs, Coll.Cons(f, acc)) case Ast.Method(_, _, _, xs) => Hs.esRefs(xs, acc) @@ -291,17 +291,17 @@ def Hs.eRefs {r: Region} (e: Ast.Expr, acc: Coll.List[Sym.Sym]): Coll.List[Sym.S case Ast.Quant(_, _, _, _, b) => Hs.eRefs(b, acc) case _ => acc -def Hs.esRefs {r: Region} (xs: Coll.List[Ast.Expr], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match +def Hs.esRefs(xs: Coll.List[Ast.Expr], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Hs.esRefs(rest, Hs.eRefs(x, acc)) -def Hs.armRefs {r: Region} (as: Coll.List[Ast.Arm], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = as match +def Hs.armRefs(as: Coll.List[Ast.Arm], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = as match case Coll.Nil => acc case Coll.Cons(a, rest) => val Ast.Arm(_, _, b) = a Hs.armRefs(rest, Hs.eRefs(b, acc)) -def Hs.stmtRefs {r: Region} (ss: Coll.List[Ast.Stmt], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ss match +def Hs.stmtRefs(ss: Coll.List[Ast.Stmt], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ss match case Coll.Nil => acc case Coll.Cons(s, rest) => val acc2 = s match @@ -317,23 +317,23 @@ enum Hs.T: case Hs.T(next: I64, idx: Coll.SMap[I64], low: Coll.SMap[I64], stack: Coll.List[Sym.Sym], on: Coll.SMap[Bool], comps: Coll.List[Coll.List[Sym.Sym]]) // the edges of each decl: only names of decls in the map count -def Hs.edges {r: Region} (dm: Coll.SMap[Hs.D], x: Sym.Sym): Coll.List[Sym.Sym] = Coll.sLookup(dm, x) match +def Hs.edges(dm: Coll.SMap[Hs.D], x: Sym.Sym): Coll.List[Sym.Sym] = Coll.sLookup(dm, x) match case Coll.None => Coll.Nil case Coll.Some(d) => Hs.inMap(dm, Hs.refs(d, Coll.Nil), Coll.Nil) -def Hs.inMap {r: Region} (dm: Coll.SMap[Hs.D], xs: Coll.List[Sym.Sym], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match +def Hs.inMap(dm: Coll.SMap[Hs.D], xs: Coll.List[Sym.Sym], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Coll.sLookup(dm, x) match case Coll.Some(_) => Hs.inMap(dm, rest, Coll.Cons(x, acc)) case Coll.None => Hs.inMap(dm, rest, acc) -def Hs.geti {r: Region} (m: Coll.SMap[I64], x: Sym.Sym): I64 = Coll.sLookup(m, x) match +def Hs.geti(m: Coll.SMap[I64], x: Sym.Sym): I64 = Coll.sLookup(m, x) match case Coll.Some(i) => i case Coll.None => 0 - 1 def Hs.min(a: I64, b: I64): I64 = if a < b then a else b -def Hs.visit {r: Region} (dm: Coll.SMap[Hs.D], v: Sym.Sym, t: Hs.T): Hs.T = +def Hs.visit(dm: Coll.SMap[Hs.D], v: Sym.Sym, t: Hs.T): Hs.T = val Hs.T(n, idx, low, st, on, cs) = t val t1 = Hs.T(n + 1, Coll.sInsert(idx, v, n), Coll.sInsert(low, v, n), Coll.Cons(v, st), Coll.sInsert(on, v, true), cs) val t2 = Hs.succs(dm, v, Hs.edges(dm, v), t1) @@ -343,7 +343,7 @@ def Hs.visit {r: Region} (dm: Coll.SMap[Hs.D], v: Sym.Sym, t: Hs.T): Hs.T = Hs.T(n2, idx2, low2, rest, on3, Coll.Cons(comp, cs2)) else t2 -def Hs.succs {r: Region} (dm: Coll.SMap[Hs.D], v: Sym.Sym, ws: Coll.List[Sym.Sym], t: Hs.T): Hs.T = ws match +def Hs.succs(dm: Coll.SMap[Hs.D], v: Sym.Sym, ws: Coll.List[Sym.Sym], t: Hs.T): Hs.T = ws match case Coll.Nil => t case Coll.Cons(w, rest) => val Hs.T(_, idx, _, _, on, _) = t @@ -360,14 +360,14 @@ enum Hs.Pop: case Hs.Pop(comp: Coll.List[Sym.Sym], rest: Coll.List[Sym.Sym], on: Coll.SMap[Bool]) // the stack down to v: one component (on-stack marks removed: set to false) -def Hs.pop {r: Region} (v: Sym.Sym, st: Coll.List[Sym.Sym], on: Coll.SMap[Bool], acc: Coll.List[Sym.Sym]): Hs.Pop = st match +def Hs.pop(v: Sym.Sym, st: Coll.List[Sym.Sym], on: Coll.SMap[Bool], acc: Coll.List[Sym.Sym]): Hs.Pop = st match case Coll.Nil => Hs.Pop(acc, Coll.Nil, on) case Coll.Cons(x, rest) => val on2 = Coll.sInsert(on, x, false) if Sym.eq(x, v) then Hs.Pop(Coll.Cons(x, acc), rest, on2) else Hs.pop(v, rest, on2, Coll.Cons(x, acc)) // the components, callees first (Tarjan emits each after the ones it reaches) -def Hs.comps {r: Region} (dm: Coll.SMap[Hs.D], order: Coll.List[Sym.Sym], t: Hs.T): Coll.List[Coll.List[Sym.Sym]] = order match +def Hs.comps(dm: Coll.SMap[Hs.D], order: Coll.List[Sym.Sym], t: Hs.T): Coll.List[Coll.List[Sym.Sym]] = order match case Coll.Nil => val Hs.T(_, _, _, _, _, cs) = t Coll.rev(cs) @@ -376,7 +376,7 @@ def Hs.comps {r: Region} (dm: Coll.SMap[Hs.D], order: Coll.List[Sym.Sym], t: Hs. Hs.comps(dm, rest, if Hs.geti(idx, x) < 0 then Hs.visit(dm, x, t) else t) // ── one component: a decl alone hashes alone; a cycle hashes as one, each member = (component, position) ── -def Hs.comp {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], ms: Coll.List[Sym.Sym]): Coll.SMap[Hs.Dg] = ms match +def Hs.comp(dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], ms: Coll.List[Sym.Sym]): Coll.SMap[Hs.Dg] = ms match case Coll.Nil => hm case Coll.Cons(m, more) => val selfRef = Ty.memberSym(m, Hs.edges(dm, m)) @@ -386,7 +386,7 @@ def Hs.comp {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], ms: Coll.Lis val whole = Hs.whole(dm, Hs.Cx(hm, order, Hs.Second), order, Hs.Dg(9, 9, 9, 9)) Hs.members(dm, hm, whole, order, 0) -def Hs.hashOf {r: Region} (dm: Coll.SMap[Hs.D], cx: Hs.Cx, m: Sym.Sym): Hs.Dg = Coll.sLookup(dm, m) match +def Hs.hashOf(dm: Coll.SMap[Hs.D], cx: Hs.Cx, m: Sym.Sym): Hs.Dg = Coll.sLookup(dm, m) match case Coll.Some(d) => Hs.hashD(cx, d) case Coll.None => Hs.Dg(0, 0, 0, 0) @@ -394,33 +394,33 @@ def Hs.hashOf {r: Region} (dm: Coll.SMap[Hs.D], cx: Hs.Cx, m: Sym.Sym): Hs.Dg = enum Hs.M: case Hs.M(name: Sym.Sym, g: Hs.Dg) -def Hs.sorted {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], all: Coll.List[Sym.Sym], ms: Coll.List[Sym.Sym], acc: Coll.List[Hs.M]): Coll.List[Sym.Sym] = ms match +def Hs.sorted(dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], all: Coll.List[Sym.Sym], ms: Coll.List[Sym.Sym], acc: Coll.List[Hs.M]): Coll.List[Sym.Sym] = ms match case Coll.Nil => Hs.mNames(acc, Coll.Nil) case Coll.Cons(m, rest) => Hs.sorted(dm, hm, all, rest, Hs.ins(acc, Hs.M(m, Hs.hashOf(dm, Hs.Cx(hm, all, Hs.First), m)))) -def Hs.ins {r: Region} (xs: Coll.List[Hs.M], m: Hs.M): Coll.List[Hs.M] = xs match +def Hs.ins(xs: Coll.List[Hs.M], m: Hs.M): Coll.List[Hs.M] = xs match case Coll.Nil => Coll.Cons(m, Coll.Nil) case Coll.Cons(x, rest) => val Hs.M(_, g) = m val Hs.M(_, h) = x if Hs.less(g, h) then Coll.Cons(m, xs) else Coll.Cons(x, Hs.ins(rest, m)) -def Hs.mNames {r: Region} (xs: Coll.List[Hs.M], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match +def Hs.mNames(xs: Coll.List[Hs.M], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(x, rest) => val Hs.M(n, _) = x Hs.mNames(rest, Coll.Cons(n, acc)) -def Hs.whole {r: Region} (dm: Coll.SMap[Hs.D], cx: Hs.Cx, ms: Coll.List[Sym.Sym], g: Hs.Dg): Hs.Dg = ms match +def Hs.whole(dm: Coll.SMap[Hs.D], cx: Hs.Cx, ms: Coll.List[Sym.Sym], g: Hs.Dg): Hs.Dg = ms match case Coll.Nil => g case Coll.Cons(m, rest) => Hs.whole(dm, cx, rest, Hs.dg(g, Hs.hashOf(dm, cx, m))) -def Hs.members {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], whole: Hs.Dg, ms: Coll.List[Sym.Sym], i: I64): Coll.SMap[Hs.Dg] = ms match +def Hs.members(dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], whole: Hs.Dg, ms: Coll.List[Sym.Sym], i: I64): Coll.SMap[Hs.Dg] = ms match case Coll.Nil => hm case Coll.Cons(m, rest) => Hs.members(dm, Hs.put(dm, hm, m, Hs.add(Hs.add(whole, 10), i)), whole, rest, i + 1) // an enum's cases are refs too: (enum hash, tag) -def Hs.put {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], m: Sym.Sym, g: Hs.Dg): Coll.SMap[Hs.Dg] = +def Hs.put(dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], m: Sym.Sym, g: Hs.Dg): Coll.SMap[Hs.Dg] = val hm2 = Coll.sInsert(hm, m, g) Coll.sLookup(dm, m) match case Coll.Some(d) => d match @@ -430,13 +430,13 @@ def Hs.put {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], m: Sym.Sym, g case Hs.DF(_) => hm2 case Coll.None => hm2 -def Hs.casesPut {r: Region} (hm: Coll.SMap[Hs.Dg], g: Hs.Dg, cs: Coll.List[Ast.Case], i: I64): Coll.SMap[Hs.Dg] = cs match +def Hs.casesPut(hm: Coll.SMap[Hs.Dg], g: Hs.Dg, cs: Coll.List[Ast.Case], i: I64): Coll.SMap[Hs.Dg] = cs match case Coll.Nil => hm case Coll.Cons(c, rest) => val Ast.Case(_, n, _) = c Hs.casesPut(Coll.sInsert(hm, n, Hs.add(Hs.add(g, 8), i)), g, rest, i + 1) -def Hs.compsPut {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], cs: Coll.List[Coll.List[Sym.Sym]]): Coll.SMap[Hs.Dg] = cs match +def Hs.compsPut(dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], cs: Coll.List[Coll.List[Sym.Sym]]): Coll.SMap[Hs.Dg] = cs match case Coll.Nil => hm case Coll.Cons(c, rest) => Hs.compsPut(dm, Hs.comp(dm, hm, c), rest) @@ -444,7 +444,7 @@ def Hs.compsPut {r: Region} (dm: Coll.SMap[Hs.D], hm: Coll.SMap[Hs.Dg], cs: Coll enum Hs.Split: case Hs.Split(es: Coll.SMap[Hs.D], eo: Coll.List[Sym.Sym], fs: Coll.SMap[Hs.D], fo: Coll.List[Sym.Sym]) -def Hs.split {r: Region} (ds: Coll.List[Ast.Decl], sp: Hs.Split): Hs.Split = ds match +def Hs.split(ds: Coll.List[Ast.Decl], sp: Hs.Split): Hs.Split = ds match case Coll.Nil => val Hs.Split(es, eo, fs, fo) = sp Hs.Split(es, Coll.rev(eo), fs, Coll.rev(fo)) @@ -462,16 +462,16 @@ def Hs.split {r: Region} (ds: Coll.List[Ast.Decl], sp: Hs.Split): Hs.Split = ds if isExt then Hs.split(rest, sp) else Hs.split(rest, Hs.Split(es, eo, Coll.sInsert(fs, n, Hs.DF(f)), Coll.Cons(n, fo))) case _ => Hs.split(rest, sp) -def Hs.all {r: Region} (ds: Coll.List[Ast.Decl]): Coll.SMap[Hs.Dg] = +def Hs.all(ds: Coll.List[Ast.Decl]): Coll.SMap[Hs.Dg] = val Hs.Split(es, eo, fs, fo) = Hs.split(ds, Hs.Split(Coll.sEmpty(), Coll.Nil, Coll.sEmpty(), Coll.Nil)) val t0 = Hs.T(0, Coll.sEmpty(), Coll.sEmpty(), Coll.Nil, Coll.sEmpty(), Coll.Nil) val hm1 = Hs.compsPut(es, Coll.sEmpty(), Hs.comps(es, eo, t0)) Hs.compsPut(fs, hm1, Hs.comps(fs, fo, t0)) // `s2c --hash`: "name a.b.c.d" for every def (not extern) and enum, in program order -def Hs.print {r: Region} (ds: Coll.List[Ast.Decl]): Unit = Hs.printFrom(Hs.all(ds), ds) +def Hs.print(ds: Coll.List[Ast.Decl]): Unit = Hs.printFrom(Hs.all(ds), ds) -def Hs.printFrom {r: Region} (hm: Coll.SMap[Hs.Dg], ds: Coll.List[Ast.Decl]): Unit = ds match +def Hs.printFrom(hm: Coll.SMap[Hs.Dg], ds: Coll.List[Ast.Decl]): Unit = ds match case Coll.Nil => () case Coll.Cons(d, rest) => val n: Coll.Option[Sym.Sym] = d match @@ -503,6 +503,6 @@ def Hs.show(n: Sym.Sym, g: Hs.Dg): Unit = Console.print("\n") // on the stack now (a popped node is kept as false) -def Hs.onStack {r: Region} (on: Coll.SMap[Bool], w: Sym.Sym): Bool = Coll.sLookup(on, w) match +def Hs.onStack(on: Coll.SMap[Bool], w: Sym.Sym): Bool = Coll.sLookup(on, w) match case Coll.Some(b) => b case Coll.None => false diff --git a/s2/kanren.srs b/s2/kanren.srs index be42b8c7..8ae35c02 100644 --- a/s2/kanren.srs +++ b/s2/kanren.srs @@ -7,7 +7,7 @@ enum K.Term: case K.Int(v: I64) // the term t stands for in s: a variable follows its bindings (a triangular substitution) -def K.walk {r: Region} (s: Coll.IMap[K.Term], t: K.Term): K.Term = t match +def K.walk(s: Coll.IMap[K.Term], t: K.Term): K.Term = t match case K.Var(n) => Coll.node(s, n) match case Coll.Tip => t case Coll.Bin(_, _, u, _, _) => K.walk(s, u) @@ -15,17 +15,17 @@ def K.walk {r: Region} (s: Coll.IMap[K.Term], t: K.Term): K.Term = t match case K.Int(_) => t // variable n occurs in t under s: binding n to t would build an infinite term -def K.occurs {r: Region} (s: Coll.IMap[K.Term], n: I64, t: K.Term): Bool = K.walk(s, t) match +def K.occurs(s: Coll.IMap[K.Term], n: I64, t: K.Term): Bool = K.walk(s, t) match case K.Var(m) => m == n case K.Con(_, args) => K.occursIn(s, n, args) case K.Int(_) => false -def K.occursIn {r: Region} (s: Coll.IMap[K.Term], n: I64, ts: Coll.List[K.Term]): Bool = ts match +def K.occursIn(s: Coll.IMap[K.Term], n: I64, ts: Coll.List[K.Term]): Bool = ts match case Coll.Nil => false case Coll.Cons(h, t) => if K.occurs(s, n, h) then true else K.occursIn(s, n, t) // s extended so a and b are equal, or None -def K.unify {r: Region} (s: Coll.IMap[K.Term], a: K.Term, b: K.Term): Coll.Option[Coll.IMap[K.Term]] = +def K.unify(s: Coll.IMap[K.Term], a: K.Term, b: K.Term): Coll.Option[Coll.IMap[K.Term]] = val x = K.walk(s, a) val y = K.walk(s, b) x match @@ -39,13 +39,13 @@ def K.unify {r: Region} (s: Coll.IMap[K.Term], a: K.Term, b: K.Term): Coll.Optio case K.Int(w) => if v == w then Coll.Some(s) else Coll.None case K.Con(_, _) => Coll.None -def K.bind {r: Region} (s: Coll.IMap[K.Term], n: I64, t: K.Term): Coll.Option[Coll.IMap[K.Term]] = t match +def K.bind(s: Coll.IMap[K.Term], n: I64, t: K.Term): Coll.Option[Coll.IMap[K.Term]] = t match case K.Var(m) => if m == n then Coll.Some(s) else Coll.Some(Coll.insert(s, n, t)) case K.Con(_, _) => if K.occurs(s, n, t) then Coll.None else Coll.Some(Coll.insert(s, n, t)) case K.Int(_) => Coll.Some(Coll.insert(s, n, t)) // pairwise; lists of other lengths do not unify (arity) -def K.unifyAll {r: Region} (s: Coll.IMap[K.Term], xs: Coll.List[K.Term], ys: Coll.List[K.Term]): Coll.Option[Coll.IMap[K.Term]] = xs match +def K.unifyAll(s: Coll.IMap[K.Term], xs: Coll.List[K.Term], ys: Coll.List[K.Term]): Coll.Option[Coll.IMap[K.Term]] = xs match case Coll.Nil => ys match case Coll.Nil => Coll.Some(s) case Coll.Cons(_, _) => Coll.None @@ -56,11 +56,11 @@ def K.unifyAll {r: Region} (s: Coll.IMap[K.Term], xs: Coll.List[K.Term], ys: Col case Coll.Some(s2) => K.unifyAll(s2, xt, yt) // t with every bound variable replaced, all the way down (an answer) -def K.reify {r: Region} (s: Coll.IMap[K.Term], t: K.Term): K.Term = K.walk(s, t) match +def K.reify(s: Coll.IMap[K.Term], t: K.Term): K.Term = K.walk(s, t) match case K.Var(n) => K.Var(n) case K.Int(v) => K.Int(v) case K.Con(f, args) => K.Con(f, Coll.rev(K.reifyOnto(s, args, Coll.Nil))) -def K.reifyOnto {r: Region} (s: Coll.IMap[K.Term], ts: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match +def K.reifyOnto(s: Coll.IMap[K.Term], ts: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match case Coll.Nil => acc case Coll.Cons(h, t) => K.reifyOnto(s, t, Coll.Cons(K.reify(s, h), acc)) diff --git a/s2/kfd.srs b/s2/kfd.srs index 1335059a..a9f6ca41 100644 --- a/s2/kfd.srs +++ b/s2/kfd.srs @@ -27,7 +27,7 @@ def K.member(v: I64, xs: Coll.List[I64]): Bool = xs match case Coll.Nil => false case Coll.Cons(h, t) => if h == v then true else K.member(v, t) -def K.ints {r: Region} (d: K.Dom): Coll.List[I64] = +def K.ints(d: K.Dom): Coll.List[I64] = val K.Dom(_, _, h, t) = d Coll.Cons(h, t) @@ -53,24 +53,24 @@ def K.inDom(v: I64, d: K.Dom): Bool = v >= h && v <= x && (v == h || K.member(v, t)) // a..b ascending -def K.range {r: Region} (a: I64, b: I64): Coll.List[I64] = K.rangeOnto(a, b, Coll.Nil) -def K.rangeOnto {r: Region} (a: I64, b: I64, acc: Coll.List[I64]): Coll.List[I64] = if a > b then acc else K.rangeOnto(a, b - 1, Coll.Cons(b, acc)) +def K.range(a: I64, b: I64): Coll.List[I64] = K.rangeOnto(a, b, Coll.Nil) +def K.rangeOnto(a: I64, b: I64, acc: Coll.List[I64]): Coll.List[I64] = if a > b then acc else K.rangeOnto(a, b - 1, Coll.Cons(b, acc)) // the values of xs in a..b; xs without v; xs in d (each in order) -def K.between {r: Region} (xs: Coll.List[I64], a: I64, b: I64): Coll.List[I64] = Coll.rev(K.betweenOnto(xs, a, b, Coll.Nil)) -def K.betweenOnto {r: Region} (xs: Coll.List[I64], a: I64, b: I64, acc: Coll.List[I64]): Coll.List[I64] = xs match +def K.between(xs: Coll.List[I64], a: I64, b: I64): Coll.List[I64] = Coll.rev(K.betweenOnto(xs, a, b, Coll.Nil)) +def K.betweenOnto(xs: Coll.List[I64], a: I64, b: I64, acc: Coll.List[I64]): Coll.List[I64] = xs match case Coll.Nil => acc case Coll.Cons(h, t) => K.betweenOnto(t, a, b, if h >= a && h <= b then Coll.Cons(h, acc) else acc) -def K.withoutOnto {r: Region} (xs: Coll.List[I64], v: I64, acc: Coll.List[I64]): Coll.List[I64] = xs match +def K.withoutOnto(xs: Coll.List[I64], v: I64, acc: Coll.List[I64]): Coll.List[I64] = xs match case Coll.Nil => acc case Coll.Cons(h, t) => K.withoutOnto(t, v, if h == v then acc else Coll.Cons(h, acc)) -def K.meetInts {r: Region} (xs: Coll.List[I64], d: K.Dom): Coll.List[I64] = Coll.rev(K.meetOnto(xs, d, Coll.Nil)) -def K.meetOnto {r: Region} (xs: Coll.List[I64], d: K.Dom, acc: Coll.List[I64]): Coll.List[I64] = xs match +def K.meetInts(xs: Coll.List[I64], d: K.Dom): Coll.List[I64] = Coll.rev(K.meetOnto(xs, d, Coll.Nil)) +def K.meetOnto(xs: Coll.List[I64], d: K.Dom, acc: Coll.List[I64]): Coll.List[I64] = xs match case Coll.Nil => acc case Coll.Cons(h, t) => K.meetOnto(t, d, if K.inDom(h, d) then Coll.Cons(h, acc) else acc) // the domain of t: an integer has itself, a variable its entry (or none), a constructor is not an integer -def K.domOf {r: Region} (st: K.State, t: K.Term): K.DomOf = +def K.domOf(st: K.State, t: K.Term): K.DomOf = val K.State(s, _, ds, _, _) = st K.walk(s, t) match case K.Var(n) => Coll.node(ds, n) match @@ -81,7 +81,7 @@ def K.domOf {r: Region} (st: K.State, t: K.Term): K.DomOf = // t takes a value of xs (ascending; a subset of its domain, if it has one): None when none is left, bound (a fix event) // when one is left, else narrowed (an event) unless as many values are left as before -def K.setDom {r: Region} (st: K.State, t: K.Term, xs: Coll.List[I64]): Coll.Option[K.State] = +def K.setDom(st: K.State, t: K.Term, xs: Coll.List[I64]): Coll.Option[K.State] = val K.State(s, ns, ds, ps, nx) = st xs match case Coll.Nil => Coll.None @@ -103,21 +103,21 @@ def K.hasSize(ds: Coll.IMap[K.Dom], n: I64, k: I64): Bool = ds match case Coll.Bin(_, key, d, l, r2) => if n < key then K.hasSize(l, n, k) else if n > key then K.hasSize(r2, n, k) else K.domSize(d) == k // t takes a value of xs and of the domain it already has -def K.meet {r: Region} (st: K.State, t: K.Term, xs: Coll.List[I64]): Coll.Option[K.State] = K.domOf(st, t) match +def K.meet(st: K.State, t: K.Term, xs: Coll.List[I64]): Coll.Option[K.State] = K.domOf(st, t) match case K.NoDom => K.setDom(st, t, xs) case K.Has(d) => K.setDom(st, t, K.meetInts(xs, d)) case K.NotInt => Coll.None // ── propagators ── // x <= y - k: k = 0 for <=, 1 for < -def K.leAt {r: Region} (st: K.State, x: K.Term, y: K.Term, dx: K.Dom, dy: K.Dom, k: I64): Coll.Option[K.State] = +def K.leAt(st: K.State, x: K.Term, y: K.Term, dx: K.Dom, dy: K.Dom, k: I64): Coll.Option[K.State] = // a bound that already holds builds no new domain val sx: Coll.Option[K.State] = if K.hi(dx) <= K.hi(dy) - k then Coll.Some(st) else K.setDom(st, x, K.between(K.ints(dx), K.lo(dx), K.hi(dy) - k)) sx match case Coll.None => Coll.None case Coll.Some(st2) => if K.lo(dy) >= K.lo(dx) + k then Coll.Some(st2) else K.setDom(st2, y, K.between(K.ints(dy), K.lo(dx) + k, K.hi(dy))) -def K.neAt {r: Region} (st: K.State, x: K.Term, y: K.Term, dx: K.Dom, dy: K.Dom): Coll.Option[K.State] = +def K.neAt(st: K.State, x: K.Term, y: K.Term, dx: K.Dom, dy: K.Dom): Coll.Option[K.State] = val nx = K.domSize(dx) val ny = K.domSize(dy) if nx == 1 && ny == 1 then (if K.lo(dx) == K.lo(dy) then Coll.None else Coll.Some(st)) @@ -126,7 +126,7 @@ def K.neAt {r: Region} (st: K.State, x: K.Term, y: K.Term, dx: K.Dom, dy: K.Dom) else Coll.Some(st) // x + y = z -def K.plusAt {r: Region} (st: K.State, x: K.Term, y: K.Term, z: K.Term, dx: K.Dom, dy: K.Dom, dz: K.Dom): Coll.Option[K.State] = +def K.plusAt(st: K.State, x: K.Term, y: K.Term, z: K.Term, dx: K.Dom, dy: K.Dom, dz: K.Dom): Coll.Option[K.State] = K.setDom(st, z, K.between(K.ints(dz), K.lo(dx) + K.lo(dy), K.hi(dx) + K.hi(dy))) match case Coll.None => Coll.None case Coll.Some(st1) => K.setDom(st1, x, K.between(K.ints(dx), K.lo(dz) - K.hi(dy), K.hi(dz) - K.lo(dy))) match @@ -134,7 +134,7 @@ def K.plusAt {r: Region} (st: K.State, x: K.Term, y: K.Term, z: K.Term, dx: K.Do case Coll.Some(st2) => K.setDom(st2, y, K.between(K.ints(dy), K.lo(dz) - K.hi(dx), K.hi(dz) - K.lo(dx))) // a propagator runs once every variable it reads has a domain -def K.fire {r: Region} (st: K.State, c: K.Fd): Coll.Option[K.State] = c match +def K.fire(st: K.State, c: K.Fd): Coll.Option[K.State] = c match case K.FBin(op, x, y) => K.domOf(st, x) match case K.NoDom => Coll.Some(st) case K.NotInt => Coll.None @@ -172,26 +172,26 @@ enum K.Ev: enum K.Props: case K.Props(fix: Coll.IMap[Coll.List[K.Fd]], any: Coll.IMap[Coll.List[K.Fd]], evs: Coll.List[K.Ev]) -def K.emit {r: Region} (ps: K.Props, n: I64, change: K.Change): K.Props = +def K.emit(ps: K.Props, n: I64, change: K.Change): K.Props = val K.Props(fx, an, evs) = ps K.Props(fx, an, Coll.Cons(K.Ev(n, change), evs)) -def K.fdTerms {r: Region} (c: K.Fd): Coll.List[K.Term] = c match +def K.fdTerms(c: K.Fd): Coll.List[K.Term] = c match case K.FBin(_, x, y) => Coll.Cons(x, Coll.Cons(y, Coll.Nil)) case K.FPlus(x, y, z) => Coll.Cons(x, Coll.Cons(y, Coll.Cons(z, Coll.Nil))) -def K.watchers {r: Region} (w: Coll.IMap[Coll.List[K.Fd]], n: I64): Coll.List[K.Fd] = Coll.node(w, n) match +def K.watchers(w: Coll.IMap[Coll.List[K.Fd]], n: I64): Coll.List[K.Fd] = Coll.node(w, n) match case Coll.Tip => Coll.Nil case Coll.Bin(_, _, cs, _, _) => cs -def K.watchIn {r: Region} (s: Coll.IMap[K.Term], w: Coll.IMap[Coll.List[K.Fd]], c: K.Fd, ts: Coll.List[K.Term]): Coll.IMap[Coll.List[K.Fd]] = ts match +def K.watchIn(s: Coll.IMap[K.Term], w: Coll.IMap[Coll.List[K.Fd]], c: K.Fd, ts: Coll.List[K.Term]): Coll.IMap[Coll.List[K.Fd]] = ts match case Coll.Nil => w case Coll.Cons(t, rest) => K.walk(s, t) match case K.Var(n) => K.watchIn(s, Coll.insert(w, n, Coll.Cons(c, K.watchers(w, n))), c, rest) case _ => K.watchIn(s, w, c, rest) // c registered under the variables it reads (under s): =/= in the fix index, the others in the any index -def K.watch {r: Region} (s: Coll.IMap[K.Term], ps: K.Props, c: K.Fd): K.Props = +def K.watch(s: Coll.IMap[K.Term], ps: K.Props, c: K.Fd): K.Props = val K.Props(fx, an, evs) = ps if K.isNe(c) then K.Props(K.watchIn(s, fx, c, K.fdTerms(c)), an, evs) else K.Props(fx, K.watchIn(s, an, c, K.fdTerms(c)), evs) @@ -203,7 +203,7 @@ def K.isNe(c: K.Fd): Bool = c match case K.FPlus(_, _, _) => false // the propagators each event wakes, onto agenda -def K.wakeAll {r: Region} (ps: K.Props, evs: Coll.List[K.Ev], agenda: Coll.List[K.Fd]): Coll.List[K.Fd] = evs match +def K.wakeAll(ps: K.Props, evs: Coll.List[K.Ev], agenda: Coll.List[K.Fd]): Coll.List[K.Fd] = evs match case Coll.Nil => agenda case Coll.Cons(e, rest) => val K.Ev(n, change) = e @@ -215,7 +215,7 @@ def K.wakeAll {r: Region} (ps: K.Props, evs: Coll.List[K.Ev], agenda: Coll.List[ K.wakeAll(ps, rest, a2) // fire the agenda; when it is empty, wake the events the fires left; done when both are empty -def K.prop {r: Region} (st: K.State, agenda: Coll.List[K.Fd]): Coll.Option[K.State] = agenda match +def K.prop(st: K.State, agenda: Coll.List[K.Fd]): Coll.Option[K.State] = agenda match case Coll.Cons(c, rest) => K.fire(st, c) match case Coll.None => Coll.None case Coll.Some(st2) => K.prop(st2, rest) @@ -227,7 +227,7 @@ def K.prop {r: Region} (st: K.State, agenda: Coll.List[K.Fd]): Coll.Option[K.Sta case Coll.Cons(_, _) => K.prop(K.State(s, ns, ds, K.Props(fx, an, Coll.Nil), nx), K.wakeAll(ps, evs, Coll.Nil)) // propagate, then check the disequality store -def K.settleFrom {r: Region} (st: K.State, agenda: Coll.List[K.Fd]): Coll.Option[K.State] = K.prop(st, agenda) match +def K.settleFrom(st: K.State, agenda: Coll.List[K.Fd]): Coll.Option[K.State] = K.prop(st, agenda) match case Coll.None => Coll.None case Coll.Some(st2) => val K.State(s, ns, ds, ps, nx) = st2 @@ -236,19 +236,19 @@ def K.settleFrom {r: Region} (st: K.State, agenda: Coll.List[K.Fd]): Coll.Option case Coll.Some(ns2) => Coll.Some(K.State(s, ns2, ds, ps, nx)) // the variables of t (not walked) -def K.varsOf {r: Region} (t: K.Term, acc: Coll.List[I64]): Coll.List[I64] = t match +def K.varsOf(t: K.Term, acc: Coll.List[I64]): Coll.List[I64] = t match case K.Var(n) => Coll.Cons(n, acc) case K.Int(_) => acc case K.Con(_, args) => K.varsOfAll(args, acc) -def K.varsOfAll {r: Region} (ts: Coll.List[K.Term], acc: Coll.List[I64]): Coll.List[I64] = ts match +def K.varsOfAll(ts: Coll.List[K.Term], acc: Coll.List[I64]): Coll.List[I64] = ts match case Coll.Nil => acc case Coll.Cons(h, t) => K.varsOfAll(t, K.varsOf(h, acc)) // after unify (old substitution s0, the new one in st): a variable m that stood for itself under s0 and is bound now: // bound to a variable k, its watchers move to k, its domain meets k's, and k's watchers wake; bound to a value, the // value must be in its domain, and its watchers wake (a fix event) -def K.bound {r: Region} (s0: Coll.IMap[K.Term], ms: Coll.List[I64], st: K.State): Coll.Option[K.State] = ms match +def K.bound(s0: Coll.IMap[K.Term], ms: Coll.List[I64], st: K.State): Coll.Option[K.State] = ms match case Coll.Nil => Coll.Some(st) case Coll.Cons(v, rest) => val K.State(s, ns, ds, ps, nx) = st @@ -277,7 +277,7 @@ def K.bound {r: Region} (s0: Coll.IMap[K.Term], ms: Coll.List[I64], st: K.State) case _ => K.bound(s0, rest, st) // the state after unify of the terms ts gave u: dead on None, else the changed variables settle -def K.post {r: Region} (st: K.State, ts: Coll.List[K.Term], u: Coll.Option[Coll.IMap[K.Term]]): Coll.Option[K.State] = u match +def K.post(st: K.State, ts: Coll.List[K.Term], u: Coll.Option[Coll.IMap[K.Term]]): Coll.Option[K.State] = u match case Coll.None => Coll.None case Coll.Some(s2) => val K.State(s, ns, ds, ps, nx) = st @@ -287,7 +287,7 @@ def K.post {r: Region} (st: K.State, ts: Coll.List[K.Term], u: Coll.Option[Coll. case Coll.Some(st2) => K.settleFrom(st2, Coll.Nil) // the store under s: a pair that can never unify is dropped; one that already is equal (unify adds no binding) fails -def K.recheck {r: Region} (s: Coll.IMap[K.Term], ns: Coll.List[K.Neq], kept: Coll.List[K.Neq]): Coll.Option[Coll.List[K.Neq]] = ns match +def K.recheck(s: Coll.IMap[K.Term], ns: Coll.List[K.Neq], kept: Coll.List[K.Neq]): Coll.Option[Coll.List[K.Neq]] = ns match case Coll.Nil => Coll.Some(Coll.rev(kept)) case Coll.Cons(h, t) => val K.Neq(a, b) = h @@ -295,7 +295,7 @@ def K.recheck {r: Region} (s: Coll.IMap[K.Term], ns: Coll.List[K.Neq], kept: Col case Coll.None => K.recheck(s, t, kept) case Coll.Some(s2) => if Coll.size(s2) == Coll.size(s) then Coll.None else K.recheck(s, t, Coll.Cons(h, kept)) -def K.addNeq {r: Region} (st: K.State, a: K.Term, b: K.Term): Coll.Option[K.State] = +def K.addNeq(st: K.State, a: K.Term, b: K.Term): Coll.Option[K.State] = val K.State(s, ns, ds, fs, nx) = st K.unify(s, a, b) match case Coll.None => Coll.Some(st) @@ -306,7 +306,7 @@ enum K.Pick: case K.NoPick case K.Pick(t: K.Term, d: K.Dom) -def K.pickVar {r: Region} (st: K.State, xs: Coll.List[K.Term], best: K.Pick): K.Pick = xs match +def K.pickVar(st: K.State, xs: Coll.List[K.Term], best: K.Pick): K.Pick = xs match case Coll.Nil => best case Coll.Cons(h, t) => K.domOf(st, h) match case K.Has(d) => if K.domSize(d) > 1 && K.smaller(d, best) then K.pickVar(st, t, K.Pick(h, d)) else K.pickVar(st, t, best) @@ -318,15 +318,15 @@ def K.smaller(d: K.Dom, best: K.Pick): Bool = best match case K.Pick(_, e) => K.domSize(d) < K.domSize(e) // one branch per value, in order; the goals after keep the label goal, so the next variable is labeled -def K.labelBranches {r: Region} (st: K.State, t: K.Term, vs: Coll.List[I64], gs: Coll.List[K.Goal], acc: Coll.List[K.Branch]): Coll.List[K.Branch] = vs match +def K.labelBranches(st: K.State, t: K.Term, vs: Coll.List[I64], gs: Coll.List[K.Goal], acc: Coll.List[K.Branch]): Coll.List[K.Branch] = vs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(v, more) => K.labelBranches(st, t, more, gs, Coll.Cons(K.Branch(st, Coll.Cons(K.Eq(t, K.Int(v)), gs)), acc)) // every two of xs differ -def K.distinct {r: Region} (xs: Coll.List[K.Term]): K.Goal = xs match +def K.distinct(xs: Coll.List[K.Term]): K.Goal = xs match case Coll.Nil => K.True case Coll.Cons(h, t) => K.Conj(K.neEach(h, t), K.distinct(t)) -def K.neEach {r: Region} (x: K.Term, ys: Coll.List[K.Term]): K.Goal = ys match +def K.neEach(x: K.Term, ys: Coll.List[K.Term]): K.Goal = ys match case Coll.Nil => K.True case Coll.Cons(y, t) => K.Conj(K.Post(K.FBin(K.Ne, x, y)), K.neEach(x, t)) diff --git a/s2/ksearch.srs b/s2/ksearch.srs index 1ee857a0..c355975b 100644 --- a/s2/ksearch.srs +++ b/s2/ksearch.srs @@ -38,9 +38,9 @@ enum K.Run: case K.Run(answers: Coll.List[K.State], status: K.Status) // relation hash -> its clauses, in written order -def K.index {r: Region} (rules: Coll.List[K.Rule]): Coll.IMap[Coll.List[K.Rule]] = K.indexOnto(Coll.rev(rules), Coll.Tip) +def K.index(rules: Coll.List[K.Rule]): Coll.IMap[Coll.List[K.Rule]] = K.indexOnto(Coll.rev(rules), Coll.Tip) -def K.indexOnto {r: Region} (rs: Coll.List[K.Rule], ix: Coll.IMap[Coll.List[K.Rule]]): Coll.IMap[Coll.List[K.Rule]] = rs match +def K.indexOnto(rs: Coll.List[K.Rule], ix: Coll.IMap[Coll.List[K.Rule]]): Coll.IMap[Coll.List[K.Rule]] = rs match case Coll.Nil => ix case Coll.Cons(h, t) => val K.Rule(rel, _, _, _) = h @@ -51,16 +51,16 @@ def K.indexOnto {r: Region} (rs: Coll.List[K.Rule], ix: Coll.IMap[Coll.List[K.Ru K.indexOnto(t, Coll.insert(ix, k, Coll.Cons(h, old))) // rename apart: every variable moved by k -def K.shift {r: Region} (t: K.Term, k: I64): K.Term = t match +def K.shift(t: K.Term, k: I64): K.Term = t match case K.Var(n) => K.Var(n + k) case K.Int(v) => K.Int(v) case K.Con(f, args) => K.Con(f, Coll.rev(K.shiftOnto(args, k, Coll.Nil))) -def K.shiftOnto {r: Region} (ts: Coll.List[K.Term], k: I64, acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match +def K.shiftOnto(ts: Coll.List[K.Term], k: I64, acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match case Coll.Nil => acc case Coll.Cons(h, t) => K.shiftOnto(t, k, Coll.Cons(K.shift(h, k), acc)) -def K.shiftGoal {r: Region} (g: K.Goal, k: I64): K.Goal = g match +def K.shiftGoal(g: K.Goal, k: I64): K.Goal = g match case K.True => K.True case K.Eq(a, b) => K.Eq(K.shift(a, k), K.shift(b, k)) case K.Conj(x, y) => K.Conj(K.shiftGoal(x, k), K.shiftGoal(y, k)) @@ -71,13 +71,13 @@ def K.shiftGoal {r: Region} (g: K.Goal, k: I64): K.Goal = g match case K.Post(c) => K.Post(K.shiftFd(c, k)) case K.Label(xs) => K.Label(Coll.rev(K.shiftOnto(xs, k, Coll.Nil))) -def K.shiftFd {r: Region} (c: K.Fd, k: I64): K.Fd = c match +def K.shiftFd(c: K.Fd, k: I64): K.Fd = c match case K.FBin(op, x, y) => K.FBin(op, K.shift(x, k), K.shift(y, k)) case K.FPlus(x, y, z) => K.FPlus(K.shift(x, k), K.shift(y, k), K.shift(z, k)) // K.unify(s, K.shift(h, k), y) without the copy: a head subterm is shifted only when it is bound into s, so a head // that clashes allocates nothing. The binding direction is that of K.unify, so s is the same. -def K.unifyOff {r: Region} (s: Coll.IMap[K.Term], h: K.Term, k: I64, y: K.Term): Coll.Option[Coll.IMap[K.Term]] = h match +def K.unifyOff(s: Coll.IMap[K.Term], h: K.Term, k: I64, y: K.Term): Coll.Option[Coll.IMap[K.Term]] = h match case K.Var(n) => K.unify(s, K.Var(n + k), y) case K.Int(_) => K.unify(s, h, y) case K.Con(f, hs) => K.walk(s, y) match @@ -85,7 +85,7 @@ def K.unifyOff {r: Region} (s: Coll.IMap[K.Term], h: K.Term, k: I64, y: K.Term): case K.Con(g, ys) => if Sym.eq(f, g) then K.unifyAllOff(s, hs, k, ys) else Coll.None case K.Int(_) => Coll.None -def K.unifyAllOff {r: Region} (s: Coll.IMap[K.Term], hs: Coll.List[K.Term], k: I64, ys: Coll.List[K.Term]): Coll.Option[Coll.IMap[K.Term]] = hs match +def K.unifyAllOff(s: Coll.IMap[K.Term], hs: Coll.List[K.Term], k: I64, ys: Coll.List[K.Term]): Coll.Option[Coll.IMap[K.Term]] = hs match case Coll.Nil => ys match case Coll.Nil => Coll.Some(s) case Coll.Cons(_, _) => Coll.None @@ -96,7 +96,7 @@ def K.unifyAllOff {r: Region} (s: Coll.IMap[K.Term], hs: Coll.List[K.Term], k: I case Coll.Some(s2) => K.unifyAllOff(s2, ht, k, yt) // the branches of the clauses of rel whose heads unify with args (in clause order), and the clauses picked -def K.picks {r: Region} (rs: Coll.List[K.Rule], rel: Sym.Sym, args: Coll.List[K.Term], st: K.State, rest: Coll.List[K.Goal], out: Coll.List[K.Branch], cost: I64): K.Step = rs match +def K.picks(rs: Coll.List[K.Rule], rel: Sym.Sym, args: Coll.List[K.Term], st: K.State, rest: Coll.List[K.Goal], out: Coll.List[K.Branch], cost: I64): K.Step = rs match case Coll.Nil => K.Split(Coll.rev(out), cost) case Coll.Cons(h, t) => val K.Rule(f, head, body, nv) = h @@ -109,15 +109,15 @@ def K.picks {r: Region} (rs: Coll.List[K.Rule], rel: Sym.Sym, args: Coll.List[K. K.picks(t, rel, args, st, rest, Coll.Cons(K.Branch(K.State(s2, ns2, ds2, fs2, nx + nv), Coll.Cons(K.shiftGoal(body, nx), rest)), out), cost + 1) // after a domain on x: the events it left wake their propagators -def K.settled {r: Region} (c: Coll.Option[K.State]): Coll.Option[K.State] = c match +def K.settled(c: Coll.Option[K.State]): Coll.Option[K.State] = c match case Coll.None => Coll.None case Coll.Some(st) => K.settleFrom(st, Coll.Nil) -def K.onward {r: Region} (c: Coll.Option[K.State], rest: Coll.List[K.Goal]): K.Step = c match +def K.onward(c: Coll.Option[K.State], rest: Coll.List[K.Goal]): K.Step = c match case Coll.None => K.Dead case Coll.Some(st) => K.More(K.Branch(st, rest)) -def K.kstep {r: Region} (ix: Coll.IMap[Coll.List[K.Rule]], b: K.Branch): K.Step = +def K.kstep(ix: Coll.IMap[Coll.List[K.Rule]], b: K.Branch): K.Step = val K.Branch(st, gs) = b val K.State(s, ns, ds, fs, nx) = st gs match @@ -139,7 +139,7 @@ def K.kstep {r: Region} (ix: Coll.IMap[Coll.List[K.Rule]], b: K.Branch): K.Step // the driver: the current branch runs until a choice; the choice's branches go to the back of the queue (fair, so // complete); a choice that costs more than the fuel left stops the run (vic §17) -def K.loop {r: Region} (ix: Coll.IMap[Coll.List[K.Rule]], cur: Coll.Option[K.Branch], q: Queue.Queue[K.Branch], fuel: I64, limit: I64, found: Coll.List[K.State], n: I64): K.Run = cur match +def K.loop(ix: Coll.IMap[Coll.List[K.Rule]], cur: Coll.Option[K.Branch], q: Queue.Queue[K.Branch], fuel: I64, limit: I64, found: Coll.List[K.State], n: I64): K.Run = cur match case Coll.None => Queue.pop(q) match case Queue.Empty => K.Run(Coll.rev(found), K.Ended) case Queue.Got(b, rest) => K.loop(ix, Coll.Some(b), rest, fuel, limit, found, n) @@ -150,5 +150,5 @@ def K.loop {r: Region} (ix: Coll.IMap[Coll.List[K.Rule]], cur: Coll.Option[K.Bra case K.Split(bs, cost) => if cost > fuel then K.Run(Coll.rev(found), K.NoFuel) else K.loop(ix, Coll.None, Queue.pushAll(q, bs), fuel - cost, limit, found, n) // prove g (variables 0..nvars-1) over rules: at most limit answers, within fuel -def K.solve {r: Region} (rules: Coll.List[K.Rule], g: K.Goal, nvars: I64, fuel: I64, limit: I64): K.Run = +def K.solve(rules: Coll.List[K.Rule], g: K.Goal, nvars: I64, fuel: I64, limit: I64): K.Run = K.loop(K.index(rules), Coll.Some(K.Branch(K.State(Coll.Tip, Coll.Nil, Coll.Tip, K.Props(Coll.Tip, Coll.Tip, Coll.Nil), nvars), Coll.Cons(g, Coll.Nil))), Queue.empty(), fuel, limit, Coll.Nil, 0) diff --git a/s2/lex.srs b/s2/lex.srs index 4d28725d..b56c89ea 100644 --- a/s2/lex.srs +++ b/s2/lex.srs @@ -69,13 +69,13 @@ def Lex.top(ind: Coll.List[I64]): I64 = ind match case Coll.Nil => 0 case Coll.Cons(c, _) => c -def Lex.lex {r: Region} (src: Str): Lex.Result = Lex.lexFrom(src, 1) +def Lex.lex(src: Str): Lex.Result = Lex.lexFrom(src, 1) // src whose first line has number line (a file after others: its lines continue the numbering, so a line names a file) -def Lex.lexFrom {r: Region} (src: Str, line: I64): Lex.Result = Lex.go(src, Str.len(src), 0, line, 0, true, Coll.Cons(0, Coll.Nil), Coll.Nil) +def Lex.lexFrom(src: Str, line: I64): Lex.Result = Lex.go(src, Str.len(src), 0, line, 0, true, Coll.Cons(0, Coll.Nil), Coll.Nil) // the scan from i: depth = open ( and [, bol = at the start of a line, ind = the indent stack, out = tokens, newest first -def Lex.go {r: Region} (src: Str, n: I64, i: I64, line: I64, depth: I64, bol: Bool, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Lex.Result = +def Lex.go(src: Str, n: I64, i: I64, line: I64, depth: I64, bol: Bool, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Lex.Result = if i >= n then Lex.finish(line, ind, out) else if bol && depth == 0 then val j = Lex.spaces(src, i) @@ -107,7 +107,7 @@ def Lex.go {r: Region} (src: Str, n: I64, i: I64, line: I64, depth: I64, bol: Bo Lex.go(src, n, i + w, line, d, bol, ind, Coll.Cons(Lex.TOp(Str.slice(src, i, i + w), line), out)) // a line at column col, shallower than or as deep as the indent: close every deeper indent; col must be on the stack -def Lex.dedent {r: Region} (src: Str, n: I64, j: I64, line: I64, col: I64, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Lex.Result = ind match +def Lex.dedent(src: Str, n: I64, j: I64, line: I64, col: I64, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Lex.Result = ind match case Coll.Nil => Lex.Bad(line, Lex.BadDedent) case Coll.Cons(t, rest) => if col < t then Lex.dedent(src, n, j, line, col, rest, Coll.Cons(Lex.TDedent(line), out)) @@ -115,7 +115,7 @@ def Lex.dedent {r: Region} (src: Str, n: I64, j: I64, line: I64, col: I64, ind: else Lex.Bad(line, Lex.BadDedent) // the end: a last TNl, a TDedent for each open indent, TEof -def Lex.finish {r: Region} (line: I64, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Lex.Result = +def Lex.finish(line: I64, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Lex.Result = val out1: Coll.List[Lex.Tok] = out match case Coll.Nil => out case Coll.Cons(t, _) => t match @@ -124,6 +124,6 @@ def Lex.finish {r: Region} (line: I64, ind: Coll.List[I64], out: Coll.List[Lex.T case _ => Coll.Cons(Lex.TNl(line), out) Lex.Toks(Lex.closeAll(line, ind, out1)) -def Lex.closeAll {r: Region} (line: I64, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = ind match +def Lex.closeAll(line: I64, ind: Coll.List[I64], out: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = ind match case Coll.Nil => Coll.rev(Coll.Cons(Lex.TEof(line), out)) case Coll.Cons(t, rest) => if t > 0 then Lex.closeAll(line, rest, Coll.Cons(Lex.TDedent(line), out)) else Coll.rev(Coll.Cons(Lex.TEof(line), out)) diff --git a/s2/mono.srs b/s2/mono.srs index a3f8be2c..d0ff6687 100644 --- a/s2/mono.srs +++ b/s2/mono.srs @@ -16,9 +16,9 @@ enum Mono.Key: case Mono.Goal(t: K.Term) // t reified, then each binder of sub replaced by its arg -def Mono.ground {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], t: K.Term): K.Term = Mono.apply(sub, K.reify(s, t)) +def Mono.ground(s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], t: K.Term): K.Term = Mono.apply(sub, K.reify(s, t)) -def Mono.apply {r: Region} (sub: Coll.List[Ty.Bind], t: K.Term): K.Term = t match +def Mono.apply(sub: Coll.List[Ty.Bind], t: K.Term): K.Term = t match case K.Con(n, args) => args match case Coll.Nil => Ty.lookup(sub, n) match case Coll.Some(a) => a @@ -26,11 +26,11 @@ def Mono.apply {r: Region} (sub: Coll.List[Ty.Bind], t: K.Term): K.Term = t matc case Coll.Cons(_, _) => K.Con(n, Mono.applyAll(sub, args, Coll.Nil)) case _ => t -def Mono.applyAll {r: Region} (sub: Coll.List[Ty.Bind], ts: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match +def Mono.applyAll(sub: Coll.List[Ty.Bind], ts: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match case Coll.Nil => Coll.rev(acc) case Coll.Cons(t, rest) => Mono.applyAll(sub, rest, Coll.Cons(Mono.apply(sub, t), acc)) -def Mono.groundAll {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], ts: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match +def Mono.groundAll(s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], ts: Coll.List[K.Term], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match case Coll.Nil => Coll.rev(acc) case Coll.Cons(t, rest) => Mono.groundAll(s, sub, rest, Coll.Cons(Mono.ground(s, sub, t), acc)) @@ -80,7 +80,7 @@ def Mono.inBucket(ks: Coll.List[Mono.Key], k: Mono.Key): Bool = ks match case Coll.Cons(x, rest) => if Mono.keyEq(x, k) then true else Mono.inBucket(rest, k) // ── the worklist: roots first, then every generic call they reach, each key once ── -def Mono.run {r: Region} (res: Ty.Result): Coll.List[Mono.Inst] = +def Mono.run(res: Ty.Result): Coll.List[Mono.Inst] = val Ty.Result(_, _, s, fs, _, gvs) = res Mono.loop(Mono.Cx(s, Mono.fnMap(fs, Coll.sEmpty()), gvs), Mono.roots(fs, Coll.Nil), Coll.BTip, Coll.Nil) @@ -88,13 +88,13 @@ def Mono.run {r: Region} (res: Ty.Result): Coll.List[Mono.Inst] = enum Mono.Cx: case Mono.Cx(s: Coll.IMap[K.Term], fs: Coll.SMap[El.Fn], gvs: Coll.List[El.Given]) -def Mono.fnMap {r: Region} (fs: Coll.List[El.Fn], m: Coll.SMap[El.Fn]): Coll.SMap[El.Fn] = fs match +def Mono.fnMap(fs: Coll.List[El.Fn], m: Coll.SMap[El.Fn]): Coll.SMap[El.Fn] = fs match case Coll.Nil => m case Coll.Cons(f, rest) => val El.Fn(_, n, _, _, _, _, _) = f Mono.fnMap(rest, Coll.sInsert(m, n, f)) -def Mono.roots {r: Region} (fs: Coll.List[El.Fn], acc: Coll.List[Mono.Inst]): Coll.List[Mono.Inst] = fs match +def Mono.roots(fs: Coll.List[El.Fn], acc: Coll.List[Mono.Inst]): Coll.List[Mono.Inst] = fs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(f, rest) => val El.Fn(_, _, tps, _, _, _, _) = f @@ -103,7 +103,7 @@ def Mono.roots {r: Region} (fs: Coll.List[El.Fn], acc: Coll.List[Mono.Inst]): Co case Coll.Cons(_, _) => Mono.roots(rest, acc) // todo: instances whose bodies are not yet scanned; made: keys already instantiated (by hash bucket); out: the result -def Mono.loop {r: Region} (cx: Mono.Cx, todo: Coll.List[Mono.Inst], made: Coll.BTree[Coll.List[Mono.Key]], out: Coll.List[Mono.Inst]): Coll.List[Mono.Inst] = todo match +def Mono.loop(cx: Mono.Cx, todo: Coll.List[Mono.Inst], made: Coll.BTree[Coll.List[Mono.Key]], out: Coll.List[Mono.Inst]): Coll.List[Mono.Inst] = todo match case Coll.Nil => Coll.rev(out) case Coll.Cons(i, rest) => val Mono.Inst(f, sub, _) = i @@ -119,7 +119,7 @@ enum Mono.Grow: case Mono.Grow(todo: Coll.List[Mono.Inst], made: Coll.BTree[Coll.List[Mono.Key]]) // each new key becomes instances to scan: a generic def at its args, or every method of the given picked for a goal -def Mono.enqueue {r: Region} (cx: Mono.Cx, ks: Coll.List[Mono.Key], todo: Coll.List[Mono.Inst], made: Coll.BTree[Coll.List[Mono.Key]]): Mono.Grow = ks match +def Mono.enqueue(cx: Mono.Cx, ks: Coll.List[Mono.Key], todo: Coll.List[Mono.Inst], made: Coll.BTree[Coll.List[Mono.Key]]): Mono.Grow = ks match case Coll.Nil => Mono.Grow(todo, made) case Coll.Cons(k, rest) => val h = Mono.keyHash(k) @@ -140,7 +140,7 @@ def Mono.enqueue {r: Region} (cx: Mono.Cx, ks: Coll.List[Mono.Key], todo: Coll.L Mono.implInsts(gfs, sub, t, todo) Mono.enqueue(cx, rest, todo2, Coll.bPushT(made, h, k)) -def Mono.implInsts {r: Region} (fs: Coll.List[El.Fn], sub: Coll.List[Ty.Bind], goal: K.Term, todo: Coll.List[Mono.Inst]): Coll.List[Mono.Inst] = fs match +def Mono.implInsts(fs: Coll.List[El.Fn], sub: Coll.List[Ty.Bind], goal: K.Term, todo: Coll.List[Mono.Inst]): Coll.List[Mono.Inst] = fs match case Coll.Nil => todo case Coll.Cons(f, rest) => Mono.implInsts(rest, sub, goal, Coll.Cons(Mono.Inst(f, sub, Mono.Impl(goal)), todo)) @@ -149,7 +149,7 @@ def Mono.implInsts {r: Region} (fs: Coll.List[El.Fn], sub: Coll.List[Ty.Bind], g enum Mono.Match: case Mono.Match(g: El.Given, sub: Coll.List[Ty.Bind]) -def Mono.pick {r: Region} (gvs: Coll.List[El.Given], t: K.Term, best: Coll.Option[Mono.Match]): Coll.Option[Mono.Match] = gvs match +def Mono.pick(gvs: Coll.List[El.Given], t: K.Term, best: Coll.Option[Mono.Match]): Coll.Option[Mono.Match] = gvs match case Coll.Nil => best case Coll.Cons(g, rest) => val El.Given(tps, _, head, _) = g @@ -163,7 +163,7 @@ def Mono.pick {r: Region} (gvs: Coll.List[El.Given], t: K.Term, best: Coll.Optio val Mono.Match(bg, _) = b Mono.pick(rest, t, if Mono.better(g, bg) then Coll.Some(m) else best) -def Mono.better {r: Region} (a: El.Given, b: El.Given): Bool = +def Mono.better(a: El.Given, b: El.Given): Bool = val El.Given(atps, aev, ah, _) = a val El.Given(btps, bev, bh, _) = b val ab = Mono.isSome(Mono.matchT(btps, bh, ah, Coll.Some(Coll.Nil))) @@ -175,7 +175,7 @@ def Mono.isSome(o: Coll.Option[Coll.List[Ty.Bind]]): Bool = o match case Coll.None => false // t is an instance of the pattern p whose vars are the binder names xs: the binding (one-way match) -def Mono.matchT {r: Region} (xs: Coll.List[Sym.Sym], p: K.Term, t: K.Term, acc: Coll.Option[Coll.List[Ty.Bind]]): Coll.Option[Coll.List[Ty.Bind]] = acc match +def Mono.matchT(xs: Coll.List[Sym.Sym], p: K.Term, t: K.Term, acc: Coll.Option[Coll.List[Ty.Bind]]): Coll.Option[Coll.List[Ty.Bind]] = acc match case Coll.None => Coll.None case Coll.Some(bs) => p match case K.Con(n, pargs) => @@ -188,14 +188,14 @@ def Mono.matchT {r: Region} (xs: Coll.List[Sym.Sym], p: K.Term, t: K.Term, acc: case _ => Coll.None case _ => if Mono.termEq(p, t) then acc else Coll.None -def Mono.matchAll {r: Region} (xs: Coll.List[Sym.Sym], ps: Coll.List[K.Term], ts: Coll.List[K.Term], acc: Coll.Option[Coll.List[Ty.Bind]]): Coll.Option[Coll.List[Ty.Bind]] = ps match +def Mono.matchAll(xs: Coll.List[Sym.Sym], ps: Coll.List[K.Term], ts: Coll.List[K.Term], acc: Coll.Option[Coll.List[Ty.Bind]]): Coll.Option[Coll.List[Ty.Bind]] = ps match case Coll.Nil => acc case Coll.Cons(p, prest) => ts match case Coll.Nil => acc case Coll.Cons(t, trest) => Mono.matchAll(xs, prest, trest, Mono.matchT(xs, p, t, acc)) // the generic calls of e, at ground args under sub -def Mono.calls {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], e: El.Expr, acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = e match +def Mono.calls(s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], e: El.Expr, acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = e match case El.CallFn(_, f, ts, _, args) => val acc2 = ts match case Coll.Nil => acc @@ -212,17 +212,17 @@ def Mono.calls {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], e: El case El.Assign(_, _, x) => Mono.calls(s, sub, x, acc) case _ => acc -def Mono.callsAll {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], xs: Coll.List[El.Expr], acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = xs match +def Mono.callsAll(s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], xs: Coll.List[El.Expr], acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Mono.callsAll(s, sub, rest, Mono.calls(s, sub, x, acc)) -def Mono.armCalls {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], xs: Coll.List[El.Arm], acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = xs match +def Mono.armCalls(s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], xs: Coll.List[El.Arm], acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = xs match case Coll.Nil => acc case Coll.Cons(a, rest) => val El.Arm(_, _, b) = a Mono.armCalls(s, sub, rest, Mono.calls(s, sub, b, acc)) -def Mono.stmtCalls {r: Region} (s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], xs: Coll.List[El.Stmt], acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = xs match +def Mono.stmtCalls(s: Coll.IMap[K.Term], sub: Coll.List[Ty.Bind], xs: Coll.List[El.Stmt], acc: Coll.List[Mono.Key]): Coll.List[Mono.Key] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => val acc2 = x match diff --git a/s2/names.srs b/s2/names.srs index 2bb28385..5f290397 100644 --- a/s2/names.srs +++ b/s2/names.srs @@ -58,7 +58,7 @@ enum Names.Rel: case Names.RNoOpAt case Names.RBadArityAt -def Names.relSym {r: Region} (x: Names.Rel): Sym.Sym = x match +def Names.relSym(x: Names.Rel): Sym.Sym = x match case Names.RDecl => Sym.of("decl") case Names.RDeclLine => Sym.of("declLine") case Names.RDeclared => Sym.of("declared") @@ -90,58 +90,58 @@ enum Names.Ns: case Names.NCall case Names.NType -def Names.nsVal {r: Region} (n: Names.Ns): D.Val = n match +def Names.nsVal(n: Names.Ns): D.Val = n match case Names.NCall => D.VInt(0) case Names.NType => D.VInt(1) // ── facts: one constructor per relation ── -def Names.i {r: Region} (n: I64): D.Val = D.VInt(n) -def Names.s {r: Region} (x: Sym.Sym): D.Val = D.VSym(x) -def Names.f2 {r: Region} (rel: Names.Rel, a: D.Val, b: D.Val): D.Fact = D.Fact(Names.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Nil))) -def Names.f3 {r: Region} (rel: Names.Rel, a: D.Val, b: D.Val, c: D.Val): D.Fact = D.Fact(Names.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Nil)))) -def Names.f5 {r: Region} (rel: Names.Rel, a: D.Val, b: D.Val, c: D.Val, d: D.Val, e: D.Val): D.Fact = D.Fact(Names.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Cons(d, Coll.Cons(e, Coll.Nil)))))) -def Names.fDecl {r: Region} (ns: Names.Ns, n: Sym.Sym, id: I64): D.Fact = Names.f3(Names.RDecl, Names.nsVal(ns), Names.s(n), Names.i(id)) -def Names.fDeclLine {r: Region} (id: I64, line: I64): D.Fact = Names.f2(Names.RDeclLine, Names.i(id), Names.i(line)) -def Names.fUseCall {r: Region} (n: Sym.Sym, line: I64): D.Fact = Names.f2(Names.RUseCall, Names.s(n), Names.i(line)) -def Names.fTyRef {r: Region} (n: Sym.Sym, line: I64): D.Fact = Names.f2(Names.RTyRef, Names.s(n), Names.i(line)) -def Names.fState {r: Region} (p: Sym.Sym, s: Sym.Sym): D.Fact = Names.f2(Names.RState, Names.s(p), Names.s(s)) -def Names.fStart {r: Region} (p: Sym.Sym, s: Sym.Sym, line: I64): D.Fact = Names.f3(Names.RStart, Names.s(p), Names.s(s), Names.i(line)) -def Names.fTrans {r: Region} (p: Sym.Sym, op: Sym.Sym, a: Sym.Sym, b: Sym.Sym, line: I64): D.Fact = Names.f5(Names.RTrans, Names.s(p), Names.s(op), Names.s(a), Names.s(b), Names.i(line)) -def Names.fDropOp {r: Region} (p: Sym.Sym, op: Sym.Sym, line: I64): D.Fact = Names.f3(Names.RDropOp, Names.s(p), Names.s(op), Names.i(line)) -def Names.fOpOf {r: Region} (p: Sym.Sym, op: Sym.Sym): D.Fact = Names.f2(Names.ROpOf, Names.s(p), Names.s(op)) -def Names.fIsProto {r: Region} (p: Sym.Sym): D.Fact = D.Fact(Names.relSym(Names.RIsProto), Coll.Cons(Names.s(p), Coll.Nil)) -def Names.fHandlerFor {r: Region} (h: Sym.Sym, p: Sym.Sym, line: I64): D.Fact = Names.f3(Names.RHandlerFor, Names.s(h), Names.s(p), Names.i(line)) -def Names.fImpl {r: Region} (h: Sym.Sym, f: Sym.Sym): D.Fact = Names.f2(Names.RImpl, Names.s(h), Names.s(f)) -def Names.fImplArity {r: Region} (h: Sym.Sym, f: Sym.Sym, n: I64, line: I64): D.Fact = D.Fact(Names.relSym(Names.RImplArity), Coll.Cons(Names.s(h), Coll.Cons(Names.s(f), Coll.Cons(Names.i(n), Coll.Cons(Names.i(line), Coll.Nil))))) -def Names.fWantArity {r: Region} (p: Sym.Sym, op: Sym.Sym, n: I64): D.Fact = Names.f3(Names.RWantArity, Names.s(p), Names.s(op), Names.i(n)) -def Names.fSameI {r: Region} (n: I64): D.Fact = Names.f2(Names.RSame, Names.i(n), Names.i(n)) +def Names.i(n: I64): D.Val = D.VInt(n) +def Names.s(x: Sym.Sym): D.Val = D.VSym(x) +def Names.f2(rel: Names.Rel, a: D.Val, b: D.Val): D.Fact = D.Fact(Names.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Nil))) +def Names.f3(rel: Names.Rel, a: D.Val, b: D.Val, c: D.Val): D.Fact = D.Fact(Names.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Nil)))) +def Names.f5(rel: Names.Rel, a: D.Val, b: D.Val, c: D.Val, d: D.Val, e: D.Val): D.Fact = D.Fact(Names.relSym(rel), Coll.Cons(a, Coll.Cons(b, Coll.Cons(c, Coll.Cons(d, Coll.Cons(e, Coll.Nil)))))) +def Names.fDecl(ns: Names.Ns, n: Sym.Sym, id: I64): D.Fact = Names.f3(Names.RDecl, Names.nsVal(ns), Names.s(n), Names.i(id)) +def Names.fDeclLine(id: I64, line: I64): D.Fact = Names.f2(Names.RDeclLine, Names.i(id), Names.i(line)) +def Names.fUseCall(n: Sym.Sym, line: I64): D.Fact = Names.f2(Names.RUseCall, Names.s(n), Names.i(line)) +def Names.fTyRef(n: Sym.Sym, line: I64): D.Fact = Names.f2(Names.RTyRef, Names.s(n), Names.i(line)) +def Names.fState(p: Sym.Sym, s: Sym.Sym): D.Fact = Names.f2(Names.RState, Names.s(p), Names.s(s)) +def Names.fStart(p: Sym.Sym, s: Sym.Sym, line: I64): D.Fact = Names.f3(Names.RStart, Names.s(p), Names.s(s), Names.i(line)) +def Names.fTrans(p: Sym.Sym, op: Sym.Sym, a: Sym.Sym, b: Sym.Sym, line: I64): D.Fact = Names.f5(Names.RTrans, Names.s(p), Names.s(op), Names.s(a), Names.s(b), Names.i(line)) +def Names.fDropOp(p: Sym.Sym, op: Sym.Sym, line: I64): D.Fact = Names.f3(Names.RDropOp, Names.s(p), Names.s(op), Names.i(line)) +def Names.fOpOf(p: Sym.Sym, op: Sym.Sym): D.Fact = Names.f2(Names.ROpOf, Names.s(p), Names.s(op)) +def Names.fIsProto(p: Sym.Sym): D.Fact = D.Fact(Names.relSym(Names.RIsProto), Coll.Cons(Names.s(p), Coll.Nil)) +def Names.fHandlerFor(h: Sym.Sym, p: Sym.Sym, line: I64): D.Fact = Names.f3(Names.RHandlerFor, Names.s(h), Names.s(p), Names.i(line)) +def Names.fImpl(h: Sym.Sym, f: Sym.Sym): D.Fact = Names.f2(Names.RImpl, Names.s(h), Names.s(f)) +def Names.fImplArity(h: Sym.Sym, f: Sym.Sym, n: I64, line: I64): D.Fact = D.Fact(Names.relSym(Names.RImplArity), Coll.Cons(Names.s(h), Coll.Cons(Names.s(f), Coll.Cons(Names.i(n), Coll.Cons(Names.i(line), Coll.Nil))))) +def Names.fWantArity(p: Sym.Sym, op: Sym.Sym, n: I64): D.Fact = Names.f3(Names.RWantArity, Names.s(p), Names.s(op), Names.i(n)) +def Names.fSameI(n: I64): D.Fact = Names.f2(Names.RSame, Names.i(n), Names.i(n)) // the walk: the next declaration id and the facts enum Names.St: case Names.St(next: I64, facts: Coll.List[D.Fact]) -def Names.add {r: Region} (st: Names.St, f: D.Fact): Names.St = +def Names.add(st: Names.St, f: D.Fact): Names.St = val Names.St(n, fs) = st Names.St(n, Coll.Cons(f, fs)) // a declaration of n in ns at line: a fresh id, so two declarations of one name are two rows -def Names.declare {r: Region} (st: Names.St, ns: Names.Ns, n: Sym.Sym, line: I64): Names.St = +def Names.declare(st: Names.St, ns: Names.Ns, n: Sym.Sym, line: I64): Names.St = val Names.St(id, fs) = st Names.St(id + 1, Coll.Cons(Names.fSameI(id), Coll.Cons(Names.fDeclLine(id, line), Coll.Cons(Names.fDecl(ns, n, id), fs)))) // the builtin types (parity D14): one declaration each, at line 0 -def Names.builtins {r: Region} (st: Names.St): Names.St = +def Names.builtins(st: Names.St): Names.St = Names.declare(Names.declare(Names.declare(Names.declare(Names.declare(st, Names.NType, Sym.of("I64"), 0), Names.NType, Sym.of("Bool"), 0), Names.NType, Sym.of("Unit"), 0), Names.NType, Sym.of("Str"), 0), Names.NType, Sym.of("Ptr"), 0) -def Names.facts {r: Region} (ds: Coll.List[Ast.Decl]): Coll.List[D.Fact] = +def Names.facts(ds: Coll.List[Ast.Decl]): Coll.List[D.Fact] = val Names.St(_, fs) = Names.decls(ds, Names.builtins(Names.St(0, Coll.Nil))) fs -def Names.decls {r: Region} (ds: Coll.List[Ast.Decl], st: Names.St): Names.St = ds match +def Names.decls(ds: Coll.List[Ast.Decl], st: Names.St): Names.St = ds match case Coll.Nil => st case Coll.Cons(d, rest) => Names.decls(rest, Names.decl(d, st)) -def Names.decl {r: Region} (d: Ast.Decl, st: Names.St): Names.St = d match +def Names.decl(d: Ast.Decl, st: Names.St): Names.St = d match case Ast.DFn(f) => val Ast.Fn(line, name, _, _, _, _, _) = f Names.fn(f, Coll.Nil, Names.declare(st, Names.NCall, name, line)) @@ -170,31 +170,31 @@ def Names.decl {r: Region} (d: Ast.Decl, st: Names.St): Names.St = d match val tps = Names.tparams(gs, Coll.Nil) Names.fnsIn(fs, tps, Names.ty(head, tps, st)) -def Names.tyArms {r: Region} (as: Coll.List[Ast.TyArm], tps: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym], st: Names.St): Names.St = as match +def Names.tyArms(as: Coll.List[Ast.TyArm], tps: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym], st: Names.St): Names.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => val Ast.TyArm(_, p, res) = a Names.tyArms(rest, tps, ls, Names.tyIn(res, tps, ls, Names.tyIn(p, tps, ls, st))) -def Names.valArms {r: Region} (as: Coll.List[Ast.ValArm], tps: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym], st: Names.St): Names.St = as match +def Names.valArms(as: Coll.List[Ast.ValArm], tps: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym], st: Names.St): Names.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => val Ast.ValArm(_, _, res) = a Names.valArms(rest, tps, ls, Names.tyIn(res, tps, ls, st)) -def Names.fnsIn {r: Region} (fs: Coll.List[Ast.Fn], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = fs match +def Names.fnsIn(fs: Coll.List[Ast.Fn], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = fs match case Coll.Nil => st case Coll.Cons(f, rest) => Names.fnsIn(rest, tps, Names.fn(f, tps, st)) // the [] binder names of groups gs (types in scope) -def Names.tparams {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = gs match +def Names.tparams(gs: Coll.List[Ast.Group], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = gs match case Coll.Nil => acc case Coll.Cons(g, rest) => g match case Ast.Types(bs) => Names.tparams(rest, Names.binderNames(bs, acc)) case Ast.Evidence(_) => Names.tparams(rest, acc) case Ast.Facts(_) => Names.tparams(rest, acc) -def Names.binderNames {r: Region} (bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Names.binderNames(bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ast.Binder(_, x, _) = b @@ -205,25 +205,25 @@ def Names.member(x: Sym.Sym, xs: Coll.List[Sym.Sym]): Bool = xs match case Coll.Cons(h, t) => if Sym.eq(h, x) then true else Names.member(x, t) // every type a type names: its name (unless a [] binder in scope tps) and its args -def Names.ty {r: Region} (t: Ast.Ty, tps: Coll.List[Sym.Sym], st: Names.St): Names.St = Names.tyIn(t, tps, Coll.Nil, st) +def Names.ty(t: Ast.Ty, tps: Coll.List[Sym.Sym], st: Names.St): Names.St = Names.tyIn(t, tps, Coll.Nil, st) // a type with the locals ls in scope of its value args (the value binders of a type decl) -def Names.tyIn {r: Region} (t: Ast.Ty, tps: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym], st: Names.St): Names.St = +def Names.tyIn(t: Ast.Ty, tps: Coll.List[Sym.Sym], ls: Coll.List[Sym.Sym], st: Names.St): Names.St = val Ast.Ty(line, n, args, _, vs) = t Names.exprs(vs, ls, tps, Names.tys(args, tps, if Names.member(n, tps) then st else Names.add(st, Names.fTyRef(n, line)))) -def Names.tys {r: Region} (ts: Coll.List[Ast.Ty], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = ts match +def Names.tys(ts: Coll.List[Ast.Ty], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = ts match case Coll.Nil => st case Coll.Cons(t, rest) => Names.tys(rest, tps, Names.ty(t, tps, st)) -def Names.binderTys {r: Region} (bs: Coll.List[Ast.Binder], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = bs match +def Names.binderTys(bs: Coll.List[Ast.Binder], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = bs match case Coll.Nil => st case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b Names.binderTys(rest, tps, Names.ty(t, tps, st)) // every case is a call name; its field types are named in the enum's [] binders -def Names.cases {r: Region} (cs: Coll.List[Ast.Case], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = cs match +def Names.cases(cs: Coll.List[Ast.Case], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = cs match case Coll.Nil => st case Coll.Cons(c, rest) => val Ast.Case(line, name, fields) = c @@ -231,7 +231,7 @@ def Names.cases {r: Region} (cs: Coll.List[Ast.Case], tps: Coll.List[Sym.Sym], s // a def: its signature's types, then its body with its params and binders as locals (outer = types in scope from an // enclosing decl) -def Names.fn {r: Region} (f: Ast.Fn, outer: Coll.List[Sym.Sym], st: Names.St): Names.St = +def Names.fn(f: Ast.Fn, outer: Coll.List[Sym.Sym], st: Names.St): Names.St = val Ast.Fn(_, _, gs, params, ret, _, body) = f val tps = Names.tparams(gs, outer) val st1 = Names.ty(ret, tps, Names.binderTys(params, tps, Names.groupTys(gs, tps, st))) @@ -242,14 +242,14 @@ def Names.fn {r: Region} (f: Ast.Fn, outer: Coll.List[Sym.Sym], st: Names.St): N case Ast.Spec(cs, e) => Names.expr(e, locals, tps, Names.clauses(cs, locals, tps, st1)) // the types of the {} binders (a {} binder names a trait or a protocol) -def Names.groupTys {r: Region} (gs: Coll.List[Ast.Group], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = gs match +def Names.groupTys(gs: Coll.List[Ast.Group], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = gs match case Coll.Nil => st case Coll.Cons(g, rest) => g match case Ast.Evidence(bs) => Names.groupTys(rest, tps, Names.binderTys(bs, tps, st)) case Ast.Types(_) => Names.groupTys(rest, tps, st) case Ast.Facts(_) => Names.groupTys(rest, tps, st) -def Names.evidenceNames {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = gs match +def Names.evidenceNames(gs: Coll.List[Ast.Group], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = gs match case Coll.Nil => acc case Coll.Cons(g, rest) => g match case Ast.Evidence(bs) => Names.evidenceNames(rest, Names.binderNames(bs, acc)) @@ -257,7 +257,7 @@ def Names.evidenceNames {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Sy case Ast.Facts(_) => Names.evidenceNames(rest, acc) // contract clauses: their expressions see the params and result (s1 binds result in an ensures) -def Names.clauses {r: Region} (cs: Coll.List[Ast.Clause], ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = cs match +def Names.clauses(cs: Coll.List[Ast.Clause], ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = cs match case Coll.Nil => st case Coll.Cons(c, rest) => c match case Ast.CondC(_, _, e) => Names.clauses(rest, ls, tps, Names.expr(e, Coll.Cons(Sym.of("result"), ls), tps, st)) @@ -266,12 +266,12 @@ def Names.clauses {r: Region} (cs: Coll.List[Ast.Clause], ls: Coll.List[Sym.Sym] case Ast.ProofLean(_, _) => Names.clauses(rest, ls, tps, st) // proof using f, g: each is a use of a def -def Names.useAll {r: Region} (xs: Coll.List[Sym.Sym], line: I64, st: Names.St): Names.St = xs match +def Names.useAll(xs: Coll.List[Sym.Sym], line: I64, st: Names.St): Names.St = xs match case Coll.Nil => st case Coll.Cons(x, rest) => Names.useAll(rest, line, Names.add(st, Names.fUseCall(x, line))) // a body: a call or a name that is not local is a use of the call namespace (a def, a case, a nullary case) -def Names.expr {r: Region} (e: Ast.Expr, ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = e match +def Names.expr(e: Ast.Expr, ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = e match case Ast.Name(line, x) => if Names.member(x, ls) then st else Names.add(st, Names.fUseCall(x, line)) case Ast.Call(line, f, targs, _, xs) => Names.exprs(xs, ls, tps, Names.tys(targs, tps, Names.add(st, Names.fUseCall(f, line)))) case Ast.Method(_, _, _, xs) => Names.exprs(xs, ls, tps, st) @@ -285,12 +285,12 @@ def Names.expr {r: Region} (e: Ast.Expr, ls: Coll.List[Sym.Sym], tps: Coll.List[ case Ast.Block(_, ss, last) => Names.block(ss, last, ls, tps, st) case _ => st -def Names.exprs {r: Region} (xs: Coll.List[Ast.Expr], ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = xs match +def Names.exprs(xs: Coll.List[Ast.Expr], ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = xs match case Coll.Nil => st case Coll.Cons(x, rest) => Names.exprs(rest, ls, tps, Names.expr(x, ls, tps, st)) // an arm: its case is a use; its binders are locals of its body -def Names.arms {r: Region} (as: Coll.List[Ast.Arm], ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = as match +def Names.arms(as: Coll.List[Ast.Arm], ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = as match case Coll.Nil => st case Coll.Cons(a, rest) => val Ast.Arm(line, p, b) = a @@ -299,12 +299,12 @@ def Names.arms {r: Region} (as: Coll.List[Ast.Arm], ls: Coll.List[Sym.Sym], tps: case Ast.PAny => Names.expr(b, ls, tps, st) Names.arms(rest, ls, tps, st1) -def Names.binderSyms {r: Region} (xs: Coll.List[Sym.Sym], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match +def Names.binderSyms(xs: Coll.List[Sym.Sym], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Names.binderSyms(rest, Coll.Cons(x, acc)) // a block: each statement in turn; a val, var or handle binds its name for the statements after it and the value -def Names.block {r: Region} (ss: Coll.List[Ast.Stmt], last: Ast.Expr, ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = ss match +def Names.block(ss: Coll.List[Ast.Stmt], last: Ast.Expr, ls: Coll.List[Sym.Sym], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = ss match case Coll.Nil => Names.expr(last, ls, tps, st) case Coll.Cons(s, rest) => s match case Ast.Val(_, x, ann, e) => Names.block(rest, last, Coll.Cons(x, ls), tps, Names.annTy(ann, tps, Names.expr(e, ls, tps, st))) @@ -313,12 +313,12 @@ def Names.block {r: Region} (ss: Coll.List[Ast.Stmt], last: Ast.Expr, ls: Coll.L case Ast.Do(e) => Names.block(rest, last, ls, tps, Names.expr(e, ls, tps, st)) case Ast.Check(_, _, e) => Names.block(rest, last, ls, tps, Names.expr(e, ls, tps, st)) -def Names.annTy {r: Region} (ann: Coll.Option[Ast.Ty], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = ann match +def Names.annTy(ann: Coll.Option[Ast.Ty], tps: Coll.List[Sym.Sym], st: Names.St): Names.St = ann match case Coll.None => st case Coll.Some(t) => Names.ty(t, tps, st) // a protocol: a type name; its states, start, transitions, ops and drop op as facts; its op signatures' types -def Names.proto {r: Region} (p: Ast.Proto, st: Names.St): Names.St = +def Names.proto(p: Ast.Proto, st: Names.St): Names.St = val Ast.Proto(line, name, states, start, _, dropOp, ops, _) = p val st1 = Names.add(Names.add(Names.declare(st, Names.NType, name, line), Names.fIsProto(name)), Names.fStart(name, start, line)) val st2 = Names.statesF(name, states, st1) @@ -327,13 +327,13 @@ def Names.proto {r: Region} (p: Ast.Proto, st: Names.St): Names.St = case Coll.Some(d) => Names.add(st2, Names.fDropOp(name, d, line)) Names.ops(name, ops, st3) -def Names.statesF {r: Region} (p: Sym.Sym, ss: Coll.List[Sym.Sym], st: Names.St): Names.St = ss match +def Names.statesF(p: Sym.Sym, ss: Coll.List[Sym.Sym], st: Names.St): Names.St = ss match case Coll.Nil => st case Coll.Cons(s, rest) => Names.statesF(p, rest, Names.add(st, Names.fState(p, s))) // each op: declared in its protocol, its request P.op a call name, wanted with arity params + 1 (self) in a handler, // its transitions, its types -def Names.ops {r: Region} (p: Sym.Sym, os: Coll.List[Ast.Op], st: Names.St): Names.St = os match +def Names.ops(p: Sym.Sym, os: Coll.List[Ast.Op], st: Names.St): Names.St = os match case Coll.Nil => st case Coll.Cons(o, rest) => val Ast.Op(line, name, params, ret, trs) = o @@ -341,18 +341,18 @@ def Names.ops {r: Region} (p: Sym.Sym, os: Coll.List[Ast.Op], st: Names.St): Nam val st1 = Names.add(Names.add(Names.add(Names.declare(st, Names.NCall, Eff.dotted(Sym.str(p), name), line), Names.fOpOf(p, name)), Names.fWantArity(p, name, n)), Names.fSameI(n)) Names.ops(p, rest, Names.transF(p, name, trs, line, Names.ty(ret, Coll.Nil, Names.binderTys(params, Coll.Nil, st1)))) -def Names.transF {r: Region} (p: Sym.Sym, op: Sym.Sym, trs: Coll.List[Ast.Trans], line: I64, st: Names.St): Names.St = trs match +def Names.transF(p: Sym.Sym, op: Sym.Sym, trs: Coll.List[Ast.Trans], line: I64, st: Names.St): Names.St = trs match case Coll.Nil => st case Coll.Cons(t, rest) => val Ast.Trans(a, b) = t Names.transF(p, op, rest, line, Names.add(st, Names.fTrans(p, op, a, b, line))) // a handler: a type name for a protocol; each fn implements an op (or init) with its arity -def Names.handler {r: Region} (h: Ast.Handler, st: Names.St): Names.St = +def Names.handler(h: Ast.Handler, st: Names.St): Names.St = val Ast.Handler(line, name, p, fns) = h Names.hfns(name, fns, Names.add(Names.declare(st, Names.NType, name, line), Names.fHandlerFor(name, p, line))) -def Names.hfns {r: Region} (h: Sym.Sym, fs: Coll.List[Ast.Fn], st: Names.St): Names.St = fs match +def Names.hfns(h: Sym.Sym, fs: Coll.List[Ast.Fn], st: Names.St): Names.St = fs match case Coll.Nil => st case Coll.Cons(f, rest) => val Ast.Fn(line, name, _, params, _, _, _) = f @@ -360,25 +360,25 @@ def Names.hfns {r: Region} (h: Sym.Sym, fs: Coll.List[Ast.Fn], st: Names.St): Na Names.hfns(h, rest, Names.fn(f, Coll.Nil, Names.add(Names.add(Names.add(st, Names.fImpl(h, name)), Names.fImplArity(h, name, n, line)), Names.fSameI(n)))) // ── rules (variables: ns 0, n 1, i 2, j 3, line 4, p 5, s 6, op 7, a 8, b 9, h 10, k 11, m 12) ── -def Names.v {r: Region} (n: I64): D.Arg = D.AVar(n) -def Names.atom {r: Region} (rel: Names.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Names.relSym(rel), Names.vars(xs)) -def Names.vars {r: Region} (xs: Coll.List[I64]): Coll.List[D.Arg] = xs match +def Names.v(n: I64): D.Arg = D.AVar(n) +def Names.atom(rel: Names.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Names.relSym(rel), Names.vars(xs)) +def Names.vars(xs: Coll.List[I64]): Coll.List[D.Arg] = xs match case Coll.Nil => Coll.Nil case Coll.Cons(x, rest) => Coll.Cons(Names.v(x), Names.vars(rest)) -def Names.pos {r: Region} (rel: Names.Rel, xs: Coll.List[I64]): D.Lit = D.Pos(Names.atom(rel, xs)) -def Names.neg {r: Region} (rel: Names.Rel, xs: Coll.List[I64]): D.Lit = D.Neg(Names.atom(rel, xs)) -def Names.rule {r: Region} (rel: Names.Rel, xs: Coll.List[I64], body: Coll.List[D.Lit]): D.Rule = D.Rule(Names.atom(rel, xs), body) -def Names.l1 [A: Type] {r: Region} (a: A): Coll.List[A] = Coll.Cons(a, Coll.Nil) -def Names.l2 [A: Type] {r: Region} (a: A, b: A): Coll.List[A] = Coll.Cons(a, Names.l1(b)) -def Names.l3 [A: Type] {r: Region} (a: A, b: A, c: A): Coll.List[A] = Coll.Cons(a, Names.l2(b, c)) -def Names.l4 [A: Type] {r: Region} (a: A, b: A, c: A, d: A): Coll.List[A] = Coll.Cons(a, Names.l3(b, c, d)) -def Names.l5 [A: Type] {r: Region} (a: A, b: A, c: A, d: A, e: A): Coll.List[A] = Coll.Cons(a, Names.l4(b, c, d, e)) +def Names.pos(rel: Names.Rel, xs: Coll.List[I64]): D.Lit = D.Pos(Names.atom(rel, xs)) +def Names.neg(rel: Names.Rel, xs: Coll.List[I64]): D.Lit = D.Neg(Names.atom(rel, xs)) +def Names.rule(rel: Names.Rel, xs: Coll.List[I64], body: Coll.List[D.Lit]): D.Rule = D.Rule(Names.atom(rel, xs), body) +def Names.l1 [A: Type] (a: A): Coll.List[A] = Coll.Cons(a, Coll.Nil) +def Names.l2 [A: Type] (a: A, b: A): Coll.List[A] = Coll.Cons(a, Names.l1(b)) +def Names.l3 [A: Type] (a: A, b: A, c: A): Coll.List[A] = Coll.Cons(a, Names.l2(b, c)) +def Names.l4 [A: Type] (a: A, b: A, c: A, d: A): Coll.List[A] = Coll.Cons(a, Names.l3(b, c, d)) +def Names.l5 [A: Type] (a: A, b: A, c: A, d: A, e: A): Coll.List[A] = Coll.Cons(a, Names.l4(b, c, d, e)) // a call-namespace value: the ns column as a constant -def Names.callNs {r: Region} (): D.Arg = D.AVal(D.VInt(0)) -def Names.typeNs {r: Region} (): D.Arg = D.AVal(D.VInt(1)) +def Names.callNs(): D.Arg = D.AVal(D.VInt(0)) +def Names.typeNs(): D.Arg = D.AVal(D.VInt(1)) -def Names.rules {r: Region} (): Coll.List[D.Rule] = +def Names.rules(): Coll.List[D.Rule] = val declared = Names.rule(Names.RDeclared, Names.l2(0, 1), Names.l1(Names.pos(Names.RDecl, Names.l3(0, 1, 2)))) // every declaration of a name declared twice in one namespace (declaration ids differ) val dup = Names.rule(Names.RDupAt, Names.l2(4, 1), Names.l4(Names.pos(Names.RDecl, Names.l3(0, 1, 2)), Names.pos(Names.RDecl, Names.l3(0, 1, 3)), Names.neg(Names.RSame, Names.l2(2, 3)), Names.pos(Names.RDeclLine, Names.l2(2, 4)))) @@ -419,7 +419,7 @@ def Names.relOf(k: Names.Kind): Names.Rel = k match case Names.KNoOp => Names.RNoOpAt case Names.KBadArity => Names.RBadArityAt -def Names.make {r: Region} (k: Names.Kind, line: I64, n: Sym.Sym): Names.Clash = k match +def Names.make(k: Names.Kind, line: I64, n: Sym.Sym): Names.Clash = k match case Names.KDup => Names.Dup(line, n) case Names.KUnknown => Names.Unknown(line, n) case Names.KNoType => Names.NoType(line, n) @@ -434,17 +434,17 @@ enum Names.Read: case Names.Got(cs: Coll.List[Names.Clash]) case Names.IllTyped(rel: Sym.Sym) -def Names.read {r: Region} (m: D.Model, k: Names.Kind, prev: Names.Read): Names.Read = prev match +def Names.read(m: D.Model, k: Names.Kind, prev: Names.Read): Names.Read = prev match case Names.IllTyped(_) => prev case Names.Got(acc) => Names.readList(k, D.tuples(m, Names.relSym(Names.relOf(k))), acc) -def Names.readList {r: Region} (k: Names.Kind, ts: Coll.List[Coll.List[D.Val]], acc: Coll.List[Names.Clash]): Names.Read = ts match +def Names.readList(k: Names.Kind, ts: Coll.List[Coll.List[D.Val]], acc: Coll.List[Names.Clash]): Names.Read = ts match case Coll.Nil => Names.Got(acc) case Coll.Cons(t, rest) => Names.clashOf(k, t) match case Coll.None => Names.IllTyped(Names.relSym(Names.relOf(k))) case Coll.Some(c) => Names.readList(k, rest, Coll.Cons(c, acc)) -def Names.clashOf {r: Region} (k: Names.Kind, t: Coll.List[D.Val]): Coll.Option[Names.Clash] = t match +def Names.clashOf(k: Names.Kind, t: Coll.List[D.Val]): Coll.Option[Names.Clash] = t match case Coll.Cons(a, rest) => rest match case Coll.Cons(b, more) => more match case Coll.Nil => a match @@ -456,12 +456,12 @@ def Names.clashOf {r: Region} (k: Names.Kind, t: Coll.List[D.Val]): Coll.Option[ case Coll.Nil => Coll.None case Coll.Nil => Coll.None -def Names.readAll {r: Region} (m: D.Model): Names.Read = +def Names.readAll(m: D.Model): Names.Read = val r1 = Names.read(m, Names.KDup, Names.read(m, Names.KUnknown, Names.read(m, Names.KNoType, Names.Got(Coll.Nil)))) val r2 = Names.read(m, Names.KBadState, Names.read(m, Names.KNoDrop, Names.read(m, Names.KNoProto, r1))) Names.read(m, Names.KNoInit, Names.read(m, Names.KNoOp, Names.read(m, Names.KBadArity, r2))) -def Names.check {r: Region} (ds: Coll.List[Ast.Decl]): Names.Verdict = D.solve(Names.rules(), Names.facts(ds)) match +def Names.check(ds: Coll.List[Ast.Decl]): Names.Verdict = D.solve(Names.rules(), Names.facts(ds)) match case D.Solved(m) => Names.readAll(m) match case Names.IllTyped(rel) => Names.RulesBad(rel) case Names.Got(cs) => cs match diff --git a/s2/parse.srs b/s2/parse.srs index ff9e7a5e..6444296a 100644 --- a/s2/parse.srs +++ b/s2/parse.srs @@ -8,17 +8,17 @@ enum Parse.R [A: Type]: case Parse.Err(line: I64, want: Str) // ── tokens ── -def Parse.eof {r: Region} (): Lex.Tok = Lex.TEof(0) +def Parse.eof(): Lex.Tok = Lex.TEof(0) -def Parse.peek {r: Region} (ts: Coll.List[Lex.Tok]): Lex.Tok = ts match +def Parse.peek(ts: Coll.List[Lex.Tok]): Lex.Tok = ts match case Coll.Nil => Parse.eof() case Coll.Cons(t, _) => t -def Parse.next {r: Region} (ts: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = ts match +def Parse.next(ts: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = ts match case Coll.Nil => ts case Coll.Cons(_, rest) => rest -def Parse.second {r: Region} (ts: Coll.List[Lex.Tok]): Lex.Tok = Parse.peek(Parse.next(ts)) +def Parse.second(ts: Coll.List[Lex.Tok]): Lex.Tok = Parse.peek(Parse.next(ts)) def Parse.lineOf(t: Lex.Tok): I64 = t match case Lex.TIdent(_, l) => l @@ -31,7 +31,7 @@ def Parse.lineOf(t: Lex.Tok): I64 = t match case Lex.TDedent(l) => l case Lex.TEof(l) => l -def Parse.line {r: Region} (ts: Coll.List[Lex.Tok]): I64 = Parse.lineOf(Parse.peek(ts)) +def Parse.line(ts: Coll.List[Lex.Tok]): I64 = Parse.lineOf(Parse.peek(ts)) def Parse.opIs(t: Lex.Tok, s: Str): Bool = t match case Lex.TOp(x, _) => Str.eq(x, s) @@ -41,58 +41,58 @@ def Parse.kwIs(t: Lex.Tok, s: Str): Bool = t match case Lex.TIdent(x, _) => Str.eq(x, s) case _ => false -def Parse.isOp {r: Region} (ts: Coll.List[Lex.Tok], s: Str): Bool = Parse.opIs(Parse.peek(ts), s) -def Parse.isKw {r: Region} (ts: Coll.List[Lex.Tok], s: Str): Bool = Parse.kwIs(Parse.peek(ts), s) +def Parse.isOp(ts: Coll.List[Lex.Tok], s: Str): Bool = Parse.opIs(Parse.peek(ts), s) +def Parse.isKw(ts: Coll.List[Lex.Tok], s: Str): Bool = Parse.kwIs(Parse.peek(ts), s) -def Parse.isNl {r: Region} (ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match +def Parse.isNl(ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match case Lex.TNl(_) => true case _ => false -def Parse.isIndent {r: Region} (ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match +def Parse.isIndent(ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match case Lex.TIndent(_) => true case _ => false -def Parse.isDedent {r: Region} (ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match +def Parse.isDedent(ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match case Lex.TDedent(_) => true case _ => false -def Parse.isEof {r: Region} (ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match +def Parse.isEof(ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match case Lex.TEof(_) => true case _ => false -def Parse.skipNl {r: Region} (ts: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = if Parse.isNl(ts) then Parse.skipNl(Parse.next(ts)) else ts +def Parse.skipNl(ts: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = if Parse.isNl(ts) then Parse.skipNl(Parse.next(ts)) else ts // the token after an op s, or Err -def Parse.op {r: Region} (ts: Coll.List[Lex.Tok], s: Str): Parse.R[I64] = +def Parse.op(ts: Coll.List[Lex.Tok], s: Str): Parse.R[I64] = if Parse.isOp(ts, s) then Parse.Ok(Parse.line(ts), Parse.next(ts)) else Parse.Err(Parse.line(ts), s) -def Parse.kw {r: Region} (ts: Coll.List[Lex.Tok], s: Str): Parse.R[I64] = +def Parse.kw(ts: Coll.List[Lex.Tok], s: Str): Parse.R[I64] = if Parse.isKw(ts, s) then Parse.Ok(Parse.line(ts), Parse.next(ts)) else Parse.Err(Parse.line(ts), s) -def Parse.ident {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Sym.Sym] = Parse.peek(ts) match +def Parse.ident(ts: Coll.List[Lex.Tok]): Parse.R[Sym.Sym] = Parse.peek(ts) match case Lex.TIdent(x, _) => Parse.Ok(Sym.of(x), Parse.next(ts)) case _ => Parse.Err(Parse.line(ts), "name") // `:` NL IND: a layout block opens -def Parse.layoutOpen {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[I64] = Parse.op(ts, ":") match +def Parse.layoutOpen(ts: Coll.List[Lex.Tok]): Parse.R[I64] = Parse.op(ts, ":") match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(_, t1) => if Parse.isNl(t1) && Parse.isIndent(Parse.next(t1)) then Parse.Ok(Parse.line(t1), Parse.next(Parse.next(t1))) else Parse.Err(Parse.line(t1), "indented block") // the end of a line in a layout block: NL (consumed) or a DED that closes the block (left) -def Parse.endLine {r: Region} (ts: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = if Parse.isNl(ts) then Parse.next(ts) else ts +def Parse.endLine(ts: Coll.List[Lex.Tok]): Coll.List[Lex.Tok] = if Parse.isNl(ts) then Parse.next(ts) else ts // ── the file ── -def Parse.file {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Decl]] = Parse.decls(ts, Coll.Nil) +def Parse.file(ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Decl]] = Parse.decls(ts, Coll.Nil) -def Parse.decls {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Decl]): Parse.R[Coll.List[Ast.Decl]] = +def Parse.decls(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Decl]): Parse.R[Coll.List[Ast.Decl]] = if Parse.isNl(ts) then Parse.decls(Parse.next(ts), acc) else if Parse.isEof(ts) then Parse.Ok(Coll.rev(acc), ts) else Parse.decl(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(d, t1) => Parse.decls(t1, Coll.Cons(d, acc)) -def Parse.decl {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Decl] = +def Parse.decl(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Decl] = if Parse.isKw(ts, "def") then Parse.wrapFn(Parse.fn(Parse.next(ts), Parse.line(ts), Parse.FDef)) else if Parse.isKw(ts, "extern") || Parse.isKw(ts, "spec") then Parse.kw(Parse.next(ts), "def") match @@ -107,7 +107,7 @@ def Parse.decl {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Decl] = else Parse.Err(Parse.line(ts), "declaration") // type Name groups [(value binders)] = body (s1/parse.srs:297-346) -def Parse.typeDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match +def Parse.typeDecl(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.groups(t1, Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -122,7 +122,7 @@ def Parse.typeDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast. case Parse.Ok(b, t5) => Parse.Ok(Ast.DType(Ast.TypeDecl(line, name, gs, vals, b)), t5) // a value binder name followed by match: a value match; else a type, then match arms or not -def Parse.typeBody {r: Region} (ts: Coll.List[Lex.Tok], vals: Coll.List[Ast.Binder]): Parse.R[Ast.TBody] = Parse.peek(ts) match +def Parse.typeBody(ts: Coll.List[Lex.Tok], vals: Coll.List[Ast.Binder]): Parse.R[Ast.TBody] = Parse.peek(ts) match case Lex.TIdent(x, _) => if Parse.kwIs(Parse.second(ts), "match") && Parse.binderNamed(vals, x) then Parse.armsOpen(Parse.next(Parse.next(ts))) match @@ -139,7 +139,7 @@ def Parse.binderNamed(bs: Coll.List[Ast.Binder], x: Str): Bool = bs match val Ast.Binder(_, n, _) = b if Str.eq(Sym.str(n), x) then true else Parse.binderNamed(rest, x) -def Parse.tyBody {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.TBody] = Parse.ty(ts) match +def Parse.tyBody(ts: Coll.List[Lex.Tok]): Parse.R[Ast.TBody] = Parse.ty(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(t, t1) => if Parse.isKw(t1, "match") then @@ -151,10 +151,10 @@ def Parse.tyBody {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.TBody] = Pars else Parse.Ok(Ast.Alias(t), t1) // NL IND after match -def Parse.armsOpen {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[I64] = +def Parse.armsOpen(ts: Coll.List[Lex.Tok]): Parse.R[I64] = if Parse.isNl(ts) && Parse.isIndent(Parse.next(ts)) then Parse.Ok(Parse.line(ts), Parse.next(Parse.next(ts))) else Parse.Err(Parse.line(ts), "match arms") -def Parse.tyArms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.TyArm]): Parse.R[Coll.List[Ast.TyArm]] = +def Parse.tyArms(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.TyArm]): Parse.R[Coll.List[Ast.TyArm]] = if Parse.isDedent(ts) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.kw(ts, "case") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -166,7 +166,7 @@ def Parse.tyArms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.TyArm]) case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(res, t4) => Parse.tyArms(Parse.endLine(t4), Coll.Cons(Ast.TyArm(line, p, res), acc)) -def Parse.valArms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.ValArm]): Parse.R[Coll.List[Ast.ValArm]] = +def Parse.valArms(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.ValArm]): Parse.R[Coll.List[Ast.ValArm]] = if Parse.isDedent(ts) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.kw(ts, "case") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -179,7 +179,7 @@ def Parse.valArms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.ValArm case Parse.Ok(res, t4) => Parse.valArms(Parse.endLine(t4), Coll.Cons(Ast.ValArm(line, p, res), acc)) // an int, a string, true, false or _ -def Parse.valuePat {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.VPat] = Parse.peek(ts) match +def Parse.valuePat(ts: Coll.List[Lex.Tok]): Parse.R[Ast.VPat] = Parse.peek(ts) match case Lex.TInt(v, _) => Parse.Ok(Ast.VInt(v), Parse.next(ts)) case Lex.TStr(s, _) => Parse.Ok(Ast.VStr(s), Parse.next(ts)) case Lex.TIdent(x, line) => @@ -190,7 +190,7 @@ def Parse.valuePat {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.VPat] = Par case _ => Parse.Err(Parse.line(ts), "a value pattern (int, string, true, false, _)") // trait Name groups: NL IND (def signature, no body)* DED -def Parse.traitDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match +def Parse.traitDecl(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.groups(t1, Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -201,7 +201,7 @@ def Parse.traitDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast case Parse.Ok(sigs, t4) => Parse.Ok(Ast.DTrait(Ast.Trait(line, name, gs, sigs)), t4) // given groups Head[args]: NL IND (def ...)* DED -def Parse.givenDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.groups(ts, Coll.Nil) match +def Parse.givenDecl(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.groups(ts, Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(gs, t1) => Parse.ty(t1) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -212,7 +212,7 @@ def Parse.givenDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast case Parse.Ok(fs, t4) => Parse.Ok(Ast.DGiven(Ast.Given(line, gs, head, fs)), t4) // defs until DED; sig = signatures only (a trait) -def Parse.defs {r: Region} (ts: Coll.List[Lex.Tok], sig: Bool, acc: Coll.List[Ast.Fn]): Parse.R[Coll.List[Ast.Fn]] = +def Parse.defs(ts: Coll.List[Lex.Tok], sig: Bool, acc: Coll.List[Ast.Fn]): Parse.R[Coll.List[Ast.Fn]] = if Parse.isDedent(ts) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.kw(ts, "def") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -220,7 +220,7 @@ def Parse.defs {r: Region} (ts: Coll.List[Lex.Tok], sig: Bool, acc: Coll.List[As case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(f, t2) => Parse.defs(Parse.endLine(t2), sig, Coll.Cons(f, acc)) -def Parse.wrapFn {r: Region} (rf: Parse.R[Ast.Fn]): Parse.R[Ast.Decl] = rf match +def Parse.wrapFn(rf: Parse.R[Ast.Fn]): Parse.R[Ast.Decl] = rf match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(f, t1) => Parse.Ok(Ast.DFn(f), t1) @@ -231,7 +231,7 @@ enum Parse.FnKind: case Parse.FSpec // def name groups (params) groups : ty [] [= rhs] -def Parse.fn {r: Region} (ts: Coll.List[Lex.Tok], line: I64, k: Parse.FnKind): Parse.R[Ast.Fn] = Parse.ident(ts) match +def Parse.fn(ts: Coll.List[Lex.Tok], line: I64, k: Parse.FnKind): Parse.R[Ast.Fn] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.groups(t1, Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -248,7 +248,7 @@ def Parse.fn {r: Region} (ts: Coll.List[Lex.Tok], line: I64, k: Parse.FnKind): P case Parse.Ok(exit, t7) => Parse.fnBody(t7, Ast.Fn(line, name, gs, ps, ret, exit, Ast.Extern), k) // the body of a def by its kind; a spec def with binder groups is an error (vic 2026-11-05) -def Parse.fnBody {r: Region} (ts: Coll.List[Lex.Tok], f: Ast.Fn, k: Parse.FnKind): Parse.R[Ast.Fn] = +def Parse.fnBody(ts: Coll.List[Lex.Tok], f: Ast.Fn, k: Parse.FnKind): Parse.R[Ast.Fn] = val Ast.Fn(line, name, gs, ps, ret, exit, _) = f k match case Parse.FExtern => Parse.Ok(f, ts) @@ -258,7 +258,7 @@ def Parse.fnBody {r: Region} (ts: Coll.List[Lex.Tok], f: Ast.Fn, k: Parse.FnKind case Coll.Cons(_, _) => Parse.Err(line, "a spec def without binder groups") // [NL IND clauses DED] = rhs (s1/parse.srs:88-89: the clauses sit between the signature and =) -def Parse.bodyOf {r: Region} (ts: Coll.List[Lex.Tok], f: Ast.Fn, spec: Bool): Parse.R[Ast.Fn] = +def Parse.bodyOf(ts: Coll.List[Lex.Tok], f: Ast.Fn, spec: Bool): Parse.R[Ast.Fn] = val Ast.Fn(line, name, gs, ps, ret, exit, _) = f val rc: Parse.R[Coll.List[Ast.Clause]] = if Parse.isNl(ts) && Parse.isIndent(Parse.next(ts)) then Parse.clauses(Parse.next(Parse.next(ts)), Coll.Nil) else Parse.Ok(Coll.Nil, ts) rc match @@ -270,14 +270,14 @@ def Parse.bodyOf {r: Region} (ts: Coll.List[Lex.Tok], f: Ast.Fn, spec: Bool): Pa case Parse.Ok(e, t2) => Parse.Ok(Ast.Fn(line, name, gs, ps, ret, exit, if spec then Ast.Spec(cs, e) else Ast.Def(cs, e)), t2) // clauses until DED, one per line -def Parse.clauses {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Clause]): Parse.R[Coll.List[Ast.Clause]] = +def Parse.clauses(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Clause]): Parse.R[Coll.List[Ast.Clause]] = if Parse.isDedent(ts) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.clause(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(c, t1) => Parse.clauses(Parse.endLine(t1), Coll.Cons(c, acc)) // requires|ensures|returns|decreases|invariant expr | proof using f, ... | proof by induction x | proof lean "..." -def Parse.clause {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Clause] = +def Parse.clause(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Clause] = val line = Parse.line(ts) if Parse.isKw(ts, "proof") then Parse.proof(Parse.next(ts), line) else Parse.condOf(Parse.peek(ts)) match @@ -286,7 +286,7 @@ def Parse.clause {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Clause] = case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(e, t1) => Parse.Ok(Ast.CondC(line, k, e), t1) -def Parse.condOf {r: Region} (t: Lex.Tok): Coll.Option[Ast.Cond] = +def Parse.condOf(t: Lex.Tok): Coll.Option[Ast.Cond] = if Parse.kwIs(t, "requires") then Coll.Some(Ast.Requires) else if Parse.kwIs(t, "ensures") then Coll.Some(Ast.Ensures) else if Parse.kwIs(t, "returns") then Coll.Some(Ast.Returns) @@ -294,7 +294,7 @@ def Parse.condOf {r: Region} (t: Lex.Tok): Coll.Option[Ast.Cond] = else if Parse.kwIs(t, "invariant") then Coll.Some(Ast.Invariant) else Coll.None -def Parse.proof {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Clause] = +def Parse.proof(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Clause] = if Parse.isKw(ts, "using") then Parse.nameLine(Parse.next(ts), Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -312,7 +312,7 @@ def Parse.proof {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Cla case _ => Parse.Err(Parse.line(t1), "a string of Lean tactics") // binder groups in written order: [binders] {binders} ; acc holds them reversed -def Parse.groups {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Group]): Parse.R[Coll.List[Ast.Group]] = +def Parse.groups(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Group]): Parse.R[Coll.List[Ast.Group]] = if Parse.isOp(ts, "[") then Parse.moreGroups(Parse.binders(Parse.next(ts), "]", Coll.Nil), Parse.GTypes, acc) else if Parse.isOp(ts, "{") then Parse.moreGroups(Parse.binders(Parse.next(ts), "}", Coll.Nil), Parse.GEvidence, acc) else if Parse.isOp(ts, "<") then @@ -326,16 +326,16 @@ enum Parse.GKind: case Parse.GTypes case Parse.GEvidence -def Parse.moreGroups {r: Region} (rb: Parse.R[Coll.List[Ast.Binder]], kind: Parse.GKind, acc: Coll.List[Ast.Group]): Parse.R[Coll.List[Ast.Group]] = rb match +def Parse.moreGroups(rb: Parse.R[Coll.List[Ast.Binder]], kind: Parse.GKind, acc: Coll.List[Ast.Group]): Parse.R[Coll.List[Ast.Group]] = rb match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(bs, t1) => Parse.groups(t1, Coll.Cons(Parse.groupOf(kind, bs), acc)) -def Parse.groupOf {r: Region} (k: Parse.GKind, bs: Coll.List[Ast.Binder]): Ast.Group = k match +def Parse.groupOf(k: Parse.GKind, bs: Coll.List[Ast.Binder]): Ast.Group = k match case Parse.GTypes => Ast.Types(bs) case Parse.GEvidence => Ast.Evidence(bs) // name: ty, ... up to close -def Parse.binders {r: Region} (ts: Coll.List[Lex.Tok], close: Str, acc: Coll.List[Ast.Binder]): Parse.R[Coll.List[Ast.Binder]] = +def Parse.binders(ts: Coll.List[Lex.Tok], close: Str, acc: Coll.List[Ast.Binder]): Parse.R[Coll.List[Ast.Binder]] = if Parse.isOp(ts, close) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -347,22 +347,22 @@ def Parse.binders {r: Region} (ts: Coll.List[Lex.Tok], close: Str, acc: Coll.Lis val acc2 = Coll.Cons(Ast.Binder(Parse.line(ts), x, t), acc) if Parse.isOp(t3, ",") then Parse.binders(Parse.next(t3), close, acc2) else Parse.binders(t3, close, acc2) -def Parse.params {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Binder]] = Parse.op(ts, "(") match +def Parse.params(ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Binder]] = Parse.op(ts, "(") match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(_, t1) => Parse.binders(t1, ")", Coll.Nil) // after the result type: the exit facts -def Parse.exitFacts {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Atom]] = +def Parse.exitFacts(ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Atom]] = if Parse.isOp(ts, "<") then Parse.atoms(Parse.next(ts), Coll.Nil) else Parse.Ok(Coll.Nil, ts) // rel(term, ...) , ... up to > -def Parse.atoms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Atom]): Parse.R[Coll.List[Ast.Atom]] = +def Parse.atoms(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Atom]): Parse.R[Coll.List[Ast.Atom]] = if Parse.isOp(ts, ">") then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.atom(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(a, t1) => if Parse.isOp(t1, ",") then Parse.atoms(Parse.next(t1), Coll.Cons(a, acc)) else Parse.atoms(t1, Coll.Cons(a, acc)) -def Parse.atom {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Atom] = Parse.ident(ts) match +def Parse.atom(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Atom] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(rel, t1) => Parse.op(t1, "(") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -370,7 +370,7 @@ def Parse.atom {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Atom] = Parse.i case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(xs, t3) => Parse.Ok(Ast.Atom(Parse.line(ts), rel, xs), t3) -def Parse.terms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Term]): Parse.R[Coll.List[Ast.Term]] = +def Parse.terms(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Term]): Parse.R[Coll.List[Ast.Term]] = if Parse.isOp(ts, ")") then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else val tm: Parse.R[Ast.Term] = Parse.peek(ts) match @@ -382,7 +382,7 @@ def Parse.terms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Term]): case Parse.Ok(t, t1) => if Parse.isOp(t1, ",") then Parse.terms(Parse.next(t1), Coll.Cons(t, acc)) else Parse.terms(t1, Coll.Cons(t, acc)) // ty := name [ [ty, ...] ] [ (expr, ...) ] [ ^ ]: type args, compile-time value args, caps -def Parse.ty {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Ty] = Parse.ident(ts) match +def Parse.ty(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Ty] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => val targs: Parse.R[Coll.List[Ast.Ty]] = if Parse.isOp(t1, "[") then Parse.tys(Parse.next(t1), "]", Coll.Nil) else Parse.Ok(Coll.Nil, t1) @@ -401,26 +401,26 @@ def Parse.ty {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Ty] = Parse.ident case Parse.Ok(cs, t5) => Parse.Ok(Ast.Ty(Parse.line(ts), name, args, Ast.Stated(cs), vals), t5) else Parse.Ok(Ast.Ty(Parse.line(ts), name, args, Ast.Inferred, vals), t3) -def Parse.tys {r: Region} (ts: Coll.List[Lex.Tok], close: Str, acc: Coll.List[Ast.Ty]): Parse.R[Coll.List[Ast.Ty]] = +def Parse.tys(ts: Coll.List[Lex.Tok], close: Str, acc: Coll.List[Ast.Ty]): Parse.R[Coll.List[Ast.Ty]] = if Parse.isOp(ts, close) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.ty(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(t, t1) => if Parse.isOp(t1, ",") then Parse.tys(Parse.next(t1), close, Coll.Cons(t, acc)) else Parse.tys(t1, close, Coll.Cons(t, acc)) // names separated by commas up to close (close consumed) -def Parse.names {r: Region} (ts: Coll.List[Lex.Tok], close: Str, acc: Coll.List[Sym.Sym]): Parse.R[Coll.List[Sym.Sym]] = +def Parse.names(ts: Coll.List[Lex.Tok], close: Str, acc: Coll.List[Sym.Sym]): Parse.R[Coll.List[Sym.Sym]] = if Parse.isOp(ts, close) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(x, t1) => if Parse.isOp(t1, ",") then Parse.names(Parse.next(t1), close, Coll.Cons(x, acc)) else Parse.names(t1, close, Coll.Cons(x, acc)) // names separated by commas to the end of a line (at least one) -def Parse.nameLine {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Sym.Sym]): Parse.R[Coll.List[Sym.Sym]] = Parse.ident(ts) match +def Parse.nameLine(ts: Coll.List[Lex.Tok], acc: Coll.List[Sym.Sym]): Parse.R[Coll.List[Sym.Sym]] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(x, t1) => if Parse.isOp(t1, ",") then Parse.nameLine(Parse.next(t1), Coll.Cons(x, acc)) else Parse.Ok(Coll.rev(Coll.Cons(x, acc)), t1) // ── enum: enum Name groups: NL IND (case Name [(fields)] NL)* DED ── -def Parse.enumDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match +def Parse.enumDecl(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.groups(t1, Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -430,7 +430,7 @@ def Parse.enumDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast. case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(cs, t4) => Parse.Ok(Ast.DEnum(Ast.Enum(line, name, gs, cs)), t4) -def Parse.cases {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Case]): Parse.R[Coll.List[Ast.Case]] = +def Parse.cases(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Case]): Parse.R[Coll.List[Ast.Case]] = if Parse.isDedent(ts) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.kw(ts, "case") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -447,7 +447,7 @@ def Parse.cases {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Case]): enum Parse.Pr: case Parse.Pr(states: Coll.List[Sym.Sym], start: Sym.Sym, ends: Coll.List[Sym.Sym], drop: Coll.Option[Sym.Sym], ops: Coll.List[Ast.Op], rules: Coll.List[Ast.RuleDef]) -def Parse.proto {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match +def Parse.proto(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.layoutOpen(t1) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -457,7 +457,7 @@ def Parse.proto {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Dec val Parse.Pr(ss, st, es, dr, os, rs) = pr Parse.Ok(Ast.DProto(Ast.Proto(line, name, ss, st, es, dr, Coll.rev(os), Coll.rev(rs))), t3) -def Parse.items {r: Region} (ts: Coll.List[Lex.Tok], pr: Parse.Pr): Parse.R[Parse.Pr] = +def Parse.items(ts: Coll.List[Lex.Tok], pr: Parse.Pr): Parse.R[Parse.Pr] = val Parse.Pr(ss, st, es, dr, os, rs) = pr if Parse.isDedent(ts) then Parse.Ok(pr, Parse.next(ts)) else if Parse.isKw(ts, "state") then @@ -489,7 +489,7 @@ def Parse.items {r: Region} (ts: Coll.List[Lex.Tok], pr: Parse.Pr): Parse.R[Pars else Parse.Err(Parse.line(ts), "protocol item") // op name(params): ty : A -> B, ... -def Parse.opDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Op] = Parse.ident(ts) match +def Parse.opDecl(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Op] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.params(t1) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -503,7 +503,7 @@ def Parse.opDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Op case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(trs, t6) => Parse.Ok(Ast.Op(line, name, ps, ret, trs), t6) -def Parse.trans {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Trans]): Parse.R[Coll.List[Ast.Trans]] = Parse.ident(ts) match +def Parse.trans(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Trans]): Parse.R[Coll.List[Ast.Trans]] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(a, t1) => Parse.op(t1, "-") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -516,7 +516,7 @@ def Parse.trans {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Trans]): if Parse.isOp(t4, ",") then Parse.trans(Parse.next(t4), acc2) else Parse.Ok(Coll.rev(acc2), t4) // rule def name(params) = atom, ... -def Parse.ruleDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.RuleDef] = Parse.ident(ts) match +def Parse.ruleDecl(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.RuleDef] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.op(t1, "(") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -528,12 +528,12 @@ def Parse.ruleDecl {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast. case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(as, t5) => Parse.Ok(Ast.RuleDef(line, name, ps, as), t5) -def Parse.ruleBody {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Atom]): Parse.R[Coll.List[Ast.Atom]] = Parse.atom(ts) match +def Parse.ruleBody(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Atom]): Parse.R[Coll.List[Ast.Atom]] = Parse.atom(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(a, t1) => if Parse.isOp(t1, ",") then Parse.ruleBody(Parse.next(t1), Coll.Cons(a, acc)) else Parse.Ok(Coll.rev(Coll.Cons(a, acc)), t1) // ── handler: handler Name for Proto: NL IND (def ...)* DED ── -def Parse.handler {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match +def Parse.handler(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Decl] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(name, t1) => Parse.kw(t1, "for") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -547,7 +547,7 @@ def Parse.handler {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.D // a handler with no init keeps no state (E5, vic 2026-11-09: `handler Srs.Console for Console: def print(s: Str): Unit = // ...`): it reads as init(): Ptr = Srs.noState() and a leading self: Ptr on each op, the shape every later phase knows -def Parse.stateless {r: Region} (fs: Coll.List[Ast.Fn], line: I64): Coll.List[Ast.Fn] = +def Parse.stateless(fs: Coll.List[Ast.Fn], line: I64): Coll.List[Ast.Fn] = if Parse.hasInit(fs) then fs else val ptr = Ast.Ty(line, Sym.of("Ptr"), Coll.Nil, Ast.Inferred, Coll.Nil) @@ -560,22 +560,22 @@ def Parse.hasInit(fs: Coll.List[Ast.Fn]): Bool = fs match val Ast.Fn(_, n, _, _, _, _, _) = f if Str.eq(Sym.str(n), "init") then true else Parse.hasInit(rest) -def Parse.withSelf {r: Region} (fs: Coll.List[Ast.Fn], ptr: Ast.Ty): Coll.List[Ast.Fn] = fs match +def Parse.withSelf(fs: Coll.List[Ast.Fn], ptr: Ast.Ty): Coll.List[Ast.Fn] = fs match case Coll.Nil => Coll.Nil case Coll.Cons(f, rest) => val Ast.Fn(l, n, gs, ps, ret, exit, body) = f Coll.Cons(Ast.Fn(l, n, gs, Coll.Cons(Ast.Binder(l, Sym.of("self"), ptr), ps), ret, exit, body), Parse.withSelf(rest, ptr)) // ── bodies: rhs := NL IND block | expr ── -def Parse.rhs {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = +def Parse.rhs(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = if Parse.isNl(ts) && Parse.isIndent(Parse.next(ts)) then Parse.block(Parse.next(Parse.next(ts)), Parse.line(Parse.next(ts))) else Parse.expr(ts) // a block: statements until DED (a NL between them is optional); its value is the last statement when it is an // expression, else Unit. val C(a, b) = e takes the rest of the block as the body of a one-arm match -def Parse.block {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Expr] = Parse.stmts(ts, line, Coll.Nil) +def Parse.block(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Expr] = Parse.stmts(ts, line, Coll.Nil) -def Parse.stmts {r: Region} (ts: Coll.List[Lex.Tok], line: I64, acc: Coll.List[Ast.Stmt]): Parse.R[Ast.Expr] = +def Parse.stmts(ts: Coll.List[Lex.Tok], line: I64, acc: Coll.List[Ast.Stmt]): Parse.R[Ast.Expr] = val t0 = Parse.skipNl(ts) if Parse.isDedent(t0) then Parse.Ok(Parse.blockOf(line, acc), Parse.next(t0)) else if Parse.isKw(t0, "val") && Parse.isPatVal(Parse.next(t0)) then Parse.patVal(Parse.next(t0), Parse.line(t0), line, acc) @@ -584,18 +584,18 @@ def Parse.stmts {r: Region} (ts: Coll.List[Lex.Tok], line: I64, acc: Coll.List[A case Parse.Ok(s, t1) => Parse.stmts(t1, line, Coll.Cons(s, acc)) // the block of the statements acc (reversed): a last expression statement is the value -def Parse.blockOf {r: Region} (line: I64, acc: Coll.List[Ast.Stmt]): Ast.Expr = acc match +def Parse.blockOf(line: I64, acc: Coll.List[Ast.Stmt]): Ast.Expr = acc match case Coll.Nil => Ast.Block(line, Coll.Nil, Ast.Unit(line)) case Coll.Cons(s, rest) => s match case Ast.Do(e) => Ast.Block(line, Coll.rev(rest), e) case _ => Ast.Block(line, Coll.rev(acc), Ast.Unit(line)) // val Upper(...) = e: the name starts with an upper case letter and ( follows -def Parse.isPatVal {r: Region} (ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match +def Parse.isPatVal(ts: Coll.List[Lex.Tok]): Bool = Parse.peek(ts) match case Lex.TIdent(x, _) => Str.at(x, 0) >= 'A' && Str.at(x, 0) <= 'Z' && Parse.opIs(Parse.second(ts), "(") case _ => false -def Parse.patVal {r: Region} (ts: Coll.List[Lex.Tok], vline: I64, line: I64, acc: Coll.List[Ast.Stmt]): Parse.R[Ast.Expr] = Parse.ident(ts) match +def Parse.patVal(ts: Coll.List[Lex.Tok], vline: I64, line: I64, acc: Coll.List[Ast.Stmt]): Parse.R[Ast.Expr] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(c, t1) => Parse.op(t1, "(") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -611,7 +611,7 @@ def Parse.patVal {r: Region} (ts: Coll.List[Lex.Tok], vline: I64, line: I64, acc val m = Ast.Match(vline, e, Coll.Cons(Ast.Arm(vline, Ast.PCase(c, bs), body), Coll.Nil)) Parse.Ok(Parse.blockOf(line, Coll.Cons(Ast.Do(m), acc)), t6) -def Parse.stmt {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Stmt] = +def Parse.stmt(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Stmt] = if Parse.isKw(ts, "val") || Parse.isKw(ts, "var") then Parse.valStmt(Parse.next(ts), Parse.line(ts), Parse.isKw(ts, "var")) else if Parse.isKw(ts, "handle") then Parse.handleStmt(Parse.next(ts), Parse.line(ts)) else if Parse.isKw(ts, "invariant") || Parse.isKw(ts, "decreases") then @@ -623,7 +623,7 @@ def Parse.stmt {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Stmt] = case Parse.Ok(e, t1) => Parse.Ok(Ast.Do(e), t1) // val x [: ty] = rhs -def Parse.valStmt {r: Region} (ts: Coll.List[Lex.Tok], line: I64, isVar: Bool): Parse.R[Ast.Stmt] = Parse.ident(ts) match +def Parse.valStmt(ts: Coll.List[Lex.Tok], line: I64, isVar: Bool): Parse.R[Ast.Stmt] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(x, t1) => val ann: Parse.R[Coll.Option[Ast.Ty]] = if Parse.isOp(t1, ":") then Parse.someTy(Parse.ty(Parse.next(t1))) else Parse.Ok(Coll.None, t1) @@ -635,12 +635,12 @@ def Parse.valStmt {r: Region} (ts: Coll.List[Lex.Tok], line: I64, isVar: Bool): case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(e, t4) => Parse.Ok(if isVar then Ast.Var(line, x, a, e) else Ast.Val(line, x, a, e), t4) -def Parse.someTy {r: Region} (rt: Parse.R[Ast.Ty]): Parse.R[Coll.Option[Ast.Ty]] = rt match +def Parse.someTy(rt: Parse.R[Ast.Ty]): Parse.R[Coll.Option[Ast.Ty]] = rt match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(t, t1) => Parse.Ok(Coll.Some(t), t1) // handle x = H(args) -def Parse.handleStmt {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Stmt] = Parse.ident(ts) match +def Parse.handleStmt(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Stmt] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(x, t1) => Parse.op(t1, "=") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -651,7 +651,7 @@ def Parse.handleStmt {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[As case Parse.Ok(xs, t4) => Parse.Ok(Ast.Handle(line, x, h, xs), t4) // ── expressions ── -def Parse.expr {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = +def Parse.expr(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = if Parse.isKw(ts, "if") then Parse.ifExpr(Parse.next(ts), Parse.line(ts)) else if Parse.isKw(ts, "while") then Parse.whileExpr(Parse.next(ts), Parse.line(ts)) else if Parse.isKw(ts, "forall") || Parse.isKw(ts, "exists") then Parse.quant(Parse.next(ts), Parse.line(ts), if Parse.isKw(ts, "forall") then Ast.Forall else Ast.Exists) @@ -665,7 +665,7 @@ def Parse.expr {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = case _ => Parse.matchOf(Parse.binary(ts, 0)) // forall x: ty => expr, exists x: ty => expr (s1/parse.srs:544-548) -def Parse.quant {r: Region} (ts: Coll.List[Lex.Tok], line: I64, q: Ast.Q): Parse.R[Ast.Expr] = Parse.ident(ts) match +def Parse.quant(ts: Coll.List[Lex.Tok], line: I64, q: Ast.Q): Parse.R[Ast.Expr] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(x, t1) => Parse.op(t1, ":") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -678,7 +678,7 @@ def Parse.quant {r: Region} (ts: Coll.List[Lex.Tok], line: I64, q: Ast.Q): Parse case Parse.Ok(b, t5) => Parse.Ok(Ast.Quant(line, q, x, t, b), t5) // e match NL IND (case pat => rhs)* DED: match is postfix on a whole binary expression -def Parse.matchOf {r: Region} (re: Parse.R[Ast.Expr]): Parse.R[Ast.Expr] = re match +def Parse.matchOf(re: Parse.R[Ast.Expr]): Parse.R[Ast.Expr] = re match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(e, t1) => if Parse.isKw(t1, "match") then @@ -690,7 +690,7 @@ def Parse.matchOf {r: Region} (re: Parse.R[Ast.Expr]): Parse.R[Ast.Expr] = re ma else Parse.Err(Parse.line(t2), "match arms") else re -def Parse.arms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Arm]): Parse.R[Coll.List[Ast.Arm]] = +def Parse.arms(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Arm]): Parse.R[Coll.List[Ast.Arm]] = if Parse.isDedent(ts) then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.kw(ts, "case") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -703,7 +703,7 @@ def Parse.arms {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Arm]): Pa case Parse.Ok(b, t4) => Parse.arms(Parse.endLine(t4), Coll.Cons(Ast.Arm(line, p, b), acc)) // _ | Name [(names)] -def Parse.pat {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Pat] = Parse.ident(ts) match +def Parse.pat(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Pat] = Parse.ident(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(c, t1) => if Str.eq(Sym.str(c), "_") then Parse.Ok(Ast.PAny, t1) @@ -714,7 +714,7 @@ def Parse.pat {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Pat] = Parse.ide else Parse.Ok(Ast.PCase(c, Coll.Nil), t1) // if c then rhs [NL] else rhs -def Parse.ifExpr {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Expr] = Parse.expr(ts) match +def Parse.ifExpr(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Expr] = Parse.expr(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(c, t1) => Parse.kw(t1, "then") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -729,7 +729,7 @@ def Parse.ifExpr {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Ex case Parse.Ok(e, t6) => Parse.Ok(Ast.If(line, c, t, e), t6) // while c do rhs -def Parse.whileExpr {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Expr] = Parse.expr(ts) match +def Parse.whileExpr(ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast.Expr] = Parse.expr(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(c, t1) => Parse.kw(t1, "do") match case Parse.Err(l, w) => Parse.Err(l, w) @@ -741,7 +741,7 @@ def Parse.whileExpr {r: Region} (ts: Coll.List[Lex.Tok], line: I64): Parse.R[Ast enum Parse.BinTok: case Parse.BinTok(op: Ast.BinOp, level: I64) -def Parse.binOf {r: Region} (t: Lex.Tok): Coll.Option[Parse.BinTok] = t match +def Parse.binOf(t: Lex.Tok): Coll.Option[Parse.BinTok] = t match case Lex.TOp(s, _) => if Str.eq(s, "||") then Coll.Some(Parse.BinTok(Ast.Or, 0)) else if Str.eq(s, "&&") then Coll.Some(Parse.BinTok(Ast.And, 1)) @@ -760,11 +760,11 @@ def Parse.binOf {r: Region} (t: Lex.Tok): Coll.Option[Parse.BinTok] = t match case _ => Coll.None // operators of level >= lvl, left associative -def Parse.binary {r: Region} (ts: Coll.List[Lex.Tok], lvl: I64): Parse.R[Ast.Expr] = Parse.unary(ts) match +def Parse.binary(ts: Coll.List[Lex.Tok], lvl: I64): Parse.R[Ast.Expr] = Parse.unary(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(lhs, t1) => Parse.binLoop(lhs, t1, lvl) -def Parse.binLoop {r: Region} (lhs: Ast.Expr, ts: Coll.List[Lex.Tok], lvl: I64): Parse.R[Ast.Expr] = Parse.binOf(Parse.peek(ts)) match +def Parse.binLoop(lhs: Ast.Expr, ts: Coll.List[Lex.Tok], lvl: I64): Parse.R[Ast.Expr] = Parse.binOf(Parse.peek(ts)) match case Coll.None => Parse.Ok(lhs, ts) case Coll.Some(bt) => val Parse.BinTok(op, l) = bt @@ -773,12 +773,12 @@ def Parse.binLoop {r: Region} (lhs: Ast.Expr, ts: Coll.List[Lex.Tok], lvl: I64): case Parse.Err(el, w) => Parse.Err(el, w) case Parse.Ok(rhs, t2) => Parse.binLoop(Ast.Bin(Parse.line(ts), op, lhs, rhs), t2, lvl) -def Parse.unary {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = +def Parse.unary(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = if Parse.isOp(ts, "-") then Parse.unOf(Parse.line(ts), Ast.Neg, Parse.unary(Parse.next(ts))) else if Parse.isOp(ts, "!") then Parse.unOf(Parse.line(ts), Ast.Not, Parse.unary(Parse.next(ts))) else Parse.primary(ts) -def Parse.unOf {r: Region} (line: I64, op: Ast.UnOp, re: Parse.R[Ast.Expr]): Parse.R[Ast.Expr] = re match +def Parse.unOf(line: I64, op: Ast.UnOp, re: Parse.R[Ast.Expr]): Parse.R[Ast.Expr] = re match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(e, t1) => Parse.Ok(Ast.Un(line, op, e), t1) @@ -789,7 +789,7 @@ def Parse.charValue(s: Str): I64 = val c = Str.at(s, 1) if c == 'n' then 10 else if c == 't' then 9 else if c == 'r' then 13 else if c == '0' then 0 else c -def Parse.primary {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = Parse.peek(ts) match +def Parse.primary(ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = Parse.peek(ts) match case Lex.TInt(v, line) => Parse.Ok(Ast.Int(line, v), Parse.next(ts)) case Lex.TStr(s, line) => Parse.Ok(Ast.Str(line, s), Parse.next(ts)) case Lex.TChar(s, line) => Parse.Ok(Ast.Int(line, Parse.charValue(s)), Parse.next(ts)) @@ -819,7 +819,7 @@ def Parse.primary {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Ast.Expr] = Pars case _ => Parse.Err(Parse.line(ts), "expression") // f[T, ...]{a, ...}(args): the groups in any order, then the args -def Parse.callGroups {r: Region} (ts: Coll.List[Lex.Tok], line: I64, f: Sym.Sym, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym]): Parse.R[Ast.Expr] = +def Parse.callGroups(ts: Coll.List[Lex.Tok], line: I64, f: Sym.Sym, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym]): Parse.R[Ast.Expr] = if Parse.isOp(ts, "[") then Parse.tys(Parse.next(ts), "]", Coll.Nil) match case Parse.Err(l, w) => Parse.Err(l, w) @@ -830,25 +830,25 @@ def Parse.callGroups {r: Region} (ts: Coll.List[Lex.Tok], line: I64, f: Sym.Sym, case Parse.Ok(ns, t1) => Parse.callGroups(t1, line, f, targs, Coll.revOnto(Coll.rev(chosen), ns)) else Parse.callOf(line, f, targs, chosen, Parse.args(ts)) -def Parse.callOf {r: Region} (line: I64, f: Sym.Sym, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym], ra: Parse.R[Coll.List[Ast.Expr]]): Parse.R[Ast.Expr] = ra match +def Parse.callOf(line: I64, f: Sym.Sym, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym], ra: Parse.R[Coll.List[Ast.Expr]]): Parse.R[Ast.Expr] = ra match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(xs, t1) => Parse.Ok(Ast.Call(line, f, targs, chosen, xs), t1) // (expr, ...) -def Parse.args {r: Region} (ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Expr]] = Parse.op(ts, "(") match +def Parse.args(ts: Coll.List[Lex.Tok]): Parse.R[Coll.List[Ast.Expr]] = Parse.op(ts, "(") match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(_, t1) => Parse.exprs(t1, Coll.Nil) -def Parse.exprs {r: Region} (ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Expr]): Parse.R[Coll.List[Ast.Expr]] = +def Parse.exprs(ts: Coll.List[Lex.Tok], acc: Coll.List[Ast.Expr]): Parse.R[Coll.List[Ast.Expr]] = if Parse.isOp(ts, ")") then Parse.Ok(Coll.rev(acc), Parse.next(ts)) else Parse.expr(ts) match case Parse.Err(l, w) => Parse.Err(l, w) case Parse.Ok(e, t1) => if Parse.isOp(t1, ",") then Parse.exprs(Parse.next(t1), Coll.Cons(e, acc)) else Parse.exprs(t1, Coll.Cons(e, acc)) // a source: lex, then parse; a lex error is a parse error at its line -def Parse.source {r: Region} (src: Str): Parse.R[Coll.List[Ast.Decl]] = Parse.sourceFrom(src, 1) +def Parse.source(src: Str): Parse.R[Coll.List[Ast.Decl]] = Parse.sourceFrom(src, 1) // src whose first line has number line (Lex.lexFrom) -def Parse.sourceFrom {r: Region} (src: Str, line: I64): Parse.R[Coll.List[Ast.Decl]] = Lex.lexFrom(src, line) match +def Parse.sourceFrom(src: Str, line: I64): Parse.R[Coll.List[Ast.Decl]] = Lex.lexFrom(src, line) match case Lex.Bad(l, _) => Parse.Err(l, "lexable source") case Lex.Toks(ts) => Parse.file(ts) diff --git a/s2/pure.srs b/s2/pure.srs index 22e13a96..563e5194 100644 --- a/s2/pure.srs +++ b/s2/pure.srs @@ -17,7 +17,7 @@ enum Pure.Rel: case Pure.REffectful case Pure.RImpureH -def Pure.relSym {r: Region} (rel: Pure.Rel): Sym.Sym = rel match +def Pure.relSym(rel: Pure.Rel): Sym.Sym = rel match case Pure.RDirect => Sym.of("direct") case Pure.RCalls => Sym.of("calls") case Pure.RUses => Sym.of("uses") @@ -50,21 +50,21 @@ def Pure.uses(w: Pure.Who): Pure.Rel = w match case Pure.Def(_) => Pure.RUses case Pure.In(_) => Pure.RHUses -def Pure.f1 {r: Region} (rel: Pure.Rel, a: Sym.Sym): D.Fact = D.Fact(Pure.relSym(rel), Coll.Cons(D.VSym(a), Coll.Nil)) -def Pure.f2 {r: Region} (rel: Pure.Rel, a: Sym.Sym, b: Sym.Sym): D.Fact = D.Fact(Pure.relSym(rel), Coll.Cons(D.VSym(a), Coll.Cons(D.VSym(b), Coll.Nil))) +def Pure.f1(rel: Pure.Rel, a: Sym.Sym): D.Fact = D.Fact(Pure.relSym(rel), Coll.Cons(D.VSym(a), Coll.Nil)) +def Pure.f2(rel: Pure.Rel, a: Sym.Sym, b: Sym.Sym): D.Fact = D.Fact(Pure.relSym(rel), Coll.Cons(D.VSym(a), Coll.Cons(D.VSym(b), Coll.Nil))) -def Pure.atom {r: Region} (rel: Pure.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Pure.relSym(rel), Pure.vars(xs)) -def Pure.vars {r: Region} (xs: Coll.List[I64]): Coll.List[D.Arg] = xs match +def Pure.atom(rel: Pure.Rel, xs: Coll.List[I64]): D.Atom = D.Atom(Pure.relSym(rel), Pure.vars(xs)) +def Pure.vars(xs: Coll.List[I64]): Coll.List[D.Arg] = xs match case Coll.Nil => Coll.Nil case Coll.Cons(x, rest) => Coll.Cons(D.AVar(x), Pure.vars(rest)) -def Pure.pos {r: Region} (rel: Pure.Rel, xs: Coll.List[I64]): D.Lit = D.Pos(Pure.atom(rel, xs)) -def Pure.one {r: Region} (x: I64): Coll.List[I64] = Coll.Cons(x, Coll.Nil) -def Pure.two {r: Region} (x: I64, y: I64): Coll.List[I64] = Coll.Cons(x, Pure.one(y)) -def Pure.rule1 {r: Region} (h: Pure.Rel, b: Pure.Rel): D.Rule = D.Rule(Pure.atom(h, Pure.one(0)), Coll.Cons(Pure.pos(b, Pure.one(0)), Coll.Nil)) +def Pure.pos(rel: Pure.Rel, xs: Coll.List[I64]): D.Lit = D.Pos(Pure.atom(rel, xs)) +def Pure.one(x: I64): Coll.List[I64] = Coll.Cons(x, Coll.Nil) +def Pure.two(x: I64, y: I64): Coll.List[I64] = Coll.Cons(x, Pure.one(y)) +def Pure.rule1(h: Pure.Rel, b: Pure.Rel): D.Rule = D.Rule(Pure.atom(h, Pure.one(0)), Coll.Cons(Pure.pos(b, Pure.one(0)), Coll.Nil)) // h(0) :- b(0, 1), c(1) -def Pure.rule2 {r: Region} (h: Pure.Rel, b: Pure.Rel, c: Pure.Rel): D.Rule = D.Rule(Pure.atom(h, Pure.one(0)), Coll.Cons(Pure.pos(b, Pure.two(0, 1)), Coll.Cons(Pure.pos(c, Pure.one(1)), Coll.Nil))) +def Pure.rule2(h: Pure.Rel, b: Pure.Rel, c: Pure.Rel): D.Rule = D.Rule(Pure.atom(h, Pure.one(0)), Coll.Cons(Pure.pos(b, Pure.two(0, 1)), Coll.Cons(Pure.pos(c, Pure.one(1)), Coll.Nil))) -def Pure.rules {r: Region} (): Coll.List[D.Rule] = +def Pure.rules(): Coll.List[D.Rule] = val i1 = Pure.rule1(Pure.RImpure, Pure.RDirect) val i2 = Pure.rule2(Pure.RImpure, Pure.RCalls, Pure.RImpure) val i3 = Pure.rule2(Pure.RImpure, Pure.RUses, Pure.REffectful) @@ -83,11 +83,11 @@ enum Pure.Prim: case Pure.PSlice case Pure.PEq -def Pure.pureExtern {r: Region} (n: Sym.Sym): Bool = Pure.prim(n) match +def Pure.pureExtern(n: Sym.Sym): Bool = Pure.prim(n) match case Coll.Some(_) => true case Coll.None => false -def Pure.prim {r: Region} (n: Sym.Sym): Coll.Option[Pure.Prim] = +def Pure.prim(n: Sym.Sym): Coll.Option[Pure.Prim] = val s = Sym.str(n) if Str.eq(s, "Str.len") || Str.eq(s, "rt_str_len") then Coll.Some(Pure.PLen) else if Str.eq(s, "Str.at") || Str.eq(s, "rt_str_at") then Coll.Some(Pure.PAt) @@ -96,9 +96,9 @@ def Pure.prim {r: Region} (n: Sym.Sym): Coll.Option[Pure.Prim] = else Coll.None // ── facts ── -def Pure.facts {r: Region} (ds: Coll.List[Ast.Decl], rows: Eff.Rows): Coll.List[D.Fact] = Pure.decls(Pure.protos(ds, Coll.Nil), Pure.hprotos(ds, Coll.sEmpty()), rows, ds, Coll.Nil) +def Pure.facts(ds: Coll.List[Ast.Decl], rows: Eff.Rows): Coll.List[D.Fact] = Pure.decls(Pure.protos(ds, Coll.Nil), Pure.hprotos(ds, Coll.sEmpty()), rows, ds, Coll.Nil) -def Pure.protos {r: Region} (ds: Coll.List[Ast.Decl], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ds match +def Pure.protos(ds: Coll.List[Ast.Decl], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ds match case Coll.Nil => acc case Coll.Cons(d, rest) => d match case Ast.DProto(p) => @@ -106,7 +106,7 @@ def Pure.protos {r: Region} (ds: Coll.List[Ast.Decl], acc: Coll.List[Sym.Sym]): Pure.protos(rest, Coll.Cons(n, acc)) case _ => Pure.protos(rest, acc) -def Pure.hprotos {r: Region} (ds: Coll.List[Ast.Decl], m: Coll.SMap[Sym.Sym]): Coll.SMap[Sym.Sym] = ds match +def Pure.hprotos(ds: Coll.List[Ast.Decl], m: Coll.SMap[Sym.Sym]): Coll.SMap[Sym.Sym] = ds match case Coll.Nil => m case Coll.Cons(d, rest) => d match case Ast.DHandler(h) => @@ -115,7 +115,7 @@ def Pure.hprotos {r: Region} (ds: Coll.List[Ast.Decl], m: Coll.SMap[Sym.Sym]): C case _ => Pure.hprotos(rest, m) // a def's or a handler's inferred row (s2/eff.srs) uses each of its protocols, as a written {} binder does -def Pure.decls {r: Region} (ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], rows: Eff.Rows, ds: Coll.List[Ast.Decl], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = ds match +def Pure.decls(ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], rows: Eff.Rows, ds: Coll.List[Ast.Decl], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = ds match case Coll.Nil => acc case Coll.Cons(d, rest) => d match case Ast.DFn(f) => @@ -126,18 +126,18 @@ def Pure.decls {r: Region} (ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], rows Pure.decls(ps, hp, rows, rest, Pure.rowUses(Pure.In(n), Eff.row(rows, n), Pure.fns(ps, hp, Pure.In(n), fs, Coll.Cons(Pure.f2(Pure.RHandles, n, p), acc)))) case _ => Pure.decls(ps, hp, rows, rest, acc) -def Pure.rowUses {r: Region} (w: Pure.Who, cs: Coll.List[Eff.Cap], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = cs match +def Pure.rowUses(w: Pure.Who, cs: Coll.List[Eff.Cap], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = cs match case Coll.Nil => acc case Coll.Cons(c, rest) => val Eff.Cap(p, _) = c Pure.rowUses(w, rest, Coll.Cons(Pure.f2(Pure.uses(w), Pure.subj(w), p), acc)) -def Pure.fns {r: Region} (ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], w: Pure.Who, fs: Coll.List[Ast.Fn], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = fs match +def Pure.fns(ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], w: Pure.Who, fs: Coll.List[Ast.Fn], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = fs match case Coll.Nil => acc case Coll.Cons(f, rest) => Pure.fns(ps, hp, w, rest, Pure.fn(ps, hp, w, f, acc)) // an extern not in the pure set is a direct effect; a {} binder of a protocol uses it, any other {} binder is evidence -def Pure.fn {r: Region} (ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], w: Pure.Who, f: Ast.Fn, acc: Coll.List[D.Fact]): Coll.List[D.Fact] = +def Pure.fn(ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], w: Pure.Who, f: Ast.Fn, acc: Coll.List[D.Fact]): Coll.List[D.Fact] = val Ast.Fn(_, n, gs, _, _, _, body) = f val Pure.Ev(ev, acc2) = Pure.binders(ps, w, Ty.evidence(gs, Coll.Nil), Coll.Nil, acc) body match @@ -148,7 +148,7 @@ def Pure.fn {r: Region} (ps: Coll.List[Sym.Sym], hp: Coll.SMap[Sym.Sym], w: Pure enum Pure.Ev: case Pure.Ev(ev: Coll.List[Sym.Sym], acc: Coll.List[D.Fact]) -def Pure.binders {r: Region} (ps: Coll.List[Sym.Sym], w: Pure.Who, bs: Coll.List[Ast.Binder], ev: Coll.List[Sym.Sym], acc: Coll.List[D.Fact]): Pure.Ev = bs match +def Pure.binders(ps: Coll.List[Sym.Sym], w: Pure.Who, bs: Coll.List[Ast.Binder], ev: Coll.List[Sym.Sym], acc: Coll.List[D.Fact]): Pure.Ev = bs match case Coll.Nil => Pure.Ev(ev, acc) case Coll.Cons(b, rest) => val Ast.Binder(_, x, t) = b @@ -158,7 +158,7 @@ def Pure.binders {r: Region} (ps: Coll.List[Sym.Sym], w: Pure.Who, bs: Coll.List // a call is calls(who, f); a handle uses the handler's protocol; a method on {} evidence is a direct effect (the given // that answers it is not known before mono) -def Pure.expr {r: Region} (hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], e: Ast.Expr, acc: Coll.List[D.Fact]): Coll.List[D.Fact] = e match +def Pure.expr(hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], e: Ast.Expr, acc: Coll.List[D.Fact]): Coll.List[D.Fact] = e match case Ast.Name(_, x) => Coll.Cons(Pure.f2(Pure.calls(w), Pure.subj(w), x), acc) case Ast.Call(_, f, _, _, xs) => Pure.exprs(hp, w, ev, xs, Coll.Cons(Pure.f2(Pure.calls(w), Pure.subj(w), f), acc)) case Ast.Method(_, recv, _, xs) => @@ -173,17 +173,17 @@ def Pure.expr {r: Region} (hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sy case Ast.Assign(_, _, x) => Pure.expr(hp, w, ev, x, acc) case _ => acc -def Pure.exprs {r: Region} (hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], xs: Coll.List[Ast.Expr], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = xs match +def Pure.exprs(hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], xs: Coll.List[Ast.Expr], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Pure.exprs(hp, w, ev, rest, Pure.expr(hp, w, ev, x, acc)) -def Pure.arms {r: Region} (hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], as: Coll.List[Ast.Arm], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = as match +def Pure.arms(hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], as: Coll.List[Ast.Arm], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = as match case Coll.Nil => acc case Coll.Cons(a, rest) => val Ast.Arm(_, _, b) = a Pure.arms(hp, w, ev, rest, Pure.expr(hp, w, ev, b, acc)) -def Pure.stmts {r: Region} (hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], ss: Coll.List[Ast.Stmt], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = ss match +def Pure.stmts(hp: Coll.SMap[Sym.Sym], w: Pure.Who, ev: Coll.List[Sym.Sym], ss: Coll.List[Ast.Stmt], acc: Coll.List[D.Fact]): Coll.List[D.Fact] = ss match case Coll.Nil => acc case Coll.Cons(s, rest) => s match case Ast.Val(_, _, _, e) => Pure.stmts(hp, w, ev, rest, Pure.expr(hp, w, ev, e, acc)) @@ -201,12 +201,12 @@ enum Pure.Set: case Pure.Got(impure: Coll.SMap[Bool]) case Pure.RulesBad(rel: Sym.Sym) -def Pure.impure {r: Region} (ds: Coll.List[Ast.Decl], rows: Eff.Rows): Pure.Set = D.solve(Pure.rules(), Pure.facts(ds, rows)) match +def Pure.impure(ds: Coll.List[Ast.Decl], rows: Eff.Rows): Pure.Set = D.solve(Pure.rules(), Pure.facts(ds, rows)) match case D.Solved(m) => Pure.Got(Pure.names(D.tuples(m, Pure.relSym(Pure.RImpure)), Coll.sEmpty())) case D.Unsafe(rel) => Pure.RulesBad(rel) case D.NegCycle(rel) => Pure.RulesBad(rel) -def Pure.names {r: Region} (ts: Coll.List[Coll.List[D.Val]], m: Coll.SMap[Bool]): Coll.SMap[Bool] = ts match +def Pure.names(ts: Coll.List[Coll.List[D.Val]], m: Coll.SMap[Bool]): Coll.SMap[Bool] = ts match case Coll.Nil => m case Coll.Cons(t, rest) => t match case Coll.Cons(v, _) => v match @@ -214,6 +214,6 @@ def Pure.names {r: Region} (ts: Coll.List[Coll.List[D.Val]], m: Coll.SMap[Bool]) case D.VInt(_) => Pure.names(rest, m) case Coll.Nil => Pure.names(rest, m) -def Pure.has {r: Region} (m: Coll.SMap[Bool], n: Sym.Sym): Bool = Coll.sLookup(m, n) match +def Pure.has(m: Coll.SMap[Bool], n: Sym.Sym): Bool = Coll.sLookup(m, n) match case Coll.Some(_) => true case Coll.None => false diff --git a/s2/queue.srs b/s2/queue.srs index a01ff061..70f77f81 100644 --- a/s2/queue.srs +++ b/s2/queue.srs @@ -8,18 +8,18 @@ enum Queue.Popped [A: Type]: case Queue.Empty case Queue.Got(x: A, rest: Queue.Queue[A]) -def Queue.empty [A: Type] {r: Region} (): Queue.Queue[A] = Queue.Queue(Coll.Nil, Coll.Nil) +def Queue.empty [A: Type] (): Queue.Queue[A] = Queue.Queue(Coll.Nil, Coll.Nil) -def Queue.push [A: Type] {r: Region} (q: Queue.Queue[A], x: A): Queue.Queue[A] = +def Queue.push [A: Type] (q: Queue.Queue[A], x: A): Queue.Queue[A] = val Queue.Queue(f, b) = q Queue.Queue(f, Coll.Cons(x, b)) // each of xs pushed, in order -def Queue.pushAll [A: Type] {r: Region} (q: Queue.Queue[A], xs: Coll.List[A]): Queue.Queue[A] = xs match +def Queue.pushAll [A: Type] (q: Queue.Queue[A], xs: Coll.List[A]): Queue.Queue[A] = xs match case Coll.Nil => q case Coll.Cons(x, t) => Queue.pushAll(Queue.push(q, x), t) -def Queue.pop [A: Type] {r: Region} (q: Queue.Queue[A]): Queue.Popped[A] = +def Queue.pop [A: Type] (q: Queue.Queue[A]): Queue.Popped[A] = val Queue.Queue(f, b) = q f match case Coll.Cons(x, t) => Queue.Got(x, Queue.Queue(t, b)) diff --git a/s2/store.srs b/s2/store.srs index 1cd3989d..91fa97ee 100644 --- a/s2/store.srs +++ b/s2/store.srs @@ -34,23 +34,23 @@ handler Srs.StoreFile for StoreOut: def commit(self: Ptr): Unit = rt_out_commit(self) // a decl as the printer writes it -def Store.text {r: Region} (d: Ast.Decl): Str = +def Store.text(d: Ast.Decl): Str = Console.captureBegin() Ast.decl(d) Console.captureEnd() -def Store.write {r: Region} (dir: Str, g: Hs.Dg, s: Str): Unit = +def Store.write(dir: Str, g: Hs.Dg, s: Str): Unit = val Hs.Dg(a, b, c, d) = g handle o = Srs.StoreFile(dir, a, b, c, d) o.put(s) o.commit() -def Store.read {r: Region} (dir: Str, g: Hs.Dg): Str = +def Store.read(dir: Str, g: Hs.Dg): Str = val Hs.Dg(a, b, c, d) = g Store.load(dir, a, b, c, d) // an entry reads back as the decl when it parses to exactly one decl that prints as the original -def Store.same {r: Region} (entry: Str, want: Str): Bool = +def Store.same(entry: Str, want: Str): Bool = if Str.len(entry) < 0 then false else Parse.source(entry) match case Parse.Ok(ds, _) => ds match @@ -69,7 +69,7 @@ def Store.seen(gs: Coll.List[Hs.Dg], g: Hs.Dg): Bool = gs match // `s2c --store-check`: write every hashed decl, read each back, compare (vic-uw3 H2 oracle); a later decl with a hash // met before shares the entry (names are metadata) -def Store.check {r: Region} (ds: Coll.List[Ast.Decl]): Unit = +def Store.check(ds: Coll.List[Ast.Decl]): Unit = val Store.Tally(w, s, sh, b, _) = Store.decls(Store.dir(), Hs.all(ds), ds, Store.Tally(0, 0, 0, 0, Coll.Nil)) Console.print("store: wrote ") Console.printI64(w) @@ -81,7 +81,7 @@ def Store.check {r: Region} (ds: Coll.List[Ast.Decl]): Unit = Console.printI64(b) Console.print("\n") -def Store.decls {r: Region} (dir: Str, hm: Coll.SMap[Hs.Dg], ds: Coll.List[Ast.Decl], t: Store.Tally): Store.Tally = ds match +def Store.decls(dir: Str, hm: Coll.SMap[Hs.Dg], ds: Coll.List[Ast.Decl], t: Store.Tally): Store.Tally = ds match case Coll.Nil => t case Coll.Cons(d, rest) => val n: Coll.Option[Sym.Sym] = d match @@ -99,7 +99,7 @@ def Store.decls {r: Region} (dir: Str, hm: Coll.SMap[Hs.Dg], ds: Coll.List[Ast.D case Coll.None => Store.decls(dir, hm, rest, t) case Coll.Some(h) => Store.decls(dir, hm, rest, Store.one(dir, h, Store.text(d), t)) -def Store.one {r: Region} (dir: Str, g: Hs.Dg, want: Str, t: Store.Tally): Store.Tally = +def Store.one(dir: Str, g: Hs.Dg, want: Str, t: Store.Tally): Store.Tally = val Store.Tally(w, s, sh, b, seen) = t val w2 = if Str.len(Store.read(dir, g)) < 0 then Store.wrote(dir, g, want, w) else w val seen2 = Coll.Cons(g, seen) @@ -107,6 +107,6 @@ def Store.one {r: Region} (dir: Str, g: Hs.Dg, want: Str, t: Store.Tally): Store else if Store.same(Store.read(dir, g), want) then Store.Tally(w2, s + 1, sh, b, seen2) else Store.Tally(w2, s, sh, b + 1, seen2) -def Store.wrote {r: Region} (dir: Str, g: Hs.Dg, s: Str, w: I64): I64 = +def Store.wrote(dir: Str, g: Hs.Dg, s: Str, w: I64): I64 = Store.write(dir, g, s) w + 1 diff --git a/s2/sym.srs b/s2/sym.srs index 672e2187..e1310de6 100644 --- a/s2/sym.srs +++ b/s2/sym.srs @@ -3,7 +3,7 @@ enum Sym.Sym: case Sym.Sym(h: I64, s: Str) -def Sym.of {r: Region} (s: Str): Sym.Sym = Sym.Sym(strHash(s), s) +def Sym.of(s: Str): Sym.Sym = Sym.Sym(strHash(s), s) def Sym.hash(a: Sym.Sym): I64 = val Sym.Sym(h, _) = a diff --git a/s2/tlevel.srs b/s2/tlevel.srs index ac9678fe..e1090e23 100644 --- a/s2/tlevel.srs +++ b/s2/tlevel.srs @@ -39,11 +39,11 @@ enum Tl.Cx: def Tl.fuel(): I64 = 1000 // ── the program ── -def Tl.expand {r: Region} (ds: Coll.List[Ast.Decl]): Tl.W[Coll.List[Ast.Decl]] = +def Tl.expand(ds: Coll.List[Ast.Decl]): Tl.W[Coll.List[Ast.Decl]] = val cx = Tl.cxOf(ds, Coll.sEmpty(), Coll.sEmpty()) Tl.decls(cx, ds, Coll.Nil, Coll.Nil) -def Tl.cxOf {r: Region} (ds: Coll.List[Ast.Decl], ts: Coll.SMap[Ast.TypeDecl], fs: Coll.SMap[Ast.Fn]): Tl.Cx = ds match +def Tl.cxOf(ds: Coll.List[Ast.Decl], ts: Coll.SMap[Ast.TypeDecl], fs: Coll.SMap[Ast.Fn]): Tl.Cx = ds match case Coll.Nil => Tl.Cx(ts, fs) case Coll.Cons(d, rest) => d match case Ast.DType(td) => @@ -54,13 +54,13 @@ def Tl.cxOf {r: Region} (ds: Coll.List[Ast.Decl], ts: Coll.SMap[Ast.TypeDecl], f Tl.cxOf(rest, ts, Coll.sInsert(fs, n, f)) case _ => Tl.cxOf(rest, ts, fs) -def Tl.decls {r: Region} (cx: Tl.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Ast.Decl], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Decl]] = ds match +def Tl.decls(cx: Tl.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Ast.Decl], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Decl]] = ds match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(d, rest) => val Tl.W(d2, es2) = Tl.decl(cx, d, es) Tl.decls(cx, rest, Coll.Cons(d2, acc), es2) -def Tl.decl {r: Region} (cx: Tl.Cx, d: Ast.Decl, es: Coll.List[Tl.Err]): Tl.W[Ast.Decl] = d match +def Tl.decl(cx: Tl.Cx, d: Ast.Decl, es: Coll.List[Tl.Err]): Tl.W[Ast.Decl] = d match case Ast.DFn(f) => val Tl.W(f2, es2) = Tl.fn(cx, f, es) Tl.W(Ast.DFn(f2), es2) @@ -90,13 +90,13 @@ def Tl.decl {r: Region} (cx: Tl.Cx, d: Ast.Decl, es: Coll.List[Tl.Err]): Tl.W[As Tl.W(Ast.DGiven(Ast.Given(line, gs2, h2, fs2)), es4) case Ast.DType(td) => Tl.W(d, Tl.typeDecl(td, es)) -def Tl.fns {r: Region} (cx: Tl.Cx, fs: Coll.List[Ast.Fn], acc: Coll.List[Ast.Fn], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Fn]] = fs match +def Tl.fns(cx: Tl.Cx, fs: Coll.List[Ast.Fn], acc: Coll.List[Ast.Fn], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Fn]] = fs match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(f, rest) => val Tl.W(f2, es2) = Tl.fn(cx, f, es) Tl.fns(cx, rest, Coll.Cons(f2, acc), es2) -def Tl.fn {r: Region} (cx: Tl.Cx, f: Ast.Fn, es: Coll.List[Tl.Err]): Tl.W[Ast.Fn] = +def Tl.fn(cx: Tl.Cx, f: Ast.Fn, es: Coll.List[Tl.Err]): Tl.W[Ast.Fn] = val Ast.Fn(line, n, gs, ps, ret, exit, body) = f val Tl.W(gs2, es2) = Tl.groups(cx, gs, Coll.Nil, es) val Tl.W(ps2, es3) = Tl.binders(cx, ps, Coll.Nil, es2) @@ -104,7 +104,7 @@ def Tl.fn {r: Region} (cx: Tl.Cx, f: Ast.Fn, es: Coll.List[Tl.Err]): Tl.W[Ast.Fn val Tl.W(b2, es5) = Tl.body(cx, body, es4) Tl.W(Ast.Fn(line, n, gs2, ps2, ret2, exit, b2), es5) -def Tl.body {r: Region} (cx: Tl.Cx, b: Ast.Body, es: Coll.List[Tl.Err]): Tl.W[Ast.Body] = b match +def Tl.body(cx: Tl.Cx, b: Ast.Body, es: Coll.List[Tl.Err]): Tl.W[Ast.Body] = b match case Ast.Def(cs, e) => val Tl.W(e2, es2) = Tl.expr(cx, e, es) Tl.W(Ast.Def(cs, e2), es2) @@ -113,7 +113,7 @@ def Tl.body {r: Region} (cx: Tl.Cx, b: Ast.Body, es: Coll.List[Tl.Err]): Tl.W[As Tl.W(Ast.Spec(cs, e2), es2) case Ast.Extern => Tl.W(b, es) -def Tl.groups {r: Region} (cx: Tl.Cx, gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Group], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Group]] = gs match +def Tl.groups(cx: Tl.Cx, gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Group], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Group]] = gs match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(g, rest) => g match case Ast.Types(bs) => @@ -124,21 +124,21 @@ def Tl.groups {r: Region} (cx: Tl.Cx, gs: Coll.List[Ast.Group], acc: Coll.List[A Tl.groups(cx, rest, Coll.Cons(Ast.Evidence(bs2), acc), es2) case Ast.Facts(_) => Tl.groups(cx, rest, Coll.Cons(g, acc), es) -def Tl.binders {r: Region} (cx: Tl.Cx, bs: Coll.List[Ast.Binder], acc: Coll.List[Ast.Binder], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Binder]] = bs match +def Tl.binders(cx: Tl.Cx, bs: Coll.List[Ast.Binder], acc: Coll.List[Ast.Binder], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Binder]] = bs match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(b, rest) => val Ast.Binder(line, x, t) = b val Tl.W(t2, es2) = Tl.ty(cx, Coll.Nil, Coll.Nil, t, Tl.fuel(), es) Tl.binders(cx, rest, Coll.Cons(Ast.Binder(line, x, t2), acc), es2) -def Tl.cases {r: Region} (cx: Tl.Cx, cs: Coll.List[Ast.Case], acc: Coll.List[Ast.Case], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Case]] = cs match +def Tl.cases(cx: Tl.Cx, cs: Coll.List[Ast.Case], acc: Coll.List[Ast.Case], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Case]] = cs match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(c, rest) => val Ast.Case(line, n, fs) = c val Tl.W(fs2, es2) = Tl.binders(cx, fs, Coll.Nil, es) Tl.cases(cx, rest, Coll.Cons(Ast.Case(line, n, fs2), acc), es2) -def Tl.ops {r: Region} (cx: Tl.Cx, os: Coll.List[Ast.Op], acc: Coll.List[Ast.Op], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Op]] = os match +def Tl.ops(cx: Tl.Cx, os: Coll.List[Ast.Op], acc: Coll.List[Ast.Op], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Op]] = os match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(o, rest) => val Ast.Op(line, n, ps, ret, tr) = o @@ -147,7 +147,7 @@ def Tl.ops {r: Region} (cx: Tl.Cx, os: Coll.List[Ast.Op], acc: Coll.List[Ast.Op] Tl.ops(cx, rest, Coll.Cons(Ast.Op(line, n, ps2, ret2, tr), acc), es3) // ── expressions: the types written in them (call type args, val annotations, quantifiers) ── -def Tl.expr {r: Region} (cx: Tl.Cx, e: Ast.Expr, es: Coll.List[Tl.Err]): Tl.W[Ast.Expr] = e match +def Tl.expr(cx: Tl.Cx, e: Ast.Expr, es: Coll.List[Tl.Err]): Tl.W[Ast.Expr] = e match case Ast.Call(line, f, targs, ch, xs) => val Tl.W(ts2, es2) = Tl.tys(cx, targs, Coll.Nil, es) val Tl.W(xs2, es3) = Tl.exprs(cx, xs, Coll.Nil, es2) @@ -188,26 +188,26 @@ def Tl.expr {r: Region} (cx: Tl.Cx, e: Ast.Expr, es: Coll.List[Tl.Err]): Tl.W[As Tl.W(Ast.Quant(line, q, x, t2, b2), es3) case _ => Tl.W(e, es) -def Tl.exprs {r: Region} (cx: Tl.Cx, xs: Coll.List[Ast.Expr], acc: Coll.List[Ast.Expr], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Expr]] = xs match +def Tl.exprs(cx: Tl.Cx, xs: Coll.List[Ast.Expr], acc: Coll.List[Ast.Expr], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Expr]] = xs match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(x, rest) => val Tl.W(x2, es2) = Tl.expr(cx, x, es) Tl.exprs(cx, rest, Coll.Cons(x2, acc), es2) -def Tl.arms {r: Region} (cx: Tl.Cx, as: Coll.List[Ast.Arm], acc: Coll.List[Ast.Arm], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Arm]] = as match +def Tl.arms(cx: Tl.Cx, as: Coll.List[Ast.Arm], acc: Coll.List[Ast.Arm], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Arm]] = as match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(a, rest) => val Ast.Arm(line, p, b) = a val Tl.W(b2, es2) = Tl.expr(cx, b, es) Tl.arms(cx, rest, Coll.Cons(Ast.Arm(line, p, b2), acc), es2) -def Tl.stmts {r: Region} (cx: Tl.Cx, ss: Coll.List[Ast.Stmt], acc: Coll.List[Ast.Stmt], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Stmt]] = ss match +def Tl.stmts(cx: Tl.Cx, ss: Coll.List[Ast.Stmt], acc: Coll.List[Ast.Stmt], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Stmt]] = ss match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(s, rest) => val Tl.W(s2, es2) = Tl.stmt(cx, s, es) Tl.stmts(cx, rest, Coll.Cons(s2, acc), es2) -def Tl.stmt {r: Region} (cx: Tl.Cx, s: Ast.Stmt, es: Coll.List[Tl.Err]): Tl.W[Ast.Stmt] = s match +def Tl.stmt(cx: Tl.Cx, s: Ast.Stmt, es: Coll.List[Tl.Err]): Tl.W[Ast.Stmt] = s match case Ast.Val(line, x, ann, e) => val Tl.W(a2, es2) = Tl.ann(cx, ann, es) val Tl.W(e2, es3) = Tl.expr(cx, e, es2) @@ -226,21 +226,21 @@ def Tl.stmt {r: Region} (cx: Tl.Cx, s: Ast.Stmt, es: Coll.List[Tl.Err]): Tl.W[As val Tl.W(e2, es2) = Tl.expr(cx, e, es) Tl.W(Ast.Check(line, k, e2), es2) -def Tl.ann {r: Region} (cx: Tl.Cx, a: Coll.Option[Ast.Ty], es: Coll.List[Tl.Err]): Tl.W[Coll.Option[Ast.Ty]] = a match +def Tl.ann(cx: Tl.Cx, a: Coll.Option[Ast.Ty], es: Coll.List[Tl.Err]): Tl.W[Coll.Option[Ast.Ty]] = a match case Coll.None => Tl.W(a, es) case Coll.Some(t) => val Tl.W(t2, es2) = Tl.ty(cx, Coll.Nil, Coll.Nil, t, Tl.fuel(), es) Tl.W(Coll.Some(t2), es2) // ── a type: its args normalized; a type decl applied and reduced; the use keeps its caps (s1 normTyV) ── -def Tl.tys {r: Region} (cx: Tl.Cx, ts: Coll.List[Ast.Ty], acc: Coll.List[Ast.Ty], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Ty]] = ts match +def Tl.tys(cx: Tl.Cx, ts: Coll.List[Ast.Ty], acc: Coll.List[Ast.Ty], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Ty]] = ts match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(t, rest) => val Tl.W(t2, es2) = Tl.ty(cx, Coll.Nil, Coll.Nil, t, Tl.fuel(), es) Tl.tys(cx, rest, Coll.Cons(t2, acc), es2) // t inside a type decl's body: sub = its [] binders, cv = its () value params -def Tl.ty {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], t: Ast.Ty, fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = +def Tl.ty(cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], t: Ast.Ty, fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = val Ast.Ty(line, n, args, caps, vals) = t if fuel <= 0 then Tl.W(t, Coll.Cons(Tl.Fuel(line, n), es)) else @@ -252,20 +252,20 @@ def Tl.ty {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], t case Coll.None => Tl.W(Ast.Ty(line, n, args2, caps, vals), if Coll.length(vals) == 0 then es2 else Coll.Cons(Tl.NoVals(line, n), es2)) case Coll.Some(td) => if Tl.nominal(td) then Tl.W(Ast.Ty(line, n, args2, caps, vals), es2) else Tl.apply(cx, cv, td, line, args2, caps, vals, fuel, es2) -def Tl.tyArgs {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], ts: Coll.List[Ast.Ty], fuel: I64, acc: Coll.List[Ast.Ty], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Ty]] = ts match +def Tl.tyArgs(cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], ts: Coll.List[Ast.Ty], fuel: I64, acc: Coll.List[Ast.Ty], es: Coll.List[Tl.Err]): Tl.W[Coll.List[Ast.Ty]] = ts match case Coll.Nil => Tl.W(Coll.rev(acc), es) case Coll.Cons(t, rest) => val Tl.W(t2, es2) = Tl.ty(cx, sub, cv, t, fuel - 1, es) Tl.tyArgs(cx, sub, cv, rest, fuel, Coll.Cons(t2, acc), es2) -def Tl.btLookup {r: Region} (bs: Coll.List[Tl.Bt], x: Sym.Sym): Coll.Option[Ast.Ty] = bs match +def Tl.btLookup(bs: Coll.List[Tl.Bt], x: Sym.Sym): Coll.Option[Ast.Ty] = bs match case Coll.Nil => Coll.None case Coll.Cons(b, rest) => val Tl.Bt(y, t) = b if Sym.eq(x, y) then Coll.Some(t) else Tl.btLookup(rest, x) // a use of type decl td at args (normalized) and value args vals (evaluated under the enclosing value params cv) -def Tl.apply {r: Region} (cx: Tl.Cx, cv: Coll.List[Tl.Bv], td: Ast.TypeDecl, line: I64, args: Coll.List[Ast.Ty], caps: Ast.Caps, vals: Coll.List[Ast.Expr], fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = +def Tl.apply(cx: Tl.Cx, cv: Coll.List[Tl.Bv], td: Ast.TypeDecl, line: I64, args: Coll.List[Ast.Ty], caps: Ast.Caps, vals: Coll.List[Ast.Expr], fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = val Ast.TypeDecl(_, n, gs, vbs, body) = td val tps = Ty.tparams(gs, Coll.Nil) if Coll.length(tps) != Coll.length(args) || Coll.length(vbs) != Coll.length(vals) then Tl.W(Ast.Ty(line, n, args, caps, Coll.Nil), Coll.Cons(Tl.Arity(line, n), es)) @@ -278,13 +278,13 @@ def Tl.apply {r: Region} (cx: Tl.Cx, cv: Coll.List[Tl.Bv], td: Ast.TypeDecl, lin val Ast.Ty(_, rn, rargs, _, _) = res Tl.W(Ast.Ty(line, rn, rargs, caps, Coll.Nil), es2) -def Tl.zipBt {r: Region} (xs: Coll.List[Sym.Sym], ts: Coll.List[Ast.Ty], acc: Coll.List[Tl.Bt]): Coll.List[Tl.Bt] = xs match +def Tl.zipBt(xs: Coll.List[Sym.Sym], ts: Coll.List[Ast.Ty], acc: Coll.List[Tl.Bt]): Coll.List[Tl.Bt] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => ts match case Coll.Nil => acc case Coll.Cons(t, trest) => Tl.zipBt(rest, trest, Coll.Cons(Tl.Bt(x, t), acc)) -def Tl.reduce {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], n: Sym.Sym, line: I64, body: Ast.TBody, fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = body match +def Tl.reduce(cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], n: Sym.Sym, line: I64, body: Ast.TBody, fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = body match case Ast.Alias(t) => Tl.ty(cx, sub, cv, t, fuel - 1, es) case Ast.TyMatch(scrut, arms) => val Tl.W(s, es2) = Tl.ty(cx, sub, cv, scrut, fuel - 1, es) @@ -294,14 +294,14 @@ def Tl.reduce {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv case Coll.Some(v) => Tl.valArm(cx, sub, cv, n, line, v, arms, fuel, es) // the first case whose pattern (under sub) is s -def Tl.tyArm {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], n: Sym.Sym, line: I64, s: Ast.Ty, arms: Coll.List[Ast.TyArm], fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = arms match +def Tl.tyArm(cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], n: Sym.Sym, line: I64, s: Ast.Ty, arms: Coll.List[Ast.TyArm], fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = arms match case Coll.Nil => Tl.W(s, Coll.Cons(Tl.NoCase(line, n), es)) case Coll.Cons(a, rest) => val Ast.TyArm(_, pat, res) = a val Tl.W(p, es2) = Tl.ty(cx, sub, cv, pat, fuel - 1, es) if Tl.tyEq(p, s) then Tl.ty(cx, sub, cv, res, fuel - 1, es2) else Tl.tyArm(cx, sub, cv, n, line, s, rest, fuel, es2) -def Tl.valArm {r: Region} (cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], n: Sym.Sym, line: I64, v: Tl.V, arms: Coll.List[Ast.ValArm], fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = arms match +def Tl.valArm(cx: Tl.Cx, sub: Coll.List[Tl.Bt], cv: Coll.List[Tl.Bv], n: Sym.Sym, line: I64, v: Tl.V, arms: Coll.List[Ast.ValArm], fuel: I64, es: Coll.List[Tl.Err]): Tl.W[Ast.Ty] = arms match case Coll.Nil => Tl.W(Ast.Ty(line, n, Coll.Nil, Ast.Inferred, Coll.Nil), Coll.Cons(Tl.NoCase(line, n), es)) case Coll.Cons(a, rest) => val Ast.ValArm(_, pat, res) = a @@ -338,7 +338,7 @@ enum Tl.Vals: case Tl.NoValue case Tl.Misfit -def Tl.bindVals {r: Region} (cx: Tl.Cx, cv: Coll.List[Tl.Bv], bs: Coll.List[Ast.Binder], xs: Coll.List[Ast.Expr], acc: Coll.List[Tl.Bv]): Tl.Vals = bs match +def Tl.bindVals(cx: Tl.Cx, cv: Coll.List[Tl.Bv], bs: Coll.List[Ast.Binder], xs: Coll.List[Ast.Expr], acc: Coll.List[Tl.Bv]): Tl.Vals = bs match case Coll.Nil => Tl.Bound(acc) case Coll.Cons(b, rest) => xs match case Coll.Nil => Tl.Bound(acc) @@ -358,7 +358,7 @@ def Tl.fitsTy(t: Ast.Ty, v: Tl.V): Bool = case Tl.VS(_) => Str.eq(s, "Str") // a type decl: its () binders have compile-time values; each value match pattern fits its binder's type -def Tl.typeDecl {r: Region} (td: Ast.TypeDecl, es: Coll.List[Tl.Err]): Coll.List[Tl.Err] = +def Tl.typeDecl(td: Ast.TypeDecl, es: Coll.List[Tl.Err]): Coll.List[Tl.Err] = val Ast.TypeDecl(line, n, _, vbs, body) = td val es2 = Tl.binderTys(line, vbs, es) body match @@ -367,7 +367,7 @@ def Tl.typeDecl {r: Region} (td: Ast.TypeDecl, es: Coll.List[Tl.Err]): Coll.List case Coll.None => es2 case _ => es2 -def Tl.binderTys {r: Region} (line: I64, bs: Coll.List[Ast.Binder], es: Coll.List[Tl.Err]): Coll.List[Tl.Err] = bs match +def Tl.binderTys(line: I64, bs: Coll.List[Ast.Binder], es: Coll.List[Tl.Err]): Coll.List[Tl.Err] = bs match case Coll.Nil => es case Coll.Cons(b, rest) => val Ast.Binder(_, x, t) = b @@ -376,13 +376,13 @@ def Tl.binderTys {r: Region} (line: I64, bs: Coll.List[Ast.Binder], es: Coll.Lis val ok = Str.eq(s, "I64") || Str.eq(s, "Bool") || Str.eq(s, "Str") Tl.binderTys(line, rest, if ok then es else Coll.Cons(Tl.BinderType(line, x), es)) -def Tl.binderTyOf {r: Region} (bs: Coll.List[Ast.Binder], x: Sym.Sym): Coll.Option[Ast.Ty] = bs match +def Tl.binderTyOf(bs: Coll.List[Ast.Binder], x: Sym.Sym): Coll.Option[Ast.Ty] = bs match case Coll.Nil => Coll.None case Coll.Cons(b, rest) => val Ast.Binder(_, y, t) = b if Sym.eq(x, y) then Coll.Some(t) else Tl.binderTyOf(rest, x) -def Tl.patTys {r: Region} (line: I64, n: Sym.Sym, t: Ast.Ty, arms: Coll.List[Ast.ValArm], es: Coll.List[Tl.Err]): Coll.List[Tl.Err] = arms match +def Tl.patTys(line: I64, n: Sym.Sym, t: Ast.Ty, arms: Coll.List[Ast.ValArm], es: Coll.List[Tl.Err]): Coll.List[Tl.Err] = arms match case Coll.Nil => es case Coll.Cons(a, rest) => val Ast.ValArm(al, p, _) = a @@ -393,7 +393,7 @@ def Tl.patTys {r: Region} (line: I64, n: Sym.Sym, t: Ast.Ty, arms: Coll.List[Ast case Ast.VStr(v) => Tl.fitsTy(t, Tl.VS(v)) Tl.patTys(line, n, t, rest, if ok then es else Coll.Cons(Tl.PatType(al, n), es)) -def Tl.bvLookup {r: Region} (bs: Coll.List[Tl.Bv], x: Sym.Sym): Coll.Option[Tl.V] = bs match +def Tl.bvLookup(bs: Coll.List[Tl.Bv], x: Sym.Sym): Coll.Option[Tl.V] = bs match case Coll.Nil => Coll.None case Coll.Cons(b, rest) => val Tl.Bv(y, v) = b @@ -401,7 +401,7 @@ def Tl.bvLookup {r: Region} (bs: Coll.List[Tl.Bv], x: Sym.Sym): Coll.Option[Tl.V // a pure expression's value: literals, the env, operators, if, blocks of vals, calls of defs (each call costs fuel); // anything else has no compile-time value (None) -def Tl.eval {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], e: Ast.Expr, fuel: I64): Coll.Option[Tl.V] = +def Tl.eval(cx: Tl.Cx, env: Coll.List[Tl.Bv], e: Ast.Expr, fuel: I64): Coll.Option[Tl.V] = if fuel <= 0 then Coll.None else e match case Ast.Int(_, v) => Coll.Some(Tl.VI(v)) @@ -421,7 +421,7 @@ def Tl.eval {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], e: Ast.Expr, fuel: I6 case Ast.Block(_, ss, last) => Tl.evalBlock(cx, env, ss, last, fuel) case _ => Coll.None -def Tl.evalBlock {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], ss: Coll.List[Ast.Stmt], last: Ast.Expr, fuel: I64): Coll.Option[Tl.V] = ss match +def Tl.evalBlock(cx: Tl.Cx, env: Coll.List[Tl.Bv], ss: Coll.List[Ast.Stmt], last: Ast.Expr, fuel: I64): Coll.Option[Tl.V] = ss match case Coll.Nil => Tl.eval(cx, env, last, fuel) case Coll.Cons(s, rest) => s match case Ast.Val(_, x, _, e) => Tl.eval(cx, env, e, fuel) match @@ -430,7 +430,7 @@ def Tl.evalBlock {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], ss: Coll.List[As case _ => Coll.None // a call of a def: its args evaluated, bound to its params, its body evaluated with less fuel -def Tl.call {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], f: Sym.Sym, xs: Coll.List[Ast.Expr], fuel: I64): Coll.Option[Tl.V] = +def Tl.call(cx: Tl.Cx, env: Coll.List[Tl.Bv], f: Sym.Sym, xs: Coll.List[Ast.Expr], fuel: I64): Coll.Option[Tl.V] = val Tl.Cx(_, fs) = cx Coll.sLookup(fs, f) match case Coll.None => Coll.None @@ -442,7 +442,7 @@ def Tl.call {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], f: Sym.Sym, xs: Coll. case Coll.None => Coll.None case _ => Coll.None -def Tl.args {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], ps: Coll.List[Ast.Binder], xs: Coll.List[Ast.Expr], fuel: I64, acc: Coll.List[Tl.Bv]): Coll.Option[Coll.List[Tl.Bv]] = ps match +def Tl.args(cx: Tl.Cx, env: Coll.List[Tl.Bv], ps: Coll.List[Ast.Binder], xs: Coll.List[Ast.Expr], fuel: I64, acc: Coll.List[Tl.Bv]): Coll.Option[Coll.List[Tl.Bv]] = ps match case Coll.Nil => xs match case Coll.Nil => Coll.Some(acc) case Coll.Cons(_, _) => Coll.None @@ -454,13 +454,13 @@ def Tl.args {r: Region} (cx: Tl.Cx, env: Coll.List[Tl.Bv], ps: Coll.List[Ast.Bin case Coll.Some(v) => Tl.args(cx, env, prest, xrest, fuel, Coll.Cons(Tl.Bv(y, v), acc)) case Coll.None => Coll.None -def Tl.bin {r: Region} (op: Ast.BinOp, a: Coll.Option[Tl.V], b: Coll.Option[Tl.V]): Coll.Option[Tl.V] = a match +def Tl.bin(op: Ast.BinOp, a: Coll.Option[Tl.V], b: Coll.Option[Tl.V]): Coll.Option[Tl.V] = a match case Coll.None => Coll.None case Coll.Some(x) => b match case Coll.None => Coll.None case Coll.Some(y) => Tl.binV(op, x, y) -def Tl.binV {r: Region} (op: Ast.BinOp, a: Tl.V, b: Tl.V): Coll.Option[Tl.V] = a match +def Tl.binV(op: Ast.BinOp, a: Tl.V, b: Tl.V): Coll.Option[Tl.V] = a match case Tl.VI(x) => b match case Tl.VI(y) => Tl.binI(op, x, y) case _ => Coll.None @@ -480,7 +480,7 @@ def Tl.binV {r: Region} (op: Ast.BinOp, a: Tl.V, b: Tl.V): Coll.Option[Tl.V] = a case _ => Coll.None // a division by zero has no value -def Tl.binI {r: Region} (op: Ast.BinOp, x: I64, y: I64): Coll.Option[Tl.V] = op match +def Tl.binI(op: Ast.BinOp, x: I64, y: I64): Coll.Option[Tl.V] = op match case Ast.Add => Coll.Some(Tl.VI(x + y)) case Ast.Sub => Coll.Some(Tl.VI(x - y)) case Ast.Mul => Coll.Some(Tl.VI(x * y)) @@ -494,7 +494,7 @@ def Tl.binI {r: Region} (op: Ast.BinOp, x: I64, y: I64): Coll.Option[Tl.V] = op case Ast.Ne => Coll.Some(Tl.VB(x != y)) case _ => Coll.None -def Tl.un {r: Region} (op: Ast.UnOp, a: Coll.Option[Tl.V]): Coll.Option[Tl.V] = a match +def Tl.un(op: Ast.UnOp, a: Coll.Option[Tl.V]): Coll.Option[Tl.V] = a match case Coll.None => Coll.None case Coll.Some(v) => v match case Tl.VI(x) => op match @@ -510,11 +510,11 @@ def Tl.un {r: Region} (op: Ast.UnOp, a: Coll.Option[Tl.V]): Coll.Option[Tl.V] = enum Tl.Goal: case Tl.Goal(line: I64, fn: Sym.Sym, goal: Ast.Ty) -def Tl.typeGoals {r: Region} (ds: Coll.List[Ast.Decl]): Coll.List[Tl.Goal] = +def Tl.typeGoals(ds: Coll.List[Ast.Decl]): Coll.List[Tl.Goal] = val cx = Tl.cxOf(ds, Coll.sEmpty(), Coll.sEmpty()) Tl.declGoals(cx, ds, Coll.Nil) -def Tl.declGoals {r: Region} (cx: Tl.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ds match +def Tl.declGoals(cx: Tl.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ds match case Coll.Nil => Coll.rev(acc) case Coll.Cons(d, rest) => d match case Ast.DFn(f) => @@ -527,14 +527,14 @@ def Tl.declGoals {r: Region} (cx: Tl.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List Tl.declGoals(cx, rest, acc3) case _ => Tl.declGoals(cx, rest, acc) -def Tl.bindersGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, bs: Coll.List[Ast.Binder], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = bs match +def Tl.bindersGoals(cx: Tl.Cx, f: Sym.Sym, bs: Coll.List[Ast.Binder], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b Tl.bindersGoals(cx, f, rest, Tl.tyGoals(cx, f, t, acc)) // t and its args: each name of a type decl with {} binders gives their types at t's args -def Tl.tyGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, t: Ast.Ty, acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = +def Tl.tyGoals(cx: Tl.Cx, f: Sym.Sym, t: Ast.Ty, acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = val Ast.Ty(line, n, args, _, _) = t val acc2 = Tl.tysGoals(cx, f, args, acc) val Tl.Cx(tds, _) = cx @@ -545,11 +545,11 @@ def Tl.tyGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, t: Ast.Ty, acc: Coll.List[Tl. val Tl.W(args2, _) = Tl.tyArgs(cx, Coll.Nil, Coll.Nil, args, Tl.fuel(), Coll.Nil, Coll.Nil) Tl.evGoals(cx, f, line, Tl.zipBt(Ty.tparams(gs, Coll.Nil), args2, Coll.Nil), Ty.evidence(gs, Coll.Nil), acc2) -def Tl.tysGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, ts: Coll.List[Ast.Ty], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ts match +def Tl.tysGoals(cx: Tl.Cx, f: Sym.Sym, ts: Coll.List[Ast.Ty], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ts match case Coll.Nil => acc case Coll.Cons(t, rest) => Tl.tysGoals(cx, f, rest, Tl.tyGoals(cx, f, t, acc)) -def Tl.evGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, line: I64, sub: Coll.List[Tl.Bt], ev: Coll.List[Ast.Binder], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ev match +def Tl.evGoals(cx: Tl.Cx, f: Sym.Sym, line: I64, sub: Coll.List[Tl.Bt], ev: Coll.List[Ast.Binder], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ev match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ast.Binder(_, _, bt) = b @@ -557,7 +557,7 @@ def Tl.evGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, line: I64, sub: Coll.List[Tl. Tl.evGoals(cx, f, line, sub, rest, Coll.Cons(Tl.Goal(line, f, g), acc)) // the types written in a body: val annotations and call type args -def Tl.exprGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, e: Ast.Expr, acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = e match +def Tl.exprGoals(cx: Tl.Cx, f: Sym.Sym, e: Ast.Expr, acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = e match case Ast.Call(_, _, targs, _, xs) => Tl.exprsGoals(cx, f, xs, Tl.tysGoals(cx, f, targs, acc)) case Ast.Method(_, _, _, xs) => Tl.exprsGoals(cx, f, xs, acc) case Ast.Bin(_, _, l, x) => Tl.exprGoals(cx, f, x, Tl.exprGoals(cx, f, l, acc)) @@ -569,17 +569,17 @@ def Tl.exprGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, e: Ast.Expr, acc: Coll.List case Ast.Assign(_, _, x) => Tl.exprGoals(cx, f, x, acc) case _ => acc -def Tl.exprsGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, xs: Coll.List[Ast.Expr], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = xs match +def Tl.exprsGoals(cx: Tl.Cx, f: Sym.Sym, xs: Coll.List[Ast.Expr], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Tl.exprsGoals(cx, f, rest, Tl.exprGoals(cx, f, x, acc)) -def Tl.armsGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, as: Coll.List[Ast.Arm], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = as match +def Tl.armsGoals(cx: Tl.Cx, f: Sym.Sym, as: Coll.List[Ast.Arm], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = as match case Coll.Nil => acc case Coll.Cons(a, rest) => val Ast.Arm(_, _, b) = a Tl.armsGoals(cx, f, rest, Tl.exprGoals(cx, f, b, acc)) -def Tl.stmtsGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, ss: Coll.List[Ast.Stmt], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ss match +def Tl.stmtsGoals(cx: Tl.Cx, f: Sym.Sym, ss: Coll.List[Ast.Stmt], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ss match case Coll.Nil => acc case Coll.Cons(s, rest) => val acc2 = s match @@ -590,7 +590,7 @@ def Tl.stmtsGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, ss: Coll.List[Ast.Stmt], a case Ast.Check(_, _, e) => Tl.exprGoals(cx, f, e, acc) Tl.stmtsGoals(cx, f, rest, acc2) -def Tl.annGoals {r: Region} (cx: Tl.Cx, f: Sym.Sym, ann: Coll.Option[Ast.Ty], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ann match +def Tl.annGoals(cx: Tl.Cx, f: Sym.Sym, ann: Coll.Option[Ast.Ty], acc: Coll.List[Tl.Goal]): Coll.List[Tl.Goal] = ann match case Coll.None => acc case Coll.Some(t) => Tl.tyGoals(cx, f, t, acc) diff --git a/s2/types.srs b/s2/types.srs index 45035565..941aff32 100644 --- a/s2/types.srs +++ b/s2/types.srs @@ -81,19 +81,19 @@ enum Ty.St: enum Ty.At: case Ty.At(st: Ty.St, t: K.Term) -def Ty.con {r: Region} (n: Str): K.Term = K.Con(Sym.of(n), Coll.Nil) +def Ty.con(n: Str): K.Term = K.Con(Sym.of(n), Coll.Nil) -def Ty.fresh {r: Region} (st: Ty.St): Ty.At = +def Ty.fresh(st: Ty.St): Ty.At = val Ty.St(s, n, cs, is, gs, nm) = st Ty.At(Ty.St(s, n + 1, cs, is, gs, nm), K.Var(n)) -def Ty.clash {r: Region} (st: Ty.St, c: Ty.Clash): Ty.St = +def Ty.clash(st: Ty.St, c: Ty.Clash): Ty.St = val Ty.St(s, n, cs, is, gs, nm) = st Ty.St(s, n, Coll.Cons(c, cs), is, gs, nm) // got must equal want: unify, or a Mismatch (the state keeps its substitution). a value of a type with <> facts is // a value of its body (it only refines it, vic-jxk): got widens to the body when it does not unify as it is -def Ty.expect {r: Region} (st: Ty.St, line: I64, got: K.Term, want: K.Term): Ty.St = +def Ty.expect(st: Ty.St, line: I64, got: K.Term, want: K.Term): Ty.St = val Ty.St(s, n, cs, is, gs, nm) = st K.unify(s, got, want) match case Coll.Some(s2) => Ty.St(s2, n, cs, is, gs, nm) @@ -103,12 +103,12 @@ def Ty.expect {r: Region} (st: Ty.St, line: I64, got: K.Term, want: K.Term): Ty. case Coll.None => Ty.St(s, n, Coll.Cons(Ty.Mismatch(line, got, want), cs), is, gs, nm) case Coll.None => Ty.St(s, n, Coll.Cons(Ty.Mismatch(line, got, want), cs), is, gs, nm) -def Ty.widen {r: Region} (nm: Coll.SMap[K.Term], t: K.Term): Coll.Option[K.Term] = t match +def Ty.widen(nm: Coll.SMap[K.Term], t: K.Term): Coll.Option[K.Term] = t match case K.Con(n, _) => Coll.sLookup(nm, n) case _ => Coll.None // the types with <> facts (kept nominal by Tl) and their bodies -def Ty.nominals {r: Region} (ds: Coll.List[Ast.Decl], m: Coll.SMap[K.Term]): Coll.SMap[K.Term] = ds match +def Ty.nominals(ds: Coll.List[Ast.Decl], m: Coll.SMap[K.Term]): Coll.SMap[K.Term] = ds match case Coll.Nil => m case Coll.Cons(d, rest) => d match case Ast.DType(td) => @@ -120,18 +120,18 @@ def Ty.nominals {r: Region} (ds: Coll.List[Ast.Decl], m: Coll.SMap[K.Term]): Col case _ => Ty.nominals(rest, m) // unify when want is known (check mode), else nothing -def Ty.expectOpt {r: Region} (st: Ty.St, line: I64, got: K.Term, want: Coll.Option[K.Term]): Ty.St = want match +def Ty.expectOpt(st: Ty.St, line: I64, got: K.Term, want: Coll.Option[K.Term]): Ty.St = want match case Coll.None => st case Coll.Some(w) => Ty.expect(st, line, got, w) -def Ty.lookup {r: Region} (bs: Coll.List[Ty.Bind], x: Sym.Sym): Coll.Option[K.Term] = bs match +def Ty.lookup(bs: Coll.List[Ty.Bind], x: Sym.Sym): Coll.Option[K.Term] = bs match case Coll.Nil => Coll.None case Coll.Cons(b, rest) => val Ty.Bind(y, t) = b if Sym.eq(x, y) then Coll.Some(t) else Ty.lookup(rest, x) // ── Ast.Ty as a term: a name bound in tv (a [] binder: a var at a call, a rigid con in a body) is its term ── -def Ty.term {r: Region} (t: Ast.Ty, tv: Coll.List[Ty.Bind]): K.Term = +def Ty.term(t: Ast.Ty, tv: Coll.List[Ty.Bind]): K.Term = val Ast.Ty(_, n, args, _, _) = t args match case Coll.Nil => Ty.lookup(tv, n) match @@ -139,19 +139,19 @@ def Ty.term {r: Region} (t: Ast.Ty, tv: Coll.List[Ty.Bind]): K.Term = case Coll.None => K.Con(n, Coll.Nil) case Coll.Cons(_, _) => K.Con(n, Ty.terms(args, tv, Coll.Nil)) -def Ty.terms {r: Region} (ts: Coll.List[Ast.Ty], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match +def Ty.terms(ts: Coll.List[Ast.Ty], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = ts match case Coll.Nil => Coll.rev(acc) case Coll.Cons(t, rest) => Ty.terms(rest, tv, Coll.Cons(Ty.term(t, tv), acc)) // the [] binder names of groups -def Ty.tparams {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = gs match +def Ty.tparams(gs: Coll.List[Ast.Group], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = gs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(g, rest) => g match case Ast.Types(bs) => Ty.tparams(rest, Ty.names(bs, acc)) case Ast.Evidence(_) => Ty.tparams(rest, acc) case Ast.Facts(_) => Ty.tparams(rest, acc) -def Ty.names {r: Region} (bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Ty.names(bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ast.Binder(_, x, _) = b @@ -161,19 +161,19 @@ def Ty.names {r: Region} (bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): C enum Ty.Open: case Ty.Open(st: Ty.St, tv: Coll.List[Ty.Bind], vars: Coll.List[K.Term]) -def Ty.open {r: Region} (st: Ty.St, xs: Coll.List[Sym.Sym], tv: Coll.List[Ty.Bind], vars: Coll.List[K.Term]): Ty.Open = xs match +def Ty.open(st: Ty.St, xs: Coll.List[Sym.Sym], tv: Coll.List[Ty.Bind], vars: Coll.List[K.Term]): Ty.Open = xs match case Coll.Nil => Ty.Open(st, tv, Coll.rev(vars)) case Coll.Cons(x, rest) => val Ty.At(st1, v) = Ty.fresh(st) Ty.open(st1, rest, Coll.Cons(Ty.Bind(x, v), tv), Coll.Cons(v, vars)) // each binder name to a rigid con named by it (inside a generic body) -def Ty.rigid {r: Region} (xs: Coll.List[Sym.Sym], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = xs match +def Ty.rigid(xs: Coll.List[Sym.Sym], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => Ty.rigid(rest, Coll.Cons(Ty.Bind(x, K.Con(x, Coll.Nil)), acc)) // ── lookups ── -def Ty.fnNamed {r: Region} (fs: Coll.List[Ast.Fn], f: Sym.Sym): Coll.Option[Ast.Fn] = fs match +def Ty.fnNamed(fs: Coll.List[Ast.Fn], f: Sym.Sym): Coll.Option[Ast.Fn] = fs match case Coll.Nil => Coll.None case Coll.Cons(g, rest) => val Ast.Fn(_, n, _, _, _, _, _) = g @@ -183,7 +183,7 @@ def Ty.fnNamed {r: Region} (fs: Coll.List[Ast.Fn], f: Sym.Sym): Coll.Option[Ast. enum Ty.CaseOf: case Ty.CaseOf(e: Ast.Enum, c: Ast.Case) -def Ty.caseNamed {r: Region} (es: Coll.List[Ast.Enum], f: Sym.Sym): Coll.Option[Ty.CaseOf] = es match +def Ty.caseNamed(es: Coll.List[Ast.Enum], f: Sym.Sym): Coll.Option[Ty.CaseOf] = es match case Coll.Nil => Coll.None case Coll.Cons(e, rest) => val Ast.Enum(_, _, _, cases) = e @@ -191,18 +191,18 @@ def Ty.caseNamed {r: Region} (es: Coll.List[Ast.Enum], f: Sym.Sym): Coll.Option[ case Coll.Some(c) => Coll.Some(Ty.CaseOf(e, c)) case Coll.None => Ty.caseNamed(rest, f) -def Ty.caseIn {r: Region} (cs: Coll.List[Ast.Case], e: Ast.Enum, f: Sym.Sym): Coll.Option[Ast.Case] = cs match +def Ty.caseIn(cs: Coll.List[Ast.Case], e: Ast.Enum, f: Sym.Sym): Coll.Option[Ast.Case] = cs match case Coll.Nil => Coll.None case Coll.Cons(c, rest) => val Ast.Case(_, n, _) = c if Sym.eq(n, f) then Coll.Some(c) else Ty.caseIn(rest, e, f) // the enum's type at fresh vars: E[v1..vn], with the binders bound for its fields -def Ty.openEnum {r: Region} (st: Ty.St, e: Ast.Enum): Ty.Open = +def Ty.openEnum(st: Ty.St, e: Ast.Enum): Ty.Open = val Ast.Enum(_, _, gs, _) = e Ty.open(st, Ty.tparams(gs, Coll.Nil), Coll.Nil, Coll.Nil) -def Ty.enumTerm {r: Region} (e: Ast.Enum, vars: Coll.List[K.Term]): K.Term = +def Ty.enumTerm(e: Ast.Enum, vars: Coll.List[K.Term]): K.Term = val Ast.Enum(_, n, _, _) = e K.Con(n, vars) @@ -213,7 +213,7 @@ enum Ty.Ex: enum Ty.Es: case Ty.Es(st: Ty.St, es: Coll.List[El.Expr]) -def Ty.expr {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], e: Ast.Expr, want: Coll.Option[K.Term]): Ty.Ex = e match +def Ty.expr(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], e: Ast.Expr, want: Coll.Option[K.Term]): Ty.Ex = e match case Ast.Int(line, v) => Ty.lit(st, line, Ty.con("I64"), want, El.Int(line, v)) case Ast.Bool(line, v) => Ty.lit(st, line, Ty.con("Bool"), want, El.Bool(line, v)) case Ast.Str(line, s) => Ty.lit(st, line, Ty.con("Str"), want, El.Str(line, s)) @@ -252,15 +252,15 @@ def Ty.expr {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], e: Ast.Ex Ty.lit(st1, line, Ty.con("Bool"), want, El.Bool(line, true)) // a type that is known: checked against want -def Ty.lit {r: Region} (st: Ty.St, line: I64, t: K.Term, want: Coll.Option[K.Term], e: El.Expr): Ty.Ex = Ty.Ex(Ty.expectOpt(st, line, t, want), t, e) +def Ty.lit(st: Ty.St, line: I64, t: K.Term, want: Coll.Option[K.Term], e: El.Expr): Ty.Ex = Ty.Ex(Ty.expectOpt(st, line, t, want), t, e) // an expression that did not type: a fresh type, El.Bad -def Ty.bad {r: Region} (st: Ty.St, line: I64): Ty.Ex = +def Ty.bad(st: Ty.St, line: I64): Ty.Ex = val Ty.At(st1, v) = Ty.fresh(st) Ty.Ex(st1, v, El.Bad(line)) // ── calls: a def or a constructor (a name with no args is a nullary case) ── -def Ty.call {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, f: Sym.Sym, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym], xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = +def Ty.call(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, f: Sym.Sym, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym], xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = val Ty.Cx(fns, es, ps, _, _, _, _, _) = cx Ty.fnNamed(fns, f) match case Coll.Some(g) => Ty.callFn(cx, Ty.rtCall(cx, Ty.pureCall(cx, st, line, f), line, g), bs, line, g, targs, chosen, xs, want) @@ -271,17 +271,17 @@ def Ty.call {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64 case Coll.None => Ty.bad(Ty.args(cx, Ty.clash(st, Ty.Unknown(line, f)), bs, xs), line) // P.op(args): the op on the innermost capability of P in scope (vic 2026-11-09: the innermost handler answers) -def Ty.request {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, q: Eff.Req, xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = +def Ty.request(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, q: Eff.Req, xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = val Eff.Req(p, op) = q Ty.innermost(Ty.subst(st), bs, p) match case Coll.Some(x) => Ty.method(cx, st, bs, line, x, op, xs, want) case Coll.None => Ty.bad(Ty.args(cx, Ty.clash(st, Ty.UnhandledEffect(line, p)), bs, xs), line) // the innermost local of protocol type p -def Ty.innermost {r: Region} (s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], p: Sym.Sym): Coll.Option[Sym.Sym] = Ty.innermostFrom(s, bs, p, Coll.Nil) +def Ty.innermost(s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], p: Sym.Sym): Coll.Option[Sym.Sym] = Ty.innermostFrom(s, bs, p, Coll.Nil) // seen: the names of the inner locals; a capability whose name an inner local shadows is out of reach by its name -def Ty.innermostFrom {r: Region} (s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], p: Sym.Sym, seen: Coll.List[Sym.Sym]): Coll.Option[Sym.Sym] = bs match +def Ty.innermostFrom(s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], p: Sym.Sym, seen: Coll.List[Sym.Sym]): Coll.Option[Sym.Sym] = bs match case Coll.Nil => Coll.None case Coll.Cons(b, rest) => val Ty.Bind(x, t) = b @@ -291,7 +291,7 @@ def Ty.innermostFrom {r: Region} (s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], if isP && !Ty.memberSym(x, seen) then Coll.Some(x) else Ty.innermostFrom(s, rest, p, Coll.Cons(x, seen)) // the callee's row: for each implicit capability, the caller's innermost of its protocol -def Ty.rowCaps {r: Region} (st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, cs: Coll.List[Eff.Cap], acc: Coll.List[Sym.Sym]): Ty.Caps = cs match +def Ty.rowCaps(st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, cs: Coll.List[Eff.Cap], acc: Coll.List[Sym.Sym]): Ty.Caps = cs match case Coll.Nil => Ty.Caps(st, Coll.rev(acc)) case Coll.Cons(c, rest) => val Eff.Cap(p, _) = c @@ -300,7 +300,7 @@ def Ty.rowCaps {r: Region} (st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, cs: Co case Coll.None => Ty.rowCaps(Ty.clash(st, Ty.UnhandledEffect(line, p)), bs, line, rest, acc) // the args alone (an unknown callee: still checked) -def Ty.args {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr]): Ty.St = xs match +def Ty.args(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr]): Ty.St = xs match case Coll.Nil => st case Coll.Cons(x, rest) => val Ty.Ex(st1, _, _) = Ty.expr(cx, st, bs, x, Coll.None) @@ -308,7 +308,7 @@ def Ty.args {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], xs: Coll. // f[T]{caps}(args): open the binders, explicit type args, check mode (want binds the result first), args left to right; // each protocol {} binder takes a caller capability (the chosen name, else the one of its protocol in scope) -def Ty.callFn {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, g: Ast.Fn, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym], xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = +def Ty.callFn(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, g: Ast.Fn, targs: Coll.List[Ast.Ty], chosen: Coll.List[Sym.Sym], xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = val Ast.Fn(_, name, gs, ps, ret, _, _) = g val tps = Ty.tparams(gs, Coll.Nil) val Ty.Open(st1, tv, vars) = Ty.open(st, tps, Coll.Nil, Coll.Nil) @@ -326,21 +326,21 @@ def Ty.callFn {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I Ty.Ex(Ty.inst(st6, line, name, vars), rt, El.CallFn(line, name, vars, Coll.revOnto(Coll.rev(caps), icaps), eargs)) // record a generic instance (no binders: nothing to instantiate) -def Ty.inst {r: Region} (st: Ty.St, line: I64, name: Sym.Sym, vars: Coll.List[K.Term]): Ty.St = vars match +def Ty.inst(st: Ty.St, line: I64, name: Sym.Sym, vars: Coll.List[K.Term]): Ty.St = vars match case Coll.Nil => st case Coll.Cons(_, _) => val Ty.St(s, n, cs, is, gs, nm) = st Ty.St(s, n, cs, Coll.Cons(Ty.Inst(line, name, vars), is), gs, nm) // f[T1, ...]: each written type arg binds its binder (too many: Arity) -def Ty.explicit {r: Region} (st: Ty.St, line: I64, vars: Coll.List[K.Term], ts: Coll.List[K.Term]): Ty.St = ts match +def Ty.explicit(st: Ty.St, line: I64, vars: Coll.List[K.Term], ts: Coll.List[K.Term]): Ty.St = ts match case Coll.Nil => st case Coll.Cons(t, rest) => vars match case Coll.Nil => Ty.clash(st, Ty.Arity(line, Sym.of("[]"))) case Coll.Cons(v, vs) => Ty.explicit(Ty.expect(st, line, v, t), line, vs, rest) // each arg against its param type (binders as opened); the elaborated args in order -def Ty.params {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ps: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr], acc: Coll.List[El.Expr]): Ty.Es = ps match +def Ty.params(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ps: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr], acc: Coll.List[El.Expr]): Ty.Es = ps match case Coll.Nil => Ty.Es(st, Coll.rev(acc)) case Coll.Cons(p, prest) => xs match case Coll.Nil => Ty.Es(st, Coll.rev(acc)) @@ -354,7 +354,7 @@ enum Ty.Caps: case Ty.Caps(st: Ty.St, caps: Coll.List[Sym.Sym]) // i = the binder's index among all {} binders (f{a, b}(x) picks by it) -def Ty.capArgs {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, tv: Coll.List[Ty.Bind], ev: Coll.List[Ast.Binder], chosen: Coll.List[Sym.Sym], i: I64, acc: Coll.List[Sym.Sym]): Ty.Caps = ev match +def Ty.capArgs(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, tv: Coll.List[Ty.Bind], ev: Coll.List[Ast.Binder], chosen: Coll.List[Sym.Sym], i: I64, acc: Coll.List[Sym.Sym]): Ty.Caps = ev match case Coll.Nil => Ty.Caps(st, Coll.rev(acc)) case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b @@ -365,7 +365,7 @@ def Ty.capArgs {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: case Ty.Caps(st1, c) => Ty.capArgs(cx, st1, bs, line, tv, rest, chosen, i + 1, Coll.revOnto(c, acc)) // the cap of protocol p: the chosen name at index i, else the one local of type p in scope (none or two: NoCap) -def Ty.capFor {r: Region} (st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, p: Sym.Sym, chosen: Coll.List[Sym.Sym], i: I64): Ty.Caps = chosen match +def Ty.capFor(st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, p: Sym.Sym, chosen: Coll.List[Sym.Sym], i: I64): Ty.Caps = chosen match case Coll.Cons(_, _) => Ty.nthSym(chosen, i) match case Coll.Some(x) => Ty.Caps(if Ty.isCapOf(Ty.subst(st), bs, x, p) then st else Ty.clash(st, Ty.ChosenNotCap(line, p)), Coll.Cons(x, Coll.Nil)) case Coll.None => Ty.Caps(Ty.clash(st, Ty.NoCap(line, p)), Coll.Nil) @@ -376,7 +376,7 @@ def Ty.capFor {r: Region} (st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, p: Sym. case Coll.Nil => Ty.Caps(Ty.clash(st, Ty.NoCap(line, p)), Coll.Nil) // the distinct local names of type p (a shadowed name counts once) -def Ty.capsOf {r: Region} (s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], p: Sym.Sym, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Ty.capsOf(s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], p: Sym.Sym, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ty.Bind(x, t) = b @@ -389,7 +389,7 @@ def Ty.memberSym(x: Sym.Sym, xs: Coll.List[Sym.Sym]): Bool = xs match case Coll.Nil => false case Coll.Cons(h, t) => if Sym.eq(h, x) then true else Ty.memberSym(x, t) -def Ty.nthSym {r: Region} (xs: Coll.List[Sym.Sym], i: I64): Coll.Option[Sym.Sym] = xs match +def Ty.nthSym(xs: Coll.List[Sym.Sym], i: I64): Coll.Option[Sym.Sym] = xs match case Coll.Nil => Coll.None case Coll.Cons(x, rest) => if i == 0 then Coll.Some(x) else Ty.nthSym(rest, i - 1) @@ -401,7 +401,7 @@ def Ty.isProto(ps: Coll.List[Ast.Proto], n: Sym.Sym): Bool = ps match // a constructor: the enum at fresh vars, check mode first, then the fields; it is a request on Region, so it allocates in // the innermost Region in scope (a spec body allocates nothing at run time) -def Ty.callCase {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, co: Ty.CaseOf, xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = +def Ty.callCase(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, co: Ty.CaseOf, xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = val Ty.CaseOf(e, c) = co val Ast.Enum(_, en, _, _) = e val Ast.Case(_, name, fields) = c @@ -424,7 +424,7 @@ def Ty.callCase {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: // recv.op(args): recv is a capability (op of its protocol) or {} evidence of a trait (the trait method, trait args // bound from the evidence type) -def Ty.method {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, recv: Sym.Sym, op: Sym.Sym, xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = +def Ty.method(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, recv: Sym.Sym, op: Sym.Sym, xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = val Ty.Cx(_, _, ps, _, trs, _, _, _) = cx Ty.lookup(bs, recv) match case Coll.None => Ty.bad(Ty.args(cx, Ty.clash(st, Ty.Unknown(line, recv)), bs, xs), line) @@ -447,26 +447,26 @@ def Ty.subst(st: Ty.St): Coll.IMap[K.Term] = s // a signature with its binders bound to tv: arity, args, result -def Ty.callSig {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, recv: Sym.Sym, rty: K.Term, name: Sym.Sym, ps: Coll.List[Ast.Binder], ret: Ast.Ty, tv: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = +def Ty.callSig(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, recv: Sym.Sym, rty: K.Term, name: Sym.Sym, ps: Coll.List[Ast.Binder], ret: Ast.Ty, tv: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr], want: Coll.Option[K.Term]): Ty.Ex = val rt = Ty.term(ret, tv) if Coll.length(ps) != Coll.length(xs) then Ty.Ex(Ty.args(cx, Ty.clash(st, Ty.Arity(line, name)), bs, xs), rt, El.Bad(line)) else val Ty.Es(st1, eargs) = Ty.params(cx, st, bs, line, ps, tv, xs, Coll.Nil) Ty.lit(st1, line, rt, want, El.Op(line, recv, rty, name, eargs)) -def Ty.zipBind {r: Region} (xs: Coll.List[Sym.Sym], ts: Coll.List[K.Term], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = xs match +def Ty.zipBind(xs: Coll.List[Sym.Sym], ts: Coll.List[K.Term], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = xs match case Coll.Nil => acc case Coll.Cons(x, rest) => ts match case Coll.Nil => acc case Coll.Cons(t, trest) => Ty.zipBind(rest, trest, Coll.Cons(Ty.Bind(x, t), acc)) -def Ty.protoOp {r: Region} (ps: Coll.List[Ast.Proto], p: Sym.Sym, op: Sym.Sym): Coll.Option[Ast.Op] = ps match +def Ty.protoOp(ps: Coll.List[Ast.Proto], p: Sym.Sym, op: Sym.Sym): Coll.Option[Ast.Op] = ps match case Coll.Nil => Coll.None case Coll.Cons(x, rest) => val Ast.Proto(_, n, _, _, _, _, ops, _) = x if Sym.eq(n, p) then Ty.opIn(ops, op) else Ty.protoOp(rest, p, op) -def Ty.opIn {r: Region} (os: Coll.List[Ast.Op], op: Sym.Sym): Coll.Option[Ast.Op] = os match +def Ty.opIn(os: Coll.List[Ast.Op], op: Sym.Sym): Coll.Option[Ast.Op] = os match case Coll.Nil => Coll.None case Coll.Cons(o, rest) => val Ast.Op(_, n, _, _, _) = o @@ -475,7 +475,7 @@ def Ty.opIn {r: Region} (os: Coll.List[Ast.Op], op: Sym.Sym): Coll.Option[Ast.Op enum Ty.TM: case Ty.TM(t: Ast.Trait, m: Ast.Fn) -def Ty.traitMethod {r: Region} (trs: Coll.List[Ast.Trait], t: Sym.Sym, op: Sym.Sym): Coll.Option[Ty.TM] = trs match +def Ty.traitMethod(trs: Coll.List[Ast.Trait], t: Sym.Sym, op: Sym.Sym): Coll.Option[Ty.TM] = trs match case Coll.Nil => Coll.None case Coll.Cons(tr, rest) => val Ast.Trait(_, n, _, sigs) = tr @@ -486,7 +486,7 @@ def Ty.traitMethod {r: Region} (trs: Coll.List[Ast.Trait], t: Sym.Sym, op: Sym.S else Ty.traitMethod(rest, t, op) // ── operators: arithmetic on I64, comparison gives Bool (== and != on any one type), && || on Bool ── -def Ty.bin {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, op: Ast.BinOp, l: Ast.Expr, rhs: Ast.Expr, want: Coll.Option[K.Term]): Ty.Ex = op match +def Ty.bin(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, op: Ast.BinOp, l: Ast.Expr, rhs: Ast.Expr, want: Coll.Option[K.Term]): Ty.Ex = op match case Ast.Eq => Ty.eqOp(cx, st, bs, line, op, l, rhs, want) case Ast.Ne => Ty.eqOp(cx, st, bs, line, op, l, rhs, want) case Ast.And => Ty.both(cx, st, bs, line, op, l, rhs, Ty.con("Bool"), Ty.con("Bool"), want) @@ -498,18 +498,18 @@ def Ty.bin {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, case _ => Ty.both(cx, st, bs, line, op, l, rhs, Ty.con("I64"), Ty.con("I64"), want) // both operands of type arg, the result of type res -def Ty.both {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, op: Ast.BinOp, l: Ast.Expr, rhs: Ast.Expr, arg: K.Term, res: K.Term, want: Coll.Option[K.Term]): Ty.Ex = +def Ty.both(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, op: Ast.BinOp, l: Ast.Expr, rhs: Ast.Expr, arg: K.Term, res: K.Term, want: Coll.Option[K.Term]): Ty.Ex = val Ty.Ex(st1, _, el) = Ty.expr(cx, st, bs, l, Coll.Some(arg)) val Ty.Ex(st2, _, er) = Ty.expr(cx, st1, bs, rhs, Coll.Some(arg)) Ty.lit(st2, line, res, want, El.Bin(line, op, el, er)) -def Ty.eqOp {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, op: Ast.BinOp, l: Ast.Expr, rhs: Ast.Expr, want: Coll.Option[K.Term]): Ty.Ex = +def Ty.eqOp(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, op: Ast.BinOp, l: Ast.Expr, rhs: Ast.Expr, want: Coll.Option[K.Term]): Ty.Ex = val Ty.Ex(st1, tl, el) = Ty.expr(cx, st, bs, l, Coll.None) val Ty.Ex(st2, _, er) = Ty.expr(cx, st1, bs, rhs, Coll.Some(tl)) Ty.lit(st2, line, Ty.con("Bool"), want, El.Bin(line, op, el, er)) // ── match: the scrutinee is an enum E[args]; each arm binds its case fields with E's binders at args ── -def Ty.arms {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ts: K.Term, es: El.Expr, as: Coll.List[Ast.Arm], want: Coll.Option[K.Term]): Ty.Ex = as match +def Ty.arms(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ts: K.Term, es: El.Expr, as: Coll.List[Ast.Arm], want: Coll.Option[K.Term]): Ty.Ex = as match case Coll.Nil => Ty.bad(st, line) case Coll.Cons(a, rest) => val Ty.Cx(_, enums, _, _, _, _, _, _) = cx @@ -520,7 +520,7 @@ def Ty.arms {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64 Ty.armsSame(cx, st1, bs, line, ts, es, rest, t1, Coll.Cons(ea, Coll.Nil)) // the arms after the first: each must have the first's type; the elaborated arms in order -def Ty.armsSame {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ts: K.Term, es: El.Expr, as: Coll.List[Ast.Arm], t: K.Term, acc: Coll.List[El.Arm]): Ty.Ex = as match +def Ty.armsSame(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ts: K.Term, es: El.Expr, as: Coll.List[Ast.Arm], t: K.Term, acc: Coll.List[El.Arm]): Ty.Ex = as match case Coll.Nil => Ty.Ex(st, t, El.Match(line, es, ts, Coll.rev(acc))) case Coll.Cons(a, rest) => val Ty.AEx(st1, _, ea) = Ty.arm(cx, st, bs, ts, a, Coll.Some(t)) @@ -530,7 +530,7 @@ def Ty.armsSame {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: enum Ty.AEx: case Ty.AEx(st: Ty.St, t: K.Term, a: El.Arm) -def Ty.arm {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], ts: K.Term, a: Ast.Arm, want: Coll.Option[K.Term]): Ty.AEx = +def Ty.arm(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], ts: K.Term, a: Ast.Arm, want: Coll.Option[K.Term]): Ty.AEx = val Ast.Arm(line, p, b) = a val Ty.Cx(_, es, _, _, _, _, _, _) = cx val Ty.Ex(st9, t9, e9) = p match @@ -546,7 +546,7 @@ def Ty.arm {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], ts: K.Term Ty.expr(cx, st2, Ty.bindFields(binds, fields, tv, bs), b, want) Ty.AEx(st9, t9, El.Arm(line, p, e9)) -def Ty.bindFields {r: Region} (xs: Coll.List[Sym.Sym], fs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], bs: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = xs match +def Ty.bindFields(xs: Coll.List[Sym.Sym], fs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], bs: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = xs match case Coll.Nil => bs case Coll.Cons(x, rest) => fs match case Coll.Nil => bs @@ -556,7 +556,7 @@ def Ty.bindFields {r: Region} (xs: Coll.List[Sym.Sym], fs: Coll.List[Ast.Binder] // ── blocks: val/var bind (an annotation is the expected type), handle binds a capability of the handler's protocol; // acc = the elaborated statements so far, reversed ── -def Ty.block {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ss: Coll.List[Ast.Stmt], last: Ast.Expr, want: Coll.Option[K.Term], acc: Coll.List[El.Stmt]): Ty.Ex = ss match +def Ty.block(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, ss: Coll.List[Ast.Stmt], last: Ast.Expr, want: Coll.Option[K.Term], acc: Coll.List[El.Stmt]): Ty.Ex = ss match case Coll.Nil => val Ty.Ex(st1, t, el) = Ty.expr(cx, st, bs, last, want) Ty.Ex(st1, t, El.Block(line, Coll.rev(acc), el)) @@ -580,13 +580,13 @@ def Ty.block {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I6 val Ty.Ex(st1, _, _) = Ty.expr(cx, st, bs, e, Coll.Some(want2)) Ty.block(cx, st1, bs, line, rest, last, want, acc) -def Ty.exprs {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr], acc: Coll.List[El.Expr]): Ty.Es = xs match +def Ty.exprs(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], xs: Coll.List[Ast.Expr], acc: Coll.List[El.Expr]): Ty.Es = xs match case Coll.Nil => Ty.Es(st, Coll.rev(acc)) case Coll.Cons(x, rest) => val Ty.Ex(st1, _, ex) = Ty.expr(cx, st, bs, x, Coll.None) Ty.exprs(cx, st1, bs, rest, Coll.Cons(ex, acc)) -def Ty.bindStmt {r: Region} (cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, sl: I64, x: Sym.Sym, ann: Coll.Option[Ast.Ty], e: Ast.Expr, mut: Bool, rest: Coll.List[Ast.Stmt], last: Ast.Expr, want: Coll.Option[K.Term], acc: Coll.List[El.Stmt]): Ty.Ex = +def Ty.bindStmt(cx: Ty.Cx, st: Ty.St, bs: Coll.List[Ty.Bind], line: I64, sl: I64, x: Sym.Sym, ann: Coll.Option[Ast.Ty], e: Ast.Expr, mut: Bool, rest: Coll.List[Ast.Stmt], last: Ast.Expr, want: Coll.Option[K.Term], acc: Coll.List[El.Stmt]): Ty.Ex = val wa: Coll.Option[K.Term] = ann match case Coll.None => Coll.None case Coll.Some(t) => Coll.Some(Ty.term(t, Coll.Nil)) @@ -607,7 +607,7 @@ enum Ty.FnEx: case Ty.FnEx(st: Ty.St, f: El.Fn) // row: the implicit capabilities (s2/eff.srs), outermost locals, C params after the written ones -def Ty.fn {r: Region} (cx: Ty.Cx, st0: Ty.St, f: Ast.Fn, row: Coll.List[Eff.Cap]): Ty.FnEx = +def Ty.fn(cx: Ty.Cx, st0: Ty.St, f: Ast.Fn, row: Coll.List[Eff.Cap]): Ty.FnEx = val Ast.Fn(line, name, gs, ps, ret, _, body) = f val Ty.Cx(_, _, protos, _, _, _, _, _) = cx val tps = Ty.tparams(gs, Coll.Nil) @@ -627,39 +627,39 @@ def Ty.fn {r: Region} (cx: Ty.Cx, st0: Ty.St, f: Ast.Fn, row: Coll.List[Eff.Cap] val Ty.Ex(st1, _, eb) = Ty.expr(Ty.comptime(cx), st, bs, e, Coll.Some(rt)) Ty.FnEx(st1, El.Fn(line, name, tps, caps, eps, rt, El.Spec(eb))) -def Ty.rowBinds {r: Region} (row: Coll.List[Eff.Cap], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = row match +def Ty.rowBinds(row: Coll.List[Eff.Cap], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = row match case Coll.Nil => acc case Coll.Cons(c, rest) => val Eff.Cap(p, x) = c Ty.rowBinds(rest, Coll.Cons(Ty.Bind(x, K.Con(p, Coll.Nil)), acc)) -def Ty.rowNames {r: Region} (row: Coll.List[Eff.Cap]): Coll.List[Sym.Sym] = row match +def Ty.rowNames(row: Coll.List[Eff.Cap]): Coll.List[Sym.Sym] = row match case Coll.Nil => Coll.Nil case Coll.Cons(c, rest) => val Eff.Cap(_, x) = c Coll.Cons(x, Ty.rowNames(rest)) // the {} binders of a protocol type, in written order (leading C params) -def Ty.capNames {r: Region} (ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ev match +def Ty.capNames(ps: Coll.List[Ast.Proto], ev: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = ev match case Coll.Nil => Coll.rev(acc) case Coll.Cons(b, rest) => val Ast.Binder(_, x, t) = b val Ast.Ty(_, n, _, _, _) = t Ty.capNames(ps, rest, if Ty.isProto(ps, n) then Coll.Cons(x, acc) else acc) -def Ty.elParams {r: Region} (ps: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[El.Param]): Coll.List[El.Param] = ps match +def Ty.elParams(ps: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[El.Param]): Coll.List[El.Param] = ps match case Coll.Nil => Coll.rev(acc) case Coll.Cons(p, rest) => val Ast.Binder(_, x, t) = p Ty.elParams(rest, tv, Coll.Cons(El.Param(x, Ty.term(t, tv)), acc)) -def Ty.binds {r: Region} (ps: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = ps match +def Ty.binds(ps: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[Ty.Bind]): Coll.List[Ty.Bind] = ps match case Coll.Nil => acc case Coll.Cons(p, rest) => val Ast.Binder(_, x, t) = p Ty.binds(rest, tv, Coll.Cons(Ty.Bind(x, Ty.term(t, tv)), acc)) -def Ty.evidence {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Binder]): Coll.List[Ast.Binder] = gs match +def Ty.evidence(gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Binder]): Coll.List[Ast.Binder] = gs match case Coll.Nil => acc case Coll.Cons(g, rest) => g match case Ast.Evidence(bs) => Ty.evidence(rest, Coll.revOnto(Coll.rev(bs), acc)) @@ -670,7 +670,7 @@ def Ty.evidence {r: Region} (gs: Coll.List[Ast.Group], acc: Coll.List[Ast.Binder enum Ty.Result: case Ty.Result(clashes: Coll.List[Ty.Clash], insts: Coll.List[Ty.Inst], s: Coll.IMap[K.Term], fns: Coll.List[El.Fn], hs: Coll.List[El.Handler], gvs: Coll.List[El.Given]) -def Ty.cxOf {r: Region} (ds: Coll.List[Ast.Decl], fns: Coll.List[Ast.Fn], es: Coll.List[Ast.Enum], ps: Coll.List[Ast.Proto], hs: Coll.List[Ast.Handler], trs: Coll.List[Ast.Trait]): Ty.Cx = ds match +def Ty.cxOf(ds: Coll.List[Ast.Decl], fns: Coll.List[Ast.Fn], es: Coll.List[Ast.Enum], ps: Coll.List[Ast.Proto], hs: Coll.List[Ast.Handler], trs: Coll.List[Ast.Trait]): Ty.Cx = ds match case Coll.Nil => Ty.Cx(fns, es, ps, hs, trs, Ty.Run(Ty.User), Coll.sEmpty(), Eff.none()) case Coll.Cons(d, rest) => d match case Ast.DFn(f) => Ty.cxOf(rest, Coll.Cons(f, fns), es, ps, hs, trs) @@ -682,12 +682,12 @@ def Ty.cxOf {r: Region} (ds: Coll.List[Ast.Decl], fns: Coll.List[Ast.Fn], es: Co case Ast.DType(_) => Ty.cxOf(rest, fns, es, ps, hs, trs) // the fns with effects first (s2/pure.srs): a spec body may call none of them -def Ty.check {r: Region} (ds: Coll.List[Ast.Decl]): Ty.Result = Eff.rows(ds) match +def Ty.check(ds: Coll.List[Ast.Decl]): Ty.Result = Eff.rows(ds) match case Eff.Got(rows) => Ty.checkWith(ds, Coll.Nil, rows) case Eff.RulesBad(rel) => Ty.Result(Coll.Cons(Ty.PureRules(rel), Coll.Nil), Coll.Nil, Coll.Tip, Coll.Nil, Coll.Nil, Coll.Nil) // tgs: the {} goals of the types the defs name (Tl.typeGoals), resolved with the goals of the calls; rows: Eff.rows(ds) -def Ty.checkWith {r: Region} (ds: Coll.List[Ast.Decl], tgs: Coll.List[Tl.Goal], rows: Eff.Rows): Ty.Result = +def Ty.checkWith(ds: Coll.List[Ast.Decl], tgs: Coll.List[Tl.Goal], rows: Eff.Rows): Ty.Result = val Ty.Cx(fns0, es0, ps0, hs0, trs0, mode0, _, _) = Ty.cxOf(ds, Coll.Nil, Coll.Nil, Coll.Nil, Coll.Nil, Coll.Nil) val nom = Ty.nominals(ds, Coll.sEmpty()) val pr = if Ty.hasSpec(ds) then Pure.impure(ds, rows) else Pure.Got(Coll.sEmpty()) @@ -709,7 +709,7 @@ enum Ty.Fns: case Ty.Fns(st: Ty.St, fs: Coll.List[El.Fn], hs: Coll.List[El.Handler], gvs: Coll.List[El.Given]) // top-level defs, handler fns (the prelude has Arena and Heap, lib/prelude.srs:38) and given fns -def Ty.decls {r: Region} (cx: Ty.Cx, st: Ty.St, ds: Coll.List[Ast.Decl], acc: Coll.List[El.Fn], hacc: Coll.List[El.Handler], gacc: Coll.List[El.Given]): Ty.Fns = ds match +def Ty.decls(cx: Ty.Cx, st: Ty.St, ds: Coll.List[Ast.Decl], acc: Coll.List[El.Fn], hacc: Coll.List[El.Handler], gacc: Coll.List[El.Given]): Ty.Fns = ds match case Coll.Nil => Ty.Fns(st, Coll.rev(acc), Coll.rev(hacc), Coll.rev(gacc)) case Coll.Cons(d, rest) => d match case Ast.DFn(f) => @@ -731,33 +731,33 @@ def Ty.decls {r: Region} (cx: Ty.Cx, st: Ty.St, ds: Coll.List[Ast.Decl], acc: Co Ty.decls(cx, st1, rest, acc, hacc, Coll.Cons(gv, gacc)) case _ => Ty.decls(cx, st, rest, acc, hacc, gacc) -def Ty.underGroups {r: Region} (gs: Coll.List[Ast.Group], fs: Coll.List[Ast.Fn], acc: Coll.List[Ast.Fn]): Coll.List[Ast.Fn] = fs match +def Ty.underGroups(gs: Coll.List[Ast.Group], fs: Coll.List[Ast.Fn], acc: Coll.List[Ast.Fn]): Coll.List[Ast.Fn] = fs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(f, rest) => val Ast.Fn(line, name, fgs, ps, ret, exit, body) = f Ty.underGroups(gs, rest, Coll.Cons(Ast.Fn(line, name, Coll.revOnto(Coll.rev(gs), fgs), ps, ret, exit, body), acc)) -def Ty.binderNames {r: Region} (bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Ty.binderNames(bs: Coll.List[Ast.Binder], acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(b, rest) => val Ast.Binder(_, x, _) = b Ty.binderNames(rest, Coll.Cons(x, acc)) // fns of a handler or given, elaborated in order, each with row -def Ty.fnsEl {r: Region} (cx: Ty.Cx, st: Ty.St, fs: Coll.List[Ast.Fn], row: Coll.List[Eff.Cap], acc: Coll.List[El.Fn]): Ty.Fns = fs match +def Ty.fnsEl(cx: Ty.Cx, st: Ty.St, fs: Coll.List[Ast.Fn], row: Coll.List[Eff.Cap], acc: Coll.List[El.Fn]): Ty.Fns = fs match case Coll.Nil => Ty.Fns(st, Coll.rev(acc), Coll.Nil, Coll.Nil) case Coll.Cons(f, rest) => val Ty.FnEx(st1, ef) = Ty.fn(cx, st, f, row) Ty.fnsEl(cx, st1, rest, row, Coll.Cons(ef, acc)) // an instance with a type arg that is still a var after the whole program: CannotInfer -def Ty.unsolved {r: Region} (s: Coll.IMap[K.Term], is: Coll.List[Ty.Inst], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = is match +def Ty.unsolved(s: Coll.IMap[K.Term], is: Coll.List[Ty.Inst], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = is match case Coll.Nil => cs case Coll.Cons(i, rest) => val Ty.Inst(line, f, ts) = i if Ty.ground(s, ts) then Ty.unsolved(s, rest, cs) else Ty.unsolved(s, rest, Coll.Cons(Ty.CannotInfer(line, f), cs)) -def Ty.ground {r: Region} (s: Coll.IMap[K.Term], ts: Coll.List[K.Term]): Bool = ts match +def Ty.ground(s: Coll.IMap[K.Term], ts: Coll.List[K.Term]): Bool = ts match case Coll.Nil => true case Coll.Cons(t, rest) => if Ty.groundT(K.reify(s, t)) then Ty.ground(s, rest) else false @@ -792,14 +792,14 @@ def Ty.lineOf(e: Ast.Expr): I64 = e match case Ast.Quant(l, _, _, _, _) => l // the fns of a handler named Srs.* run as Ty.Srs: the runtime's own bodies, the only callers of rt_* -def Ty.byHandler {r: Region} (cx: Ty.Cx, h: Sym.Sym): Ty.Cx = +def Ty.byHandler(cx: Ty.Cx, h: Sym.Sym): Ty.Cx = val Ty.Cx(fns, es, ps, hs, trs, _, imp, rows) = cx val s = Sym.str(h) val by: Ty.By = if Str.len(s) > 4 && Str.eq(Str.slice(s, 0, 4), "Srs.") then Ty.Srs else Ty.User Ty.Cx(fns, es, ps, hs, trs, Ty.Run(by), imp, rows) // a call of an rt_* extern anywhere but a Srs.* handler body -def Ty.rtCall {r: Region} (cx: Ty.Cx, st: Ty.St, line: I64, g: Ast.Fn): Ty.St = +def Ty.rtCall(cx: Ty.Cx, st: Ty.St, line: I64, g: Ast.Fn): Ty.St = val Ty.Cx(_, _, _, _, _, mode, _, _) = cx val Ast.Fn(_, n, _, _, _, _, body) = g val s = Sym.str(n) @@ -812,23 +812,23 @@ def Ty.rtCall {r: Region} (cx: Ty.Cx, st: Ty.St, line: I64, g: Ast.Fn): Ty.St = case Ty.User => if rt then Ty.clash(st, Ty.RtOutsideSrs(line, n)) else st case Ty.Comptime => if rt then Ty.clash(st, Ty.RtOutsideSrs(line, n)) else st -def Ty.comptime {r: Region} (cx: Ty.Cx): Ty.Cx = +def Ty.comptime(cx: Ty.Cx): Ty.Cx = val Ty.Cx(fns, es, ps, hs, trs, _, imp, rows) = cx Ty.Cx(fns, es, ps, hs, trs, Ty.Comptime, imp, rows) // in a spec body (vic Q-U4) a call of a fn with effects, and any handle, is a clash -def Ty.pureCall {r: Region} (cx: Ty.Cx, st: Ty.St, line: I64, f: Sym.Sym): Ty.St = +def Ty.pureCall(cx: Ty.Cx, st: Ty.St, line: I64, f: Sym.Sym): Ty.St = val Ty.Cx(_, _, _, _, _, mode, imp, _) = cx mode match case Ty.Run(_) => st case Ty.Comptime => if Pure.has(imp, f) then Ty.clash(st, Ty.Impure(line, f)) else st -def Ty.pureHandle {r: Region} (mode: Ty.Mode, st: Ty.St, line: I64, h: Sym.Sym): Ty.St = mode match +def Ty.pureHandle(mode: Ty.Mode, st: Ty.St, line: I64, h: Sym.Sym): Ty.St = mode match case Ty.Run(_) => st case Ty.Comptime => Ty.clash(st, Ty.SpecHandle(line, h)) // ── a match covers every case of its enum, or has a `_` arm: the first case no arm names ── -def Ty.missingCase {r: Region} (es: Coll.List[Ast.Enum], as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = +def Ty.missingCase(es: Coll.List[Ast.Enum], as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = if Ty.hasAny(as) then Coll.None else Ty.firstCase(as) match case Coll.None => Coll.None @@ -847,7 +847,7 @@ def Ty.hasAny(as: Coll.List[Ast.Arm]): Bool = as match case Ast.PAny => true case Ast.PCase(_, _) => Ty.hasAny(rest) -def Ty.firstCase {r: Region} (as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = as match +def Ty.firstCase(as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = as match case Coll.Nil => Coll.None case Coll.Cons(a, rest) => val Ast.Arm(_, p, _) = a @@ -855,7 +855,7 @@ def Ty.firstCase {r: Region} (as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = as case Ast.PCase(c, _) => Coll.Some(c) case Ast.PAny => Ty.firstCase(rest) -def Ty.uncovered {r: Region} (cs: Coll.List[Ast.Case], as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = cs match +def Ty.uncovered(cs: Coll.List[Ast.Case], as: Coll.List[Ast.Arm]): Coll.Option[Sym.Sym] = cs match case Coll.Nil => Coll.None case Coll.Cons(c, rest) => val Ast.Case(_, n, _) = c @@ -869,7 +869,7 @@ def Ty.armNames(n: Sym.Sym, as: Coll.List[Ast.Arm]): Bool = as match case Ast.PCase(c, _) => if Sym.eq(c, n) then true else Ty.armNames(n, rest) case Ast.PAny => Ty.armNames(n, rest) -def Ty.addGoal {r: Region} (st: Ty.St, g: Ty.Goal): Ty.St = +def Ty.addGoal(st: Ty.St, g: Ty.Goal): Ty.St = val Ty.St(s, n, cs, is, gs, nm) = st Ty.St(s, n, cs, is, Coll.Cons(g, gs), nm) @@ -879,7 +879,7 @@ enum Ty.Cand: case Ty.Cand(id: I64, tps: Coll.List[Sym.Sym], head: K.Term, evs: Coll.List[K.Term]) // a given's [] binders as rigid names in its head and in its {} goals of traits -def Ty.cands {r: Region} (ps: Coll.List[Ast.Proto], ds: Coll.List[Ast.Decl], acc: Coll.List[Ty.Cand]): Coll.List[Ty.Cand] = ds match +def Ty.cands(ps: Coll.List[Ast.Proto], ds: Coll.List[Ast.Decl], acc: Coll.List[Ty.Cand]): Coll.List[Ty.Cand] = ds match case Coll.Nil => Coll.rev(acc) case Coll.Cons(d, rest) => d match case Ast.DGiven(g) => @@ -889,7 +889,7 @@ def Ty.cands {r: Region} (ps: Coll.List[Ast.Proto], ds: Coll.List[Ast.Decl], acc Ty.cands(ps, rest, Coll.Cons(Ty.Cand(Coll.length(acc), tps, Ty.term(head, tv), Ty.traitGoals(ps, Ty.evidence(gs, Coll.Nil), tv, Coll.Nil)), acc)) case _ => Ty.cands(ps, rest, acc) -def Ty.traitGoals {r: Region} (ps: Coll.List[Ast.Proto], bs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = bs match +def Ty.traitGoals(ps: Coll.List[Ast.Proto], bs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = bs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b @@ -906,7 +906,7 @@ enum Ty.Res: def Ty.givenFuel(): I64 = 1000 // every goal of the program, with the final substitution; a goal that is not ground has a CannotInfer already -def Ty.goals {r: Region} (ps: Coll.List[Ast.Proto], cands: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], gs: Coll.List[Ty.Goal], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = gs match +def Ty.goals(ps: Coll.List[Ast.Proto], cands: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], gs: Coll.List[Ty.Goal], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = gs match case Coll.Nil => cs case Coll.Cons(g, rest) => val Ty.Goal(line, t0, locals, chosen) = g @@ -917,18 +917,18 @@ def Ty.goals {r: Region} (ps: Coll.List[Ast.Proto], cands: Coll.List[Ty.Cand], s case Coll.Some(x) => Ty.goals(ps, cands, s, rest, if Ty.localProves(s, locals, x, t) then cs else Coll.Cons(Ty.ChosenBad(line, t), cs)) case Coll.None => Ty.goals(ps, cands, s, rest, Ty.resClash(line, t, Ty.resolve(cands, s, locals, t, Ty.givenFuel()), cs)) -def Ty.resClash {r: Region} (line: I64, t: K.Term, res: Ty.Res, cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = res match +def Ty.resClash(line: I64, t: K.Term, res: Ty.Res, cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = res match case Ty.Proved => cs case Ty.NoneFound => Coll.Cons(Ty.NoGiven(line, t), cs) case Ty.Tie => Coll.Cons(Ty.AmbigGivens(line, t), cs) case Ty.TwoLocals => Coll.Cons(Ty.AmbigEvidence(line, t), cs) case Ty.OutOfFuel => Coll.Cons(Ty.GivenFuel(line, t), cs) -def Ty.localProves {r: Region} (s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], x: Sym.Sym, t: K.Term): Bool = Ty.lookup(locals, x) match +def Ty.localProves(s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], x: Sym.Sym, t: K.Term): Bool = Ty.lookup(locals, x) match case Coll.Some(u) => Mono.termEq(K.reify(s, u), t) case Coll.None => false -def Ty.resolve {r: Region} (cands: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], t: K.Term, fuel: I64): Ty.Res = +def Ty.resolve(cands: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], t: K.Term, fuel: I64): Ty.Res = if fuel <= 0 then Ty.OutOfFuel else val n = Coll.length(Ty.localsOf(s, locals, t, Coll.Nil)) @@ -939,7 +939,7 @@ def Ty.resolve {r: Region} (cands: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], loc case Ty.ViableFuel => Ty.OutOfFuel // the distinct local names whose type is t (a shadowed name counts once) -def Ty.localsOf {r: Region} (s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], t: K.Term, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match +def Ty.localsOf(s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], t: K.Term, acc: Coll.List[Sym.Sym]): Coll.List[Sym.Sym] = bs match case Coll.Nil => acc case Coll.Cons(b, rest) => val Ty.Bind(x, u) = b @@ -950,7 +950,7 @@ enum Ty.Vs: case Ty.ViableFuel // the givens whose head matches t and whose own goals are proved -def Ty.viable {r: Region} (all: Coll.List[Ty.Cand], cs: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], t: K.Term, fuel: I64, acc: Coll.List[Ty.Cand]): Ty.Vs = cs match +def Ty.viable(all: Coll.List[Ty.Cand], cs: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], t: K.Term, fuel: I64, acc: Coll.List[Ty.Cand]): Ty.Vs = cs match case Coll.Nil => Ty.Viable(Coll.rev(acc)) case Coll.Cons(c, rest) => val Ty.Cand(_, tps, head, evs) = c @@ -961,7 +961,7 @@ def Ty.viable {r: Region} (all: Coll.List[Ty.Cand], cs: Coll.List[Ty.Cand], s: C case Ty.OutOfFuel => Ty.ViableFuel case _ => Ty.viable(all, rest, s, locals, t, fuel, acc) -def Ty.allProved {r: Region} (all: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], gs: Coll.List[K.Term], fuel: I64): Ty.Res = gs match +def Ty.allProved(all: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], locals: Coll.List[Ty.Bind], gs: Coll.List[K.Term], fuel: I64): Ty.Res = gs match case Coll.Nil => Ty.Proved case Coll.Cons(g, rest) => Ty.resolve(all, s, locals, g, fuel) match case Ty.Proved => Ty.allProved(all, s, locals, rest, fuel) @@ -971,11 +971,11 @@ def Ty.allProved {r: Region} (all: Coll.List[Ty.Cand], s: Coll.IMap[K.Term], loc case Ty.OutOfFuel => Ty.OutOfFuel // the one candidate better than every other one, else a tie (none: NoneFound) -def Ty.best {r: Region} (vs: Coll.List[Ty.Cand], all: Coll.List[Ty.Cand]): Ty.Res = vs match +def Ty.best(vs: Coll.List[Ty.Cand], all: Coll.List[Ty.Cand]): Ty.Res = vs match case Coll.Nil => if Coll.length(all) == 0 then Ty.NoneFound else Ty.Tie case Coll.Cons(c, rest) => if Ty.beatsAll(c, all) then Ty.Proved else Ty.best(rest, all) -def Ty.beatsAll {r: Region} (c: Ty.Cand, all: Coll.List[Ty.Cand]): Bool = all match +def Ty.beatsAll(c: Ty.Cand, all: Coll.List[Ty.Cand]): Bool = all match case Coll.Nil => true case Coll.Cons(d, rest) => if Ty.sameCand(c, d) || Ty.better(c, d) then Ty.beatsAll(c, rest) else false @@ -985,7 +985,7 @@ def Ty.sameCand(a: Ty.Cand, b: Ty.Cand): Bool = val Ty.Cand(j, _, _, _) = b i == j -def Ty.better {r: Region} (a: Ty.Cand, b: Ty.Cand): Bool = +def Ty.better(a: Ty.Cand, b: Ty.Cand): Bool = val Ty.Cand(_, atps, ah, aev) = a val Ty.Cand(_, btps, bh, bev) = b val ab = Mono.isSome(Mono.matchT(btps, bh, ah, Coll.Some(Coll.Nil))) @@ -994,7 +994,7 @@ def Ty.better {r: Region} (a: Ty.Cand, b: Ty.Cand): Bool = // ── shapes (s1/check.srs, s1/given.srs): what a use of a name, a def's binders and a given must look like ── // evidence is only a method receiver, a capability only a {} arg: neither is a value -def Ty.nameUse {r: Region} (cx: Ty.Cx, st: Ty.St, line: I64, x: Sym.Sym, t: K.Term): Ty.St = +def Ty.nameUse(cx: Ty.Cx, st: Ty.St, line: I64, x: Sym.Sym, t: K.Term): Ty.St = val Ty.Cx(_, _, ps, _, trs, _, _, _) = cx K.walk(Ty.subst(st), t) match case K.Con(n, _) => @@ -1020,24 +1020,24 @@ def Ty.isBuiltin(n: Sym.Sym): Bool = Str.eq(s, "I64") || Str.eq(s, "Bool") || Str.eq(s, "Str") || Str.eq(s, "Unit") || Str.eq(s, "Ptr") || Str.eq(s, "Type") // x is a local whose type is protocol p -def Ty.isCapOf {r: Region} (s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], x: Sym.Sym, p: Sym.Sym): Bool = Ty.lookup(bs, x) match +def Ty.isCapOf(s: Coll.IMap[K.Term], bs: Coll.List[Ty.Bind], x: Sym.Sym, p: Sym.Sym): Bool = Ty.lookup(bs, x) match case Coll.None => false case Coll.Some(t) => K.walk(s, t) match case K.Con(n, args) => Sym.eq(n, p) && Coll.length(args) == 0 case _ => false // a [] binder may not hide a type; a capability is a {} binder, never a value param -def Ty.fnShape {r: Region} (cx: Ty.Cx, st: Ty.St, line: I64, tps: Coll.List[Sym.Sym], ps: Coll.List[Ast.Binder]): Ty.St = +def Ty.fnShape(cx: Ty.Cx, st: Ty.St, line: I64, tps: Coll.List[Sym.Sym], ps: Coll.List[Ast.Binder]): Ty.St = Ty.capParams(cx, Ty.hides(cx, st, line, tps), ps) -def Ty.hides {r: Region} (cx: Ty.Cx, st: Ty.St, line: I64, tps: Coll.List[Sym.Sym]): Ty.St = tps match +def Ty.hides(cx: Ty.Cx, st: Ty.St, line: I64, tps: Coll.List[Sym.Sym]): Ty.St = tps match case Coll.Nil => st case Coll.Cons(x, rest) => val Ty.Cx(_, es, ps, _, trs, _, _, _) = cx val known = Ty.isBuiltin(x) || Ty.isEnum(es, x) || Ty.isProto(ps, x) || Ty.isTrait(trs, x) Ty.hides(cx, if known then Ty.clash(st, Ty.BinderHides(line, x)) else st, line, rest) -def Ty.capParams {r: Region} (cx: Ty.Cx, st: Ty.St, ps: Coll.List[Ast.Binder]): Ty.St = ps match +def Ty.capParams(cx: Ty.Cx, st: Ty.St, ps: Coll.List[Ast.Binder]): Ty.St = ps match case Coll.Nil => st case Coll.Cons(b, rest) => val Ast.Binder(line, x, t) = b @@ -1047,7 +1047,7 @@ def Ty.capParams {r: Region} (cx: Ty.Cx, st: Ty.St, ps: Coll.List[Ast.Binder]): // a given: its head names a trait with that many args; its fns are exactly the trait's methods, each with the trait's // signature at the head's args; each [] binder occurs in the head -def Ty.givenShape {r: Region} (cx: Ty.Cx, st: Ty.St, g: Ast.Given): Ty.St = +def Ty.givenShape(cx: Ty.Cx, st: Ty.St, g: Ast.Given): Ty.St = val Ast.Given(line, gs, head, fs) = g val Ast.Ty(_, tn, targs, _, _) = head val Ty.Cx(_, _, _, _, trs, _, _, _) = cx @@ -1064,13 +1064,13 @@ def Ty.givenShape {r: Region} (cx: Ty.Cx, st: Ty.St, g: Ast.Given): Ty.St = val sub = Ty.zipBind(ttps, Ty.terms(targs, tv, Coll.Nil), Coll.Nil) Ty.missing(sigs, fs, line, Ty.methods(sigs, fs, sub, tv, st1)) -def Ty.traitNamed {r: Region} (trs: Coll.List[Ast.Trait], n: Sym.Sym): Coll.Option[Ast.Trait] = trs match +def Ty.traitNamed(trs: Coll.List[Ast.Trait], n: Sym.Sym): Coll.Option[Ast.Trait] = trs match case Coll.Nil => Coll.None case Coll.Cons(t, rest) => val Ast.Trait(_, m, _, _) = t if Sym.eq(m, n) then Coll.Some(t) else Ty.traitNamed(rest, n) -def Ty.inHead {r: Region} (st: Ty.St, line: I64, tps: Coll.List[Sym.Sym], head: Ast.Ty): Ty.St = tps match +def Ty.inHead(st: Ty.St, line: I64, tps: Coll.List[Sym.Sym], head: Ast.Ty): Ty.St = tps match case Coll.Nil => st case Coll.Cons(x, rest) => Ty.inHead(if Ty.occurs(x, head) then st else Ty.clash(st, Ty.NotInHead(line, x)), line, rest, head) @@ -1083,7 +1083,7 @@ def Ty.occursAll(x: Sym.Sym, ts: Coll.List[Ast.Ty]): Bool = ts match case Coll.Cons(t, rest) => if Ty.occurs(x, t) then true else Ty.occursAll(x, rest) // each fn of the given: a method of the trait, with its signature (params and result at the head's args) -def Ty.methods {r: Region} (sigs: Coll.List[Ast.Fn], fs: Coll.List[Ast.Fn], sub: Coll.List[Ty.Bind], tv: Coll.List[Ty.Bind], st: Ty.St): Ty.St = fs match +def Ty.methods(sigs: Coll.List[Ast.Fn], fs: Coll.List[Ast.Fn], sub: Coll.List[Ty.Bind], tv: Coll.List[Ty.Bind], st: Ty.St): Ty.St = fs match case Coll.Nil => st case Coll.Cons(f, rest) => val Ast.Fn(line, n, _, ps, ret, _, _) = f @@ -1095,13 +1095,13 @@ def Ty.methods {r: Region} (sigs: Coll.List[Ast.Fn], fs: Coll.List[Ast.Fn], sub: if same then st else Ty.clash(st, Ty.SigDiffers(line, n)) Ty.methods(sigs, rest, sub, tv, st1) -def Ty.binderTerms {r: Region} (bs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = bs match +def Ty.binderTerms(bs: Coll.List[Ast.Binder], tv: Coll.List[Ty.Bind], acc: Coll.List[K.Term]): Coll.List[K.Term] = bs match case Coll.Nil => Coll.rev(acc) case Coll.Cons(b, rest) => val Ast.Binder(_, _, t) = b Ty.binderTerms(rest, tv, Coll.Cons(Ty.term(t, tv), acc)) -def Ty.missing {r: Region} (sigs: Coll.List[Ast.Fn], fs: Coll.List[Ast.Fn], line: I64, st: Ty.St): Ty.St = sigs match +def Ty.missing(sigs: Coll.List[Ast.Fn], fs: Coll.List[Ast.Fn], line: I64, st: Ty.St): Ty.St = sigs match case Coll.Nil => st case Coll.Cons(m, rest) => val Ast.Fn(_, n, _, _, _, _, _) = m @@ -1111,14 +1111,14 @@ def Ty.missing {r: Region} (sigs: Coll.List[Ast.Fn], fs: Coll.List[Ast.Fn], line Ty.missing(rest, fs, line, st1) // a generic extern's [] slots are void*: each type arg it is called at must be a pointer (an enum or Ptr) -def Ty.externSlots {r: Region} (es: Coll.List[Ast.Enum], ext: Coll.SMap[Bool], s: Coll.IMap[K.Term], is: Coll.List[Ty.Inst], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = is match +def Ty.externSlots(es: Coll.List[Ast.Enum], ext: Coll.SMap[Bool], s: Coll.IMap[K.Term], is: Coll.List[Ty.Inst], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = is match case Coll.Nil => cs case Coll.Cons(i, rest) => val Ty.Inst(line, f, ts) = i Ty.externSlots(es, ext, s, rest, if Pure.has(ext, f) then Ty.ptrSlots(es, s, line, ts, cs) else cs) // the generic externs, by name -def Ty.externs {r: Region} (fs: Coll.List[Ast.Fn], m: Coll.SMap[Bool]): Coll.SMap[Bool] = fs match +def Ty.externs(fs: Coll.List[Ast.Fn], m: Coll.SMap[Bool]): Coll.SMap[Bool] = fs match case Coll.Nil => m case Coll.Cons(g, rest) => val Ast.Fn(_, n, _, _, _, _, body) = g @@ -1127,7 +1127,7 @@ def Ty.externs {r: Region} (fs: Coll.List[Ast.Fn], m: Coll.SMap[Bool]): Coll.SMa case _ => m Ty.externs(rest, m2) -def Ty.ptrSlots {r: Region} (es: Coll.List[Ast.Enum], s: Coll.IMap[K.Term], line: I64, ts: Coll.List[K.Term], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = ts match +def Ty.ptrSlots(es: Coll.List[Ast.Enum], s: Coll.IMap[K.Term], line: I64, ts: Coll.List[K.Term], cs: Coll.List[Ty.Clash]): Coll.List[Ty.Clash] = ts match case Coll.Nil => cs case Coll.Cons(t0, rest) => val t = K.reify(s, t0) @@ -1152,12 +1152,12 @@ def Ty.isProtoT(ps: Coll.List[Ast.Proto], t: K.Term): Bool = t match case K.Con(n, _) => Ty.isProto(ps, n) case _ => false -def Ty.headOf {r: Region} (t: K.Term): Sym.Sym = t match +def Ty.headOf(t: K.Term): Sym.Sym = t match case K.Con(n, _) => n case _ => Sym.of("?") // each type goal under its def's binders: [] rigid, {} the locals that may prove it -def Ty.typeGoals {r: Region} (fns: Coll.List[Ast.Fn], tgs: Coll.List[Tl.Goal], acc: Coll.List[Ty.Goal]): Coll.List[Ty.Goal] = tgs match +def Ty.typeGoals(fns: Coll.List[Ast.Fn], tgs: Coll.List[Tl.Goal], acc: Coll.List[Ty.Goal]): Coll.List[Ty.Goal] = tgs match case Coll.Nil => acc case Coll.Cons(g, rest) => val Tl.Goal(line, f, goal) = g diff --git a/s2c/main.srs b/s2c/main.srs index bb8e903a..bfc19f49 100644 --- a/s2c/main.srs +++ b/s2c/main.srs @@ -15,7 +15,7 @@ enum S2c.Read: case S2c.Read(ds: Coll.List[Ast.Decl], errs: Coll.List[S2c.Err], files: Coll.List[S2c.File]) // the args from i on, each a source file, in order; base = the number of the next file's first line -def S2c.read {r: Region} (i: I64, base: I64, ds: Coll.List[Ast.Decl], errs: Coll.List[S2c.Err], fs: Coll.List[S2c.File]): S2c.Read = +def S2c.read(i: I64, base: I64, ds: Coll.List[Ast.Decl], errs: Coll.List[S2c.Err], fs: Coll.List[S2c.File]): S2c.Read = if i >= Args.count() then S2c.Read(Coll.rev(ds), Coll.rev(errs), fs) else val p = Args.at(i) @@ -40,7 +40,7 @@ enum S2c.What: case S2c.Want(want: K.Term, got: K.Term) case S2c.Text(s: Str) -def S2c.diag {r: Region} (fs: Coll.List[S2c.File], code: Str, line: I64, title: Str, w: S2c.What, help: Str): Unit = +def S2c.diag(fs: Coll.List[S2c.File], code: Str, line: I64, title: Str, w: S2c.What, help: Str): Unit = Console.eprint("error[") Console.eprint(code) Console.eprint("]: ") @@ -86,7 +86,7 @@ def S2c.diag {r: Region} (fs: Coll.List[S2c.File], code: Str, line: I64, title: Console.eprint("\n") // the file a line is in: the last one whose first line is at or before it (files are kept latest first) -def S2c.fileOf {r: Region} (fs: Coll.List[S2c.File], line: I64): Coll.Option[S2c.File] = fs match +def S2c.fileOf(fs: Coll.List[S2c.File], line: I64): Coll.Option[S2c.File] = fs match case Coll.Nil => Coll.None case Coll.Cons(f, rest) => val S2c.File(_, base, _) = f @@ -102,7 +102,7 @@ def S2c.lineText(s: Str, k: I64, i: I64, n: I64): Str = def S2c.lineEnd(s: Str, i: I64): I64 = if i >= Str.len(s) || Str.at(s, i) == 10 then i else S2c.lineEnd(s, i + 1) -def S2c.showErrs {r: Region} (fs: Coll.List[S2c.File], es: Coll.List[S2c.Err]): Unit = es match +def S2c.showErrs(fs: Coll.List[S2c.File], es: Coll.List[S2c.Err]): Unit = es match case Coll.Nil => () case Coll.Cons(e, rest) => e match @@ -113,7 +113,7 @@ def S2c.showErrs {r: Region} (fs: Coll.List[S2c.File], es: Coll.List[S2c.Err]): case S2c.Syntax(line, want) => S2c.diag(fs, "parse", line, "parse error, expected", S2c.Text(want), "fix the syntax on this line") S2c.showErrs(fs, rest) -def S2c.showClashes {r: Region} (fs: Coll.List[S2c.File], s: Coll.IMap[K.Term], cs: Coll.List[Ty.Clash]): Unit = cs match +def S2c.showClashes(fs: Coll.List[S2c.File], s: Coll.IMap[K.Term], cs: Coll.List[Ty.Clash]): Unit = cs match case Coll.Nil => () case Coll.Cons(c, rest) => c match @@ -150,7 +150,7 @@ def S2c.showClashes {r: Region} (fs: Coll.List[S2c.File], s: Coll.IMap[K.Term], case Ty.RtOutsideSrs(l, f) => S2c.diag(fs, "rt-outside-srs", l, "rt_* is called only in the body of a Srs.* handler, not here:", S2c.Name(f), "request the effect (Console.print(s)) and handle it in main (handle c = Srs.Console())") S2c.showClashes(fs, s, rest) -def S2c.showTl {r: Region} (fs: Coll.List[S2c.File], es: Coll.List[Tl.Err]): Unit = es match +def S2c.showTl(fs: Coll.List[S2c.File], es: Coll.List[Tl.Err]): Unit = es match case Coll.Nil => () case Coll.Cons(e, rest) => e match @@ -165,21 +165,21 @@ def S2c.showTl {r: Region} (fs: Coll.List[S2c.File], es: Coll.List[Tl.Err]): Uni S2c.showTl(fs, rest) // ── the phases: names, type level, types, flow (protocols, regions), then C; the first phase with errors stops ── -def S2c.compile {r: Region} (m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl]): I64 = Names.check(ds) match +def S2c.compile(m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl]): I64 = Names.check(ds) match case Names.Ok => S2c.facts(m, fs, ds) case Names.Bad(cs) => S2c.showNames(fs, cs) 1 case Names.RulesBad(rel) => S2c.internal("names", rel) -def S2c.facts {r: Region} (m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl]): I64 = Fx.check(ds) match +def S2c.facts(m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl]): I64 = Fx.check(ds) match case Fx.Ok => S2c.typed(m, fs, ds) case Fx.Bad(cs) => S2c.showFx(fs, cs) 1 case Fx.RulesBad(rel) => S2c.internal("facts", rel) -def S2c.showFx {r: Region} (fs: Coll.List[S2c.File], cs: Coll.List[Fx.Clash]): Unit = cs match +def S2c.showFx(fs: Coll.List[S2c.File], cs: Coll.List[Fx.Clash]): Unit = cs match case Coll.Nil => () case Coll.Cons(c, rest) => c match @@ -198,7 +198,7 @@ def S2c.showFx {r: Region} (fs: Coll.List[S2c.File], cs: Coll.List[Fx.Clash]): U case Fx.RuleOp(l, op) => S2c.diag(fs, "rule-op", l, "next: not an op of the protocol:", S2c.Name(op), "use an op of this protocol") S2c.showFx(fs, rest) -def S2c.typed {r: Region} (m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl]): I64 = +def S2c.typed(m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl]): I64 = val Tl.W(xds, tes) = Tl.expand(ds) tes match case Coll.Cons(_, _) => @@ -215,7 +215,7 @@ def S2c.typed {r: Region} (m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[A 1 case Coll.Nil => S2c.flowed(m, fs, xds, rows, res) -def S2c.flowed {r: Region} (m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl], rows: Eff.Rows, res: Ty.Result): I64 = +def S2c.flowed(m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl], rows: Eff.Rows, res: Ty.Result): I64 = S2c.flowAll(S2c.flowCx(ds, rows, Coll.Nil, Coll.Nil, Coll.Nil, Coll.Nil, Coll.Nil), ds, Coll.Nil) match case S2c.FlowBad(rel) => S2c.internal("flow", rel) case S2c.FlowOk(cs) => cs match @@ -228,7 +228,7 @@ enum S2c.Flowed: case S2c.FlowOk(cs: Coll.List[Flow.Clash]) case S2c.FlowBad(rel: Sym.Sym) -def S2c.flowCx {r: Region} (ds: Coll.List[Ast.Decl], rows: Eff.Rows, ps: Coll.List[Ast.Proto], hs: Coll.List[Ast.Handler], fs: Coll.List[Ast.Fn], es: Coll.List[Ast.Enum], ts: Coll.List[Ast.TypeDecl]): Flow.Cx = ds match +def S2c.flowCx(ds: Coll.List[Ast.Decl], rows: Eff.Rows, ps: Coll.List[Ast.Proto], hs: Coll.List[Ast.Handler], fs: Coll.List[Ast.Fn], es: Coll.List[Ast.Enum], ts: Coll.List[Ast.TypeDecl]): Flow.Cx = ds match case Coll.Nil => Flow.Cx(ps, hs, fs, es, ts, rows) case Coll.Cons(d, rest) => d match case Ast.DProto(p) => S2c.flowCx(rest, rows, Coll.Cons(p, ps), hs, fs, es, ts) @@ -239,7 +239,7 @@ def S2c.flowCx {r: Region} (ds: Coll.List[Ast.Decl], rows: Eff.Rows, ps: Coll.Li case _ => S2c.flowCx(rest, rows, ps, hs, fs, es, ts) // every def with a body: its flow clashes (all of them, in order) -def S2c.flowAll {r: Region} (cx: Flow.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Flow.Clash]): S2c.Flowed = ds match +def S2c.flowAll(cx: Flow.Cx, ds: Coll.List[Ast.Decl], acc: Coll.List[Flow.Clash]): S2c.Flowed = ds match case Coll.Nil => S2c.FlowOk(acc) case Coll.Cons(d, rest) => d match case Ast.DFn(f) => @@ -254,7 +254,7 @@ def S2c.flowAll {r: Region} (cx: Flow.Cx, ds: Coll.List[Ast.Decl], acc: Coll.Lis case _ => S2c.flowAll(cx, rest, acc) case _ => S2c.flowAll(cx, rest, acc) -def S2c.showNames {r: Region} (fs: Coll.List[S2c.File], cs: Coll.List[Names.Clash]): Unit = cs match +def S2c.showNames(fs: Coll.List[S2c.File], cs: Coll.List[Names.Clash]): Unit = cs match case Coll.Nil => () case Coll.Cons(c, rest) => c match @@ -269,7 +269,7 @@ def S2c.showNames {r: Region} (fs: Coll.List[S2c.File], cs: Coll.List[Names.Clas case Names.BadArity(l, n) => S2c.diag(fs, "handler-arity", l, "a handler fn has the wrong arity:", S2c.Name(n), "take self: Ptr first, then the op's params") S2c.showNames(fs, rest) -def S2c.showFlow {r: Region} (fs: Coll.List[S2c.File], cs: Coll.List[Flow.Clash]): Unit = cs match +def S2c.showFlow(fs: Coll.List[S2c.File], cs: Coll.List[Flow.Clash]): Unit = cs match case Coll.Nil => () case Coll.Cons(c, rest) => c match @@ -303,7 +303,7 @@ enum S2c.Mode: // --store-check: write every hashed decl to the store, read it back, compare case S2c.StoreCheck -def S2c.finish {r: Region} (m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl], rows: Eff.Rows, res: Ty.Result): I64 = m match +def S2c.finish(m: S2c.Mode, fs: Coll.List[S2c.File], ds: Coll.List[Ast.Decl], rows: Eff.Rows, res: Ty.Result): I64 = m match case S2c.StoreCheck => Store.check(ds) 0 @@ -340,7 +340,7 @@ def S2c.showLines(ls: Coll.List[Ev.Line]): Unit = ls match enum S2c.Args: case S2c.Args(m: S2c.Mode, first: I64) -def S2c.args {r: Region} (): S2c.Args = +def S2c.args(): S2c.Args = if Args.count() > 1 && Str.eq(Args.at(1), "--eval") then S2c.Args(S2c.EvalAll, 2) else if Args.count() > 1 && Str.eq(Args.at(1), "--hash") then S2c.Args(S2c.HashAll, 2) else if Args.count() > 1 && Str.eq(Args.at(1), "--store-check") then S2c.Args(S2c.StoreCheck, 2) diff --git a/tests/s2/types.out b/tests/s2/types.out index e79df401..17e34702 100644 --- a/tests/s2/types.out +++ b/tests/s2/types.out @@ -9,7 +9,7 @@ unknown: unknown 1 nope cannotinfer: cannotinfer 1 Coll.length cannotinfer 1 Coll.Nil elab usem: mk[] caps b -Coll.rev[I64] caps a +rv[I64] caps a Coll.length[I64] caps mk[] caps a Coll.length[I64] caps diff --git a/tests/s2/types.srs b/tests/s2/types.srs index 5dddfeaa..8b60d933 100644 --- a/tests/s2/types.srs +++ b/tests/s2/types.srs @@ -111,7 +111,7 @@ def main(): I64 = TT.run("unknown", Coll.revOnto(Coll.rev(TT.src("def f(): I64 = nope(1)\n")), lib)) TT.run("cannotinfer", Coll.revOnto(Coll.rev(TT.src("def f(): I64 = Coll.length(Coll.Nil)\n")), lib)) Console.print("elab usem:\n") - TT.elab("def mk {r: Region} (n: I64): Coll.List[I64] = Coll.Cons(n, Coll.Nil)\ndef pair {p: Region} {q: Region} (): I64 = 0\ndef usem(): I64 =\n handle a = Srs.Arena()\n handle b = Srs.Heap()\n val xs = mk{b}(3)\n Coll.length(Coll.rev{a}(xs)) + Coll.length(mk{a}(1)) + pair{a, b}()\n", lib, "usem") + TT.elab("def mk {r: Region} (n: I64): Coll.List[I64] = Coll.Cons(n, Coll.Nil)\ndef pair {p: Region} {q: Region} (): I64 = 0\ndef rv [A: Type] {r: Region} (xs: Coll.List[A]): Coll.List[A] = Coll.rev(xs)\ndef usem(): I64 =\n handle a = Srs.Arena()\n handle b = Srs.Heap()\n val xs = mk{b}(3)\n Coll.length(rv{a}(xs)) + Coll.length(mk{a}(1)) + pair{a, b}()\n", lib, "usem") Console.print("mono usem:\n") TT.insts(Mono.run(Ty.check(Coll.revOnto(Coll.rev(TT.src("def mk {r: Region} (n: I64): Coll.List[I64] = Coll.Cons(n, Coll.Nil)\ndef usem(): I64 =\n handle a = Srs.Arena()\n Coll.length(Coll.rev(mk(3)))\n")), TT.parseAll(Coll.Cons("lib/prelude.srs", Coll.Cons("s2/coll.srs", Coll.Cons("s2/sym.srs", Coll.Nil))), Coll.Nil))))) 0