diff --git a/stage0/src/Init/Lean/Elab/StructInst.lean b/stage0/src/Init/Lean/Elab/StructInst.lean index 0bb50105c5..ec1999e511 100644 --- a/stage0/src/Init/Lean/Elab/StructInst.lean +++ b/stage0/src/Init/Lean/Elab/StructInst.lean @@ -14,63 +14,29 @@ namespace Elab namespace Term namespace StructInst -/- parser! symbol "{" appPrec >> optional (try (ident >> " . ")) >> sepBy (structInstField <|> structInstSource) ", " true >> "}" -/ - -namespace ExpandNonAtomicExplicitSource - -structure State := -(found : Bool := false) -(source? : Option Syntax := none) - -/- Auxiliary function for `expandNonAtomicExplicitSource` -/ -def main (stx : Syntax) : StateT State TermElabM (Option Syntax) := do -let args := (stx.getArg 2).getArgs; -args ← args.mapM $ fun arg => - if arg.getKind == `Lean.Parser.Term.structInstSource then do - -- parser! ".." >> optional termParser - s ← get; - if s.found then - liftM $ throwError arg "source has already been specified" - else - let optSource := arg.getArg 1; - if optSource.isNone then do - modify $ fun s => { s with found := true }; - pure arg - else do - let source := optSource.getArg 0; - fvar? ← liftM $ isLocalTermId? source; - match fvar? with - | some _ => do - -- it is already a local variable - modify $ fun s => { s with found := true }; - pure arg - | none => do - src ← `(src); - modify $ fun s => { s with found := true, source? := source }; - let optSource := optSource.setArg 0 src; - let arg := arg.setArg 1 optSource; - pure arg - else - pure arg; -s ← get; -match s.source? with -| none => pure none -| some source => do - let newStx := stx.setArg 2 (mkNullNode args); - `(let src := $source; $newStx) - -end ExpandNonAtomicExplicitSource +/- parser! symbol "{" appPrec >> optional (try (termParser >> "with")) >> sepBy structInstField ", " true >> optional ".." >> optional (" : " >> termParser) >> "}" -/ /- -If `stx` is of the form `{ ... .. s }` and `s` is not a local variable, expand into `let src := s; { ... .. src}`. +If `stx` is of the form `{ s with ... }` and `s` is not a local variable, expand into `let src := s; { src with ... }`. -/ private def expandNonAtomicExplicitSource (stx : Syntax) : TermElabM (Option Syntax) := -withFreshMacroScope $ (ExpandNonAtomicExplicitSource.main stx).run' {} +withFreshMacroScope $ + let sourceOpt := stx.getArg 1; + if sourceOpt.isNone then pure none else do + let source := sourceOpt.getArg 0; + fvar? ← isLocalTermId? source; + match fvar? with + | some _ => pure none + | none => do + src ← `(src); + let sourceOpt := sourceOpt.setArg 0 src; + let stxNew := stx.setArg 1 sourceOpt; + `(let src := $source; $stxNew) inductive Source | none -- structure instance source has not been provieded | implicit (stx : Syntax) -- `..` -| explicit (stx : Syntax) (src : Expr) -- `.. term` +| explicit (stx : Syntax) (src : Expr) -- `src with` instance Source.inhabited : Inhabited Source := ⟨Source.none⟩ @@ -78,35 +44,25 @@ def Source.isNone : Source → Bool | Source.none => true | _ => false -instance Source.hasFormat : HasFormat Source := -⟨fun src => match src with - | Source.none => "" - | Source.implicit _ => " .." - | Source.explicit _ src => " .. " ++ format src⟩ - -def Source.addSyntax : Source → Array Syntax → Array Syntax -| Source.none, acc => acc -| Source.implicit stx, acc => acc.push stx -| Source.explicit stx _, acc => acc.push stx +def setStructSourceSyntax (structStx : Syntax) : Source → Syntax +| Source.none => (structStx.setArg 1 mkNullNode).setArg 3 mkNullNode +| Source.implicit stx => (structStx.setArg 1 mkNullNode).setArg 3 stx +| Source.explicit stx _ => (structStx.setArg 1 stx).setArg 3 mkNullNode private def getStructSource (stx : Syntax) : TermElabM Source := -let args := (stx.getArg 2).getArgs; -args.foldSepByM - (fun arg r => - if arg.getKind == `Lean.Parser.Term.structInstSource then - -- parser! ".." >> optional termParser - if !r.isNone then throwError arg "source has already been specified" - else - let optTerm := arg.getArg 1; - if optTerm.isNone then pure $ Source.implicit arg - else do - fvar? ← isLocalTermId? (optTerm.getArg 0); - match fvar? with - | none => unreachable! -- expandNonAtomicExplicitSource must have been used when we get here - | some fvar => pure $ Source.explicit arg fvar - else - pure r) - Source.none +let explicitSource := stx.getArg 1; +let implicitSource := stx.getArg 3; +if explicitSource.isNone && implicitSource.isNone then + pure Source.none +else if explicitSource.isNone then + pure $ Source.implicit implicitSource +else if implicitSource.isNone then do + fvar? ← isLocalTermId? (explicitSource.getArg 0); + match fvar? with + | none => unreachable! -- expandNonAtomicExplicitSource must have been used when we get here + | some src => pure $ Source.explicit explicitSource src +else + throwError stx "invalid structure instance `with` and `..` cannot be used together" /- We say a `{ ... }` notation is a `modifyOp` if it contains only one @@ -117,34 +73,29 @@ private def isModifyOp? (stx : Syntax) : TermElabM (Option Syntax) := do let args := (stx.getArg 2).getArgs; s? ← args.foldSepByM (fun arg s? => - let k := arg.getKind; - if k == `Lean.Parser.Term.structInstSource then pure s? - else if k == `Lean.Parser.Term.structInstField then - /- Remark: the syntax for `structInstField` is - ``` - def structInstLVal := (ident <|> numLit <|> structInstArrayRef) >> many (group ("." >> (ident <|> numLit)) <|> structInstArrayRef) - def structInstField := parser! structInstLVal >> " := " >> termParser - ``` -/ - let lval := arg.getArg 0; - let k := lval.getKind; - if k == `Lean.Parser.Term.structInstArrayRef then - match s? with - | none => pure (some arg) - | some s => - if s.getKind == `Lean.Parser.Term.structInstArrayRef then - throwError arg "invalid {...} notation, at most one `[..]` at a given level" - else - throwError arg "invalid {...} notation, can't mix field and `[..]` at a given level" - else - match s? with - | none => pure (some arg) - | some s => - if s.getKind == `Lean.Parser.Term.structInstArrayRef then - throwError arg "invalid {...} notation, can't mix field and `[..]` at a given level" - else - pure s? + /- Remark: the syntax for `structInstField` is + ``` + def structInstLVal := (ident <|> numLit <|> structInstArrayRef) >> many (group ("." >> (ident <|> numLit)) <|> structInstArrayRef) + def structInstField := parser! structInstLVal >> " := " >> termParser + ``` -/ + let lval := arg.getArg 0; + let k := lval.getKind; + if k == `Lean.Parser.Term.structInstArrayRef then + match s? with + | none => pure (some arg) + | some s => + if s.getKind == `Lean.Parser.Term.structInstArrayRef then + throwError arg "invalid {...} notation, at most one `[..]` at a given level" + else + throwError arg "invalid {...} notation, can't mix field and `[..]` at a given level" else - throwError arg "unexpected {...} notation") + match s? with + | none => pure (some arg) + | some s => + if s.getKind == `Lean.Parser.Term.structInstArrayRef then + throwError arg "invalid {...} notation, can't mix field and `[..]` at a given level" + else + pure s?) none; match s? with | none => pure none @@ -154,10 +105,12 @@ private def elabModifyOp (stx modifyOp source : Syntax) (expectedType? : Option let continue (val : Syntax) : TermElabM Expr := do { let lval := modifyOp.getArg 0; let idx := lval.getArg 1; - let self := (source.getArg 1).getArg 0; + let self := source.getArg 0; stxNew ← `($(self).modifyOp (idx := $idx) (fun s => $val)); + trace `Elab.struct.modifyOp stx $ fun _ => stx ++ "\n===>\n" ++ stxNew; withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? -}; +}; do +trace `Elab.struct.modifyOp stx $ fun _ => modifyOp ++ "\nSource: " ++ source; let rest := modifyOp.getArg 1; if rest.isNone then do continue (modifyOp.getArg 3) @@ -169,43 +122,33 @@ else do let valRest := mkNullNode (restArgs.extract 1 restArgs.size); let valField := modifyOp.setArg 0 valFirst; let valField := valField.setArg 1 valRest; - let valSource := source.modifyArg 1 $ fun stx => stx.modifyArg 0 $ fun _ => s; - let val := stx.setArg 1 mkNullNode; - let val := val.setArg 2 $ mkNullNode #[valField, mkAtomFrom stx ", ", valSource]; + let valSource := source.modifyArg 0 $ fun _ => s; + let val := stx.setArg 1 valSource; + let val := val.setArg 2 $ mkNullNode #[valField]; + trace `Elab.struct.modifyOp stx $ fun _ => stx ++ "\nval: " ++ val; continue val -/- Get structure name and elaborate explicit source (if avialable) -/ -private def getStructName (stx : Syntax) (expectedType? : Option Expr) (sourceView : Source) : TermElabM Name := -let arg := stx.getArg 1; -if !arg.isNone then do - r : List (Name × List String) ← resolveGlobalName (arg.getIdAt 0); - env ← getEnv; - let r := r.filter $ fun p => p.2.isEmpty && isStructureLike env p.1; - let candidates := r.map $ fun p => p.1; - match candidates with - | [c] => pure c - | [] => throwError arg "invalid {...} notation, structure expected" - | _ => throwError arg ("invalid {...} notation, ambiguous " ++ toString candidates) -else do - let ref := stx; - tryPostponeIfNoneOrMVar expectedType?; - let useSource : Unit → TermElabM Name := fun _ => - match sourceView with - | Source.explicit _ src => do - srcType ← inferType stx src; - srcType ← whnf stx srcType; - tryPostponeIfMVar srcType; - match srcType.getAppFn with - | Expr.const constName _ _ => pure constName - | _ => throwError stx ("invalid {...} notation, source type is not of the form (C ...)" ++ indentExpr srcType) - | _ => throwError ref ("invalid {...} notation, expected type is not of the form (C ...)" ++ indentExpr expectedType?.get!); - match expectedType? with - | none => useSource () - | some expectedType => do - expectedType ← whnf ref expectedType; - match expectedType.getAppFn with +/- Get structure name and elaborate explicit source (if available) -/ +private def getStructName (stx : Syntax) (expectedType? : Option Expr) (sourceView : Source) : TermElabM Name := do +let ref := stx; +tryPostponeIfNoneOrMVar expectedType?; +let useSource : Unit → TermElabM Name := fun _ => + match sourceView with + | Source.explicit _ src => do + srcType ← inferType stx src; + srcType ← whnf stx srcType; + tryPostponeIfMVar srcType; + match srcType.getAppFn with | Expr.const constName _ _ => pure constName - | _ => useSource () + | _ => throwError stx ("invalid {...} notation, source type is not of the form (C ...)" ++ indentExpr srcType) + | _ => throwError ref ("invalid {...} notation, expected type is not of the form (C ...)" ++ indentExpr expectedType?.get!); +match expectedType? with +| none => useSource () +| some expectedType => do + expectedType ← whnf ref expectedType; + match expectedType.getAppFn with + | Expr.const constName _ _ => pure constName + | _ => useSource () inductive FieldLHS | fieldName (ref : Syntax) (name : Name) @@ -261,7 +204,11 @@ Format.joinSep field.lhs " . " ++ " := " ++ partial def formatStruct : Struct → Format | ⟨_, structName, fields, source⟩ => - "{" ++ fmt structName ++ " . " ++ Format.joinSep (fields.map (formatField formatStruct)) ", " ++ fmt source ++ "}" + let fieldsFmt := Format.joinSep (fields.map (formatField formatStruct)) ", "; + match source with + | Source.none => "{" ++ fieldsFmt ++ "}" + | Source.implicit _ => "{" ++ fieldsFmt ++ " .. }" + | Source.explicit _ src => "{" ++ format src ++ " with " ++ fieldsFmt ++ "}" instance Struct.hasFormat : HasFormat Struct := ⟨formatStruct⟩ instance Struct.hasToString : HasToString Struct := ⟨toString ∘ format⟩ @@ -358,11 +305,11 @@ s.modifyFieldsM $ fun fields => do This method expands parent structure fields using the path to the parent structure. For example, ``` - { C . x := 0, y := 0, z := true } + { x := 0, y := 0, z := true : C } ``` is expanded into ``` - { C . toB.toA.x := 0, toB.y := 0, z := true } + { toB.toA.x := 0, toB.y := 0, z := true : C } ``` -/ private def expandParentFields (s : Struct) : TermElabM Struct := do env ← getEnv; @@ -414,7 +361,7 @@ private def mkSubstructSource (ref : Syntax) (structName : Name) (fieldNames : A match src with | Source.explicit stx src => do idx ← getFieldIdx ref structName fieldNames fieldName; - let stx := stx.modifyArg 1 $ fun stx => stx.modifyArg 0 $ fun stx => mkProjStx stx fieldName; + let stx := stx.modifyArg 0 $ fun stx => mkProjStx stx fieldName; pure $ Source.explicit stx (mkProj structName idx src) | s => pure s @@ -438,10 +385,10 @@ s.modifyFieldsM $ fun fields => do | none => do -- It is not a substructure field. Thus, we wrap fields using `Syntax`, and use `elabTerm` to process them. let valStx := s.ref; -- construct substructure syntax using s.ref as template - let valStx := valStx.setArg 1 mkNullNode; -- erase optional struct name + let valStx := valStx.setArg 4 mkNullNode; -- erase optional expected type let args := substructFields.toArray.map $ Field.toSyntax; - let args := substructSource.addSyntax args; let valStx := valStx.setArg 2 (mkSepStx args (mkAtomFrom s.ref ",")); + let valStx := setStructSourceSyntax valStx substructSource; pure { field with lhs := [field.lhs.head!], val := FieldVal.term valStx } def findField? (fields : Fields) (fieldName : Name) : Option (Field Struct) := @@ -473,8 +420,8 @@ fields ← fieldNames.foldlM | Source.none => addField FieldVal.default | Source.implicit _ => addField (FieldVal.term (mkHole s.ref)) | Source.explicit stx _ => - -- stx is of the form `".." >> optional termParser` - let src := (stx.getArg 1).getArg 0; + -- stx is of the form `optional (try (termParser >> "with"))` + let src := (stx.getArg 0).getArg 0; let val := mkProjStx src fieldName; addField (FieldVal.term val)) []; @@ -818,18 +765,34 @@ match mkStructView stx structName source with DefaultFields.propagate struct; pure r +private def expandStructInstExpectedType (stx : Syntax) : MacroM (Option Syntax) := +let expectedArg := stx.getArg 4; +if expectedArg.isNone then pure none +else + let expected := expectedArg.getArg 1; + let stxNew := stx.setArg 4 mkNullNode; + `(($stxNew : $expected)) + @[builtinTermElab structInst] def elabStructInst : TermElab := fun stx expectedType? => do - stxNew? ← expandNonAtomicExplicitSource stx; + stxNew? ← liftMacroM $ expandStructInstExpectedType stx; match stxNew? with | some stxNew => withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? - | none => do - sourceView ← getStructSource stx; - modifyOp? ← isModifyOp? stx; - match modifyOp?, sourceView with - | some modifyOp, Source.explicit source _ => elabModifyOp stx modifyOp source expectedType? - | some _, _ => throwError stx ("invalid {...} notation, explicit source is required when using '[] := '") - | _, _ => elabStructInstAux stx expectedType? sourceView + | none => do + stxNew? ← expandNonAtomicExplicitSource stx; + match stxNew? with + | some stxNew => withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? + | none => do + sourceView ← getStructSource stx; + modifyOp? ← isModifyOp? stx; + match modifyOp?, sourceView with + | some modifyOp, Source.explicit source _ => elabModifyOp stx modifyOp source expectedType? + | some _, _ => throwError stx ("invalid {...} notation, explicit source is required when using '[] := '") + | _, _ => elabStructInstAux stx expectedType? sourceView + +@[init] private def regTraceClasses : IO Unit := do +registerTraceClass `Elab.struct; +pure () end StructInst end Term diff --git a/stage0/stdlib/Init/Lean/Elab/Binders.c b/stage0/stdlib/Init/Lean/Elab/Binders.c index ecb7355db3..a68a2e0a4e 100644 --- a/stage0/stdlib/Init/Lean/Elab/Binders.c +++ b/stage0/stdlib/Init/Lean/Elab/Binders.c @@ -20,7 +20,9 @@ lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Binders_12__checkNoOptAutoParam___closed__4; lean_object* l___private_Init_Lean_Elab_Binders_2__expandBinderIdent___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__12; extern lean_object* l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__13; lean_object* l_Lean_Elab_Term_elabLetDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); @@ -747,11 +749,9 @@ lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_PersistentHashMap_Stats_toString___closed__5; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; +x_2 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_3 = lean_array_push(x_1, x_2); return x_3; } } @@ -759,8 +759,8 @@ lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__4; -x_2 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_2 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -769,9 +769,9 @@ lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_structInst___elambda__1___closed__2; -x_2 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__6; -x_3 = lean_alloc_ctor(1, 2, 0); +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_PersistentHashMap_Stats_toString___closed__5; +x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; @@ -781,7 +781,7 @@ lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__6; x_2 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_3 = lean_array_push(x_1, x_2); return x_3; @@ -790,26 +790,48 @@ return x_3; lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__9() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("invalic auto tactic, identifier is not allowed"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInst___elambda__1___closed__2; +x_2 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__8; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__10() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__9; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__9; +x_3 = lean_array_push(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__11() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("invalic auto tactic, identifier is not allowed"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__12() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__10; +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__11; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__12; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -1191,7 +1213,7 @@ x_163 = l_Lean_String_HasQuote___closed__2; x_164 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_164, 0, x_163); lean_ctor_set(x_164, 1, x_162); -x_165 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__8; +x_165 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__10; x_166 = lean_array_push(x_165, x_164); x_167 = l_Lean_nullKind___closed__2; x_168 = lean_alloc_ctor(1, 2, 0); @@ -1239,7 +1261,7 @@ x_189 = l_Lean_String_HasQuote___closed__2; x_190 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_190, 0, x_189); lean_ctor_set(x_190, 1, x_188); -x_191 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__8; +x_191 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__10; x_192 = lean_array_push(x_191, x_190); x_193 = l_Lean_nullKind___closed__2; x_194 = lean_alloc_ctor(1, 2, 0); @@ -1308,7 +1330,7 @@ x_223 = l_Lean_String_HasQuote___closed__2; x_224 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_224, 0, x_223); lean_ctor_set(x_224, 1, x_222); -x_225 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__8; +x_225 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__10; x_226 = lean_array_push(x_225, x_224); x_227 = l_Lean_nullKind___closed__2; x_228 = lean_alloc_ctor(1, 2, 0); @@ -1332,7 +1354,7 @@ return x_232; default: { lean_object* x_233; lean_object* x_234; -x_233 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__11; +x_233 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__13; x_234 = l_Lean_Elab_Term_throwError___rarg(x_1, x_233, x_2, x_3); lean_dec(x_1); return x_234; @@ -25249,6 +25271,10 @@ l_Lean_Elab_Term_quoteAutoTactic___main___closed__10 = _init_l_Lean_Elab_Term_qu lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__10); l_Lean_Elab_Term_quoteAutoTactic___main___closed__11 = _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__11(); lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__11); +l_Lean_Elab_Term_quoteAutoTactic___main___closed__12 = _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__12); +l_Lean_Elab_Term_quoteAutoTactic___main___closed__13 = _init_l_Lean_Elab_Term_quoteAutoTactic___main___closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_quoteAutoTactic___main___closed__13); l_Lean_Elab_Term_declareTacticSyntax___closed__1 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_declareTacticSyntax___closed__1); l_Lean_Elab_Term_declareTacticSyntax___closed__2 = _init_l_Lean_Elab_Term_declareTacticSyntax___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Elab/DoNotation.c b/stage0/stdlib/Init/Lean/Elab/DoNotation.c index cb6b5f1041..0f6d16cbb7 100644 --- a/stage0/stdlib/Init/Lean/Elab/DoNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/DoNotation.c @@ -132,6 +132,7 @@ extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; extern lean_object* l___private_Init_Lean_Elab_Quotation_8__letBindRhss___main___closed__11; lean_object* l___regBuiltin_Lean_Elab_Term_elabDo(lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractBind(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3; lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; @@ -169,7 +170,6 @@ lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___boxed(l lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; extern lean_object* l___private_Init_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6; lean_object* l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main___boxed(lean_object*); -extern lean_object* l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; @@ -2184,7 +2184,7 @@ lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); x_44 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_45 = lean_array_push(x_44, x_43); -x_46 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_46 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_47 = lean_array_push(x_45, x_46); x_48 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_49 = lean_alloc_ctor(1, 2, 0); @@ -2371,7 +2371,7 @@ lean_ctor_set(x_132, 0, x_131); lean_ctor_set(x_132, 1, x_130); x_133 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_134 = lean_array_push(x_133, x_132); -x_135 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_135 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_136 = lean_array_push(x_134, x_135); x_137 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_138 = lean_alloc_ctor(1, 2, 0); @@ -2779,7 +2779,7 @@ lean_ctor_set(x_375, 0, x_374); lean_ctor_set(x_375, 1, x_373); x_376 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_377 = lean_array_push(x_376, x_375); -x_378 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_378 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_379 = lean_array_push(x_377, x_378); x_380 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_381 = lean_alloc_ctor(1, 2, 0); @@ -2885,7 +2885,7 @@ lean_ctor_set(x_430, 0, x_429); lean_ctor_set(x_430, 1, x_428); x_431 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_432 = lean_array_push(x_431, x_430); -x_433 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_433 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_434 = lean_array_push(x_432, x_433); x_435 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_436 = lean_alloc_ctor(1, 2, 0); @@ -3065,7 +3065,7 @@ lean_ctor_set(x_514, 0, x_513); lean_ctor_set(x_514, 1, x_512); x_515 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_516 = lean_array_push(x_515, x_514); -x_517 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_517 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_518 = lean_array_push(x_516, x_517); x_519 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_520 = lean_alloc_ctor(1, 2, 0); @@ -3473,7 +3473,7 @@ lean_ctor_set(x_757, 0, x_756); lean_ctor_set(x_757, 1, x_755); x_758 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_759 = lean_array_push(x_758, x_757); -x_760 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_760 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_761 = lean_array_push(x_759, x_760); x_762 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_763 = lean_alloc_ctor(1, 2, 0); @@ -3583,7 +3583,7 @@ lean_ctor_set(x_814, 0, x_813); lean_ctor_set(x_814, 1, x_812); x_815 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_816 = lean_array_push(x_815, x_814); -x_817 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_817 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_818 = lean_array_push(x_816, x_817); x_819 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_820 = lean_alloc_ctor(1, 2, 0); @@ -3701,7 +3701,7 @@ lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); x_20 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__2; x_21 = lean_array_push(x_20, x_19); -x_22 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__5; +x_22 = l_Lean_Elab_Term_quoteAutoTactic___main___closed__7; x_23 = lean_array_push(x_21, x_22); x_24 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_25 = lean_alloc_ctor(1, 2, 0); diff --git a/stage0/stdlib/Init/Lean/Elab/StructInst.c b/stage0/stdlib/Init/Lean/Elab/StructInst.c index 37b18e72ae..4fbf24694d 100644 --- a/stage0/stdlib/Init/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Init/Lean/Elab/StructInst.c @@ -25,14 +25,15 @@ lean_object* l___private_Init_Lean_Elab_StructInst_12__mkFieldMap___closed__1; lean_object* l_List_forM___main___at_Lean_Elab_Term_StructInst_DefaultFields_step___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__2; lean_object* l_List_map___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat(lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; extern lean_object* l_Lean_fieldIdxKind; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); +lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__26; lean_object* l___private_Init_Lean_Elab_StructInst_6__toFieldLHS___closed__1; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM(lean_object*); extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__8; @@ -41,20 +42,18 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); uint8_t l_AssocList_contains___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__4(lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__6; lean_object* l_List_head_x21___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__5___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4; extern lean_object* l_Lean_Meta_mkExpectedTypeHint___closed__1; lean_object* l_Lean_Elab_Term_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_HashMap_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___boxed(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_Source_addSyntax(lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; lean_object* l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_23__mkCtorHeader(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__7; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -65,7 +64,6 @@ lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_7__mkSt lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_19__expandStruct(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_2__getStructSource___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__1; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); @@ -80,17 +78,18 @@ lean_object* l___private_Init_Lean_Elab_StructInst_16__mkSubstructSource(lean_ob lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__10; lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasToString; -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__7; extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst___closed__1; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_27__regTraceClasses(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__3; lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__12; lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20; lean_object* l___private_Init_Lean_Elab_StructInst_13__isSimpleField_x3f(lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f(lean_object*, lean_object*); @@ -105,14 +104,14 @@ lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at_Lean_Elab_Term_StructIns lean_object* l___private_Init_Lean_Elab_StructInst_10__expandParentFields(lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_mkHashMap___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__9(lean_object*); -lean_object* l_List_map___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__2(lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__3; lean_object* l___private_Init_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst(lean_object*); -lean_object* l_Lean_fmt___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__2(lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1; +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__23; lean_object* l_Lean_Format_joinSep___main___at___private_Init_Lean_Data_Trie_6__toStringAux___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_ReaderT_Monad___rarg(lean_object*); @@ -128,7 +127,6 @@ lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_setFields(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___rarg(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; lean_object* l_Nat_max(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__1; @@ -143,13 +141,11 @@ lean_object* l_List_head_x21___at___private_Init_Lean_Elab_StructInst_19__expand lean_object* l_AssocList_find_x3f___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__3; +extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat___closed__1; lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; extern lean_object* l_Id_monad; -lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__8; -lean_object* l_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3; lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__1; @@ -158,17 +154,21 @@ lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___at___privat lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_contains___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__3; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__6; lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_6__toFieldLHS(lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__21; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagate(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__2; extern lean_object* l_Lean_mkAppStx___closed__8; lean_object* l_Lean_Elab_Term_StructInst_Source_inhabited; lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___main___spec__1(lean_object*); +extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__7; uint8_t l_Lean_Environment_isProjectionFn(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_23__mkCtorHeader___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -176,10 +176,8 @@ lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple___rarg___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__3; extern lean_object* l_Lean_Format_sbracket___closed__2; lean_object* l_HashMapImp_insert___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__11; lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldLHS_toSyntax___boxed(lean_object*, lean_object*); @@ -197,6 +195,7 @@ lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17; lean_object* l___private_Init_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f___boxed(lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__1; @@ -212,13 +211,12 @@ lean_object* l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1___boxed(lean_ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Init_Lean_Elab_StructInst_8__expandCompositeFields___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_FieldVal_toSyntax___boxed(lean_object*); -lean_object* l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_15__mkProjStx(lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_StructInst_14__getFieldIdx___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdxAux___main___at___private_Init_Lean_Elab_StructInst_14__getFieldIdx___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; +lean_object* l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_18__addMissingFields___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_14__getFieldIdx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -228,6 +226,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_StructInst lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9; lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_14__getFieldIdx___closed__3; +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__27; lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_isSimple(lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); @@ -240,10 +239,8 @@ lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___close lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_13__isSimpleField_x3f___boxed(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__7(lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7; lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_14__getFieldIdx___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__2(lean_object*); @@ -257,9 +254,7 @@ extern lean_object* l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main__ lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited(lean_object*); lean_object* lean_instantiate_type_lparams(lean_object*, lean_object*); -extern lean_object* l_Lean_Format_join___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_14__getFieldIdx___closed__1; -lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__10; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_Field_toSyntax___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldName___boxed(lean_object*); @@ -267,7 +262,7 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getHierarchyDepth(lean_ob size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7; +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__28; lean_object* l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__15; lean_object* l___private_Init_Lean_Elab_StructInst_14__getFieldIdx___closed__2; @@ -284,7 +279,6 @@ lean_object* l_List_map___main___at___private_Init_Lean_Elab_StructInst_8__expan lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__3; lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__2(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); @@ -293,10 +287,10 @@ lean_object* l_Function_comp___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__14; +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__18; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefaultAux___main___closed__2; lean_object* l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Elab_Term_StructInst_findField_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; lean_object* lean_expr_dbg_to_string(lean_object*); @@ -306,7 +300,6 @@ lean_object* l___private_Init_Lean_Elab_StructInst_12__mkFieldMap(lean_object*, lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__8; size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__2; -lean_object* l_Lean_fmt___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__2___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_isRoundDone___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_StructInst_findField_x3f___lambda__1(lean_object*, lean_object*); @@ -315,10 +308,13 @@ lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_24__e lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_23__mkCtorHeader___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__1; extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__2; +extern lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; uint8_t l_Array_contains___at_Lean_findField_x3f___main___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__25; lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_mkHashMapImp___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__2; lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -330,15 +326,16 @@ extern lean_object* l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambd uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); -lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__8; lean_object* l___private_Init_Lean_Elab_StructInst_7__mkStructView(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__1; uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_structName___boxed(lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__10___closed__4; extern lean_object* l_Lean_Parser_Term_structInstField___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax(lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); lean_object* l_AssocList_find_x3f___main___at___private_Init_Lean_Elab_StructInst_12__mkFieldMap___spec__2(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -350,13 +347,11 @@ lean_object* l_HashMap_toList___at___private_Init_Lean_Elab_StructInst_19__expan lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_7__mkStructView___spec__3(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main(lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4; lean_object* l_Lean_mkSepStx(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValue_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; extern lean_object* l_Lean_Format_sbracket___closed__3; lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_9__expandNumLitFields(lean_object*, lean_object*, lean_object*); size_t l_USize_mod(size_t, size_t); @@ -372,13 +367,11 @@ lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_ge lean_object* l_List_head_x21___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__5(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_20__mkCtorHeaderAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step___main___closed__1; -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_2__getStructSource___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_FindImpl_initCache; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__4; extern lean_object* l_Lean_Syntax_inhabited; size_t lean_ptr_addr(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9; lean_object* l___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3; lean_object* l___private_Init_Lean_Elab_StructInst_6__toFieldLHS___closed__2; @@ -386,21 +379,19 @@ lean_object* lean_instantiate_value_lparams(lean_object*, lean_object*); lean_object* l_Lean_isAnnotation_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__2; extern lean_object* l_PersistentArray_Stats_toString___closed__4; -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat___boxed(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_18__addMissingFields(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__1; lean_object* l_Lean_Elab_Term_setMCtx(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__4; +lean_object* lean_environment_main_module(lean_object*); lean_object* l___private_Init_Lean_Expr_4__getAppRevArgsAux___main(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_24__elabStruct(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_22__propagateExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4; lean_object* l_Lean_Meta_reduceProj_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -412,7 +403,6 @@ lean_object* l___private_Init_Lean_Elab_StructInst_20__mkCtorHeaderAux(lean_obje lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__2; lean_object* l_Lean_Syntax_getArgs(lean_object*); uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___at___private_Init_Lean_Elab_StructInst_9__expandNumLitFields___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -441,19 +431,18 @@ lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_source(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_hasToString___closed__1; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__5; extern lean_object* l_Lean_Parser_Term_letIdDecl___closed__2; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduceProjOf_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_18__addMissingFields___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__10(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9; extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PUnit_Inhabited; extern lean_object* l_Lean_mkOptionalNode___closed__1; @@ -476,7 +465,7 @@ lean_object* l_Lean_Elab_Term_StructInst_Struct_inhabited___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__7; lean_object* l_Lean_Elab_Term_StructInst_Struct_modifyFieldsM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; -lean_object* l_Lean_Elab_Term_resolveGlobalName(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__24; uint8_t l_Lean_Elab_Term_StructInst_Source_isNone(lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__6; @@ -487,7 +476,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___main lean_object* l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__4(lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__3; -lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__7; lean_object* l_Lean_Elab_Term_StructInst_Field_hasToString___closed__1; lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_19__expandStruct___main(lean_object*, lean_object*, lean_object*); @@ -495,22 +483,23 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_tryToSynthesizeDefault(le lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_reduce___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_step(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2; +extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3; lean_object* l___private_Init_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__3; +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__22; lean_object* l_Array_filterAux___main___at___private_Init_Lean_Elab_StructInst_7__mkStructView___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___lambda__1(lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__3___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_inhabited___closed__1; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_20__mkCtorHeaderAux___main___closed__3; extern lean_object* l___private_Init_Lean_Elab_Util_4__regTraceClasses___closed__1; extern lean_object* l_System_FilePath_dirName___closed__1; +lean_object* l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_arrayToExpr___rarg___closed__2; lean_object* l_Lean_Elab_Term_StructInst_Field_hasFormat; @@ -529,6 +518,7 @@ lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__4; lean_object* l_Lean_Elab_Term_isLocalTermId_x3f(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__19; lean_object* l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Field_toSyntax(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; @@ -543,7 +533,6 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_DefaultField lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__11; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__4; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_collectStructNames___boxed(lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__9; lean_object* l_Lean_Name_components(lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; lean_object* l_Lean_Elab_Term_getMCtx___rarg(lean_object*); @@ -556,7 +545,6 @@ extern lean_object* l_addParenHeuristic___closed__1; lean_object* l_List_findSome_x3f___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__2; extern lean_object* l_Lean_MetavarContext_MkBinding_mkBinding___closed__1; -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8; lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; lean_object* l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5; @@ -568,27 +556,10 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_getFieldValue_x3f___boxed lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_StructInst_10__expandParentFields___spec__2___closed__8; lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("structInstSource"); -return x_1; -} -} -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1() { _start: { lean_object* x_1; @@ -596,22 +567,22 @@ x_1 = lean_mk_string("src"); return x_1; } } -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3; +x_1 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3; +x_1 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4; +x_3 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -619,979 +590,433 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3; +x_2 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("source has already been specified"); -return x_1; -} -} -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_2); -x_7 = lean_nat_dec_lt(x_1, x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_4); -lean_dec(x_1); -x_8 = x_2; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_3); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_5); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; -x_11 = lean_array_fget(x_2, x_1); -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_array_fset(x_2, x_1, x_12); -x_24 = x_11; -lean_inc(x_24); -x_25 = l_Lean_Syntax_getKind(x_24); -x_26 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2; -x_27 = lean_name_eq(x_25, x_26); -lean_dec(x_25); -if (x_27 == 0) -{ -lean_object* x_28; -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_24); -lean_ctor_set(x_28, 1, x_3); -x_14 = x_28; -x_15 = x_5; -goto block_23; -} -else -{ -uint8_t x_29; -x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*1); -if (x_29 == 0) -{ -uint8_t x_30; -x_30 = !lean_is_exclusive(x_3); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_3, 0); -x_32 = lean_unsigned_to_nat(1u); -x_33 = l_Lean_Syntax_getArg(x_24, x_32); -x_34 = l_Lean_Syntax_isNone(x_33); -if (x_34 == 0) -{ -lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; -x_35 = l_Lean_Syntax_getArg(x_33, x_12); -x_36 = 0; -lean_inc(x_35); -x_37 = l_Lean_Elab_Term_isLocalTermId_x3f(x_35, x_36, x_4, x_5); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; -lean_dec(x_31); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_39); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Lean_Elab_Term_getMainModule___rarg(x_42); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); -lean_inc(x_45); -lean_dec(x_43); -x_46 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; -x_47 = l_Lean_addMacroScope(x_44, x_46, x_41); -x_48 = lean_box(0); -x_49 = l_Lean_SourceInfo_inhabited___closed__1; -x_50 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; -x_51 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -lean_ctor_set(x_51, 2, x_47); -lean_ctor_set(x_51, 3, x_48); -x_52 = l_Array_empty___closed__1; -x_53 = lean_array_push(x_52, x_51); -x_54 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_55 = lean_array_push(x_53, x_54); -x_56 = l_Lean_mkTermIdFromIdent___closed__2; -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Syntax_setArg(x_33, x_12, x_57); -x_59 = l_Lean_Syntax_setArg(x_24, x_32, x_58); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_35); -x_61 = 1; -lean_ctor_set(x_3, 0, x_60); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_61); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_59); -lean_ctor_set(x_62, 1, x_3); -x_14 = x_62; -x_15 = x_45; -goto block_23; -} -else -{ -lean_object* x_63; uint8_t x_64; lean_object* x_65; -lean_dec(x_38); -lean_dec(x_35); -lean_dec(x_33); -x_63 = lean_ctor_get(x_37, 1); -lean_inc(x_63); -lean_dec(x_37); -x_64 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_64); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_24); -lean_ctor_set(x_65, 1, x_3); -x_14 = x_65; -x_15 = x_63; -goto block_23; -} -} -else -{ -uint8_t x_66; lean_object* x_67; -lean_dec(x_33); -x_66 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_66); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_24); -lean_ctor_set(x_67, 1, x_3); -x_14 = x_67; -x_15 = x_5; -goto block_23; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_68 = lean_ctor_get(x_3, 0); -lean_inc(x_68); -lean_dec(x_3); -x_69 = lean_unsigned_to_nat(1u); -x_70 = l_Lean_Syntax_getArg(x_24, x_69); -x_71 = l_Lean_Syntax_isNone(x_70); -if (x_71 == 0) -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = l_Lean_Syntax_getArg(x_70, x_12); -x_73 = 0; -lean_inc(x_72); -x_74 = l_Lean_Elab_Term_isLocalTermId_x3f(x_72, x_73, x_4, x_5); -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_68); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_76); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -x_80 = l_Lean_Elab_Term_getMainModule___rarg(x_79); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; -x_84 = l_Lean_addMacroScope(x_81, x_83, x_78); -x_85 = lean_box(0); -x_86 = l_Lean_SourceInfo_inhabited___closed__1; -x_87 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; -x_88 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -lean_ctor_set(x_88, 2, x_84); -lean_ctor_set(x_88, 3, x_85); -x_89 = l_Array_empty___closed__1; -x_90 = lean_array_push(x_89, x_88); -x_91 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_92 = lean_array_push(x_90, x_91); -x_93 = l_Lean_mkTermIdFromIdent___closed__2; -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_92); -x_95 = l_Lean_Syntax_setArg(x_70, x_12, x_94); -x_96 = l_Lean_Syntax_setArg(x_24, x_69, x_95); -x_97 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_97, 0, x_72); -x_98 = 1; -x_99 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set_uint8(x_99, sizeof(void*)*1, x_98); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_96); -lean_ctor_set(x_100, 1, x_99); -x_14 = x_100; -x_15 = x_82; -goto block_23; -} -else -{ -lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_75); -lean_dec(x_72); -lean_dec(x_70); -x_101 = lean_ctor_get(x_74, 1); -lean_inc(x_101); -lean_dec(x_74); -x_102 = 1; -x_103 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_103, 0, x_68); -lean_ctor_set_uint8(x_103, sizeof(void*)*1, x_102); -x_104 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_104, 0, x_24); -lean_ctor_set(x_104, 1, x_103); -x_14 = x_104; -x_15 = x_101; -goto block_23; -} -} -else -{ -uint8_t x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_70); -x_105 = 1; -x_106 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_106, 0, x_68); -lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_24); -lean_ctor_set(x_107, 1, x_106); -x_14 = x_107; -x_15 = x_5; -goto block_23; -} -} -} -else -{ -lean_object* x_108; lean_object* x_109; uint8_t x_110; -lean_dec(x_13); -lean_dec(x_3); -lean_dec(x_1); -x_108 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9; -x_109 = l_Lean_Elab_Term_throwError___rarg(x_24, x_108, x_4, x_5); -lean_dec(x_24); -x_110 = !lean_is_exclusive(x_109); -if (x_110 == 0) -{ -return x_109; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_109, 0); -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_109); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -} -block_23: -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_16 = lean_ctor_get(x_14, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec(x_14); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_1, x_18); -x_20 = x_16; -x_21 = lean_array_fset(x_13, x_1, x_20); -lean_dec(x_1); -x_1 = x_19; -x_2 = x_21; -x_3 = x_17; -x_5 = x_15; -goto _start; -} -} -} -} -lean_object* l_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_5 = lean_unsigned_to_nat(2u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_getArgs(x_6); -lean_dec(x_6); -x_8 = x_7; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1), 5, 2); -lean_closure_set(x_10, 0, x_9); -lean_closure_set(x_10, 1, x_8); -x_11 = x_10; -lean_inc(x_3); -x_12 = lean_apply_3(x_11, x_2, x_3, x_4); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -lean_dec(x_3); -lean_dec(x_1); -x_16 = !lean_is_exclusive(x_13); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_17 = lean_ctor_get(x_13, 1); -lean_dec(x_17); -x_18 = lean_ctor_get(x_13, 0); -lean_dec(x_18); -x_19 = !lean_is_exclusive(x_12); -if (x_19 == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_12, 0); -lean_dec(x_20); -lean_ctor_set(x_13, 0, x_15); -return x_12; -} -else -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_12, 1); -lean_inc(x_21); -lean_dec(x_12); -lean_ctor_set(x_13, 0, x_15); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_13); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_13); -x_23 = lean_ctor_get(x_12, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_12)) { - lean_ctor_release(x_12, 0); - lean_ctor_release(x_12, 1); - x_24 = x_12; -} else { - lean_dec_ref(x_12); - x_24 = lean_box(0); -} -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_15); -lean_ctor_set(x_25, 1, x_14); -if (lean_is_scalar(x_24)) { - x_26 = lean_alloc_ctor(0, 2, 0); -} else { - x_26 = x_24; -} -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_23); -return x_26; -} -} -else -{ -lean_object* x_27; uint8_t x_28; -x_27 = lean_ctor_get(x_12, 1); -lean_inc(x_27); -lean_dec(x_12); -x_28 = !lean_is_exclusive(x_13); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_29 = lean_ctor_get(x_13, 0); -x_30 = lean_ctor_get(x_13, 1); -lean_dec(x_30); -x_31 = !lean_is_exclusive(x_15); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_32 = lean_ctor_get(x_15, 0); -x_33 = l_Lean_nullKind; -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_29); -x_35 = l_Lean_Syntax_setArg(x_1, x_5, x_34); -x_36 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_27); -lean_dec(x_3); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_Elab_Term_getMainModule___rarg(x_38); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_41 = lean_ctor_get(x_39, 0); -x_42 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; -x_43 = l_Lean_addMacroScope(x_41, x_42, x_37); -x_44 = lean_box(0); -x_45 = l_Lean_SourceInfo_inhabited___closed__1; -x_46 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; -x_47 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -lean_ctor_set(x_47, 2, x_43); -lean_ctor_set(x_47, 3, x_44); -x_48 = l_Array_empty___closed__1; -x_49 = lean_array_push(x_48, x_47); -x_50 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_51 = lean_array_push(x_49, x_50); -x_52 = lean_array_push(x_51, x_50); -x_53 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_54 = lean_array_push(x_52, x_53); -x_55 = lean_array_push(x_54, x_32); -x_56 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_59 = lean_array_push(x_58, x_57); -x_60 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_61 = lean_array_push(x_59, x_60); -x_62 = lean_array_push(x_61, x_35); -x_63 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_62); -lean_ctor_set(x_15, 0, x_64); -lean_ctor_set(x_13, 0, x_15); -lean_ctor_set(x_39, 0, x_13); -return x_39; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_65 = lean_ctor_get(x_39, 0); -x_66 = lean_ctor_get(x_39, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_39); -x_67 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; -x_68 = l_Lean_addMacroScope(x_65, x_67, x_37); -x_69 = lean_box(0); -x_70 = l_Lean_SourceInfo_inhabited___closed__1; -x_71 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; -x_72 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -lean_ctor_set(x_72, 2, x_68); -lean_ctor_set(x_72, 3, x_69); -x_73 = l_Array_empty___closed__1; -x_74 = lean_array_push(x_73, x_72); -x_75 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_76 = lean_array_push(x_74, x_75); -x_77 = lean_array_push(x_76, x_75); -x_78 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_79 = lean_array_push(x_77, x_78); -x_80 = lean_array_push(x_79, x_32); -x_81 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -x_83 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_84 = lean_array_push(x_83, x_82); -x_85 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_86 = lean_array_push(x_84, x_85); -x_87 = lean_array_push(x_86, x_35); -x_88 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -lean_ctor_set(x_15, 0, x_89); -lean_ctor_set(x_13, 0, x_15); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_13); -lean_ctor_set(x_90, 1, x_66); -return x_90; -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_91 = lean_ctor_get(x_15, 0); -lean_inc(x_91); -lean_dec(x_15); -x_92 = l_Lean_nullKind; -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_29); -x_94 = l_Lean_Syntax_setArg(x_1, x_5, x_93); -x_95 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_27); -lean_dec(x_3); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = l_Lean_Elab_Term_getMainModule___rarg(x_97); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_98)) { - lean_ctor_release(x_98, 0); - lean_ctor_release(x_98, 1); - x_101 = x_98; -} else { - lean_dec_ref(x_98); - x_101 = lean_box(0); -} -x_102 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; -x_103 = l_Lean_addMacroScope(x_99, x_102, x_96); -x_104 = lean_box(0); -x_105 = l_Lean_SourceInfo_inhabited___closed__1; -x_106 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; -x_107 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_103); -lean_ctor_set(x_107, 3, x_104); -x_108 = l_Array_empty___closed__1; -x_109 = lean_array_push(x_108, x_107); -x_110 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_111 = lean_array_push(x_109, x_110); -x_112 = lean_array_push(x_111, x_110); -x_113 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_114 = lean_array_push(x_112, x_113); -x_115 = lean_array_push(x_114, x_91); -x_116 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_115); -x_118 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_119 = lean_array_push(x_118, x_117); -x_120 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_121 = lean_array_push(x_119, x_120); -x_122 = lean_array_push(x_121, x_94); -x_123 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_122); -x_125 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_13, 0, x_125); -if (lean_is_scalar(x_101)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_101; -} -lean_ctor_set(x_126, 0, x_13); -lean_ctor_set(x_126, 1, x_100); -return x_126; -} -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_127 = lean_ctor_get(x_13, 0); -lean_inc(x_127); -lean_dec(x_13); -x_128 = lean_ctor_get(x_15, 0); -lean_inc(x_128); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - x_129 = x_15; -} else { - lean_dec_ref(x_15); - x_129 = lean_box(0); -} -x_130 = l_Lean_nullKind; -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_127); -x_132 = l_Lean_Syntax_setArg(x_1, x_5, x_131); -x_133 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_27); -lean_dec(x_3); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec(x_133); -x_136 = l_Lean_Elab_Term_getMainModule___rarg(x_135); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_139 = x_136; -} else { - lean_dec_ref(x_136); - x_139 = lean_box(0); -} -x_140 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6; -x_141 = l_Lean_addMacroScope(x_137, x_140, x_134); -x_142 = lean_box(0); -x_143 = l_Lean_SourceInfo_inhabited___closed__1; -x_144 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5; -x_145 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_144); -lean_ctor_set(x_145, 2, x_141); -lean_ctor_set(x_145, 3, x_142); -x_146 = l_Array_empty___closed__1; -x_147 = lean_array_push(x_146, x_145); -x_148 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_149 = lean_array_push(x_147, x_148); -x_150 = lean_array_push(x_149, x_148); -x_151 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_152 = lean_array_push(x_150, x_151); -x_153 = lean_array_push(x_152, x_128); -x_154 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_153); -x_156 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; -x_157 = lean_array_push(x_156, x_155); -x_158 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; -x_159 = lean_array_push(x_157, x_158); -x_160 = lean_array_push(x_159, x_132); -x_161 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -if (lean_is_scalar(x_129)) { - x_163 = lean_alloc_ctor(1, 1, 0); -} else { - x_163 = x_129; -} -lean_ctor_set(x_163, 0, x_162); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_14); -if (lean_is_scalar(x_139)) { - x_165 = lean_alloc_ctor(0, 2, 0); -} else { - x_165 = x_139; -} -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_138); -return x_165; -} -} -} -else -{ -uint8_t x_166; -lean_dec(x_3); -lean_dec(x_1); -x_166 = !lean_is_exclusive(x_12); -if (x_166 == 0) -{ -return x_12; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_12, 0); -x_168 = lean_ctor_get(x_12, 1); -lean_inc(x_168); -lean_inc(x_167); -lean_dec(x_12); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_167); -lean_ctor_set(x_169, 1, x_168); -return x_169; -} -} -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = 0; -x_3 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); -return x_3; -} -} lean_object* l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_3); -if (x_4 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; +x_4 = lean_unsigned_to_nat(1u); +x_5 = l_Lean_Syntax_getArg(x_1, x_4); +x_6 = l_Lean_Syntax_isNone(x_5); +x_7 = !lean_is_exclusive(x_3); +if (x_7 == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_3, 5); -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_add(x_5, x_6); -lean_ctor_set(x_3, 5, x_7); -x_8 = !lean_is_exclusive(x_2); -if (x_8 == 0) +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_3, 5); +x_9 = lean_nat_add(x_8, x_4); +lean_ctor_set(x_3, 5, x_9); +if (x_6 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_2, 9); -lean_dec(x_9); -lean_ctor_set(x_2, 9, x_5); -x_10 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; -x_11 = l_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main(x_1, x_10, x_2, x_3); -if (lean_obj_tag(x_11) == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_2); +if (x_10 == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_14); -return x_11; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 0); -x_16 = lean_ctor_get(x_11, 1); -lean_inc(x_16); -lean_inc(x_15); +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_2, 9); lean_dec(x_11); -x_17 = lean_ctor_get(x_15, 0); +lean_ctor_set(x_2, 9, x_8); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Lean_Syntax_getArg(x_5, x_12); +x_14 = 0; +lean_inc(x_13); +x_15 = l_Lean_Elab_Term_isLocalTermId_x3f(x_13, x_14, x_2, x_3); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; -} -} -else -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_11); -if (x_19 == 0) -{ -return x_11; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_11, 0); -x_21 = lean_ctor_get(x_11, 1); -lean_inc(x_21); +x_18 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -lean_dec(x_11); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_23 = lean_ctor_get(x_2, 0); -x_24 = lean_ctor_get(x_2, 1); -x_25 = lean_ctor_get(x_2, 2); -x_26 = lean_ctor_get(x_2, 3); -x_27 = lean_ctor_get(x_2, 4); -x_28 = lean_ctor_get(x_2, 5); -x_29 = lean_ctor_get(x_2, 6); -x_30 = lean_ctor_get(x_2, 7); -x_31 = lean_ctor_get(x_2, 8); -x_32 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_33 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_34 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); +lean_dec(x_18); +x_21 = l_Lean_Elab_Term_getMainModule___rarg(x_20); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); +lean_dec(x_21); +x_24 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_25 = l_Lean_addMacroScope(x_22, x_24, x_19); +x_26 = lean_box(0); +x_27 = l_Lean_SourceInfo_inhabited___closed__1; +x_28 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_29 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +lean_ctor_set(x_29, 2, x_25); +lean_ctor_set(x_29, 3, x_26); +x_30 = l_Array_empty___closed__1; +x_31 = lean_array_push(x_30, x_29); +x_32 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_33 = lean_array_push(x_31, x_32); +x_34 = l_Lean_mkTermIdFromIdent___closed__2; +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_Syntax_setArg(x_5, x_12, x_35); +x_37 = l_Lean_Syntax_setArg(x_1, x_4, x_36); +x_38 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_23); lean_dec(x_2); -x_35 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_35, 0, x_23); -lean_ctor_set(x_35, 1, x_24); -lean_ctor_set(x_35, 2, x_25); -lean_ctor_set(x_35, 3, x_26); -lean_ctor_set(x_35, 4, x_27); -lean_ctor_set(x_35, 5, x_28); -lean_ctor_set(x_35, 6, x_29); -lean_ctor_set(x_35, 7, x_30); -lean_ctor_set(x_35, 8, x_31); -lean_ctor_set(x_35, 9, x_5); -lean_ctor_set_uint8(x_35, sizeof(void*)*10, x_32); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 1, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 2, x_34); -x_36 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; -x_37 = l_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main(x_1, x_36, x_35, x_3); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_40 = x_37; -} else { - lean_dec_ref(x_37); - x_40 = lean_box(0); -} -x_41 = lean_ctor_get(x_38, 0); -lean_inc(x_41); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); lean_dec(x_38); -if (lean_is_scalar(x_40)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_40; -} -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_39); -return x_42; +x_41 = l_Lean_Elab_Term_getMainModule___rarg(x_40); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_43 = lean_ctor_get(x_41, 0); +x_44 = l_Lean_addMacroScope(x_43, x_24, x_39); +x_45 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_45, 0, x_27); +lean_ctor_set(x_45, 1, x_28); +lean_ctor_set(x_45, 2, x_44); +lean_ctor_set(x_45, 3, x_26); +x_46 = lean_array_push(x_30, x_45); +x_47 = lean_array_push(x_46, x_32); +x_48 = lean_array_push(x_47, x_32); +x_49 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_50 = lean_array_push(x_48, x_49); +x_51 = lean_array_push(x_50, x_13); +x_52 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_55 = lean_array_push(x_54, x_53); +x_56 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_57 = lean_array_push(x_55, x_56); +x_58 = lean_array_push(x_57, x_37); +x_59 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_41, 0, x_61); +return x_41; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_37, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_45 = x_37; -} else { - lean_dec_ref(x_37); - x_45 = lean_box(0); -} -if (lean_is_scalar(x_45)) { - x_46 = lean_alloc_ctor(1, 2, 0); -} else { - x_46 = x_45; -} -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_44); -return x_46; -} -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_47 = lean_ctor_get(x_3, 0); -x_48 = lean_ctor_get(x_3, 1); -x_49 = lean_ctor_get(x_3, 2); -x_50 = lean_ctor_get(x_3, 3); -x_51 = lean_ctor_get(x_3, 4); -x_52 = lean_ctor_get(x_3, 5); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_3); -x_53 = lean_unsigned_to_nat(1u); -x_54 = lean_nat_add(x_52, x_53); -x_55 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_55, 0, x_47); -lean_ctor_set(x_55, 1, x_48); -lean_ctor_set(x_55, 2, x_49); -lean_ctor_set(x_55, 3, x_50); -lean_ctor_set(x_55, 4, x_51); -lean_ctor_set(x_55, 5, x_54); -x_56 = lean_ctor_get(x_2, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_2, 1); -lean_inc(x_57); -x_58 = lean_ctor_get(x_2, 2); -lean_inc(x_58); -x_59 = lean_ctor_get(x_2, 3); -lean_inc(x_59); -x_60 = lean_ctor_get(x_2, 4); -lean_inc(x_60); -x_61 = lean_ctor_get(x_2, 5); -lean_inc(x_61); -x_62 = lean_ctor_get(x_2, 6); -lean_inc(x_62); -x_63 = lean_ctor_get(x_2, 7); +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_62 = lean_ctor_get(x_41, 0); +x_63 = lean_ctor_get(x_41, 1); lean_inc(x_63); -x_64 = lean_ctor_get(x_2, 8); -lean_inc(x_64); -x_65 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_66 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -x_67 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +lean_inc(x_62); +lean_dec(x_41); +x_64 = l_Lean_addMacroScope(x_62, x_24, x_39); +x_65 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_65, 0, x_27); +lean_ctor_set(x_65, 1, x_28); +lean_ctor_set(x_65, 2, x_64); +lean_ctor_set(x_65, 3, x_26); +x_66 = lean_array_push(x_30, x_65); +x_67 = lean_array_push(x_66, x_32); +x_68 = lean_array_push(x_67, x_32); +x_69 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_70 = lean_array_push(x_68, x_69); +x_71 = lean_array_push(x_70, x_13); +x_72 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +x_74 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_75 = lean_array_push(x_74, x_73); +x_76 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_77 = lean_array_push(x_75, x_76); +x_78 = lean_array_push(x_77, x_37); +x_79 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_63); +return x_82; +} +} +else +{ +uint8_t x_83; +lean_dec(x_16); +lean_dec(x_13); +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_1); +x_83 = !lean_is_exclusive(x_15); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_15, 0); +lean_dec(x_84); +x_85 = lean_box(0); +lean_ctor_set(x_15, 0, x_85); +return x_15; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_15, 1); +lean_inc(x_86); +lean_dec(x_15); +x_87 = lean_box(0); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +return x_88; +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; +x_89 = lean_ctor_get(x_2, 0); +x_90 = lean_ctor_get(x_2, 1); +x_91 = lean_ctor_get(x_2, 2); +x_92 = lean_ctor_get(x_2, 3); +x_93 = lean_ctor_get(x_2, 4); +x_94 = lean_ctor_get(x_2, 5); +x_95 = lean_ctor_get(x_2, 6); +x_96 = lean_ctor_get(x_2, 7); +x_97 = lean_ctor_get(x_2, 8); +x_98 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_99 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_100 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_inc(x_93); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_2); +x_101 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_101, 0, x_89); +lean_ctor_set(x_101, 1, x_90); +lean_ctor_set(x_101, 2, x_91); +lean_ctor_set(x_101, 3, x_92); +lean_ctor_set(x_101, 4, x_93); +lean_ctor_set(x_101, 5, x_94); +lean_ctor_set(x_101, 6, x_95); +lean_ctor_set(x_101, 7, x_96); +lean_ctor_set(x_101, 8, x_97); +lean_ctor_set(x_101, 9, x_8); +lean_ctor_set_uint8(x_101, sizeof(void*)*10, x_98); +lean_ctor_set_uint8(x_101, sizeof(void*)*10 + 1, x_99); +lean_ctor_set_uint8(x_101, sizeof(void*)*10 + 2, x_100); +x_102 = lean_unsigned_to_nat(0u); +x_103 = l_Lean_Syntax_getArg(x_5, x_102); +x_104 = 0; +lean_inc(x_103); +x_105 = l_Lean_Elab_Term_isLocalTermId_x3f(x_103, x_104, x_101, x_3); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = l_Lean_Elab_Term_getCurrMacroScope(x_101, x_107); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +lean_dec(x_108); +x_111 = l_Lean_Elab_Term_getMainModule___rarg(x_110); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_115 = l_Lean_addMacroScope(x_112, x_114, x_109); +x_116 = lean_box(0); +x_117 = l_Lean_SourceInfo_inhabited___closed__1; +x_118 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_119 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +lean_ctor_set(x_119, 2, x_115); +lean_ctor_set(x_119, 3, x_116); +x_120 = l_Array_empty___closed__1; +x_121 = lean_array_push(x_120, x_119); +x_122 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_123 = lean_array_push(x_121, x_122); +x_124 = l_Lean_mkTermIdFromIdent___closed__2; +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +x_126 = l_Lean_Syntax_setArg(x_5, x_102, x_125); +x_127 = l_Lean_Syntax_setArg(x_1, x_4, x_126); +x_128 = l_Lean_Elab_Term_getCurrMacroScope(x_101, x_113); +lean_dec(x_101); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l_Lean_Elab_Term_getMainModule___rarg(x_130); +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_131, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_134 = x_131; +} else { + lean_dec_ref(x_131); + x_134 = lean_box(0); +} +x_135 = l_Lean_addMacroScope(x_132, x_114, x_129); +x_136 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_136, 0, x_117); +lean_ctor_set(x_136, 1, x_118); +lean_ctor_set(x_136, 2, x_135); +lean_ctor_set(x_136, 3, x_116); +x_137 = lean_array_push(x_120, x_136); +x_138 = lean_array_push(x_137, x_122); +x_139 = lean_array_push(x_138, x_122); +x_140 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_141 = lean_array_push(x_139, x_140); +x_142 = lean_array_push(x_141, x_103); +x_143 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +x_145 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_146 = lean_array_push(x_145, x_144); +x_147 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_148 = lean_array_push(x_146, x_147); +x_149 = lean_array_push(x_148, x_127); +x_150 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_149); +x_152 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_152, 0, x_151); +if (lean_is_scalar(x_134)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_134; +} +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_133); +return x_153; +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +lean_dec(x_106); +lean_dec(x_103); +lean_dec(x_101); +lean_dec(x_5); +lean_dec(x_1); +x_154 = lean_ctor_get(x_105, 1); +lean_inc(x_154); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_155 = x_105; +} else { + lean_dec_ref(x_105); + x_155 = lean_box(0); +} +x_156 = lean_box(0); +if (lean_is_scalar(x_155)) { + x_157 = lean_alloc_ctor(0, 2, 0); +} else { + x_157 = x_155; +} +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_154); +return x_157; +} +} +} +else +{ +lean_object* x_158; lean_object* x_159; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_158 = lean_box(0); +x_159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_3); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_160 = lean_ctor_get(x_3, 0); +x_161 = lean_ctor_get(x_3, 1); +x_162 = lean_ctor_get(x_3, 2); +x_163 = lean_ctor_get(x_3, 3); +x_164 = lean_ctor_get(x_3, 4); +x_165 = lean_ctor_get(x_3, 5); +lean_inc(x_165); +lean_inc(x_164); +lean_inc(x_163); +lean_inc(x_162); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_3); +x_166 = lean_nat_add(x_165, x_4); +x_167 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_167, 0, x_160); +lean_ctor_set(x_167, 1, x_161); +lean_ctor_set(x_167, 2, x_162); +lean_ctor_set(x_167, 3, x_163); +lean_ctor_set(x_167, 4, x_164); +lean_ctor_set(x_167, 5, x_166); +if (x_6 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; +x_168 = lean_ctor_get(x_2, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_2, 1); +lean_inc(x_169); +x_170 = lean_ctor_get(x_2, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_2, 3); +lean_inc(x_171); +x_172 = lean_ctor_get(x_2, 4); +lean_inc(x_172); +x_173 = lean_ctor_get(x_2, 5); +lean_inc(x_173); +x_174 = lean_ctor_get(x_2, 6); +lean_inc(x_174); +x_175 = lean_ctor_get(x_2, 7); +lean_inc(x_175); +x_176 = lean_ctor_get(x_2, 8); +lean_inc(x_176); +x_177 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_178 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_179 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 2); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -1603,81 +1028,171 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_68 = x_2; + x_180 = x_2; } else { lean_dec_ref(x_2); - x_68 = lean_box(0); + x_180 = lean_box(0); } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(0, 10, 3); +if (lean_is_scalar(x_180)) { + x_181 = lean_alloc_ctor(0, 10, 3); } else { - x_69 = x_68; + x_181 = x_180; } -lean_ctor_set(x_69, 0, x_56); -lean_ctor_set(x_69, 1, x_57); -lean_ctor_set(x_69, 2, x_58); -lean_ctor_set(x_69, 3, x_59); -lean_ctor_set(x_69, 4, x_60); -lean_ctor_set(x_69, 5, x_61); -lean_ctor_set(x_69, 6, x_62); -lean_ctor_set(x_69, 7, x_63); -lean_ctor_set(x_69, 8, x_64); -lean_ctor_set(x_69, 9, x_52); -lean_ctor_set_uint8(x_69, sizeof(void*)*10, x_65); -lean_ctor_set_uint8(x_69, sizeof(void*)*10 + 1, x_66); -lean_ctor_set_uint8(x_69, sizeof(void*)*10 + 2, x_67); -x_70 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1; -x_71 = l_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main(x_1, x_70, x_69, x_55); -if (lean_obj_tag(x_71) == 0) +lean_ctor_set(x_181, 0, x_168); +lean_ctor_set(x_181, 1, x_169); +lean_ctor_set(x_181, 2, x_170); +lean_ctor_set(x_181, 3, x_171); +lean_ctor_set(x_181, 4, x_172); +lean_ctor_set(x_181, 5, x_173); +lean_ctor_set(x_181, 6, x_174); +lean_ctor_set(x_181, 7, x_175); +lean_ctor_set(x_181, 8, x_176); +lean_ctor_set(x_181, 9, x_165); +lean_ctor_set_uint8(x_181, sizeof(void*)*10, x_177); +lean_ctor_set_uint8(x_181, sizeof(void*)*10 + 1, x_178); +lean_ctor_set_uint8(x_181, sizeof(void*)*10 + 2, x_179); +x_182 = lean_unsigned_to_nat(0u); +x_183 = l_Lean_Syntax_getArg(x_5, x_182); +x_184 = 0; +lean_inc(x_183); +x_185 = l_Lean_Elab_Term_isLocalTermId_x3f(x_183, x_184, x_181, x_167); +x_186 = lean_ctor_get(x_185, 0); +lean_inc(x_186); +if (lean_obj_tag(x_186) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_74 = x_71; +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_187 = lean_ctor_get(x_185, 1); +lean_inc(x_187); +lean_dec(x_185); +x_188 = l_Lean_Elab_Term_getCurrMacroScope(x_181, x_187); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_191 = l_Lean_Elab_Term_getMainModule___rarg(x_190); +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); +lean_inc(x_193); +lean_dec(x_191); +x_194 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4; +x_195 = l_Lean_addMacroScope(x_192, x_194, x_189); +x_196 = lean_box(0); +x_197 = l_Lean_SourceInfo_inhabited___closed__1; +x_198 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3; +x_199 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_199, 0, x_197); +lean_ctor_set(x_199, 1, x_198); +lean_ctor_set(x_199, 2, x_195); +lean_ctor_set(x_199, 3, x_196); +x_200 = l_Array_empty___closed__1; +x_201 = lean_array_push(x_200, x_199); +x_202 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_203 = lean_array_push(x_201, x_202); +x_204 = l_Lean_mkTermIdFromIdent___closed__2; +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +x_206 = l_Lean_Syntax_setArg(x_5, x_182, x_205); +x_207 = l_Lean_Syntax_setArg(x_1, x_4, x_206); +x_208 = l_Lean_Elab_Term_getCurrMacroScope(x_181, x_193); +lean_dec(x_181); +x_209 = lean_ctor_get(x_208, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_208, 1); +lean_inc(x_210); +lean_dec(x_208); +x_211 = l_Lean_Elab_Term_getMainModule___rarg(x_210); +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_211)) { + lean_ctor_release(x_211, 0); + lean_ctor_release(x_211, 1); + x_214 = x_211; } else { - lean_dec_ref(x_71); - x_74 = lean_box(0); + lean_dec_ref(x_211); + x_214 = lean_box(0); } -x_75 = lean_ctor_get(x_72, 0); -lean_inc(x_75); -lean_dec(x_72); -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(0, 2, 0); +x_215 = l_Lean_addMacroScope(x_212, x_194, x_209); +x_216 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_216, 0, x_197); +lean_ctor_set(x_216, 1, x_198); +lean_ctor_set(x_216, 2, x_215); +lean_ctor_set(x_216, 3, x_196); +x_217 = lean_array_push(x_200, x_216); +x_218 = lean_array_push(x_217, x_202); +x_219 = lean_array_push(x_218, x_202); +x_220 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_221 = lean_array_push(x_219, x_220); +x_222 = lean_array_push(x_221, x_183); +x_223 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_224 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_224, 0, x_223); +lean_ctor_set(x_224, 1, x_222); +x_225 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; +x_226 = lean_array_push(x_225, x_224); +x_227 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__10; +x_228 = lean_array_push(x_226, x_227); +x_229 = lean_array_push(x_228, x_207); +x_230 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_229); +x_232 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_232, 0, x_231); +if (lean_is_scalar(x_214)) { + x_233 = lean_alloc_ctor(0, 2, 0); } else { - x_76 = x_74; + x_233 = x_214; } -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_73); -return x_76; +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_213); +return x_233; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_77 = lean_ctor_get(x_71, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_71, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_79 = x_71; +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +lean_dec(x_186); +lean_dec(x_183); +lean_dec(x_181); +lean_dec(x_5); +lean_dec(x_1); +x_234 = lean_ctor_get(x_185, 1); +lean_inc(x_234); +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_235 = x_185; } else { - lean_dec_ref(x_71); - x_79 = lean_box(0); + lean_dec_ref(x_185); + x_235 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +x_236 = lean_box(0); +if (lean_is_scalar(x_235)) { + x_237 = lean_alloc_ctor(0, 2, 0); } else { - x_80 = x_79; + x_237 = x_235; } -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_234); +return x_237; +} +} +else +{ +lean_object* x_238; lean_object* x_239; +lean_dec(x_165); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +x_238 = lean_box(0); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_238); +lean_ctor_set(x_239, 1, x_167); +return x_239; } } } @@ -1717,296 +1232,186 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__1() { +lean_object* l_Lean_Elab_Term_StructInst_setStructSourceSyntax(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_mk_string(" .."); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(" .. "); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__3; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { +switch (lean_obj_tag(x_2)) { case 0: { -lean_object* x_2; -x_2 = l_Lean_Format_join___closed__1; -return x_2; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_unsigned_to_nat(1u); +x_4 = l_Lean_mkOptionalNode___closed__1; +x_5 = l_Lean_Syntax_setArg(x_1, x_3, x_4); +x_6 = lean_unsigned_to_nat(3u); +x_7 = l_Lean_Syntax_setArg(x_5, x_6, x_4); +return x_7; } case 1: { -lean_object* x_3; -x_3 = l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2; -return x_3; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +lean_dec(x_2); +x_9 = lean_unsigned_to_nat(1u); +x_10 = l_Lean_mkOptionalNode___closed__1; +x_11 = l_Lean_Syntax_setArg(x_1, x_9, x_10); +x_12 = lean_unsigned_to_nat(3u); +x_13 = l_Lean_Syntax_setArg(x_11, x_12, x_8); +return x_13; } default: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; -x_4 = lean_ctor_get(x_1, 1); -x_5 = lean_expr_dbg_to_string(x_4); -x_6 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_6, 0, x_5); -x_7 = 0; -x_8 = l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4; -x_9 = lean_alloc_ctor(4, 2, 1); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_6); -lean_ctor_set_uint8(x_9, sizeof(void*)*2, x_7); -return x_9; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_14 = lean_ctor_get(x_2, 0); +lean_inc(x_14); +lean_dec(x_2); +x_15 = lean_unsigned_to_nat(1u); +x_16 = l_Lean_Syntax_setArg(x_1, x_15, x_14); +x_17 = lean_unsigned_to_nat(3u); +x_18 = l_Lean_mkOptionalNode___closed__1; +x_19 = l_Lean_Syntax_setArg(x_16, x_17, x_18); +return x_19; } } } } -lean_object* l_Lean_Elab_Term_StructInst_Source_hasFormat___boxed(lean_object* x_1) { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__1() { _start: { -lean_object* x_2; -x_2 = l_Lean_Elab_Term_StructInst_Source_hasFormat(x_1); -lean_dec(x_1); +lean_object* x_1; +x_1 = lean_mk_string("invalid structure instance `with` and `..` cannot be used together"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_StructInst_Source_addSyntax(lean_object* x_1, lean_object* x_2) { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__3() { _start: { -if (lean_obj_tag(x_1) == 0) -{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); return x_2; } -else -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_array_push(x_2, x_3); -return x_4; -} -} -} -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_2__getStructSource___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_3, x_7); -lean_dec(x_7); -if (x_8 == 0) -{ -lean_object* x_9; -lean_dec(x_5); -lean_dec(x_3); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_6); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_array_fget(x_2, x_3); -lean_inc(x_10); -x_11 = l_Lean_Syntax_getKind(x_10); -x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2; -x_13 = lean_name_eq(x_11, x_12); -lean_dec(x_11); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_10); -x_14 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_14; -goto _start; -} -else -{ -uint8_t x_16; -x_16 = l_Lean_Elab_Term_StructInst_Source_isNone(x_4); -lean_dec(x_4); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; uint8_t x_19; -lean_dec(x_3); -x_17 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9; -x_18 = l_Lean_Elab_Term_throwError___rarg(x_10, x_17, x_5, x_6); -lean_dec(x_10); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -return x_18; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_18); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_23 = lean_unsigned_to_nat(1u); -x_24 = l_Lean_Syntax_getArg(x_10, x_23); -x_25 = l_Lean_Syntax_isNone(x_24); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_unsigned_to_nat(0u); -x_27 = l_Lean_Syntax_getArg(x_24, x_26); -lean_dec(x_24); -x_28 = 0; -x_29 = l_Lean_Elab_Term_isLocalTermId_x3f(x_27, x_28, x_5, x_6); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -lean_dec(x_10); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__1; -x_33 = l_unreachable_x21___rarg(x_32); -lean_inc(x_5); -x_34 = lean_apply_2(x_33, x_5, x_31); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_37; -x_4 = x_35; -x_6 = x_36; -goto _start; -} -else -{ -uint8_t x_39; -lean_dec(x_5); -lean_dec(x_3); -x_39 = !lean_is_exclusive(x_34); -if (x_39 == 0) -{ -return x_34; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_34, 0); -x_41 = lean_ctor_get(x_34, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_34); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_29, 1); -lean_inc(x_43); -lean_dec(x_29); -x_44 = lean_ctor_get(x_30, 0); -lean_inc(x_44); -lean_dec(x_30); -x_45 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_45, 0, x_10); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_46; -x_4 = x_45; -x_6 = x_43; -goto _start; -} -} -else -{ -lean_object* x_48; lean_object* x_49; -lean_dec(x_24); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_10); -x_49 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_49; -x_4 = x_48; -goto _start; -} -} -} -} -} } lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_4 = lean_unsigned_to_nat(2u); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_4 = lean_unsigned_to_nat(1u); x_5 = l_Lean_Syntax_getArg(x_1, x_4); -x_6 = l_Lean_Syntax_getArgs(x_5); -lean_dec(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_box(0); -x_9 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_2__getStructSource___spec__1(x_4, x_6, x_7, x_8, x_2, x_3); -lean_dec(x_6); -return x_9; -} -} -lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_2__getStructSource___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: +x_6 = lean_unsigned_to_nat(3u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_isNone(x_5); +if (x_8 == 0) { -lean_object* x_7; -x_7 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_2__getStructSource___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +uint8_t x_9; +x_9 = l_Lean_Syntax_isNone(x_7); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_10 = l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__3; +x_11 = l_Lean_Elab_Term_throwError___rarg(x_1, x_10, x_2, x_3); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_unsigned_to_nat(0u); +x_13 = l_Lean_Syntax_getArg(x_5, x_12); +x_14 = 0; +x_15 = l_Lean_Elab_Term_isLocalTermId_x3f(x_13, x_14, x_2, x_3); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_dec(x_5); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__1; +x_19 = l_unreachable_x21___rarg(x_18); +x_20 = lean_apply_2(x_19, x_2, x_17); +return x_20; +} +else +{ +uint8_t x_21; lean_dec(x_2); -lean_dec(x_1); -return x_7; +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_15, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +lean_dec(x_16); +x_24 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_24, 0, x_5); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_15, 0, x_24); +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_dec(x_15); +x_26 = lean_ctor_get(x_16, 0); +lean_inc(x_26); +lean_dec(x_16); +x_27 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_27, 0, x_5); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_5); +lean_dec(x_2); +x_29 = l_Lean_Syntax_isNone(x_7); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_7); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_3); +return x_31; +} +else +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_7); +x_32 = lean_box(0); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_3); +return x_33; +} +} } } lean_object* l___private_Init_Lean_Elab_StructInst_2__getStructSource___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -2022,7 +1427,7 @@ lean_object* _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_St _start: { lean_object* x_1; -x_1 = lean_mk_string("unexpected {...} notation"); +x_1 = lean_mk_string("invalid {...} notation, can't mix field and `[..]` at a given level"); return x_1; } } @@ -2050,7 +1455,7 @@ lean_object* _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_St _start: { lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, can't mix field and `[..]` at a given level"); +x_1 = lean_mk_string("invalid {...} notation, at most one `[..]` at a given level"); return x_1; } } @@ -2074,34 +1479,6 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, at most one `[..]` at a given level"); -return x_1; -} -} -lean_object* _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} lean_object* l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -2121,202 +1498,150 @@ return x_9; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; x_10 = lean_array_fget(x_2, x_3); -lean_inc(x_10); -x_11 = l_Lean_Syntax_getKind(x_10); -x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2; -x_13 = lean_name_eq(x_11, x_12); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Parser_Term_structInstField___elambda__1___closed__2; -x_15 = lean_name_eq(x_11, x_14); -lean_dec(x_11); +x_11 = lean_unsigned_to_nat(0u); +x_12 = l_Lean_Syntax_getArg(x_10, x_11); +x_13 = l_Lean_Syntax_getKind(x_12); +x_14 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_15 = lean_name_eq(x_13, x_14); +lean_dec(x_13); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_10); +x_17 = lean_nat_add(x_3, x_1); +lean_dec(x_3); +x_3 = x_17; +x_4 = x_16; +goto _start; +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_4, 0); +lean_inc(x_19); +x_20 = l_Lean_Syntax_getKind(x_19); +x_21 = lean_name_eq(x_20, x_14); +lean_dec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_10); +x_22 = lean_nat_add(x_3, x_1); +lean_dec(x_3); +x_3 = x_22; +goto _start; +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_4); lean_dec(x_3); -x_16 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; -x_17 = l_Lean_Elab_Term_throwError___rarg(x_10, x_16, x_5, x_6); +x_24 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; +x_25 = l_Lean_Elab_Term_throwError___rarg(x_10, x_24, x_5, x_6); lean_dec(x_10); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -return x_17; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_17); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_22 = lean_unsigned_to_nat(0u); -x_23 = l_Lean_Syntax_getArg(x_10, x_22); -x_24 = l_Lean_Syntax_getKind(x_23); -x_25 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; -x_26 = lean_name_eq(x_24, x_25); -lean_dec(x_24); +x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { +return x_25; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_25); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +else +{ if (lean_obj_tag(x_4) == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_10); -x_28 = lean_nat_add(x_3, x_1); +lean_object* x_30; lean_object* x_31; +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_10); +x_31 = lean_nat_add(x_3, x_1); lean_dec(x_3); -x_3 = x_28; -x_4 = x_27; +x_3 = x_31; +x_4 = x_30; goto _start; } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_4, 0); -lean_inc(x_30); -x_31 = l_Lean_Syntax_getKind(x_30); -x_32 = lean_name_eq(x_31, x_25); -lean_dec(x_31); -if (x_32 == 0) -{ -lean_object* x_33; -lean_dec(x_10); -x_33 = lean_nat_add(x_3, x_1); +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_dec(x_3); -x_3 = x_33; -goto _start; -} -else -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_33 = lean_ctor_get(x_4, 0); +lean_inc(x_33); lean_dec(x_4); -lean_dec(x_3); -x_35 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; -x_36 = l_Lean_Elab_Term_throwError___rarg(x_10, x_35, x_5, x_6); -lean_dec(x_10); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) +x_34 = l_Lean_Syntax_getKind(x_33); +x_35 = lean_name_eq(x_34, x_14); +lean_dec(x_34); +if (x_35 == 0) { -return x_36; +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; +x_37 = l_Lean_Elab_Term_throwError___rarg(x_10, x_36, x_5, x_6); +lean_dec(x_10); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +return x_37; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_36, 0); -x_39 = lean_ctor_get(x_36, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 0); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } else { -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_10); -x_42 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_42; -x_4 = x_41; -goto _start; -} -else -{ -lean_object* x_44; lean_object* x_45; uint8_t x_46; -lean_dec(x_3); -x_44 = lean_ctor_get(x_4, 0); -lean_inc(x_44); -lean_dec(x_4); -x_45 = l_Lean_Syntax_getKind(x_44); -x_46 = lean_name_eq(x_45, x_25); -lean_dec(x_45); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; -x_48 = l_Lean_Elab_Term_throwError___rarg(x_10, x_47, x_5, x_6); +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6; +x_43 = l_Lean_Elab_Term_throwError___rarg(x_10, x_42, x_5, x_6); lean_dec(x_10); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) { -return x_48; +return x_43; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_48, 0); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_48); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; -} -} -else -{ -lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_53 = l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__9; -x_54 = l_Lean_Elab_Term_throwError___rarg(x_10, x_53, x_5, x_6); -lean_dec(x_10); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -return x_54; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_54, 0); -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_54); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_43, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_43); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } } } } -else -{ -lean_object* x_59; -lean_dec(x_11); -lean_dec(x_10); -x_59 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_59; -goto _start; -} -} -} } lean_object* l___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -2468,26 +1793,62 @@ lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___close _start: { lean_object* x_1; -x_1 = lean_mk_string("s"); +x_1 = lean_mk_string("struct"); return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Util_4__regTraceClasses___closed__1; +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("modifyOp"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2; +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("s"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__7() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2; +x_3 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2495,17 +1856,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1; +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2517,67 +1878,27 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("modifyOp"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__7; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__10() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_arrayToExpr___rarg___closed__2; -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__6; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__11() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__10; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__12() { @@ -2585,34 +1906,31 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__11; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__13() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_arrayToExpr___rarg___closed__2; +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__14() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__13; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__13; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__15() { @@ -2620,8 +1938,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__10; -x_3 = lean_alloc_ctor(0, 2, 0); +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__14; +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -2630,242 +1948,302 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__18() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\n===>\n"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__18; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__19; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nval: "); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__21; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__23() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__22; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__24() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__15; +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__13; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__25() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__24; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__26() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nSource: "); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__27() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__26; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__28() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__27; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l___private_Init_Lean_Elab_StructInst_4__elabModifyOp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; uint8_t x_9; +lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; uint8_t x_11; x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_2, x_7); x_9 = l_Lean_Syntax_isNone(x_8); +x_10 = l_Lean_Elab_Term_getOptions(x_5, x_6); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_10 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); +uint8_t x_307; +x_307 = 0; +x_11 = x_307; +goto block_306; +} +else +{ +uint8_t x_308; +x_308 = 1; +x_11 = x_308; +goto block_306; +} +block_306: +{ +lean_object* x_12; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; +x_295 = lean_ctor_get(x_10, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_10, 1); +lean_inc(x_296); lean_dec(x_10); -x_13 = l_Lean_Elab_Term_getMainModule___rarg(x_12); +x_297 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_298 = l_Lean_checkTraceOption(x_295, x_297); +lean_dec(x_295); +if (x_298 == 0) +{ +x_12 = x_296; +goto block_294; +} +else +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +lean_inc(x_2); +x_299 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_299, 0, x_2); +x_300 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__28; +x_301 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_301, 0, x_299); +lean_ctor_set(x_301, 1, x_300); +lean_inc(x_3); +x_302 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_302, 0, x_3); +x_303 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_303, 0, x_301); +lean_ctor_set(x_303, 1, x_302); +lean_inc(x_5); +x_304 = l_Lean_Elab_Term_logTrace(x_297, x_1, x_303, x_5, x_296); +x_305 = lean_ctor_get(x_304, 1); +lean_inc(x_305); +lean_dec(x_304); +x_12 = x_305; +goto block_294; +} +block_294: +{ +if (x_11 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_12); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_17 = l_Lean_addMacroScope(x_14, x_16, x_11); -x_18 = lean_box(0); -x_19 = l_Lean_SourceInfo_inhabited___closed__1; -x_20 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; -x_21 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -lean_ctor_set(x_21, 2, x_17); -lean_ctor_set(x_21, 3, x_18); -x_22 = l_Array_empty___closed__1; -x_23 = lean_array_push(x_22, x_21); -x_24 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_25 = lean_array_push(x_23, x_24); -x_26 = l_Lean_mkTermIdFromIdent___closed__2; -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -x_28 = lean_unsigned_to_nat(0u); -x_29 = l_Lean_Syntax_getArg(x_8, x_28); -lean_inc(x_29); -x_30 = l_Lean_Syntax_getKind(x_29); -x_31 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; -x_32 = lean_name_eq(x_30, x_31); -lean_dec(x_30); -x_33 = l_Lean_Syntax_getArgs(x_8); -lean_dec(x_8); -x_34 = lean_array_get_size(x_33); -x_35 = l_Array_extract___rarg(x_33, x_7, x_34); -lean_dec(x_34); +x_16 = l_Lean_Elab_Term_getMainModule___rarg(x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__8; +x_20 = l_Lean_addMacroScope(x_17, x_19, x_14); +x_21 = lean_box(0); +x_22 = l_Lean_SourceInfo_inhabited___closed__1; +x_23 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__7; +x_24 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_24, 2, x_20); +lean_ctor_set(x_24, 3, x_21); +x_25 = l_Array_empty___closed__1; +x_26 = lean_array_push(x_25, x_24); +x_27 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_28 = lean_array_push(x_26, x_27); +x_29 = l_Lean_mkTermIdFromIdent___closed__2; +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = lean_unsigned_to_nat(0u); +x_32 = l_Lean_Syntax_getArg(x_8, x_31); +lean_inc(x_32); +x_33 = l_Lean_Syntax_getKind(x_32); +x_34 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_35 = lean_name_eq(x_33, x_34); lean_dec(x_33); -x_36 = l_Lean_nullKind; -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_mkOptionalNode___closed__1; -lean_inc(x_1); -x_39 = l_Lean_Syntax_setArg(x_1, x_7, x_38); -x_40 = l_List_reprAux___main___rarg___closed__1; -x_41 = l_Lean_mkAtomFrom(x_1, x_40); -x_42 = l_Lean_Syntax_getArg(x_2, x_28); -x_43 = l_Lean_Syntax_getArg(x_42, x_7); -lean_dec(x_42); -x_44 = l_Lean_Syntax_getArg(x_3, x_7); -x_45 = l_Lean_Syntax_getArg(x_44, x_28); -lean_dec(x_44); -x_46 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_15); -if (x_32 == 0) +x_36 = l_Lean_Syntax_getArgs(x_8); +lean_dec(x_8); +x_37 = lean_array_get_size(x_36); +x_38 = l_Array_extract___rarg(x_36, x_7, x_37); +lean_dec(x_37); +lean_dec(x_36); +x_39 = l_Lean_nullKind; +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Syntax_getArg(x_2, x_31); +x_42 = l_Lean_Syntax_getArg(x_41, x_7); +lean_dec(x_41); +x_43 = l_Lean_Syntax_getArg(x_3, x_31); +x_44 = l_Lean_Elab_Term_getOptions(x_5, x_18); +if (x_35 == 0) { -lean_object* x_200; -x_200 = l_Lean_Syntax_getArg(x_29, x_7); -lean_dec(x_29); -x_47 = x_200; -goto block_199; +lean_object* x_183; +x_183 = l_Lean_Syntax_getArg(x_32, x_7); +lean_dec(x_32); +x_45 = x_183; +goto block_182; } else { -x_47 = x_29; -goto block_199; +x_45 = x_32; +goto block_182; } -block_199: +block_182: { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_48 = l_Lean_Syntax_setArg(x_2, x_28, x_47); -x_49 = l_Lean_Syntax_setArg(x_48, x_7, x_37); -x_50 = l_Lean_Parser_declareBuiltinParser___closed__8; -x_51 = lean_array_push(x_50, x_49); -x_52 = lean_array_push(x_51, x_41); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = l_Lean_Syntax_setArg(x_2, x_31, x_45); +x_47 = l_Lean_Syntax_setArg(x_46, x_7, x_40); +x_48 = l_Lean_mkOptionalNode___closed__2; +x_49 = lean_array_push(x_48, x_47); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_39); +lean_ctor_set(x_50, 1, x_49); if (lean_obj_tag(x_3) == 1) { -uint8_t x_141; -x_141 = !lean_is_exclusive(x_3); -if (x_141 == 0) +uint8_t x_166; +x_166 = !lean_is_exclusive(x_3); +if (x_166 == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; -x_142 = lean_ctor_get(x_3, 0); -x_143 = lean_ctor_get(x_3, 1); -x_144 = lean_array_get_size(x_143); -x_145 = lean_nat_dec_lt(x_7, x_144); -lean_dec(x_144); -if (x_145 == 0) +lean_object* x_167; lean_object* x_168; uint8_t x_169; +x_167 = lean_ctor_get(x_3, 1); +x_168 = lean_array_get_size(x_167); +x_169 = lean_nat_dec_lt(x_31, x_168); +lean_dec(x_168); +if (x_169 == 0) { -lean_dec(x_27); -x_53 = x_3; -goto block_140; +lean_dec(x_30); +x_51 = x_3; +goto block_165; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_array_fget(x_143, x_7); -x_147 = lean_box(0); -x_148 = lean_array_fset(x_143, x_7, x_147); -switch (lean_obj_tag(x_146)) { -case 1: -{ -uint8_t x_149; -x_149 = !lean_is_exclusive(x_146); -if (x_149 == 0) -{ -lean_object* x_150; lean_object* x_151; uint8_t x_152; -x_150 = lean_ctor_get(x_146, 1); -x_151 = lean_array_get_size(x_150); -x_152 = lean_nat_dec_lt(x_28, x_151); -lean_dec(x_151); -if (x_152 == 0) -{ -lean_object* x_153; -lean_dec(x_27); -x_153 = lean_array_fset(x_148, x_7, x_146); -lean_ctor_set(x_3, 1, x_153); -x_53 = x_3; -goto block_140; -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_array_fset(x_150, x_28, x_147); -x_155 = lean_array_fset(x_154, x_28, x_27); -lean_ctor_set(x_146, 1, x_155); -x_156 = lean_array_fset(x_148, x_7, x_146); -lean_ctor_set(x_3, 1, x_156); -x_53 = x_3; -goto block_140; -} -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -x_157 = lean_ctor_get(x_146, 0); -x_158 = lean_ctor_get(x_146, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_146); -x_159 = lean_array_get_size(x_158); -x_160 = lean_nat_dec_lt(x_28, x_159); -lean_dec(x_159); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; -lean_dec(x_27); -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_157); -lean_ctor_set(x_161, 1, x_158); -x_162 = lean_array_fset(x_148, x_7, x_161); -lean_ctor_set(x_3, 1, x_162); -x_53 = x_3; -goto block_140; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_163 = lean_array_fset(x_158, x_28, x_147); -x_164 = lean_array_fset(x_163, x_28, x_27); -x_165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_165, 0, x_157); -lean_ctor_set(x_165, 1, x_164); -x_166 = lean_array_fset(x_148, x_7, x_165); -lean_ctor_set(x_3, 1, x_166); -x_53 = x_3; -goto block_140; -} -} -} -case 2: -{ -lean_object* x_167; uint8_t x_168; -lean_free_object(x_3); -lean_dec(x_27); -lean_inc(x_146); -x_167 = lean_array_fset(x_148, x_7, x_146); -x_168 = !lean_is_exclusive(x_146); -if (x_168 == 0) -{ -lean_object* x_169; lean_object* x_170; -x_169 = lean_ctor_get(x_146, 1); -lean_dec(x_169); -x_170 = lean_ctor_get(x_146, 0); -lean_dec(x_170); -lean_ctor_set_tag(x_146, 1); -lean_ctor_set(x_146, 1, x_167); -lean_ctor_set(x_146, 0, x_142); -x_53 = x_146; -goto block_140; -} -else -{ -lean_object* x_171; -lean_dec(x_146); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_142); -lean_ctor_set(x_171, 1, x_167); -x_53 = x_171; -goto block_140; -} -} -default: -{ -lean_object* x_172; -lean_dec(x_27); -x_172 = lean_array_fset(x_148, x_7, x_146); +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_box(0); +x_171 = lean_array_fset(x_167, x_31, x_170); +x_172 = lean_array_fset(x_171, x_31, x_30); lean_ctor_set(x_3, 1, x_172); -x_53 = x_3; -goto block_140; -} -} +x_51 = x_3; +goto block_165; } } else @@ -2877,249 +2255,240 @@ lean_inc(x_174); lean_inc(x_173); lean_dec(x_3); x_175 = lean_array_get_size(x_174); -x_176 = lean_nat_dec_lt(x_7, x_175); +x_176 = lean_nat_dec_lt(x_31, x_175); lean_dec(x_175); if (x_176 == 0) { lean_object* x_177; -lean_dec(x_27); +lean_dec(x_30); x_177 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_177, 0, x_173); lean_ctor_set(x_177, 1, x_174); -x_53 = x_177; -goto block_140; +x_51 = x_177; +goto block_165; } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_array_fget(x_174, x_7); -x_179 = lean_box(0); -x_180 = lean_array_fset(x_174, x_7, x_179); -switch (lean_obj_tag(x_178)) { -case 1: -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; -x_181 = lean_ctor_get(x_178, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_178, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_183 = x_178; -} else { - lean_dec_ref(x_178); - x_183 = lean_box(0); -} -x_184 = lean_array_get_size(x_182); -x_185 = lean_nat_dec_lt(x_28, x_184); -lean_dec(x_184); -if (x_185 == 0) -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_27); -if (lean_is_scalar(x_183)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_183; -} -lean_ctor_set(x_186, 0, x_181); -lean_ctor_set(x_186, 1, x_182); -x_187 = lean_array_fset(x_180, x_7, x_186); -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_173); -lean_ctor_set(x_188, 1, x_187); -x_53 = x_188; -goto block_140; -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_189 = lean_array_fset(x_182, x_28, x_179); -x_190 = lean_array_fset(x_189, x_28, x_27); -if (lean_is_scalar(x_183)) { - x_191 = lean_alloc_ctor(1, 2, 0); -} else { - x_191 = x_183; -} -lean_ctor_set(x_191, 0, x_181); -lean_ctor_set(x_191, 1, x_190); -x_192 = lean_array_fset(x_180, x_7, x_191); -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_173); -lean_ctor_set(x_193, 1, x_192); -x_53 = x_193; -goto block_140; -} -} -case 2: -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_27); -lean_inc(x_178); -x_194 = lean_array_fset(x_180, x_7, x_178); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_195 = x_178; -} else { - lean_dec_ref(x_178); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; - lean_ctor_set_tag(x_196, 1); -} -lean_ctor_set(x_196, 0, x_173); -lean_ctor_set(x_196, 1, x_194); -x_53 = x_196; -goto block_140; -} -default: -{ -lean_object* x_197; lean_object* x_198; -lean_dec(x_27); -x_197 = lean_array_fset(x_180, x_7, x_178); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_173); -lean_ctor_set(x_198, 1, x_197); -x_53 = x_198; -goto block_140; -} -} +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_178 = lean_box(0); +x_179 = lean_array_fset(x_174, x_31, x_178); +x_180 = lean_array_fset(x_179, x_31, x_30); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_173); +lean_ctor_set(x_181, 1, x_180); +x_51 = x_181; +goto block_165; } } } else { -lean_dec(x_27); -x_53 = x_3; +lean_dec(x_30); +x_51 = x_3; +goto block_165; +} +block_165: +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +lean_inc(x_1); +x_52 = l_Lean_Syntax_setArg(x_1, x_7, x_51); +x_53 = lean_unsigned_to_nat(2u); +x_54 = l_Lean_Syntax_setArg(x_52, x_53, x_50); +x_154 = lean_ctor_get(x_44, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_44, 1); +lean_inc(x_155); +lean_dec(x_44); +x_156 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_157 = l_Lean_checkTraceOption(x_154, x_156); +lean_dec(x_154); +if (x_157 == 0) +{ +x_55 = x_155; +goto block_153; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_inc(x_1); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_1); +x_159 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__23; +x_160 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_160, 0, x_158); +lean_ctor_set(x_160, 1, x_159); +lean_inc(x_54); +x_161 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_161, 0, x_54); +x_162 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +lean_inc(x_5); +x_163 = l_Lean_Elab_Term_logTrace(x_156, x_1, x_162, x_5, x_155); +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +lean_dec(x_163); +x_55 = x_164; +goto block_153; +} +block_153: +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_56 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Elab_Term_getMainModule___rarg(x_58); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = lean_array_push(x_25, x_43); +x_63 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9; +x_64 = lean_array_push(x_62, x_63); +x_65 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +lean_inc(x_57); +lean_inc(x_60); +x_66 = l_Lean_addMacroScope(x_60, x_65, x_57); +x_67 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__11; +x_68 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__15; +x_69 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_69, 0, x_22); +lean_ctor_set(x_69, 1, x_67); +lean_ctor_set(x_69, 2, x_66); +lean_ctor_set(x_69, 3, x_68); +x_70 = lean_array_push(x_64, x_69); +x_71 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = lean_array_push(x_25, x_72); +x_74 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +lean_inc(x_57); +lean_inc(x_60); +x_75 = l_Lean_addMacroScope(x_60, x_74, x_57); +x_76 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +x_77 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_77, 0, x_22); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_77, 2, x_75); +lean_ctor_set(x_77, 3, x_21); +x_78 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; +x_79 = lean_array_push(x_78, x_77); +x_80 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_81 = lean_array_push(x_79, x_80); +x_82 = lean_array_push(x_81, x_42); +x_83 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; +x_84 = lean_array_push(x_82, x_83); +x_85 = l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_84); +x_87 = lean_array_push(x_25, x_86); +x_88 = l_Lean_addMacroScope(x_60, x_19, x_57); +x_89 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_89, 0, x_22); +lean_ctor_set(x_89, 1, x_23); +lean_ctor_set(x_89, 2, x_88); +lean_ctor_set(x_89, 3, x_21); +x_90 = lean_array_push(x_25, x_89); +x_91 = lean_array_push(x_90, x_27); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_29); +lean_ctor_set(x_92, 1, x_91); +x_93 = lean_array_push(x_25, x_92); +x_94 = l_Lean_nullKind___closed__2; +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +x_96 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_97 = lean_array_push(x_96, x_95); +x_98 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_99 = lean_array_push(x_97, x_98); +x_100 = lean_array_push(x_99, x_54); +x_101 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +x_103 = lean_array_push(x_25, x_102); +x_104 = lean_array_push(x_103, x_27); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_94); +lean_ctor_set(x_105, 1, x_104); +x_106 = lean_array_push(x_78, x_105); +x_107 = lean_array_push(x_106, x_83); +x_108 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = lean_array_push(x_87, x_109); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_94); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_array_push(x_73, x_111); +x_113 = l_Lean_mkAppStx___closed__8; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_112); +x_141 = l_Lean_Elab_Term_getOptions(x_5, x_61); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec(x_141); +x_144 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_145 = l_Lean_checkTraceOption(x_142, x_144); +lean_dec(x_142); +if (x_145 == 0) +{ +x_115 = x_143; +goto block_140; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_inc(x_1); +x_146 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_146, 0, x_1); +x_147 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_148 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +lean_inc(x_114); +x_149 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_149, 0, x_114); +x_150 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +lean_inc(x_5); +x_151 = l_Lean_Elab_Term_logTrace(x_144, x_1, x_150, x_5, x_143); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +x_115 = x_152; goto block_140; } block_140: { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_54 = lean_ctor_get(x_46, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_46, 1); -lean_inc(x_55); -lean_dec(x_46); -x_56 = lean_array_push(x_52, x_53); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_36); -lean_ctor_set(x_57, 1, x_56); -x_58 = lean_unsigned_to_nat(2u); -x_59 = l_Lean_Syntax_setArg(x_39, x_58, x_57); -x_60 = l_Lean_Elab_Term_getMainModule___rarg(x_55); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_array_push(x_22, x_45); -x_64 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5; -x_65 = lean_array_push(x_63, x_64); -x_66 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9; -lean_inc(x_54); -lean_inc(x_61); -x_67 = l_Lean_addMacroScope(x_61, x_66, x_54); -x_68 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__8; -x_69 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__12; -x_70 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_70, 0, x_19); -lean_ctor_set(x_70, 1, x_68); -lean_ctor_set(x_70, 2, x_67); -lean_ctor_set(x_70, 3, x_69); -x_71 = lean_array_push(x_65, x_70); -x_72 = l_Lean_Parser_Term_proj___elambda__1___closed__2; -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_71); -x_74 = lean_array_push(x_22, x_73); -x_75 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; -lean_inc(x_54); -lean_inc(x_61); -x_76 = l_Lean_addMacroScope(x_61, x_75, x_54); -x_77 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__14; -x_78 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_78, 0, x_19); -lean_ctor_set(x_78, 1, x_77); -lean_ctor_set(x_78, 2, x_76); -lean_ctor_set(x_78, 3, x_18); -x_79 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; -x_80 = lean_array_push(x_79, x_78); -x_81 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_82 = lean_array_push(x_80, x_81); -x_83 = lean_array_push(x_82, x_43); -x_84 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; -x_85 = lean_array_push(x_83, x_84); -x_86 = l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_85); -x_88 = lean_array_push(x_22, x_87); -x_89 = l_Lean_addMacroScope(x_61, x_16, x_54); -x_90 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_90, 0, x_19); -lean_ctor_set(x_90, 1, x_20); -lean_ctor_set(x_90, 2, x_89); -lean_ctor_set(x_90, 3, x_18); -x_91 = lean_array_push(x_22, x_90); -x_92 = lean_array_push(x_91, x_24); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_26); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_array_push(x_22, x_93); -x_95 = l_Lean_nullKind___closed__2; -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_94); -x_97 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_98 = lean_array_push(x_97, x_96); -x_99 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_100 = lean_array_push(x_98, x_99); -x_101 = lean_array_push(x_100, x_59); -x_102 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -x_104 = lean_array_push(x_22, x_103); -x_105 = lean_array_push(x_104, x_24); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_95); -lean_ctor_set(x_106, 1, x_105); -x_107 = lean_array_push(x_79, x_106); -x_108 = lean_array_push(x_107, x_84); -x_109 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_108); -x_111 = lean_array_push(x_88, x_110); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_95); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_array_push(x_74, x_112); -x_114 = l_Lean_mkAppStx___closed__8; -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_113); +uint8_t x_116; x_116 = !lean_is_exclusive(x_5); if (x_116 == 0) { lean_object* x_117; lean_object* x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; x_117 = lean_ctor_get(x_5, 8); -lean_inc(x_115); +lean_inc(x_114); x_118 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_118, 0, x_1); -lean_ctor_set(x_118, 1, x_115); +lean_ctor_set(x_118, 1, x_114); x_119 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_119, 0, x_118); lean_ctor_set(x_119, 1, x_117); lean_ctor_set(x_5, 8, x_119); x_120 = 1; -x_121 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_120, x_120, x_115, x_5, x_62); +x_121 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_120, x_120, x_114, x_5, x_115); return x_121; } else @@ -3149,10 +2518,10 @@ lean_inc(x_124); lean_inc(x_123); lean_inc(x_122); lean_dec(x_5); -lean_inc(x_115); +lean_inc(x_114); x_135 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_135, 0, x_1); -lean_ctor_set(x_135, 1, x_115); +lean_ctor_set(x_135, 1, x_114); x_136 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_136, 0, x_135); lean_ctor_set(x_136, 1, x_130); @@ -3171,351 +2540,246 @@ lean_ctor_set_uint8(x_137, sizeof(void*)*10, x_132); lean_ctor_set_uint8(x_137, sizeof(void*)*10 + 1, x_133); lean_ctor_set_uint8(x_137, sizeof(void*)*10 + 2, x_134); x_138 = 1; -x_139 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_138, x_138, x_115, x_137, x_62); +x_139 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_138, x_138, x_114, x_137, x_115); return x_139; } } } } +} +} else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; uint8_t x_274; +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; lean_dec(x_8); -x_201 = lean_unsigned_to_nat(3u); -x_202 = l_Lean_Syntax_getArg(x_2, x_201); -x_203 = lean_unsigned_to_nat(0u); -x_204 = l_Lean_Syntax_getArg(x_2, x_203); +x_184 = lean_unsigned_to_nat(3u); +x_185 = l_Lean_Syntax_getArg(x_2, x_184); +x_186 = lean_unsigned_to_nat(0u); +x_187 = l_Lean_Syntax_getArg(x_2, x_186); lean_dec(x_2); -x_205 = l_Lean_Syntax_getArg(x_204, x_7); -lean_dec(x_204); -x_206 = l_Lean_Syntax_getArg(x_3, x_7); +x_188 = l_Lean_Syntax_getArg(x_187, x_7); +lean_dec(x_187); +x_189 = l_Lean_Syntax_getArg(x_3, x_186); lean_dec(x_3); -x_207 = l_Lean_Syntax_getArg(x_206, x_203); -lean_dec(x_206); -x_208 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6); -x_209 = lean_ctor_get(x_208, 0); -lean_inc(x_209); -x_210 = lean_ctor_get(x_208, 1); -lean_inc(x_210); -lean_dec(x_208); -x_211 = l_Lean_Elab_Term_getMainModule___rarg(x_210); -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -lean_dec(x_211); -x_214 = l_Array_empty___closed__1; -x_215 = lean_array_push(x_214, x_207); -x_216 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__5; -x_217 = lean_array_push(x_215, x_216); -x_218 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9; -lean_inc(x_209); -lean_inc(x_212); -x_219 = l_Lean_addMacroScope(x_212, x_218, x_209); -x_220 = lean_box(0); -x_221 = l_Lean_SourceInfo_inhabited___closed__1; -x_222 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__8; -x_223 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16; -x_224 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_224, 0, x_221); -lean_ctor_set(x_224, 1, x_222); -lean_ctor_set(x_224, 2, x_219); -lean_ctor_set(x_224, 3, x_223); -x_225 = lean_array_push(x_217, x_224); -x_226 = l_Lean_Parser_Term_proj___elambda__1___closed__2; -x_227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_225); -x_228 = lean_array_push(x_214, x_227); -x_229 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; -lean_inc(x_209); -lean_inc(x_212); -x_230 = l_Lean_addMacroScope(x_212, x_229, x_209); -x_231 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__14; -x_232 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_232, 0, x_221); -lean_ctor_set(x_232, 1, x_231); -lean_ctor_set(x_232, 2, x_230); -lean_ctor_set(x_232, 3, x_220); -x_233 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; -x_234 = lean_array_push(x_233, x_232); -x_235 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; -x_236 = lean_array_push(x_234, x_235); -x_237 = lean_array_push(x_236, x_205); -x_238 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; -x_239 = lean_array_push(x_237, x_238); -x_240 = l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; -x_241 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_239); -x_242 = lean_array_push(x_214, x_241); -x_243 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4; -x_244 = l_Lean_addMacroScope(x_212, x_243, x_209); -x_245 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__3; -x_246 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_246, 0, x_221); +x_190 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_12); +x_191 = lean_ctor_get(x_190, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_190, 1); +lean_inc(x_192); +lean_dec(x_190); +x_193 = l_Lean_Elab_Term_getMainModule___rarg(x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); +lean_inc(x_195); +lean_dec(x_193); +x_196 = l_Array_empty___closed__1; +x_197 = lean_array_push(x_196, x_189); +x_198 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__9; +x_199 = lean_array_push(x_197, x_198); +x_200 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__12; +lean_inc(x_191); +lean_inc(x_194); +x_201 = l_Lean_addMacroScope(x_194, x_200, x_191); +x_202 = lean_box(0); +x_203 = l_Lean_SourceInfo_inhabited___closed__1; +x_204 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__11; +x_205 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__25; +x_206 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_206, 0, x_203); +lean_ctor_set(x_206, 1, x_204); +lean_ctor_set(x_206, 2, x_201); +lean_ctor_set(x_206, 3, x_205); +x_207 = lean_array_push(x_199, x_206); +x_208 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_207); +x_210 = lean_array_push(x_196, x_209); +x_211 = l___private_Init_Lean_Elab_App_18__elabAppLValsAux___main___closed__2; +lean_inc(x_191); +lean_inc(x_194); +x_212 = l_Lean_addMacroScope(x_194, x_211, x_191); +x_213 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17; +x_214 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_214, 0, x_203); +lean_ctor_set(x_214, 1, x_213); +lean_ctor_set(x_214, 2, x_212); +lean_ctor_set(x_214, 3, x_202); +x_215 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; +x_216 = lean_array_push(x_215, x_214); +x_217 = l___private_Init_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__4; +x_218 = lean_array_push(x_216, x_217); +x_219 = lean_array_push(x_218, x_188); +x_220 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; +x_221 = lean_array_push(x_219, x_220); +x_222 = l_Lean_Parser_Term_namedArgument___elambda__1___closed__2; +x_223 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_221); +x_224 = lean_array_push(x_196, x_223); +x_225 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__8; +x_226 = l_Lean_addMacroScope(x_194, x_225, x_191); +x_227 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__7; +x_228 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_228, 0, x_203); +lean_ctor_set(x_228, 1, x_227); +lean_ctor_set(x_228, 2, x_226); +lean_ctor_set(x_228, 3, x_202); +x_229 = lean_array_push(x_196, x_228); +x_230 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_231 = lean_array_push(x_229, x_230); +x_232 = l_Lean_mkTermIdFromIdent___closed__2; +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_231); +x_234 = lean_array_push(x_196, x_233); +x_235 = l_Lean_nullKind___closed__2; +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_235); +lean_ctor_set(x_236, 1, x_234); +x_237 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_238 = lean_array_push(x_237, x_236); +x_239 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_240 = lean_array_push(x_238, x_239); +x_241 = lean_array_push(x_240, x_185); +x_242 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_241); +x_244 = lean_array_push(x_196, x_243); +x_245 = lean_array_push(x_244, x_230); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_235); lean_ctor_set(x_246, 1, x_245); -lean_ctor_set(x_246, 2, x_244); -lean_ctor_set(x_246, 3, x_220); -x_247 = lean_array_push(x_214, x_246); -x_248 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_249 = lean_array_push(x_247, x_248); -x_250 = l_Lean_mkTermIdFromIdent___closed__2; -x_251 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_249); -x_252 = lean_array_push(x_214, x_251); -x_253 = l_Lean_nullKind___closed__2; -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_252); -x_255 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_256 = lean_array_push(x_255, x_254); -x_257 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_258 = lean_array_push(x_256, x_257); -x_259 = lean_array_push(x_258, x_202); -x_260 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_261 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_259); -x_262 = lean_array_push(x_214, x_261); -x_263 = lean_array_push(x_262, x_248); -x_264 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_264, 0, x_253); -lean_ctor_set(x_264, 1, x_263); -x_265 = lean_array_push(x_233, x_264); -x_266 = lean_array_push(x_265, x_238); -x_267 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_268 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_268, 0, x_267); -lean_ctor_set(x_268, 1, x_266); -x_269 = lean_array_push(x_242, x_268); -x_270 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_270, 0, x_253); -lean_ctor_set(x_270, 1, x_269); -x_271 = lean_array_push(x_228, x_270); -x_272 = l_Lean_mkAppStx___closed__8; -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_271); -x_274 = !lean_is_exclusive(x_5); -if (x_274 == 0) +x_247 = lean_array_push(x_215, x_246); +x_248 = lean_array_push(x_247, x_220); +x_249 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_250 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_250, 0, x_249); +lean_ctor_set(x_250, 1, x_248); +x_251 = lean_array_push(x_224, x_250); +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_235); +lean_ctor_set(x_252, 1, x_251); +x_253 = lean_array_push(x_210, x_252); +x_254 = l_Lean_mkAppStx___closed__8; +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_253); +x_282 = l_Lean_Elab_Term_getOptions(x_5, x_195); +x_283 = lean_ctor_get(x_282, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_282, 1); +lean_inc(x_284); +lean_dec(x_282); +x_285 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__4; +x_286 = l_Lean_checkTraceOption(x_283, x_285); +lean_dec(x_283); +if (x_286 == 0) { -lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; -x_275 = lean_ctor_get(x_5, 8); -lean_inc(x_273); +x_256 = x_284; +goto block_281; +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_inc(x_1); +x_287 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_287, 0, x_1); +x_288 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20; +x_289 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +lean_inc(x_255); +x_290 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_290, 0, x_255); +x_291 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_290); +lean_inc(x_5); +x_292 = l_Lean_Elab_Term_logTrace(x_285, x_1, x_291, x_5, x_284); +x_293 = lean_ctor_get(x_292, 1); +lean_inc(x_293); +lean_dec(x_292); +x_256 = x_293; +goto block_281; +} +block_281: +{ +uint8_t x_257; +x_257 = !lean_is_exclusive(x_5); +if (x_257 == 0) +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; lean_object* x_262; +x_258 = lean_ctor_get(x_5, 8); +lean_inc(x_255); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_1); +lean_ctor_set(x_259, 1, x_255); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_259); +lean_ctor_set(x_260, 1, x_258); +lean_ctor_set(x_5, 8, x_260); +x_261 = 1; +x_262 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_261, x_261, x_255, x_5, x_256); +return x_262; +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; uint8_t x_274; uint8_t x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; lean_object* x_280; +x_263 = lean_ctor_get(x_5, 0); +x_264 = lean_ctor_get(x_5, 1); +x_265 = lean_ctor_get(x_5, 2); +x_266 = lean_ctor_get(x_5, 3); +x_267 = lean_ctor_get(x_5, 4); +x_268 = lean_ctor_get(x_5, 5); +x_269 = lean_ctor_get(x_5, 6); +x_270 = lean_ctor_get(x_5, 7); +x_271 = lean_ctor_get(x_5, 8); +x_272 = lean_ctor_get(x_5, 9); +x_273 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +x_274 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); +x_275 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +lean_inc(x_272); +lean_inc(x_271); +lean_inc(x_270); +lean_inc(x_269); +lean_inc(x_268); +lean_inc(x_267); +lean_inc(x_266); +lean_inc(x_265); +lean_inc(x_264); +lean_inc(x_263); +lean_dec(x_5); +lean_inc(x_255); x_276 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_276, 0, x_1); -lean_ctor_set(x_276, 1, x_273); +lean_ctor_set(x_276, 1, x_255); x_277 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_275); -lean_ctor_set(x_5, 8, x_277); -x_278 = 1; -x_279 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_278, x_278, x_273, x_5, x_213); -return x_279; -} -else -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; uint8_t x_291; uint8_t x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; uint8_t x_296; lean_object* x_297; -x_280 = lean_ctor_get(x_5, 0); -x_281 = lean_ctor_get(x_5, 1); -x_282 = lean_ctor_get(x_5, 2); -x_283 = lean_ctor_get(x_5, 3); -x_284 = lean_ctor_get(x_5, 4); -x_285 = lean_ctor_get(x_5, 5); -x_286 = lean_ctor_get(x_5, 6); -x_287 = lean_ctor_get(x_5, 7); -x_288 = lean_ctor_get(x_5, 8); -x_289 = lean_ctor_get(x_5, 9); -x_290 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_291 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_292 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -lean_inc(x_289); -lean_inc(x_288); -lean_inc(x_287); -lean_inc(x_286); -lean_inc(x_285); -lean_inc(x_284); -lean_inc(x_283); -lean_inc(x_282); -lean_inc(x_281); -lean_inc(x_280); -lean_dec(x_5); -lean_inc(x_273); -x_293 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_293, 0, x_1); -lean_ctor_set(x_293, 1, x_273); -x_294 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_288); -x_295 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_295, 0, x_280); -lean_ctor_set(x_295, 1, x_281); -lean_ctor_set(x_295, 2, x_282); -lean_ctor_set(x_295, 3, x_283); -lean_ctor_set(x_295, 4, x_284); -lean_ctor_set(x_295, 5, x_285); -lean_ctor_set(x_295, 6, x_286); -lean_ctor_set(x_295, 7, x_287); -lean_ctor_set(x_295, 8, x_294); -lean_ctor_set(x_295, 9, x_289); -lean_ctor_set_uint8(x_295, sizeof(void*)*10, x_290); -lean_ctor_set_uint8(x_295, sizeof(void*)*10 + 1, x_291); -lean_ctor_set_uint8(x_295, sizeof(void*)*10 + 2, x_292); -x_296 = 1; -x_297 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_296, x_296, x_273, x_295, x_213); -return x_297; +lean_ctor_set(x_277, 1, x_271); +x_278 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_278, 0, x_263); +lean_ctor_set(x_278, 1, x_264); +lean_ctor_set(x_278, 2, x_265); +lean_ctor_set(x_278, 3, x_266); +lean_ctor_set(x_278, 4, x_267); +lean_ctor_set(x_278, 5, x_268); +lean_ctor_set(x_278, 6, x_269); +lean_ctor_set(x_278, 7, x_270); +lean_ctor_set(x_278, 8, x_277); +lean_ctor_set(x_278, 9, x_272); +lean_ctor_set_uint8(x_278, sizeof(void*)*10, x_273); +lean_ctor_set_uint8(x_278, sizeof(void*)*10 + 1, x_274); +lean_ctor_set_uint8(x_278, sizeof(void*)*10 + 2, x_275); +x_279 = 1; +x_280 = l_Lean_Elab_Term_elabTermAux___main(x_4, x_279, x_279, x_255, x_278, x_256); +return x_280; } } } } -lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_4; -lean_dec(x_1); -x_4 = l_List_reverse___rarg(x_3); -return x_4; -} -else -{ -uint8_t x_5; -x_5 = !lean_is_exclusive(x_2); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -x_9 = l_List_isEmpty___rarg(x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_free_object(x_2); -lean_dec(x_6); -x_2 = x_7; -goto _start; -} -else -{ -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_6, 0); -lean_inc(x_11); -lean_inc(x_1); -x_12 = l_Lean_isStructureLike(x_1, x_11); -if (x_12 == 0) -{ -lean_free_object(x_2); -lean_dec(x_6); -x_2 = x_7; -goto _start; -} -else -{ -lean_ctor_set(x_2, 1, x_3); -{ -lean_object* _tmp_1 = x_7; -lean_object* _tmp_2 = x_2; -x_2 = _tmp_1; -x_3 = _tmp_2; -} -goto _start; -} -} -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_ctor_get(x_2, 0); -x_16 = lean_ctor_get(x_2, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_2); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -x_18 = l_List_isEmpty___rarg(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_dec(x_15); -x_2 = x_16; -goto _start; -} -else -{ -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_15, 0); -lean_inc(x_20); -lean_inc(x_1); -x_21 = l_Lean_isStructureLike(x_1, x_20); -if (x_21 == 0) -{ -lean_dec(x_15); -x_2 = x_16; -goto _start; -} -else -{ -lean_object* x_23; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_15); -lean_ctor_set(x_23, 1, x_3); -x_2 = x_16; -x_3 = x_23; -goto _start; -} -} -} -} -} -} -lean_object* l_List_map___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__2(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = lean_box(0); -return x_2; -} -else -{ -uint8_t x_3; -x_3 = !lean_is_exclusive(x_1); -if (x_3 == 0) -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -lean_dec(x_4); -x_7 = l_List_map___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__2(x_5); -lean_ctor_set(x_1, 1, x_7); -lean_ctor_set(x_1, 0, x_6); -return x_1; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -lean_inc(x_8); -lean_dec(x_1); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_List_map___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__2(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -return x_12; -} } } } @@ -3523,7 +2787,7 @@ lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___clos _start: { lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, structure expected"); +x_1 = lean_mk_string("invalid {...} notation, expected type is not of the form (C ...)"); return x_1; } } @@ -3551,7 +2815,7 @@ lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___clos _start: { lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, ambiguous "); +x_1 = lean_mk_string("invalid {...} notation, source type is not of the form (C ...)"); return x_1; } } @@ -3575,591 +2839,583 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, expected type is not of the form (C ...)"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, source type is not of the form (C ...)"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} lean_object* l___private_Init_Lean_Elab_StructInst_5__getStructName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = lean_unsigned_to_nat(1u); -x_7 = l_Lean_Syntax_getArg(x_1, x_6); -x_8 = l_Lean_Syntax_isNone(x_7); -if (x_8 == 0) +lean_object* x_6; +x_6 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_4, x_5); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_dec(x_3); -lean_dec(x_2); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lean_Syntax_getIdAt(x_7, x_9); -x_11 = l_Lean_Elab_Term_resolveGlobalName(x_10, x_4, x_5); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Elab_Term_getEnv___rarg(x_13); -x_15 = !lean_is_exclusive(x_14); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_14, 1); -x_18 = lean_box(0); -x_19 = l_List_filterAux___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__1(x_16, x_12, x_18); -x_20 = l_List_map___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__2(x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_free_object(x_14); -x_21 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__3; -x_22 = l_Lean_Elab_Term_throwError___rarg(x_7, x_21, x_4, x_17); -lean_dec(x_7); -return x_22; -} -else -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; -lean_dec(x_7); -lean_dec(x_4); -x_24 = lean_ctor_get(x_20, 0); -lean_inc(x_24); -lean_dec(x_20); -lean_ctor_set(x_14, 0, x_24); -return x_14; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_dec(x_23); -lean_free_object(x_14); -x_25 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_20); -x_26 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; -x_29 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = l_Lean_Elab_Term_throwError___rarg(x_7, x_29, x_4, x_17); -lean_dec(x_7); -return x_30; -} -} -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_14, 0); -x_32 = lean_ctor_get(x_14, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_14); -x_33 = lean_box(0); -x_34 = l_List_filterAux___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__1(x_31, x_12, x_33); -x_35 = l_List_map___main___at___private_Init_Lean_Elab_StructInst_5__getStructName___spec__2(x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__3; -x_37 = l_Lean_Elab_Term_throwError___rarg(x_7, x_36, x_4, x_32); -lean_dec(x_7); -return x_37; -} -else -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; -lean_dec(x_7); -lean_dec(x_4); -x_39 = lean_ctor_get(x_35, 0); -lean_inc(x_39); -lean_dec(x_35); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_32); -return x_40; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_38); -x_41 = l_List_toString___at_Lean_Elab_OpenDecl_HasToString___spec__2(x_35); -x_42 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; -x_45 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Elab_Term_throwError___rarg(x_7, x_45, x_4, x_32); -lean_dec(x_7); -return x_46; -} -} -} -} -else -{ -lean_object* x_47; -lean_dec(x_7); -x_47 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_4, x_5); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); +lean_object* x_7; lean_object* x_8; +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); if (lean_obj_tag(x_2) == 0) { if (lean_obj_tag(x_3) == 2) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_3, 1); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_3, 1); +lean_inc(x_24); +lean_dec(x_3); +lean_inc(x_4); +x_25 = l_Lean_Elab_Term_inferType(x_1, x_24, x_4, x_7); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_4); +x_28 = l_Lean_Elab_Term_whnf(x_1, x_26, x_4, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = l_Lean_Expr_getAppFn___main(x_29); +x_32 = l_Lean_Elab_Term_tryPostponeIfMVar(x_29, x_4, x_30); +if (lean_obj_tag(x_32) == 0) +{ +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_32, 1); +x_35 = lean_ctor_get(x_32, 0); +lean_dec(x_35); +if (lean_obj_tag(x_31) == 4) +{ +lean_object* x_43; +lean_dec(x_29); +lean_dec(x_4); +x_43 = lean_ctor_get(x_31, 0); +lean_inc(x_43); +lean_dec(x_31); +lean_ctor_set(x_32, 0, x_43); +return x_32; +} +else +{ +lean_object* x_44; +lean_free_object(x_32); +lean_dec(x_31); +x_44 = lean_box(0); +x_36 = x_44; +goto block_42; +} +block_42: +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_dec(x_36); +x_37 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_37, 0, x_29); +x_38 = l_Lean_indentExpr(x_37); +x_39 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_40 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_Elab_Term_throwError___rarg(x_1, x_40, x_4, x_34); +return x_41; +} +} +else +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_32, 1); +lean_inc(x_45); +lean_dec(x_32); +if (lean_obj_tag(x_31) == 4) +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_29); +lean_dec(x_4); +x_53 = lean_ctor_get(x_31, 0); +lean_inc(x_53); +lean_dec(x_31); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_45); +return x_54; +} +else +{ +lean_object* x_55; +lean_dec(x_31); +x_55 = lean_box(0); +x_46 = x_55; +goto block_52; +} +block_52: +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_46); +x_47 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_47, 0, x_29); +x_48 = l_Lean_indentExpr(x_47); +x_49 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_50 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l_Lean_Elab_Term_throwError___rarg(x_1, x_50, x_4, x_45); +return x_51; +} +} +} +else +{ +uint8_t x_56; +lean_dec(x_31); +lean_dec(x_29); +lean_dec(x_4); +x_56 = !lean_is_exclusive(x_32); +if (x_56 == 0) +{ +return x_32; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_32, 0); +x_58 = lean_ctor_get(x_32, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_32); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_4); +x_60 = !lean_is_exclusive(x_28); +if (x_60 == 0) +{ +return x_28; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_28, 0); +x_62 = lean_ctor_get(x_28, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_28); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_4); +x_64 = !lean_is_exclusive(x_25); +if (x_64 == 0) +{ +return x_25; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_25, 0); +x_66 = lean_ctor_get(x_25, 1); +lean_inc(x_66); lean_inc(x_65); +lean_dec(x_25); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +lean_object* x_68; lean_dec(x_3); -lean_inc(x_4); -x_66 = l_Lean_Elab_Term_inferType(x_1, x_65, x_4, x_48); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -lean_inc(x_4); -x_69 = l_Lean_Elab_Term_whnf(x_1, x_67, x_4, x_68); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -x_72 = l_Lean_Expr_getAppFn___main(x_70); -x_73 = l_Lean_Elab_Term_tryPostponeIfMVar(x_70, x_4, x_71); -if (lean_obj_tag(x_73) == 0) -{ -uint8_t x_74; -x_74 = !lean_is_exclusive(x_73); -if (x_74 == 0) -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_73, 1); -x_76 = lean_ctor_get(x_73, 0); -lean_dec(x_76); -if (lean_obj_tag(x_72) == 4) -{ -lean_object* x_84; -lean_dec(x_70); -lean_dec(x_4); -x_84 = lean_ctor_get(x_72, 0); -lean_inc(x_84); -lean_dec(x_72); -lean_ctor_set(x_73, 0, x_84); -return x_73; -} -else -{ -lean_object* x_85; -lean_free_object(x_73); -lean_dec(x_72); -x_85 = lean_box(0); -x_77 = x_85; -goto block_83; -} -block_83: -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_77); -x_78 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_78, 0, x_70); -x_79 = l_Lean_indentExpr(x_78); -x_80 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_81 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -x_82 = l_Lean_Elab_Term_throwError___rarg(x_1, x_81, x_4, x_75); -return x_82; +x_68 = lean_box(0); +x_8 = x_68; +goto block_23; } } else { -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_73, 1); -lean_inc(x_86); -lean_dec(x_73); -if (lean_obj_tag(x_72) == 4) -{ -lean_object* x_94; lean_object* x_95; -lean_dec(x_70); -lean_dec(x_4); -x_94 = lean_ctor_get(x_72, 0); -lean_inc(x_94); -lean_dec(x_72); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_86); -return x_95; -} -else -{ -lean_object* x_96; -lean_dec(x_72); -x_96 = lean_box(0); -x_87 = x_96; -goto block_93; -} -block_93: -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_87); -x_88 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_88, 0, x_70); -x_89 = l_Lean_indentExpr(x_88); -x_90 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_91 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_91, 0, x_90); -lean_ctor_set(x_91, 1, x_89); -x_92 = l_Lean_Elab_Term_throwError___rarg(x_1, x_91, x_4, x_86); -return x_92; -} -} -} -else -{ -uint8_t x_97; -lean_dec(x_72); -lean_dec(x_70); -lean_dec(x_4); -x_97 = !lean_is_exclusive(x_73); -if (x_97 == 0) -{ -return x_73; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_73, 0); -x_99 = lean_ctor_get(x_73, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_73); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -else -{ -uint8_t x_101; -lean_dec(x_4); -x_101 = !lean_is_exclusive(x_69); -if (x_101 == 0) -{ -return x_69; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_69, 0); -x_103 = lean_ctor_get(x_69, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_69); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -return x_104; -} -} -} -else -{ -uint8_t x_105; -lean_dec(x_4); -x_105 = !lean_is_exclusive(x_66); -if (x_105 == 0) -{ -return x_66; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_66, 0); -x_107 = lean_ctor_get(x_66, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_66); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; -} -} -} -else -{ -lean_object* x_109; -lean_dec(x_3); -x_109 = lean_box(0); -x_49 = x_109; -goto block_64; -} -} -else -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_2, 0); -lean_inc(x_110); +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_2, 0); +lean_inc(x_69); lean_dec(x_2); lean_inc(x_4); -lean_inc(x_110); -x_111 = l_Lean_Elab_Term_whnf(x_1, x_110, x_4, x_48); -if (lean_obj_tag(x_111) == 0) +lean_inc(x_69); +x_70 = l_Lean_Elab_Term_whnf(x_1, x_69, x_4, x_7); +if (lean_obj_tag(x_70) == 0) { -uint8_t x_112; -x_112 = !lean_is_exclusive(x_111); -if (x_112 == 0) +uint8_t x_71; +x_71 = !lean_is_exclusive(x_70); +if (x_71 == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_122; -x_113 = lean_ctor_get(x_111, 0); -x_114 = lean_ctor_get(x_111, 1); -x_122 = l_Lean_Expr_getAppFn___main(x_113); -lean_dec(x_113); -switch (lean_obj_tag(x_122)) { +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_81; +x_72 = lean_ctor_get(x_70, 0); +x_73 = lean_ctor_get(x_70, 1); +x_81 = l_Lean_Expr_getAppFn___main(x_72); +lean_dec(x_72); +switch (lean_obj_tag(x_81)) { case 0: { -lean_dec(x_122); -lean_free_object(x_111); +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_123; lean_object* x_124; -lean_dec(x_110); -x_123 = lean_ctor_get(x_3, 1); -lean_inc(x_123); +lean_object* x_82; lean_object* x_83; +lean_dec(x_69); +x_82 = lean_ctor_get(x_3, 1); +lean_inc(x_82); lean_dec(x_3); lean_inc(x_4); -x_124 = l_Lean_Elab_Term_inferType(x_1, x_123, x_4, x_114); -if (lean_obj_tag(x_124) == 0) +x_83 = l_Lean_Elab_Term_inferType(x_1, x_82, x_4, x_73); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec(x_124); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); lean_inc(x_4); -x_127 = l_Lean_Elab_Term_whnf(x_1, x_125, x_4, x_126); -if (lean_obj_tag(x_127) == 0) +x_86 = l_Lean_Elab_Term_whnf(x_1, x_84, x_4, x_85); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_Expr_getAppFn___main(x_87); +x_90 = l_Lean_Elab_Term_tryPostponeIfMVar(x_87, x_4, x_88); +if (lean_obj_tag(x_90) == 0) +{ +uint8_t x_91; +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_90, 1); +x_93 = lean_ctor_get(x_90, 0); +lean_dec(x_93); +if (lean_obj_tag(x_89) == 4) +{ +lean_object* x_101; +lean_dec(x_87); +lean_dec(x_4); +x_101 = lean_ctor_get(x_89, 0); +lean_inc(x_101); +lean_dec(x_89); +lean_ctor_set(x_90, 0, x_101); +return x_90; +} +else +{ +lean_object* x_102; +lean_free_object(x_90); +lean_dec(x_89); +x_102 = lean_box(0); +x_94 = x_102; +goto block_100; +} +block_100: +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_94); +x_95 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_95, 0, x_87); +x_96 = l_Lean_indentExpr(x_95); +x_97 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_98 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_96); +x_99 = l_Lean_Elab_Term_throwError___rarg(x_1, x_98, x_4, x_92); +return x_99; +} +} +else +{ +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_90, 1); +lean_inc(x_103); +lean_dec(x_90); +if (lean_obj_tag(x_89) == 4) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_87); +lean_dec(x_4); +x_111 = lean_ctor_get(x_89, 0); +lean_inc(x_111); +lean_dec(x_89); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_103); +return x_112; +} +else +{ +lean_object* x_113; +lean_dec(x_89); +x_113 = lean_box(0); +x_104 = x_113; +goto block_110; +} +block_110: +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_104); +x_105 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_105, 0, x_87); +x_106 = l_Lean_indentExpr(x_105); +x_107 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_108 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_106); +x_109 = l_Lean_Elab_Term_throwError___rarg(x_1, x_108, x_4, x_103); +return x_109; +} +} +} +else +{ +uint8_t x_114; +lean_dec(x_89); +lean_dec(x_87); +lean_dec(x_4); +x_114 = !lean_is_exclusive(x_90); +if (x_114 == 0) +{ +return x_90; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_90, 0); +x_116 = lean_ctor_get(x_90, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_90); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +return x_117; +} +} +} +else +{ +uint8_t x_118; +lean_dec(x_4); +x_118 = !lean_is_exclusive(x_86); +if (x_118 == 0) +{ +return x_86; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_86, 0); +x_120 = lean_ctor_get(x_86, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_86); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} +} +} +else +{ +uint8_t x_122; +lean_dec(x_4); +x_122 = !lean_is_exclusive(x_83); +if (x_122 == 0) +{ +return x_83; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_83, 0); +x_124 = lean_ctor_get(x_83, 1); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_83); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +return x_125; +} +} +} +else +{ +lean_object* x_126; +lean_dec(x_3); +x_126 = lean_box(0); +x_74 = x_126; +goto block_80; +} +} +case 1: +{ +lean_dec(x_81); +lean_free_object(x_70); +if (lean_obj_tag(x_3) == 2) +{ +lean_object* x_127; lean_object* x_128; +lean_dec(x_69); +x_127 = lean_ctor_get(x_3, 1); +lean_inc(x_127); +lean_dec(x_3); +lean_inc(x_4); +x_128 = l_Lean_Elab_Term_inferType(x_1, x_127, x_4, x_73); +if (lean_obj_tag(x_128) == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_128, 0); lean_inc(x_129); -lean_dec(x_127); -x_130 = l_Lean_Expr_getAppFn___main(x_128); -x_131 = l_Lean_Elab_Term_tryPostponeIfMVar(x_128, x_4, x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +lean_inc(x_4); +x_131 = l_Lean_Elab_Term_whnf(x_1, x_129, x_4, x_130); if (lean_obj_tag(x_131) == 0) { -uint8_t x_132; -x_132 = !lean_is_exclusive(x_131); -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = lean_ctor_get(x_131, 0); +lean_inc(x_132); x_133 = lean_ctor_get(x_131, 1); -x_134 = lean_ctor_get(x_131, 0); +lean_inc(x_133); +lean_dec(x_131); +x_134 = l_Lean_Expr_getAppFn___main(x_132); +x_135 = l_Lean_Elab_Term_tryPostponeIfMVar(x_132, x_4, x_133); +if (lean_obj_tag(x_135) == 0) +{ +uint8_t x_136; +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_135, 1); +x_138 = lean_ctor_get(x_135, 0); +lean_dec(x_138); +if (lean_obj_tag(x_134) == 4) +{ +lean_object* x_146; +lean_dec(x_132); +lean_dec(x_4); +x_146 = lean_ctor_get(x_134, 0); +lean_inc(x_146); lean_dec(x_134); -if (lean_obj_tag(x_130) == 4) -{ -lean_object* x_142; -lean_dec(x_128); -lean_dec(x_4); -x_142 = lean_ctor_get(x_130, 0); -lean_inc(x_142); -lean_dec(x_130); -lean_ctor_set(x_131, 0, x_142); -return x_131; +lean_ctor_set(x_135, 0, x_146); +return x_135; } else { -lean_object* x_143; -lean_free_object(x_131); -lean_dec(x_130); -x_143 = lean_box(0); -x_135 = x_143; -goto block_141; +lean_object* x_147; +lean_free_object(x_135); +lean_dec(x_134); +x_147 = lean_box(0); +x_139 = x_147; +goto block_145; } -block_141: +block_145: { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_139); +x_140 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_140, 0, x_132); +x_141 = l_Lean_indentExpr(x_140); +x_142 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_143 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Elab_Term_throwError___rarg(x_1, x_143, x_4, x_137); +return x_144; +} +} +else +{ +lean_object* x_148; lean_object* x_149; +x_148 = lean_ctor_get(x_135, 1); +lean_inc(x_148); lean_dec(x_135); -x_136 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_136, 0, x_128); -x_137 = l_Lean_indentExpr(x_136); -x_138 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_139 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_137); -x_140 = l_Lean_Elab_Term_throwError___rarg(x_1, x_139, x_4, x_133); -return x_140; -} -} -else +if (lean_obj_tag(x_134) == 4) { -lean_object* x_144; lean_object* x_145; -x_144 = lean_ctor_get(x_131, 1); -lean_inc(x_144); -lean_dec(x_131); -if (lean_obj_tag(x_130) == 4) -{ -lean_object* x_152; lean_object* x_153; -lean_dec(x_128); +lean_object* x_156; lean_object* x_157; +lean_dec(x_132); lean_dec(x_4); -x_152 = lean_ctor_get(x_130, 0); -lean_inc(x_152); -lean_dec(x_130); -x_153 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_153, 0, x_152); -lean_ctor_set(x_153, 1, x_144); -return x_153; -} -else -{ -lean_object* x_154; -lean_dec(x_130); -x_154 = lean_box(0); -x_145 = x_154; -goto block_151; -} -block_151: -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_145); -x_146 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_146, 0, x_128); -x_147 = l_Lean_indentExpr(x_146); -x_148 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_149 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_147); -x_150 = l_Lean_Elab_Term_throwError___rarg(x_1, x_149, x_4, x_144); -return x_150; -} -} -} -else -{ -uint8_t x_155; -lean_dec(x_130); -lean_dec(x_128); -lean_dec(x_4); -x_155 = !lean_is_exclusive(x_131); -if (x_155 == 0) -{ -return x_131; -} -else -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_131, 0); -x_157 = lean_ctor_get(x_131, 1); -lean_inc(x_157); +x_156 = lean_ctor_get(x_134, 0); lean_inc(x_156); -lean_dec(x_131); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -return x_158; +lean_dec(x_134); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_148); +return x_157; +} +else +{ +lean_object* x_158; +lean_dec(x_134); +x_158 = lean_box(0); +x_149 = x_158; +goto block_155; +} +block_155: +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_149); +x_150 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_150, 0, x_132); +x_151 = l_Lean_indentExpr(x_150); +x_152 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_153 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_151); +x_154 = l_Lean_Elab_Term_throwError___rarg(x_1, x_153, x_4, x_148); +return x_154; } } } else { uint8_t x_159; +lean_dec(x_134); +lean_dec(x_132); lean_dec(x_4); -x_159 = !lean_is_exclusive(x_127); +x_159 = !lean_is_exclusive(x_135); if (x_159 == 0) { -return x_127; +return x_135; } else { lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_127, 0); -x_161 = lean_ctor_get(x_127, 1); +x_160 = lean_ctor_get(x_135, 0); +x_161 = lean_ctor_get(x_135, 1); lean_inc(x_161); lean_inc(x_160); -lean_dec(x_127); +lean_dec(x_135); x_162 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_162, 0, x_160); lean_ctor_set(x_162, 1, x_161); @@ -4171,19 +3427,19 @@ else { uint8_t x_163; lean_dec(x_4); -x_163 = !lean_is_exclusive(x_124); +x_163 = !lean_is_exclusive(x_131); if (x_163 == 0) { -return x_124; +return x_131; } else { lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_164 = lean_ctor_get(x_124, 0); -x_165 = lean_ctor_get(x_124, 1); +x_164 = lean_ctor_get(x_131, 0); +x_165 = lean_ctor_get(x_131, 1); lean_inc(x_165); lean_inc(x_164); -lean_dec(x_124); +lean_dec(x_131); x_166 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_166, 0, x_164); lean_ctor_set(x_166, 1, x_165); @@ -4193,177 +3449,177 @@ return x_166; } else { -lean_object* x_167; -lean_dec(x_3); -x_167 = lean_box(0); -x_115 = x_167; -goto block_121; -} -} -case 1: +uint8_t x_167; +lean_dec(x_4); +x_167 = !lean_is_exclusive(x_128); +if (x_167 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_128; +} +else +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_128, 0); +x_169 = lean_ctor_get(x_128, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_128); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_169); +return x_170; +} +} +} +else +{ +lean_object* x_171; +lean_dec(x_3); +x_171 = lean_box(0); +x_74 = x_171; +goto block_80; +} +} +case 2: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_168; lean_object* x_169; -lean_dec(x_110); -x_168 = lean_ctor_get(x_3, 1); -lean_inc(x_168); +lean_object* x_172; lean_object* x_173; +lean_dec(x_69); +x_172 = lean_ctor_get(x_3, 1); +lean_inc(x_172); lean_dec(x_3); lean_inc(x_4); -x_169 = l_Lean_Elab_Term_inferType(x_1, x_168, x_4, x_114); -if (lean_obj_tag(x_169) == 0) +x_173 = l_Lean_Elab_Term_inferType(x_1, x_172, x_4, x_73); +if (lean_obj_tag(x_173) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -lean_inc(x_4); -x_172 = l_Lean_Elab_Term_whnf(x_1, x_170, x_4, x_171); -if (lean_obj_tag(x_172) == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_173, 0); lean_inc(x_174); -lean_dec(x_172); -x_175 = l_Lean_Expr_getAppFn___main(x_173); -x_176 = l_Lean_Elab_Term_tryPostponeIfMVar(x_173, x_4, x_174); +x_175 = lean_ctor_get(x_173, 1); +lean_inc(x_175); +lean_dec(x_173); +lean_inc(x_4); +x_176 = l_Lean_Elab_Term_whnf(x_1, x_174, x_4, x_175); if (lean_obj_tag(x_176) == 0) { -uint8_t x_177; -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_177 = lean_ctor_get(x_176, 0); +lean_inc(x_177); x_178 = lean_ctor_get(x_176, 1); -x_179 = lean_ctor_get(x_176, 0); +lean_inc(x_178); +lean_dec(x_176); +x_179 = l_Lean_Expr_getAppFn___main(x_177); +x_180 = l_Lean_Elab_Term_tryPostponeIfMVar(x_177, x_4, x_178); +if (lean_obj_tag(x_180) == 0) +{ +uint8_t x_181; +x_181 = !lean_is_exclusive(x_180); +if (x_181 == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = lean_ctor_get(x_180, 1); +x_183 = lean_ctor_get(x_180, 0); +lean_dec(x_183); +if (lean_obj_tag(x_179) == 4) +{ +lean_object* x_191; +lean_dec(x_177); +lean_dec(x_4); +x_191 = lean_ctor_get(x_179, 0); +lean_inc(x_191); lean_dec(x_179); -if (lean_obj_tag(x_175) == 4) -{ -lean_object* x_187; -lean_dec(x_173); -lean_dec(x_4); -x_187 = lean_ctor_get(x_175, 0); -lean_inc(x_187); -lean_dec(x_175); -lean_ctor_set(x_176, 0, x_187); -return x_176; +lean_ctor_set(x_180, 0, x_191); +return x_180; } else { -lean_object* x_188; -lean_free_object(x_176); -lean_dec(x_175); -x_188 = lean_box(0); -x_180 = x_188; -goto block_186; +lean_object* x_192; +lean_free_object(x_180); +lean_dec(x_179); +x_192 = lean_box(0); +x_184 = x_192; +goto block_190; } -block_186: +block_190: { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_184); +x_185 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_185, 0, x_177); +x_186 = l_Lean_indentExpr(x_185); +x_187 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_188 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_186); +x_189 = l_Lean_Elab_Term_throwError___rarg(x_1, x_188, x_4, x_182); +return x_189; +} +} +else +{ +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_180, 1); +lean_inc(x_193); lean_dec(x_180); -x_181 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_181, 0, x_173); -x_182 = l_Lean_indentExpr(x_181); -x_183 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_184 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_184, 0, x_183); -lean_ctor_set(x_184, 1, x_182); -x_185 = l_Lean_Elab_Term_throwError___rarg(x_1, x_184, x_4, x_178); -return x_185; -} -} -else +if (lean_obj_tag(x_179) == 4) { -lean_object* x_189; lean_object* x_190; -x_189 = lean_ctor_get(x_176, 1); -lean_inc(x_189); -lean_dec(x_176); -if (lean_obj_tag(x_175) == 4) -{ -lean_object* x_197; lean_object* x_198; -lean_dec(x_173); +lean_object* x_201; lean_object* x_202; +lean_dec(x_177); lean_dec(x_4); -x_197 = lean_ctor_get(x_175, 0); -lean_inc(x_197); -lean_dec(x_175); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_189); -return x_198; -} -else -{ -lean_object* x_199; -lean_dec(x_175); -x_199 = lean_box(0); -x_190 = x_199; -goto block_196; -} -block_196: -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -lean_dec(x_190); -x_191 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_191, 0, x_173); -x_192 = l_Lean_indentExpr(x_191); -x_193 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_194 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -x_195 = l_Lean_Elab_Term_throwError___rarg(x_1, x_194, x_4, x_189); -return x_195; -} -} -} -else -{ -uint8_t x_200; -lean_dec(x_175); -lean_dec(x_173); -lean_dec(x_4); -x_200 = !lean_is_exclusive(x_176); -if (x_200 == 0) -{ -return x_176; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_201 = lean_ctor_get(x_176, 0); -x_202 = lean_ctor_get(x_176, 1); -lean_inc(x_202); +x_201 = lean_ctor_get(x_179, 0); lean_inc(x_201); -lean_dec(x_176); -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_201); -lean_ctor_set(x_203, 1, x_202); -return x_203; +lean_dec(x_179); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_201); +lean_ctor_set(x_202, 1, x_193); +return x_202; +} +else +{ +lean_object* x_203; +lean_dec(x_179); +x_203 = lean_box(0); +x_194 = x_203; +goto block_200; +} +block_200: +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +lean_dec(x_194); +x_195 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_195, 0, x_177); +x_196 = l_Lean_indentExpr(x_195); +x_197 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_198 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +x_199 = l_Lean_Elab_Term_throwError___rarg(x_1, x_198, x_4, x_193); +return x_199; } } } else { uint8_t x_204; +lean_dec(x_179); +lean_dec(x_177); lean_dec(x_4); -x_204 = !lean_is_exclusive(x_172); +x_204 = !lean_is_exclusive(x_180); if (x_204 == 0) { -return x_172; +return x_180; } else { lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_172, 0); -x_206 = lean_ctor_get(x_172, 1); +x_205 = lean_ctor_get(x_180, 0); +x_206 = lean_ctor_get(x_180, 1); lean_inc(x_206); lean_inc(x_205); -lean_dec(x_172); +lean_dec(x_180); x_207 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_207, 0, x_205); lean_ctor_set(x_207, 1, x_206); @@ -4375,19 +3631,19 @@ else { uint8_t x_208; lean_dec(x_4); -x_208 = !lean_is_exclusive(x_169); +x_208 = !lean_is_exclusive(x_176); if (x_208 == 0) { -return x_169; +return x_176; } else { lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_169, 0); -x_210 = lean_ctor_get(x_169, 1); +x_209 = lean_ctor_get(x_176, 0); +x_210 = lean_ctor_get(x_176, 1); lean_inc(x_210); lean_inc(x_209); -lean_dec(x_169); +lean_dec(x_176); x_211 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_211, 0, x_209); lean_ctor_set(x_211, 1, x_210); @@ -4397,177 +3653,177 @@ return x_211; } else { -lean_object* x_212; -lean_dec(x_3); -x_212 = lean_box(0); -x_115 = x_212; -goto block_121; -} -} -case 2: +uint8_t x_212; +lean_dec(x_4); +x_212 = !lean_is_exclusive(x_173); +if (x_212 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_173; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_173, 0); +x_214 = lean_ctor_get(x_173, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_173); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; +} +} +} +else +{ +lean_object* x_216; +lean_dec(x_3); +x_216 = lean_box(0); +x_74 = x_216; +goto block_80; +} +} +case 3: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_213; lean_object* x_214; -lean_dec(x_110); -x_213 = lean_ctor_get(x_3, 1); -lean_inc(x_213); +lean_object* x_217; lean_object* x_218; +lean_dec(x_69); +x_217 = lean_ctor_get(x_3, 1); +lean_inc(x_217); lean_dec(x_3); lean_inc(x_4); -x_214 = l_Lean_Elab_Term_inferType(x_1, x_213, x_4, x_114); -if (lean_obj_tag(x_214) == 0) +x_218 = l_Lean_Elab_Term_inferType(x_1, x_217, x_4, x_73); +if (lean_obj_tag(x_218) == 0) { -lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_215 = lean_ctor_get(x_214, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); -lean_inc(x_216); -lean_dec(x_214); -lean_inc(x_4); -x_217 = l_Lean_Elab_Term_whnf(x_1, x_215, x_4, x_216); -if (lean_obj_tag(x_217) == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -x_219 = lean_ctor_get(x_217, 1); +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); -lean_dec(x_217); -x_220 = l_Lean_Expr_getAppFn___main(x_218); -x_221 = l_Lean_Elab_Term_tryPostponeIfMVar(x_218, x_4, x_219); +x_220 = lean_ctor_get(x_218, 1); +lean_inc(x_220); +lean_dec(x_218); +lean_inc(x_4); +x_221 = l_Lean_Elab_Term_whnf(x_1, x_219, x_4, x_220); if (lean_obj_tag(x_221) == 0) { -uint8_t x_222; -x_222 = !lean_is_exclusive(x_221); -if (x_222 == 0) -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); x_223 = lean_ctor_get(x_221, 1); -x_224 = lean_ctor_get(x_221, 0); +lean_inc(x_223); +lean_dec(x_221); +x_224 = l_Lean_Expr_getAppFn___main(x_222); +x_225 = l_Lean_Elab_Term_tryPostponeIfMVar(x_222, x_4, x_223); +if (lean_obj_tag(x_225) == 0) +{ +uint8_t x_226; +x_226 = !lean_is_exclusive(x_225); +if (x_226 == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_ctor_get(x_225, 1); +x_228 = lean_ctor_get(x_225, 0); +lean_dec(x_228); +if (lean_obj_tag(x_224) == 4) +{ +lean_object* x_236; +lean_dec(x_222); +lean_dec(x_4); +x_236 = lean_ctor_get(x_224, 0); +lean_inc(x_236); lean_dec(x_224); -if (lean_obj_tag(x_220) == 4) -{ -lean_object* x_232; -lean_dec(x_218); -lean_dec(x_4); -x_232 = lean_ctor_get(x_220, 0); -lean_inc(x_232); -lean_dec(x_220); -lean_ctor_set(x_221, 0, x_232); -return x_221; +lean_ctor_set(x_225, 0, x_236); +return x_225; } else { -lean_object* x_233; -lean_free_object(x_221); -lean_dec(x_220); -x_233 = lean_box(0); -x_225 = x_233; -goto block_231; +lean_object* x_237; +lean_free_object(x_225); +lean_dec(x_224); +x_237 = lean_box(0); +x_229 = x_237; +goto block_235; } -block_231: +block_235: { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_229); +x_230 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_230, 0, x_222); +x_231 = l_Lean_indentExpr(x_230); +x_232 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_233 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_231); +x_234 = l_Lean_Elab_Term_throwError___rarg(x_1, x_233, x_4, x_227); +return x_234; +} +} +else +{ +lean_object* x_238; lean_object* x_239; +x_238 = lean_ctor_get(x_225, 1); +lean_inc(x_238); lean_dec(x_225); -x_226 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_226, 0, x_218); -x_227 = l_Lean_indentExpr(x_226); -x_228 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_229 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_227); -x_230 = l_Lean_Elab_Term_throwError___rarg(x_1, x_229, x_4, x_223); -return x_230; -} -} -else +if (lean_obj_tag(x_224) == 4) { -lean_object* x_234; lean_object* x_235; -x_234 = lean_ctor_get(x_221, 1); -lean_inc(x_234); -lean_dec(x_221); -if (lean_obj_tag(x_220) == 4) -{ -lean_object* x_242; lean_object* x_243; -lean_dec(x_218); +lean_object* x_246; lean_object* x_247; +lean_dec(x_222); lean_dec(x_4); -x_242 = lean_ctor_get(x_220, 0); -lean_inc(x_242); -lean_dec(x_220); -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_234); -return x_243; -} -else -{ -lean_object* x_244; -lean_dec(x_220); -x_244 = lean_box(0); -x_235 = x_244; -goto block_241; -} -block_241: -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -lean_dec(x_235); -x_236 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_236, 0, x_218); -x_237 = l_Lean_indentExpr(x_236); -x_238 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_239 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_237); -x_240 = l_Lean_Elab_Term_throwError___rarg(x_1, x_239, x_4, x_234); -return x_240; -} -} -} -else -{ -uint8_t x_245; -lean_dec(x_220); -lean_dec(x_218); -lean_dec(x_4); -x_245 = !lean_is_exclusive(x_221); -if (x_245 == 0) -{ -return x_221; -} -else -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_246 = lean_ctor_get(x_221, 0); -x_247 = lean_ctor_get(x_221, 1); -lean_inc(x_247); +x_246 = lean_ctor_get(x_224, 0); lean_inc(x_246); -lean_dec(x_221); -x_248 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_248, 0, x_246); -lean_ctor_set(x_248, 1, x_247); -return x_248; +lean_dec(x_224); +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_246); +lean_ctor_set(x_247, 1, x_238); +return x_247; +} +else +{ +lean_object* x_248; +lean_dec(x_224); +x_248 = lean_box(0); +x_239 = x_248; +goto block_245; +} +block_245: +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_239); +x_240 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_240, 0, x_222); +x_241 = l_Lean_indentExpr(x_240); +x_242 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_243 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_241); +x_244 = l_Lean_Elab_Term_throwError___rarg(x_1, x_243, x_4, x_238); +return x_244; } } } else { uint8_t x_249; +lean_dec(x_224); +lean_dec(x_222); lean_dec(x_4); -x_249 = !lean_is_exclusive(x_217); +x_249 = !lean_is_exclusive(x_225); if (x_249 == 0) { -return x_217; +return x_225; } else { lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_217, 0); -x_251 = lean_ctor_get(x_217, 1); +x_250 = lean_ctor_get(x_225, 0); +x_251 = lean_ctor_get(x_225, 1); lean_inc(x_251); lean_inc(x_250); -lean_dec(x_217); +lean_dec(x_225); x_252 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_252, 0, x_250); lean_ctor_set(x_252, 1, x_251); @@ -4579,19 +3835,19 @@ else { uint8_t x_253; lean_dec(x_4); -x_253 = !lean_is_exclusive(x_214); +x_253 = !lean_is_exclusive(x_221); if (x_253 == 0) { -return x_214; +return x_221; } else { lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_214, 0); -x_255 = lean_ctor_get(x_214, 1); +x_254 = lean_ctor_get(x_221, 0); +x_255 = lean_ctor_get(x_221, 1); lean_inc(x_255); lean_inc(x_254); -lean_dec(x_214); +lean_dec(x_221); x_256 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_256, 0, x_254); lean_ctor_set(x_256, 1, x_255); @@ -4601,393 +3857,393 @@ return x_256; } else { -lean_object* x_257; -lean_dec(x_3); -x_257 = lean_box(0); -x_115 = x_257; -goto block_121; -} -} -case 3: +uint8_t x_257; +lean_dec(x_4); +x_257 = !lean_is_exclusive(x_218); +if (x_257 == 0) { -lean_dec(x_122); -lean_free_object(x_111); -if (lean_obj_tag(x_3) == 2) +return x_218; +} +else { -lean_object* x_258; lean_object* x_259; -lean_dec(x_110); -x_258 = lean_ctor_get(x_3, 1); +lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_258 = lean_ctor_get(x_218, 0); +x_259 = lean_ctor_get(x_218, 1); +lean_inc(x_259); lean_inc(x_258); +lean_dec(x_218); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_258); +lean_ctor_set(x_260, 1, x_259); +return x_260; +} +} +} +else +{ +lean_object* x_261; lean_dec(x_3); -lean_inc(x_4); -x_259 = l_Lean_Elab_Term_inferType(x_1, x_258, x_4, x_114); -if (lean_obj_tag(x_259) == 0) -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_259, 1); -lean_inc(x_261); -lean_dec(x_259); -lean_inc(x_4); -x_262 = l_Lean_Elab_Term_whnf(x_1, x_260, x_4, x_261); -if (lean_obj_tag(x_262) == 0) -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -lean_dec(x_262); -x_265 = l_Lean_Expr_getAppFn___main(x_263); -x_266 = l_Lean_Elab_Term_tryPostponeIfMVar(x_263, x_4, x_264); -if (lean_obj_tag(x_266) == 0) -{ -uint8_t x_267; -x_267 = !lean_is_exclusive(x_266); -if (x_267 == 0) -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_268 = lean_ctor_get(x_266, 1); -x_269 = lean_ctor_get(x_266, 0); -lean_dec(x_269); -if (lean_obj_tag(x_265) == 4) -{ -lean_object* x_277; -lean_dec(x_263); -lean_dec(x_4); -x_277 = lean_ctor_get(x_265, 0); -lean_inc(x_277); -lean_dec(x_265); -lean_ctor_set(x_266, 0, x_277); -return x_266; -} -else -{ -lean_object* x_278; -lean_free_object(x_266); -lean_dec(x_265); -x_278 = lean_box(0); -x_270 = x_278; -goto block_276; -} -block_276: -{ -lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -lean_dec(x_270); -x_271 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_271, 0, x_263); -x_272 = l_Lean_indentExpr(x_271); -x_273 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_274 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_274, 0, x_273); -lean_ctor_set(x_274, 1, x_272); -x_275 = l_Lean_Elab_Term_throwError___rarg(x_1, x_274, x_4, x_268); -return x_275; -} -} -else -{ -lean_object* x_279; lean_object* x_280; -x_279 = lean_ctor_get(x_266, 1); -lean_inc(x_279); -lean_dec(x_266); -if (lean_obj_tag(x_265) == 4) -{ -lean_object* x_287; lean_object* x_288; -lean_dec(x_263); -lean_dec(x_4); -x_287 = lean_ctor_get(x_265, 0); -lean_inc(x_287); -lean_dec(x_265); -x_288 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_288, 0, x_287); -lean_ctor_set(x_288, 1, x_279); -return x_288; -} -else -{ -lean_object* x_289; -lean_dec(x_265); -x_289 = lean_box(0); -x_280 = x_289; -goto block_286; -} -block_286: -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; -lean_dec(x_280); -x_281 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_281, 0, x_263); -x_282 = l_Lean_indentExpr(x_281); -x_283 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_284 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_282); -x_285 = l_Lean_Elab_Term_throwError___rarg(x_1, x_284, x_4, x_279); -return x_285; -} -} -} -else -{ -uint8_t x_290; -lean_dec(x_265); -lean_dec(x_263); -lean_dec(x_4); -x_290 = !lean_is_exclusive(x_266); -if (x_290 == 0) -{ -return x_266; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_266, 0); -x_292 = lean_ctor_get(x_266, 1); -lean_inc(x_292); -lean_inc(x_291); -lean_dec(x_266); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -return x_293; -} -} -} -else -{ -uint8_t x_294; -lean_dec(x_4); -x_294 = !lean_is_exclusive(x_262); -if (x_294 == 0) -{ -return x_262; -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_295 = lean_ctor_get(x_262, 0); -x_296 = lean_ctor_get(x_262, 1); -lean_inc(x_296); -lean_inc(x_295); -lean_dec(x_262); -x_297 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_297, 0, x_295); -lean_ctor_set(x_297, 1, x_296); -return x_297; -} -} -} -else -{ -uint8_t x_298; -lean_dec(x_4); -x_298 = !lean_is_exclusive(x_259); -if (x_298 == 0) -{ -return x_259; -} -else -{ -lean_object* x_299; lean_object* x_300; lean_object* x_301; -x_299 = lean_ctor_get(x_259, 0); -x_300 = lean_ctor_get(x_259, 1); -lean_inc(x_300); -lean_inc(x_299); -lean_dec(x_259); -x_301 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_301, 0, x_299); -lean_ctor_set(x_301, 1, x_300); -return x_301; -} -} -} -else -{ -lean_object* x_302; -lean_dec(x_3); -x_302 = lean_box(0); -x_115 = x_302; -goto block_121; +x_261 = lean_box(0); +x_74 = x_261; +goto block_80; } } case 4: { -lean_object* x_303; -lean_dec(x_110); +lean_object* x_262; +lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); -x_303 = lean_ctor_get(x_122, 0); -lean_inc(x_303); -lean_dec(x_122); -lean_ctor_set(x_111, 0, x_303); -return x_111; +x_262 = lean_ctor_get(x_81, 0); +lean_inc(x_262); +lean_dec(x_81); +lean_ctor_set(x_70, 0, x_262); +return x_70; } case 5: { -lean_dec(x_122); -lean_free_object(x_111); +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_304; lean_object* x_305; -lean_dec(x_110); -x_304 = lean_ctor_get(x_3, 1); -lean_inc(x_304); +lean_object* x_263; lean_object* x_264; +lean_dec(x_69); +x_263 = lean_ctor_get(x_3, 1); +lean_inc(x_263); lean_dec(x_3); lean_inc(x_4); -x_305 = l_Lean_Elab_Term_inferType(x_1, x_304, x_4, x_114); -if (lean_obj_tag(x_305) == 0) +x_264 = l_Lean_Elab_Term_inferType(x_1, x_263, x_4, x_73); +if (lean_obj_tag(x_264) == 0) { -lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_306 = lean_ctor_get(x_305, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_305, 1); -lean_inc(x_307); -lean_dec(x_305); +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +lean_dec(x_264); lean_inc(x_4); -x_308 = l_Lean_Elab_Term_whnf(x_1, x_306, x_4, x_307); -if (lean_obj_tag(x_308) == 0) +x_267 = l_Lean_Elab_Term_whnf(x_1, x_265, x_4, x_266); +if (lean_obj_tag(x_267) == 0) { -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_309 = lean_ctor_get(x_308, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_308, 1); +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec(x_267); +x_270 = l_Lean_Expr_getAppFn___main(x_268); +x_271 = l_Lean_Elab_Term_tryPostponeIfMVar(x_268, x_4, x_269); +if (lean_obj_tag(x_271) == 0) +{ +uint8_t x_272; +x_272 = !lean_is_exclusive(x_271); +if (x_272 == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_271, 1); +x_274 = lean_ctor_get(x_271, 0); +lean_dec(x_274); +if (lean_obj_tag(x_270) == 4) +{ +lean_object* x_282; +lean_dec(x_268); +lean_dec(x_4); +x_282 = lean_ctor_get(x_270, 0); +lean_inc(x_282); +lean_dec(x_270); +lean_ctor_set(x_271, 0, x_282); +return x_271; +} +else +{ +lean_object* x_283; +lean_free_object(x_271); +lean_dec(x_270); +x_283 = lean_box(0); +x_275 = x_283; +goto block_281; +} +block_281: +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +lean_dec(x_275); +x_276 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_276, 0, x_268); +x_277 = l_Lean_indentExpr(x_276); +x_278 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_279 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_277); +x_280 = l_Lean_Elab_Term_throwError___rarg(x_1, x_279, x_4, x_273); +return x_280; +} +} +else +{ +lean_object* x_284; lean_object* x_285; +x_284 = lean_ctor_get(x_271, 1); +lean_inc(x_284); +lean_dec(x_271); +if (lean_obj_tag(x_270) == 4) +{ +lean_object* x_292; lean_object* x_293; +lean_dec(x_268); +lean_dec(x_4); +x_292 = lean_ctor_get(x_270, 0); +lean_inc(x_292); +lean_dec(x_270); +x_293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_284); +return x_293; +} +else +{ +lean_object* x_294; +lean_dec(x_270); +x_294 = lean_box(0); +x_285 = x_294; +goto block_291; +} +block_291: +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +lean_dec(x_285); +x_286 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_286, 0, x_268); +x_287 = l_Lean_indentExpr(x_286); +x_288 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_289 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_287); +x_290 = l_Lean_Elab_Term_throwError___rarg(x_1, x_289, x_4, x_284); +return x_290; +} +} +} +else +{ +uint8_t x_295; +lean_dec(x_270); +lean_dec(x_268); +lean_dec(x_4); +x_295 = !lean_is_exclusive(x_271); +if (x_295 == 0) +{ +return x_271; +} +else +{ +lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_296 = lean_ctor_get(x_271, 0); +x_297 = lean_ctor_get(x_271, 1); +lean_inc(x_297); +lean_inc(x_296); +lean_dec(x_271); +x_298 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_298, 0, x_296); +lean_ctor_set(x_298, 1, x_297); +return x_298; +} +} +} +else +{ +uint8_t x_299; +lean_dec(x_4); +x_299 = !lean_is_exclusive(x_267); +if (x_299 == 0) +{ +return x_267; +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; +x_300 = lean_ctor_get(x_267, 0); +x_301 = lean_ctor_get(x_267, 1); +lean_inc(x_301); +lean_inc(x_300); +lean_dec(x_267); +x_302 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_302, 0, x_300); +lean_ctor_set(x_302, 1, x_301); +return x_302; +} +} +} +else +{ +uint8_t x_303; +lean_dec(x_4); +x_303 = !lean_is_exclusive(x_264); +if (x_303 == 0) +{ +return x_264; +} +else +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_264, 0); +x_305 = lean_ctor_get(x_264, 1); +lean_inc(x_305); +lean_inc(x_304); +lean_dec(x_264); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_304); +lean_ctor_set(x_306, 1, x_305); +return x_306; +} +} +} +else +{ +lean_object* x_307; +lean_dec(x_3); +x_307 = lean_box(0); +x_74 = x_307; +goto block_80; +} +} +case 6: +{ +lean_dec(x_81); +lean_free_object(x_70); +if (lean_obj_tag(x_3) == 2) +{ +lean_object* x_308; lean_object* x_309; +lean_dec(x_69); +x_308 = lean_ctor_get(x_3, 1); +lean_inc(x_308); +lean_dec(x_3); +lean_inc(x_4); +x_309 = l_Lean_Elab_Term_inferType(x_1, x_308, x_4, x_73); +if (lean_obj_tag(x_309) == 0) +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_310 = lean_ctor_get(x_309, 0); lean_inc(x_310); -lean_dec(x_308); -x_311 = l_Lean_Expr_getAppFn___main(x_309); -x_312 = l_Lean_Elab_Term_tryPostponeIfMVar(x_309, x_4, x_310); +x_311 = lean_ctor_get(x_309, 1); +lean_inc(x_311); +lean_dec(x_309); +lean_inc(x_4); +x_312 = l_Lean_Elab_Term_whnf(x_1, x_310, x_4, x_311); if (lean_obj_tag(x_312) == 0) { -uint8_t x_313; -x_313 = !lean_is_exclusive(x_312); -if (x_313 == 0) -{ -lean_object* x_314; lean_object* x_315; lean_object* x_316; +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; +x_313 = lean_ctor_get(x_312, 0); +lean_inc(x_313); x_314 = lean_ctor_get(x_312, 1); -x_315 = lean_ctor_get(x_312, 0); +lean_inc(x_314); +lean_dec(x_312); +x_315 = l_Lean_Expr_getAppFn___main(x_313); +x_316 = l_Lean_Elab_Term_tryPostponeIfMVar(x_313, x_4, x_314); +if (lean_obj_tag(x_316) == 0) +{ +uint8_t x_317; +x_317 = !lean_is_exclusive(x_316); +if (x_317 == 0) +{ +lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_318 = lean_ctor_get(x_316, 1); +x_319 = lean_ctor_get(x_316, 0); +lean_dec(x_319); +if (lean_obj_tag(x_315) == 4) +{ +lean_object* x_327; +lean_dec(x_313); +lean_dec(x_4); +x_327 = lean_ctor_get(x_315, 0); +lean_inc(x_327); lean_dec(x_315); -if (lean_obj_tag(x_311) == 4) -{ -lean_object* x_323; -lean_dec(x_309); -lean_dec(x_4); -x_323 = lean_ctor_get(x_311, 0); -lean_inc(x_323); -lean_dec(x_311); -lean_ctor_set(x_312, 0, x_323); -return x_312; +lean_ctor_set(x_316, 0, x_327); +return x_316; } else { -lean_object* x_324; -lean_free_object(x_312); -lean_dec(x_311); -x_324 = lean_box(0); -x_316 = x_324; -goto block_322; +lean_object* x_328; +lean_free_object(x_316); +lean_dec(x_315); +x_328 = lean_box(0); +x_320 = x_328; +goto block_326; } -block_322: +block_326: { -lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +lean_dec(x_320); +x_321 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_321, 0, x_313); +x_322 = l_Lean_indentExpr(x_321); +x_323 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_324 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_322); +x_325 = l_Lean_Elab_Term_throwError___rarg(x_1, x_324, x_4, x_318); +return x_325; +} +} +else +{ +lean_object* x_329; lean_object* x_330; +x_329 = lean_ctor_get(x_316, 1); +lean_inc(x_329); lean_dec(x_316); -x_317 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_317, 0, x_309); -x_318 = l_Lean_indentExpr(x_317); -x_319 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_320 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_318); -x_321 = l_Lean_Elab_Term_throwError___rarg(x_1, x_320, x_4, x_314); -return x_321; -} -} -else +if (lean_obj_tag(x_315) == 4) { -lean_object* x_325; lean_object* x_326; -x_325 = lean_ctor_get(x_312, 1); -lean_inc(x_325); -lean_dec(x_312); -if (lean_obj_tag(x_311) == 4) -{ -lean_object* x_333; lean_object* x_334; -lean_dec(x_309); +lean_object* x_337; lean_object* x_338; +lean_dec(x_313); lean_dec(x_4); -x_333 = lean_ctor_get(x_311, 0); -lean_inc(x_333); -lean_dec(x_311); -x_334 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_325); -return x_334; -} -else -{ -lean_object* x_335; -lean_dec(x_311); -x_335 = lean_box(0); -x_326 = x_335; -goto block_332; -} -block_332: -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; -lean_dec(x_326); -x_327 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_327, 0, x_309); -x_328 = l_Lean_indentExpr(x_327); -x_329 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_330 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_330, 0, x_329); -lean_ctor_set(x_330, 1, x_328); -x_331 = l_Lean_Elab_Term_throwError___rarg(x_1, x_330, x_4, x_325); -return x_331; -} -} -} -else -{ -uint8_t x_336; -lean_dec(x_311); -lean_dec(x_309); -lean_dec(x_4); -x_336 = !lean_is_exclusive(x_312); -if (x_336 == 0) -{ -return x_312; -} -else -{ -lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_337 = lean_ctor_get(x_312, 0); -x_338 = lean_ctor_get(x_312, 1); -lean_inc(x_338); +x_337 = lean_ctor_get(x_315, 0); lean_inc(x_337); -lean_dec(x_312); -x_339 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_339, 0, x_337); -lean_ctor_set(x_339, 1, x_338); -return x_339; +lean_dec(x_315); +x_338 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_338, 0, x_337); +lean_ctor_set(x_338, 1, x_329); +return x_338; +} +else +{ +lean_object* x_339; +lean_dec(x_315); +x_339 = lean_box(0); +x_330 = x_339; +goto block_336; +} +block_336: +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +lean_dec(x_330); +x_331 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_331, 0, x_313); +x_332 = l_Lean_indentExpr(x_331); +x_333 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_334 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +x_335 = l_Lean_Elab_Term_throwError___rarg(x_1, x_334, x_4, x_329); +return x_335; } } } else { uint8_t x_340; +lean_dec(x_315); +lean_dec(x_313); lean_dec(x_4); -x_340 = !lean_is_exclusive(x_308); +x_340 = !lean_is_exclusive(x_316); if (x_340 == 0) { -return x_308; +return x_316; } else { lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_341 = lean_ctor_get(x_308, 0); -x_342 = lean_ctor_get(x_308, 1); +x_341 = lean_ctor_get(x_316, 0); +x_342 = lean_ctor_get(x_316, 1); lean_inc(x_342); lean_inc(x_341); -lean_dec(x_308); +lean_dec(x_316); x_343 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_343, 0, x_341); lean_ctor_set(x_343, 1, x_342); @@ -4999,19 +4255,19 @@ else { uint8_t x_344; lean_dec(x_4); -x_344 = !lean_is_exclusive(x_305); +x_344 = !lean_is_exclusive(x_312); if (x_344 == 0) { -return x_305; +return x_312; } else { lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_345 = lean_ctor_get(x_305, 0); -x_346 = lean_ctor_get(x_305, 1); +x_345 = lean_ctor_get(x_312, 0); +x_346 = lean_ctor_get(x_312, 1); lean_inc(x_346); lean_inc(x_345); -lean_dec(x_305); +lean_dec(x_312); x_347 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_347, 0, x_345); lean_ctor_set(x_347, 1, x_346); @@ -5021,177 +4277,177 @@ return x_347; } else { -lean_object* x_348; -lean_dec(x_3); -x_348 = lean_box(0); -x_115 = x_348; -goto block_121; -} -} -case 6: +uint8_t x_348; +lean_dec(x_4); +x_348 = !lean_is_exclusive(x_309); +if (x_348 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_309; +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; +x_349 = lean_ctor_get(x_309, 0); +x_350 = lean_ctor_get(x_309, 1); +lean_inc(x_350); +lean_inc(x_349); +lean_dec(x_309); +x_351 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_351, 0, x_349); +lean_ctor_set(x_351, 1, x_350); +return x_351; +} +} +} +else +{ +lean_object* x_352; +lean_dec(x_3); +x_352 = lean_box(0); +x_74 = x_352; +goto block_80; +} +} +case 7: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_349; lean_object* x_350; -lean_dec(x_110); -x_349 = lean_ctor_get(x_3, 1); -lean_inc(x_349); +lean_object* x_353; lean_object* x_354; +lean_dec(x_69); +x_353 = lean_ctor_get(x_3, 1); +lean_inc(x_353); lean_dec(x_3); lean_inc(x_4); -x_350 = l_Lean_Elab_Term_inferType(x_1, x_349, x_4, x_114); -if (lean_obj_tag(x_350) == 0) +x_354 = l_Lean_Elab_Term_inferType(x_1, x_353, x_4, x_73); +if (lean_obj_tag(x_354) == 0) { -lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_351 = lean_ctor_get(x_350, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); -lean_dec(x_350); -lean_inc(x_4); -x_353 = l_Lean_Elab_Term_whnf(x_1, x_351, x_4, x_352); -if (lean_obj_tag(x_353) == 0) -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; -x_354 = lean_ctor_get(x_353, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_353, 1); +lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_355 = lean_ctor_get(x_354, 0); lean_inc(x_355); -lean_dec(x_353); -x_356 = l_Lean_Expr_getAppFn___main(x_354); -x_357 = l_Lean_Elab_Term_tryPostponeIfMVar(x_354, x_4, x_355); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); +lean_dec(x_354); +lean_inc(x_4); +x_357 = l_Lean_Elab_Term_whnf(x_1, x_355, x_4, x_356); if (lean_obj_tag(x_357) == 0) { -uint8_t x_358; -x_358 = !lean_is_exclusive(x_357); -if (x_358 == 0) -{ -lean_object* x_359; lean_object* x_360; lean_object* x_361; +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; +x_358 = lean_ctor_get(x_357, 0); +lean_inc(x_358); x_359 = lean_ctor_get(x_357, 1); -x_360 = lean_ctor_get(x_357, 0); +lean_inc(x_359); +lean_dec(x_357); +x_360 = l_Lean_Expr_getAppFn___main(x_358); +x_361 = l_Lean_Elab_Term_tryPostponeIfMVar(x_358, x_4, x_359); +if (lean_obj_tag(x_361) == 0) +{ +uint8_t x_362; +x_362 = !lean_is_exclusive(x_361); +if (x_362 == 0) +{ +lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_363 = lean_ctor_get(x_361, 1); +x_364 = lean_ctor_get(x_361, 0); +lean_dec(x_364); +if (lean_obj_tag(x_360) == 4) +{ +lean_object* x_372; +lean_dec(x_358); +lean_dec(x_4); +x_372 = lean_ctor_get(x_360, 0); +lean_inc(x_372); lean_dec(x_360); -if (lean_obj_tag(x_356) == 4) -{ -lean_object* x_368; -lean_dec(x_354); -lean_dec(x_4); -x_368 = lean_ctor_get(x_356, 0); -lean_inc(x_368); -lean_dec(x_356); -lean_ctor_set(x_357, 0, x_368); -return x_357; +lean_ctor_set(x_361, 0, x_372); +return x_361; } else { -lean_object* x_369; -lean_free_object(x_357); -lean_dec(x_356); -x_369 = lean_box(0); -x_361 = x_369; -goto block_367; +lean_object* x_373; +lean_free_object(x_361); +lean_dec(x_360); +x_373 = lean_box(0); +x_365 = x_373; +goto block_371; } -block_367: +block_371: { -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; +lean_dec(x_365); +x_366 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_366, 0, x_358); +x_367 = l_Lean_indentExpr(x_366); +x_368 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_369 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_367); +x_370 = l_Lean_Elab_Term_throwError___rarg(x_1, x_369, x_4, x_363); +return x_370; +} +} +else +{ +lean_object* x_374; lean_object* x_375; +x_374 = lean_ctor_get(x_361, 1); +lean_inc(x_374); lean_dec(x_361); -x_362 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_362, 0, x_354); -x_363 = l_Lean_indentExpr(x_362); -x_364 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_365 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_365, 0, x_364); -lean_ctor_set(x_365, 1, x_363); -x_366 = l_Lean_Elab_Term_throwError___rarg(x_1, x_365, x_4, x_359); -return x_366; -} -} -else +if (lean_obj_tag(x_360) == 4) { -lean_object* x_370; lean_object* x_371; -x_370 = lean_ctor_get(x_357, 1); -lean_inc(x_370); -lean_dec(x_357); -if (lean_obj_tag(x_356) == 4) -{ -lean_object* x_378; lean_object* x_379; -lean_dec(x_354); +lean_object* x_382; lean_object* x_383; +lean_dec(x_358); lean_dec(x_4); -x_378 = lean_ctor_get(x_356, 0); -lean_inc(x_378); -lean_dec(x_356); -x_379 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_370); -return x_379; -} -else -{ -lean_object* x_380; -lean_dec(x_356); -x_380 = lean_box(0); -x_371 = x_380; -goto block_377; -} -block_377: -{ -lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; -lean_dec(x_371); -x_372 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_372, 0, x_354); -x_373 = l_Lean_indentExpr(x_372); -x_374 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_375 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_375, 0, x_374); -lean_ctor_set(x_375, 1, x_373); -x_376 = l_Lean_Elab_Term_throwError___rarg(x_1, x_375, x_4, x_370); -return x_376; -} -} -} -else -{ -uint8_t x_381; -lean_dec(x_356); -lean_dec(x_354); -lean_dec(x_4); -x_381 = !lean_is_exclusive(x_357); -if (x_381 == 0) -{ -return x_357; -} -else -{ -lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_382 = lean_ctor_get(x_357, 0); -x_383 = lean_ctor_get(x_357, 1); -lean_inc(x_383); +x_382 = lean_ctor_get(x_360, 0); lean_inc(x_382); -lean_dec(x_357); -x_384 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_384, 0, x_382); -lean_ctor_set(x_384, 1, x_383); -return x_384; +lean_dec(x_360); +x_383 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_383, 0, x_382); +lean_ctor_set(x_383, 1, x_374); +return x_383; +} +else +{ +lean_object* x_384; +lean_dec(x_360); +x_384 = lean_box(0); +x_375 = x_384; +goto block_381; +} +block_381: +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +lean_dec(x_375); +x_376 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_376, 0, x_358); +x_377 = l_Lean_indentExpr(x_376); +x_378 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_379 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_379, 0, x_378); +lean_ctor_set(x_379, 1, x_377); +x_380 = l_Lean_Elab_Term_throwError___rarg(x_1, x_379, x_4, x_374); +return x_380; } } } else { uint8_t x_385; +lean_dec(x_360); +lean_dec(x_358); lean_dec(x_4); -x_385 = !lean_is_exclusive(x_353); +x_385 = !lean_is_exclusive(x_361); if (x_385 == 0) { -return x_353; +return x_361; } else { lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_386 = lean_ctor_get(x_353, 0); -x_387 = lean_ctor_get(x_353, 1); +x_386 = lean_ctor_get(x_361, 0); +x_387 = lean_ctor_get(x_361, 1); lean_inc(x_387); lean_inc(x_386); -lean_dec(x_353); +lean_dec(x_361); x_388 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_388, 0, x_386); lean_ctor_set(x_388, 1, x_387); @@ -5203,19 +4459,19 @@ else { uint8_t x_389; lean_dec(x_4); -x_389 = !lean_is_exclusive(x_350); +x_389 = !lean_is_exclusive(x_357); if (x_389 == 0) { -return x_350; +return x_357; } else { lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_390 = lean_ctor_get(x_350, 0); -x_391 = lean_ctor_get(x_350, 1); +x_390 = lean_ctor_get(x_357, 0); +x_391 = lean_ctor_get(x_357, 1); lean_inc(x_391); lean_inc(x_390); -lean_dec(x_350); +lean_dec(x_357); x_392 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_392, 0, x_390); lean_ctor_set(x_392, 1, x_391); @@ -5225,177 +4481,177 @@ return x_392; } else { -lean_object* x_393; -lean_dec(x_3); -x_393 = lean_box(0); -x_115 = x_393; -goto block_121; -} -} -case 7: +uint8_t x_393; +lean_dec(x_4); +x_393 = !lean_is_exclusive(x_354); +if (x_393 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_354; +} +else +{ +lean_object* x_394; lean_object* x_395; lean_object* x_396; +x_394 = lean_ctor_get(x_354, 0); +x_395 = lean_ctor_get(x_354, 1); +lean_inc(x_395); +lean_inc(x_394); +lean_dec(x_354); +x_396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_396, 0, x_394); +lean_ctor_set(x_396, 1, x_395); +return x_396; +} +} +} +else +{ +lean_object* x_397; +lean_dec(x_3); +x_397 = lean_box(0); +x_74 = x_397; +goto block_80; +} +} +case 8: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_394; lean_object* x_395; -lean_dec(x_110); -x_394 = lean_ctor_get(x_3, 1); -lean_inc(x_394); +lean_object* x_398; lean_object* x_399; +lean_dec(x_69); +x_398 = lean_ctor_get(x_3, 1); +lean_inc(x_398); lean_dec(x_3); lean_inc(x_4); -x_395 = l_Lean_Elab_Term_inferType(x_1, x_394, x_4, x_114); -if (lean_obj_tag(x_395) == 0) +x_399 = l_Lean_Elab_Term_inferType(x_1, x_398, x_4, x_73); +if (lean_obj_tag(x_399) == 0) { -lean_object* x_396; lean_object* x_397; lean_object* x_398; -x_396 = lean_ctor_get(x_395, 0); -lean_inc(x_396); -x_397 = lean_ctor_get(x_395, 1); -lean_inc(x_397); -lean_dec(x_395); -lean_inc(x_4); -x_398 = l_Lean_Elab_Term_whnf(x_1, x_396, x_4, x_397); -if (lean_obj_tag(x_398) == 0) -{ -lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_399 = lean_ctor_get(x_398, 0); -lean_inc(x_399); -x_400 = lean_ctor_get(x_398, 1); +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_399, 0); lean_inc(x_400); -lean_dec(x_398); -x_401 = l_Lean_Expr_getAppFn___main(x_399); -x_402 = l_Lean_Elab_Term_tryPostponeIfMVar(x_399, x_4, x_400); +x_401 = lean_ctor_get(x_399, 1); +lean_inc(x_401); +lean_dec(x_399); +lean_inc(x_4); +x_402 = l_Lean_Elab_Term_whnf(x_1, x_400, x_4, x_401); if (lean_obj_tag(x_402) == 0) { -uint8_t x_403; -x_403 = !lean_is_exclusive(x_402); -if (x_403 == 0) -{ -lean_object* x_404; lean_object* x_405; lean_object* x_406; +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_403 = lean_ctor_get(x_402, 0); +lean_inc(x_403); x_404 = lean_ctor_get(x_402, 1); -x_405 = lean_ctor_get(x_402, 0); +lean_inc(x_404); +lean_dec(x_402); +x_405 = l_Lean_Expr_getAppFn___main(x_403); +x_406 = l_Lean_Elab_Term_tryPostponeIfMVar(x_403, x_4, x_404); +if (lean_obj_tag(x_406) == 0) +{ +uint8_t x_407; +x_407 = !lean_is_exclusive(x_406); +if (x_407 == 0) +{ +lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_408 = lean_ctor_get(x_406, 1); +x_409 = lean_ctor_get(x_406, 0); +lean_dec(x_409); +if (lean_obj_tag(x_405) == 4) +{ +lean_object* x_417; +lean_dec(x_403); +lean_dec(x_4); +x_417 = lean_ctor_get(x_405, 0); +lean_inc(x_417); lean_dec(x_405); -if (lean_obj_tag(x_401) == 4) -{ -lean_object* x_413; -lean_dec(x_399); -lean_dec(x_4); -x_413 = lean_ctor_get(x_401, 0); -lean_inc(x_413); -lean_dec(x_401); -lean_ctor_set(x_402, 0, x_413); -return x_402; +lean_ctor_set(x_406, 0, x_417); +return x_406; } else { -lean_object* x_414; -lean_free_object(x_402); -lean_dec(x_401); -x_414 = lean_box(0); -x_406 = x_414; -goto block_412; +lean_object* x_418; +lean_free_object(x_406); +lean_dec(x_405); +x_418 = lean_box(0); +x_410 = x_418; +goto block_416; } -block_412: +block_416: { -lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; +lean_dec(x_410); +x_411 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_411, 0, x_403); +x_412 = l_Lean_indentExpr(x_411); +x_413 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_414 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_412); +x_415 = l_Lean_Elab_Term_throwError___rarg(x_1, x_414, x_4, x_408); +return x_415; +} +} +else +{ +lean_object* x_419; lean_object* x_420; +x_419 = lean_ctor_get(x_406, 1); +lean_inc(x_419); lean_dec(x_406); -x_407 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_407, 0, x_399); -x_408 = l_Lean_indentExpr(x_407); -x_409 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_410 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_410, 0, x_409); -lean_ctor_set(x_410, 1, x_408); -x_411 = l_Lean_Elab_Term_throwError___rarg(x_1, x_410, x_4, x_404); -return x_411; -} -} -else +if (lean_obj_tag(x_405) == 4) { -lean_object* x_415; lean_object* x_416; -x_415 = lean_ctor_get(x_402, 1); -lean_inc(x_415); -lean_dec(x_402); -if (lean_obj_tag(x_401) == 4) -{ -lean_object* x_423; lean_object* x_424; -lean_dec(x_399); +lean_object* x_427; lean_object* x_428; +lean_dec(x_403); lean_dec(x_4); -x_423 = lean_ctor_get(x_401, 0); -lean_inc(x_423); -lean_dec(x_401); -x_424 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_424, 0, x_423); -lean_ctor_set(x_424, 1, x_415); -return x_424; -} -else -{ -lean_object* x_425; -lean_dec(x_401); -x_425 = lean_box(0); -x_416 = x_425; -goto block_422; -} -block_422: -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; -lean_dec(x_416); -x_417 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_417, 0, x_399); -x_418 = l_Lean_indentExpr(x_417); -x_419 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_420 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_420, 0, x_419); -lean_ctor_set(x_420, 1, x_418); -x_421 = l_Lean_Elab_Term_throwError___rarg(x_1, x_420, x_4, x_415); -return x_421; -} -} -} -else -{ -uint8_t x_426; -lean_dec(x_401); -lean_dec(x_399); -lean_dec(x_4); -x_426 = !lean_is_exclusive(x_402); -if (x_426 == 0) -{ -return x_402; -} -else -{ -lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_427 = lean_ctor_get(x_402, 0); -x_428 = lean_ctor_get(x_402, 1); -lean_inc(x_428); +x_427 = lean_ctor_get(x_405, 0); lean_inc(x_427); -lean_dec(x_402); -x_429 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_429, 0, x_427); -lean_ctor_set(x_429, 1, x_428); -return x_429; +lean_dec(x_405); +x_428 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_428, 0, x_427); +lean_ctor_set(x_428, 1, x_419); +return x_428; +} +else +{ +lean_object* x_429; +lean_dec(x_405); +x_429 = lean_box(0); +x_420 = x_429; +goto block_426; +} +block_426: +{ +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; +lean_dec(x_420); +x_421 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_421, 0, x_403); +x_422 = l_Lean_indentExpr(x_421); +x_423 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_424 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_424, 0, x_423); +lean_ctor_set(x_424, 1, x_422); +x_425 = l_Lean_Elab_Term_throwError___rarg(x_1, x_424, x_4, x_419); +return x_425; } } } else { uint8_t x_430; +lean_dec(x_405); +lean_dec(x_403); lean_dec(x_4); -x_430 = !lean_is_exclusive(x_398); +x_430 = !lean_is_exclusive(x_406); if (x_430 == 0) { -return x_398; +return x_406; } else { lean_object* x_431; lean_object* x_432; lean_object* x_433; -x_431 = lean_ctor_get(x_398, 0); -x_432 = lean_ctor_get(x_398, 1); +x_431 = lean_ctor_get(x_406, 0); +x_432 = lean_ctor_get(x_406, 1); lean_inc(x_432); lean_inc(x_431); -lean_dec(x_398); +lean_dec(x_406); x_433 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_433, 0, x_431); lean_ctor_set(x_433, 1, x_432); @@ -5407,19 +4663,19 @@ else { uint8_t x_434; lean_dec(x_4); -x_434 = !lean_is_exclusive(x_395); +x_434 = !lean_is_exclusive(x_402); if (x_434 == 0) { -return x_395; +return x_402; } else { lean_object* x_435; lean_object* x_436; lean_object* x_437; -x_435 = lean_ctor_get(x_395, 0); -x_436 = lean_ctor_get(x_395, 1); +x_435 = lean_ctor_get(x_402, 0); +x_436 = lean_ctor_get(x_402, 1); lean_inc(x_436); lean_inc(x_435); -lean_dec(x_395); +lean_dec(x_402); x_437 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_437, 0, x_435); lean_ctor_set(x_437, 1, x_436); @@ -5429,177 +4685,177 @@ return x_437; } else { -lean_object* x_438; -lean_dec(x_3); -x_438 = lean_box(0); -x_115 = x_438; -goto block_121; -} -} -case 8: +uint8_t x_438; +lean_dec(x_4); +x_438 = !lean_is_exclusive(x_399); +if (x_438 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_399; +} +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; +x_439 = lean_ctor_get(x_399, 0); +x_440 = lean_ctor_get(x_399, 1); +lean_inc(x_440); +lean_inc(x_439); +lean_dec(x_399); +x_441 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_441, 0, x_439); +lean_ctor_set(x_441, 1, x_440); +return x_441; +} +} +} +else +{ +lean_object* x_442; +lean_dec(x_3); +x_442 = lean_box(0); +x_74 = x_442; +goto block_80; +} +} +case 9: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_439; lean_object* x_440; -lean_dec(x_110); -x_439 = lean_ctor_get(x_3, 1); -lean_inc(x_439); +lean_object* x_443; lean_object* x_444; +lean_dec(x_69); +x_443 = lean_ctor_get(x_3, 1); +lean_inc(x_443); lean_dec(x_3); lean_inc(x_4); -x_440 = l_Lean_Elab_Term_inferType(x_1, x_439, x_4, x_114); -if (lean_obj_tag(x_440) == 0) +x_444 = l_Lean_Elab_Term_inferType(x_1, x_443, x_4, x_73); +if (lean_obj_tag(x_444) == 0) { -lean_object* x_441; lean_object* x_442; lean_object* x_443; -x_441 = lean_ctor_get(x_440, 0); -lean_inc(x_441); -x_442 = lean_ctor_get(x_440, 1); -lean_inc(x_442); -lean_dec(x_440); -lean_inc(x_4); -x_443 = l_Lean_Elab_Term_whnf(x_1, x_441, x_4, x_442); -if (lean_obj_tag(x_443) == 0) -{ -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; -x_444 = lean_ctor_get(x_443, 0); -lean_inc(x_444); -x_445 = lean_ctor_get(x_443, 1); +lean_object* x_445; lean_object* x_446; lean_object* x_447; +x_445 = lean_ctor_get(x_444, 0); lean_inc(x_445); -lean_dec(x_443); -x_446 = l_Lean_Expr_getAppFn___main(x_444); -x_447 = l_Lean_Elab_Term_tryPostponeIfMVar(x_444, x_4, x_445); +x_446 = lean_ctor_get(x_444, 1); +lean_inc(x_446); +lean_dec(x_444); +lean_inc(x_4); +x_447 = l_Lean_Elab_Term_whnf(x_1, x_445, x_4, x_446); if (lean_obj_tag(x_447) == 0) { -uint8_t x_448; -x_448 = !lean_is_exclusive(x_447); -if (x_448 == 0) -{ -lean_object* x_449; lean_object* x_450; lean_object* x_451; +lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; +x_448 = lean_ctor_get(x_447, 0); +lean_inc(x_448); x_449 = lean_ctor_get(x_447, 1); -x_450 = lean_ctor_get(x_447, 0); +lean_inc(x_449); +lean_dec(x_447); +x_450 = l_Lean_Expr_getAppFn___main(x_448); +x_451 = l_Lean_Elab_Term_tryPostponeIfMVar(x_448, x_4, x_449); +if (lean_obj_tag(x_451) == 0) +{ +uint8_t x_452; +x_452 = !lean_is_exclusive(x_451); +if (x_452 == 0) +{ +lean_object* x_453; lean_object* x_454; lean_object* x_455; +x_453 = lean_ctor_get(x_451, 1); +x_454 = lean_ctor_get(x_451, 0); +lean_dec(x_454); +if (lean_obj_tag(x_450) == 4) +{ +lean_object* x_462; +lean_dec(x_448); +lean_dec(x_4); +x_462 = lean_ctor_get(x_450, 0); +lean_inc(x_462); lean_dec(x_450); -if (lean_obj_tag(x_446) == 4) -{ -lean_object* x_458; -lean_dec(x_444); -lean_dec(x_4); -x_458 = lean_ctor_get(x_446, 0); -lean_inc(x_458); -lean_dec(x_446); -lean_ctor_set(x_447, 0, x_458); -return x_447; +lean_ctor_set(x_451, 0, x_462); +return x_451; } else { -lean_object* x_459; -lean_free_object(x_447); -lean_dec(x_446); -x_459 = lean_box(0); -x_451 = x_459; -goto block_457; +lean_object* x_463; +lean_free_object(x_451); +lean_dec(x_450); +x_463 = lean_box(0); +x_455 = x_463; +goto block_461; } -block_457: +block_461: { -lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; +lean_dec(x_455); +x_456 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_456, 0, x_448); +x_457 = l_Lean_indentExpr(x_456); +x_458 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_459 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_459, 0, x_458); +lean_ctor_set(x_459, 1, x_457); +x_460 = l_Lean_Elab_Term_throwError___rarg(x_1, x_459, x_4, x_453); +return x_460; +} +} +else +{ +lean_object* x_464; lean_object* x_465; +x_464 = lean_ctor_get(x_451, 1); +lean_inc(x_464); lean_dec(x_451); -x_452 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_452, 0, x_444); -x_453 = l_Lean_indentExpr(x_452); -x_454 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_455 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_455, 0, x_454); -lean_ctor_set(x_455, 1, x_453); -x_456 = l_Lean_Elab_Term_throwError___rarg(x_1, x_455, x_4, x_449); -return x_456; -} -} -else +if (lean_obj_tag(x_450) == 4) { -lean_object* x_460; lean_object* x_461; -x_460 = lean_ctor_get(x_447, 1); -lean_inc(x_460); -lean_dec(x_447); -if (lean_obj_tag(x_446) == 4) -{ -lean_object* x_468; lean_object* x_469; -lean_dec(x_444); +lean_object* x_472; lean_object* x_473; +lean_dec(x_448); lean_dec(x_4); -x_468 = lean_ctor_get(x_446, 0); -lean_inc(x_468); -lean_dec(x_446); -x_469 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_469, 0, x_468); -lean_ctor_set(x_469, 1, x_460); -return x_469; -} -else -{ -lean_object* x_470; -lean_dec(x_446); -x_470 = lean_box(0); -x_461 = x_470; -goto block_467; -} -block_467: -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; -lean_dec(x_461); -x_462 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_462, 0, x_444); -x_463 = l_Lean_indentExpr(x_462); -x_464 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_465 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_465, 0, x_464); -lean_ctor_set(x_465, 1, x_463); -x_466 = l_Lean_Elab_Term_throwError___rarg(x_1, x_465, x_4, x_460); -return x_466; -} -} -} -else -{ -uint8_t x_471; -lean_dec(x_446); -lean_dec(x_444); -lean_dec(x_4); -x_471 = !lean_is_exclusive(x_447); -if (x_471 == 0) -{ -return x_447; -} -else -{ -lean_object* x_472; lean_object* x_473; lean_object* x_474; -x_472 = lean_ctor_get(x_447, 0); -x_473 = lean_ctor_get(x_447, 1); -lean_inc(x_473); +x_472 = lean_ctor_get(x_450, 0); lean_inc(x_472); -lean_dec(x_447); -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_472); -lean_ctor_set(x_474, 1, x_473); -return x_474; +lean_dec(x_450); +x_473 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_473, 0, x_472); +lean_ctor_set(x_473, 1, x_464); +return x_473; +} +else +{ +lean_object* x_474; +lean_dec(x_450); +x_474 = lean_box(0); +x_465 = x_474; +goto block_471; +} +block_471: +{ +lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; +lean_dec(x_465); +x_466 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_466, 0, x_448); +x_467 = l_Lean_indentExpr(x_466); +x_468 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_469 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_469, 0, x_468); +lean_ctor_set(x_469, 1, x_467); +x_470 = l_Lean_Elab_Term_throwError___rarg(x_1, x_469, x_4, x_464); +return x_470; } } } else { uint8_t x_475; +lean_dec(x_450); +lean_dec(x_448); lean_dec(x_4); -x_475 = !lean_is_exclusive(x_443); +x_475 = !lean_is_exclusive(x_451); if (x_475 == 0) { -return x_443; +return x_451; } else { lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_476 = lean_ctor_get(x_443, 0); -x_477 = lean_ctor_get(x_443, 1); +x_476 = lean_ctor_get(x_451, 0); +x_477 = lean_ctor_get(x_451, 1); lean_inc(x_477); lean_inc(x_476); -lean_dec(x_443); +lean_dec(x_451); x_478 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_478, 0, x_476); lean_ctor_set(x_478, 1, x_477); @@ -5611,19 +4867,19 @@ else { uint8_t x_479; lean_dec(x_4); -x_479 = !lean_is_exclusive(x_440); +x_479 = !lean_is_exclusive(x_447); if (x_479 == 0) { -return x_440; +return x_447; } else { lean_object* x_480; lean_object* x_481; lean_object* x_482; -x_480 = lean_ctor_get(x_440, 0); -x_481 = lean_ctor_get(x_440, 1); +x_480 = lean_ctor_get(x_447, 0); +x_481 = lean_ctor_get(x_447, 1); lean_inc(x_481); lean_inc(x_480); -lean_dec(x_440); +lean_dec(x_447); x_482 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_482, 0, x_480); lean_ctor_set(x_482, 1, x_481); @@ -5633,177 +4889,177 @@ return x_482; } else { -lean_object* x_483; -lean_dec(x_3); -x_483 = lean_box(0); -x_115 = x_483; -goto block_121; -} -} -case 9: +uint8_t x_483; +lean_dec(x_4); +x_483 = !lean_is_exclusive(x_444); +if (x_483 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_444; +} +else +{ +lean_object* x_484; lean_object* x_485; lean_object* x_486; +x_484 = lean_ctor_get(x_444, 0); +x_485 = lean_ctor_get(x_444, 1); +lean_inc(x_485); +lean_inc(x_484); +lean_dec(x_444); +x_486 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_486, 0, x_484); +lean_ctor_set(x_486, 1, x_485); +return x_486; +} +} +} +else +{ +lean_object* x_487; +lean_dec(x_3); +x_487 = lean_box(0); +x_74 = x_487; +goto block_80; +} +} +case 10: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_484; lean_object* x_485; -lean_dec(x_110); -x_484 = lean_ctor_get(x_3, 1); -lean_inc(x_484); +lean_object* x_488; lean_object* x_489; +lean_dec(x_69); +x_488 = lean_ctor_get(x_3, 1); +lean_inc(x_488); lean_dec(x_3); lean_inc(x_4); -x_485 = l_Lean_Elab_Term_inferType(x_1, x_484, x_4, x_114); -if (lean_obj_tag(x_485) == 0) +x_489 = l_Lean_Elab_Term_inferType(x_1, x_488, x_4, x_73); +if (lean_obj_tag(x_489) == 0) { -lean_object* x_486; lean_object* x_487; lean_object* x_488; -x_486 = lean_ctor_get(x_485, 0); -lean_inc(x_486); -x_487 = lean_ctor_get(x_485, 1); -lean_inc(x_487); -lean_dec(x_485); -lean_inc(x_4); -x_488 = l_Lean_Elab_Term_whnf(x_1, x_486, x_4, x_487); -if (lean_obj_tag(x_488) == 0) -{ -lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_489 = lean_ctor_get(x_488, 0); -lean_inc(x_489); -x_490 = lean_ctor_get(x_488, 1); +lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_490 = lean_ctor_get(x_489, 0); lean_inc(x_490); -lean_dec(x_488); -x_491 = l_Lean_Expr_getAppFn___main(x_489); -x_492 = l_Lean_Elab_Term_tryPostponeIfMVar(x_489, x_4, x_490); +x_491 = lean_ctor_get(x_489, 1); +lean_inc(x_491); +lean_dec(x_489); +lean_inc(x_4); +x_492 = l_Lean_Elab_Term_whnf(x_1, x_490, x_4, x_491); if (lean_obj_tag(x_492) == 0) { -uint8_t x_493; -x_493 = !lean_is_exclusive(x_492); -if (x_493 == 0) -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; +lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; +x_493 = lean_ctor_get(x_492, 0); +lean_inc(x_493); x_494 = lean_ctor_get(x_492, 1); -x_495 = lean_ctor_get(x_492, 0); +lean_inc(x_494); +lean_dec(x_492); +x_495 = l_Lean_Expr_getAppFn___main(x_493); +x_496 = l_Lean_Elab_Term_tryPostponeIfMVar(x_493, x_4, x_494); +if (lean_obj_tag(x_496) == 0) +{ +uint8_t x_497; +x_497 = !lean_is_exclusive(x_496); +if (x_497 == 0) +{ +lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_498 = lean_ctor_get(x_496, 1); +x_499 = lean_ctor_get(x_496, 0); +lean_dec(x_499); +if (lean_obj_tag(x_495) == 4) +{ +lean_object* x_507; +lean_dec(x_493); +lean_dec(x_4); +x_507 = lean_ctor_get(x_495, 0); +lean_inc(x_507); lean_dec(x_495); -if (lean_obj_tag(x_491) == 4) -{ -lean_object* x_503; -lean_dec(x_489); -lean_dec(x_4); -x_503 = lean_ctor_get(x_491, 0); -lean_inc(x_503); -lean_dec(x_491); -lean_ctor_set(x_492, 0, x_503); -return x_492; +lean_ctor_set(x_496, 0, x_507); +return x_496; } else { -lean_object* x_504; -lean_free_object(x_492); -lean_dec(x_491); -x_504 = lean_box(0); -x_496 = x_504; -goto block_502; +lean_object* x_508; +lean_free_object(x_496); +lean_dec(x_495); +x_508 = lean_box(0); +x_500 = x_508; +goto block_506; } -block_502: +block_506: { -lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; +lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; +lean_dec(x_500); +x_501 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_501, 0, x_493); +x_502 = l_Lean_indentExpr(x_501); +x_503 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_504 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_504, 0, x_503); +lean_ctor_set(x_504, 1, x_502); +x_505 = l_Lean_Elab_Term_throwError___rarg(x_1, x_504, x_4, x_498); +return x_505; +} +} +else +{ +lean_object* x_509; lean_object* x_510; +x_509 = lean_ctor_get(x_496, 1); +lean_inc(x_509); lean_dec(x_496); -x_497 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_497, 0, x_489); -x_498 = l_Lean_indentExpr(x_497); -x_499 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_500 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_500, 0, x_499); -lean_ctor_set(x_500, 1, x_498); -x_501 = l_Lean_Elab_Term_throwError___rarg(x_1, x_500, x_4, x_494); -return x_501; -} -} -else +if (lean_obj_tag(x_495) == 4) { -lean_object* x_505; lean_object* x_506; -x_505 = lean_ctor_get(x_492, 1); -lean_inc(x_505); -lean_dec(x_492); -if (lean_obj_tag(x_491) == 4) -{ -lean_object* x_513; lean_object* x_514; -lean_dec(x_489); +lean_object* x_517; lean_object* x_518; +lean_dec(x_493); lean_dec(x_4); -x_513 = lean_ctor_get(x_491, 0); -lean_inc(x_513); -lean_dec(x_491); -x_514 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_514, 0, x_513); -lean_ctor_set(x_514, 1, x_505); -return x_514; -} -else -{ -lean_object* x_515; -lean_dec(x_491); -x_515 = lean_box(0); -x_506 = x_515; -goto block_512; -} -block_512: -{ -lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; -lean_dec(x_506); -x_507 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_507, 0, x_489); -x_508 = l_Lean_indentExpr(x_507); -x_509 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_510 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_510, 0, x_509); -lean_ctor_set(x_510, 1, x_508); -x_511 = l_Lean_Elab_Term_throwError___rarg(x_1, x_510, x_4, x_505); -return x_511; -} -} -} -else -{ -uint8_t x_516; -lean_dec(x_491); -lean_dec(x_489); -lean_dec(x_4); -x_516 = !lean_is_exclusive(x_492); -if (x_516 == 0) -{ -return x_492; -} -else -{ -lean_object* x_517; lean_object* x_518; lean_object* x_519; -x_517 = lean_ctor_get(x_492, 0); -x_518 = lean_ctor_get(x_492, 1); -lean_inc(x_518); +x_517 = lean_ctor_get(x_495, 0); lean_inc(x_517); -lean_dec(x_492); -x_519 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_519, 0, x_517); -lean_ctor_set(x_519, 1, x_518); -return x_519; +lean_dec(x_495); +x_518 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_518, 0, x_517); +lean_ctor_set(x_518, 1, x_509); +return x_518; +} +else +{ +lean_object* x_519; +lean_dec(x_495); +x_519 = lean_box(0); +x_510 = x_519; +goto block_516; +} +block_516: +{ +lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; +lean_dec(x_510); +x_511 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_511, 0, x_493); +x_512 = l_Lean_indentExpr(x_511); +x_513 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_514 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_514, 0, x_513); +lean_ctor_set(x_514, 1, x_512); +x_515 = l_Lean_Elab_Term_throwError___rarg(x_1, x_514, x_4, x_509); +return x_515; } } } else { uint8_t x_520; +lean_dec(x_495); +lean_dec(x_493); lean_dec(x_4); -x_520 = !lean_is_exclusive(x_488); +x_520 = !lean_is_exclusive(x_496); if (x_520 == 0) { -return x_488; +return x_496; } else { lean_object* x_521; lean_object* x_522; lean_object* x_523; -x_521 = lean_ctor_get(x_488, 0); -x_522 = lean_ctor_get(x_488, 1); +x_521 = lean_ctor_get(x_496, 0); +x_522 = lean_ctor_get(x_496, 1); lean_inc(x_522); lean_inc(x_521); -lean_dec(x_488); +lean_dec(x_496); x_523 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_523, 0, x_521); lean_ctor_set(x_523, 1, x_522); @@ -5815,19 +5071,19 @@ else { uint8_t x_524; lean_dec(x_4); -x_524 = !lean_is_exclusive(x_485); +x_524 = !lean_is_exclusive(x_492); if (x_524 == 0) { -return x_485; +return x_492; } else { lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_525 = lean_ctor_get(x_485, 0); -x_526 = lean_ctor_get(x_485, 1); +x_525 = lean_ctor_get(x_492, 0); +x_526 = lean_ctor_get(x_492, 1); lean_inc(x_526); lean_inc(x_525); -lean_dec(x_485); +lean_dec(x_492); x_527 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_527, 0, x_525); lean_ctor_set(x_527, 1, x_526); @@ -5837,177 +5093,177 @@ return x_527; } else { -lean_object* x_528; -lean_dec(x_3); -x_528 = lean_box(0); -x_115 = x_528; -goto block_121; -} -} -case 10: +uint8_t x_528; +lean_dec(x_4); +x_528 = !lean_is_exclusive(x_489); +if (x_528 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_489; +} +else +{ +lean_object* x_529; lean_object* x_530; lean_object* x_531; +x_529 = lean_ctor_get(x_489, 0); +x_530 = lean_ctor_get(x_489, 1); +lean_inc(x_530); +lean_inc(x_529); +lean_dec(x_489); +x_531 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_531, 0, x_529); +lean_ctor_set(x_531, 1, x_530); +return x_531; +} +} +} +else +{ +lean_object* x_532; +lean_dec(x_3); +x_532 = lean_box(0); +x_74 = x_532; +goto block_80; +} +} +case 11: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_529; lean_object* x_530; -lean_dec(x_110); -x_529 = lean_ctor_get(x_3, 1); -lean_inc(x_529); +lean_object* x_533; lean_object* x_534; +lean_dec(x_69); +x_533 = lean_ctor_get(x_3, 1); +lean_inc(x_533); lean_dec(x_3); lean_inc(x_4); -x_530 = l_Lean_Elab_Term_inferType(x_1, x_529, x_4, x_114); -if (lean_obj_tag(x_530) == 0) +x_534 = l_Lean_Elab_Term_inferType(x_1, x_533, x_4, x_73); +if (lean_obj_tag(x_534) == 0) { -lean_object* x_531; lean_object* x_532; lean_object* x_533; -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -lean_inc(x_4); -x_533 = l_Lean_Elab_Term_whnf(x_1, x_531, x_4, x_532); -if (lean_obj_tag(x_533) == 0) -{ -lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; -x_534 = lean_ctor_get(x_533, 0); -lean_inc(x_534); -x_535 = lean_ctor_get(x_533, 1); +lean_object* x_535; lean_object* x_536; lean_object* x_537; +x_535 = lean_ctor_get(x_534, 0); lean_inc(x_535); -lean_dec(x_533); -x_536 = l_Lean_Expr_getAppFn___main(x_534); -x_537 = l_Lean_Elab_Term_tryPostponeIfMVar(x_534, x_4, x_535); +x_536 = lean_ctor_get(x_534, 1); +lean_inc(x_536); +lean_dec(x_534); +lean_inc(x_4); +x_537 = l_Lean_Elab_Term_whnf(x_1, x_535, x_4, x_536); if (lean_obj_tag(x_537) == 0) { -uint8_t x_538; -x_538 = !lean_is_exclusive(x_537); -if (x_538 == 0) -{ -lean_object* x_539; lean_object* x_540; lean_object* x_541; +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_538 = lean_ctor_get(x_537, 0); +lean_inc(x_538); x_539 = lean_ctor_get(x_537, 1); -x_540 = lean_ctor_get(x_537, 0); +lean_inc(x_539); +lean_dec(x_537); +x_540 = l_Lean_Expr_getAppFn___main(x_538); +x_541 = l_Lean_Elab_Term_tryPostponeIfMVar(x_538, x_4, x_539); +if (lean_obj_tag(x_541) == 0) +{ +uint8_t x_542; +x_542 = !lean_is_exclusive(x_541); +if (x_542 == 0) +{ +lean_object* x_543; lean_object* x_544; lean_object* x_545; +x_543 = lean_ctor_get(x_541, 1); +x_544 = lean_ctor_get(x_541, 0); +lean_dec(x_544); +if (lean_obj_tag(x_540) == 4) +{ +lean_object* x_552; +lean_dec(x_538); +lean_dec(x_4); +x_552 = lean_ctor_get(x_540, 0); +lean_inc(x_552); lean_dec(x_540); -if (lean_obj_tag(x_536) == 4) -{ -lean_object* x_548; -lean_dec(x_534); -lean_dec(x_4); -x_548 = lean_ctor_get(x_536, 0); -lean_inc(x_548); -lean_dec(x_536); -lean_ctor_set(x_537, 0, x_548); -return x_537; +lean_ctor_set(x_541, 0, x_552); +return x_541; } else { -lean_object* x_549; -lean_free_object(x_537); -lean_dec(x_536); -x_549 = lean_box(0); -x_541 = x_549; -goto block_547; +lean_object* x_553; +lean_free_object(x_541); +lean_dec(x_540); +x_553 = lean_box(0); +x_545 = x_553; +goto block_551; } -block_547: +block_551: { -lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; +lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; +lean_dec(x_545); +x_546 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_546, 0, x_538); +x_547 = l_Lean_indentExpr(x_546); +x_548 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_549 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_549, 0, x_548); +lean_ctor_set(x_549, 1, x_547); +x_550 = l_Lean_Elab_Term_throwError___rarg(x_1, x_549, x_4, x_543); +return x_550; +} +} +else +{ +lean_object* x_554; lean_object* x_555; +x_554 = lean_ctor_get(x_541, 1); +lean_inc(x_554); lean_dec(x_541); -x_542 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_542, 0, x_534); -x_543 = l_Lean_indentExpr(x_542); -x_544 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_545 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_545, 0, x_544); -lean_ctor_set(x_545, 1, x_543); -x_546 = l_Lean_Elab_Term_throwError___rarg(x_1, x_545, x_4, x_539); -return x_546; -} -} -else +if (lean_obj_tag(x_540) == 4) { -lean_object* x_550; lean_object* x_551; -x_550 = lean_ctor_get(x_537, 1); -lean_inc(x_550); -lean_dec(x_537); -if (lean_obj_tag(x_536) == 4) -{ -lean_object* x_558; lean_object* x_559; -lean_dec(x_534); +lean_object* x_562; lean_object* x_563; +lean_dec(x_538); lean_dec(x_4); -x_558 = lean_ctor_get(x_536, 0); -lean_inc(x_558); -lean_dec(x_536); -x_559 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_550); -return x_559; -} -else -{ -lean_object* x_560; -lean_dec(x_536); -x_560 = lean_box(0); -x_551 = x_560; -goto block_557; -} -block_557: -{ -lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; -lean_dec(x_551); -x_552 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_552, 0, x_534); -x_553 = l_Lean_indentExpr(x_552); -x_554 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_555 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_555, 0, x_554); -lean_ctor_set(x_555, 1, x_553); -x_556 = l_Lean_Elab_Term_throwError___rarg(x_1, x_555, x_4, x_550); -return x_556; -} -} -} -else -{ -uint8_t x_561; -lean_dec(x_536); -lean_dec(x_534); -lean_dec(x_4); -x_561 = !lean_is_exclusive(x_537); -if (x_561 == 0) -{ -return x_537; -} -else -{ -lean_object* x_562; lean_object* x_563; lean_object* x_564; -x_562 = lean_ctor_get(x_537, 0); -x_563 = lean_ctor_get(x_537, 1); -lean_inc(x_563); +x_562 = lean_ctor_get(x_540, 0); lean_inc(x_562); -lean_dec(x_537); -x_564 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_564, 0, x_562); -lean_ctor_set(x_564, 1, x_563); -return x_564; +lean_dec(x_540); +x_563 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_563, 0, x_562); +lean_ctor_set(x_563, 1, x_554); +return x_563; +} +else +{ +lean_object* x_564; +lean_dec(x_540); +x_564 = lean_box(0); +x_555 = x_564; +goto block_561; +} +block_561: +{ +lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; +lean_dec(x_555); +x_556 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_556, 0, x_538); +x_557 = l_Lean_indentExpr(x_556); +x_558 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_559 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_559, 0, x_558); +lean_ctor_set(x_559, 1, x_557); +x_560 = l_Lean_Elab_Term_throwError___rarg(x_1, x_559, x_4, x_554); +return x_560; } } } else { uint8_t x_565; +lean_dec(x_540); +lean_dec(x_538); lean_dec(x_4); -x_565 = !lean_is_exclusive(x_533); +x_565 = !lean_is_exclusive(x_541); if (x_565 == 0) { -return x_533; +return x_541; } else { lean_object* x_566; lean_object* x_567; lean_object* x_568; -x_566 = lean_ctor_get(x_533, 0); -x_567 = lean_ctor_get(x_533, 1); +x_566 = lean_ctor_get(x_541, 0); +x_567 = lean_ctor_get(x_541, 1); lean_inc(x_567); lean_inc(x_566); -lean_dec(x_533); +lean_dec(x_541); x_568 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_568, 0, x_566); lean_ctor_set(x_568, 1, x_567); @@ -6019,19 +5275,19 @@ else { uint8_t x_569; lean_dec(x_4); -x_569 = !lean_is_exclusive(x_530); +x_569 = !lean_is_exclusive(x_537); if (x_569 == 0) { -return x_530; +return x_537; } else { lean_object* x_570; lean_object* x_571; lean_object* x_572; -x_570 = lean_ctor_get(x_530, 0); -x_571 = lean_ctor_get(x_530, 1); +x_570 = lean_ctor_get(x_537, 0); +x_571 = lean_ctor_get(x_537, 1); lean_inc(x_571); lean_inc(x_570); -lean_dec(x_530); +lean_dec(x_537); x_572 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_572, 0, x_570); lean_ctor_set(x_572, 1, x_571); @@ -6041,177 +5297,177 @@ return x_572; } else { -lean_object* x_573; -lean_dec(x_3); -x_573 = lean_box(0); -x_115 = x_573; -goto block_121; -} -} -case 11: +uint8_t x_573; +lean_dec(x_4); +x_573 = !lean_is_exclusive(x_534); +if (x_573 == 0) { -lean_dec(x_122); -lean_free_object(x_111); +return x_534; +} +else +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; +x_574 = lean_ctor_get(x_534, 0); +x_575 = lean_ctor_get(x_534, 1); +lean_inc(x_575); +lean_inc(x_574); +lean_dec(x_534); +x_576 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_576, 0, x_574); +lean_ctor_set(x_576, 1, x_575); +return x_576; +} +} +} +else +{ +lean_object* x_577; +lean_dec(x_3); +x_577 = lean_box(0); +x_74 = x_577; +goto block_80; +} +} +default: +{ +lean_dec(x_81); +lean_free_object(x_70); if (lean_obj_tag(x_3) == 2) { -lean_object* x_574; lean_object* x_575; -lean_dec(x_110); -x_574 = lean_ctor_get(x_3, 1); -lean_inc(x_574); +lean_object* x_578; lean_object* x_579; +lean_dec(x_69); +x_578 = lean_ctor_get(x_3, 1); +lean_inc(x_578); lean_dec(x_3); lean_inc(x_4); -x_575 = l_Lean_Elab_Term_inferType(x_1, x_574, x_4, x_114); -if (lean_obj_tag(x_575) == 0) +x_579 = l_Lean_Elab_Term_inferType(x_1, x_578, x_4, x_73); +if (lean_obj_tag(x_579) == 0) { -lean_object* x_576; lean_object* x_577; lean_object* x_578; -x_576 = lean_ctor_get(x_575, 0); -lean_inc(x_576); -x_577 = lean_ctor_get(x_575, 1); -lean_inc(x_577); -lean_dec(x_575); -lean_inc(x_4); -x_578 = l_Lean_Elab_Term_whnf(x_1, x_576, x_4, x_577); -if (lean_obj_tag(x_578) == 0) -{ -lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; -x_579 = lean_ctor_get(x_578, 0); -lean_inc(x_579); -x_580 = lean_ctor_get(x_578, 1); +lean_object* x_580; lean_object* x_581; lean_object* x_582; +x_580 = lean_ctor_get(x_579, 0); lean_inc(x_580); -lean_dec(x_578); -x_581 = l_Lean_Expr_getAppFn___main(x_579); -x_582 = l_Lean_Elab_Term_tryPostponeIfMVar(x_579, x_4, x_580); +x_581 = lean_ctor_get(x_579, 1); +lean_inc(x_581); +lean_dec(x_579); +lean_inc(x_4); +x_582 = l_Lean_Elab_Term_whnf(x_1, x_580, x_4, x_581); if (lean_obj_tag(x_582) == 0) { -uint8_t x_583; -x_583 = !lean_is_exclusive(x_582); -if (x_583 == 0) -{ -lean_object* x_584; lean_object* x_585; lean_object* x_586; +lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; +x_583 = lean_ctor_get(x_582, 0); +lean_inc(x_583); x_584 = lean_ctor_get(x_582, 1); -x_585 = lean_ctor_get(x_582, 0); +lean_inc(x_584); +lean_dec(x_582); +x_585 = l_Lean_Expr_getAppFn___main(x_583); +x_586 = l_Lean_Elab_Term_tryPostponeIfMVar(x_583, x_4, x_584); +if (lean_obj_tag(x_586) == 0) +{ +uint8_t x_587; +x_587 = !lean_is_exclusive(x_586); +if (x_587 == 0) +{ +lean_object* x_588; lean_object* x_589; lean_object* x_590; +x_588 = lean_ctor_get(x_586, 1); +x_589 = lean_ctor_get(x_586, 0); +lean_dec(x_589); +if (lean_obj_tag(x_585) == 4) +{ +lean_object* x_597; +lean_dec(x_583); +lean_dec(x_4); +x_597 = lean_ctor_get(x_585, 0); +lean_inc(x_597); lean_dec(x_585); -if (lean_obj_tag(x_581) == 4) -{ -lean_object* x_593; -lean_dec(x_579); -lean_dec(x_4); -x_593 = lean_ctor_get(x_581, 0); -lean_inc(x_593); -lean_dec(x_581); -lean_ctor_set(x_582, 0, x_593); -return x_582; +lean_ctor_set(x_586, 0, x_597); +return x_586; } else { -lean_object* x_594; -lean_free_object(x_582); -lean_dec(x_581); -x_594 = lean_box(0); -x_586 = x_594; -goto block_592; +lean_object* x_598; +lean_free_object(x_586); +lean_dec(x_585); +x_598 = lean_box(0); +x_590 = x_598; +goto block_596; } -block_592: +block_596: { -lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; +lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; +lean_dec(x_590); +x_591 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_591, 0, x_583); +x_592 = l_Lean_indentExpr(x_591); +x_593 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_594 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_594, 0, x_593); +lean_ctor_set(x_594, 1, x_592); +x_595 = l_Lean_Elab_Term_throwError___rarg(x_1, x_594, x_4, x_588); +return x_595; +} +} +else +{ +lean_object* x_599; lean_object* x_600; +x_599 = lean_ctor_get(x_586, 1); +lean_inc(x_599); lean_dec(x_586); -x_587 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_587, 0, x_579); -x_588 = l_Lean_indentExpr(x_587); -x_589 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_590 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_590, 0, x_589); -lean_ctor_set(x_590, 1, x_588); -x_591 = l_Lean_Elab_Term_throwError___rarg(x_1, x_590, x_4, x_584); -return x_591; -} -} -else +if (lean_obj_tag(x_585) == 4) { -lean_object* x_595; lean_object* x_596; -x_595 = lean_ctor_get(x_582, 1); -lean_inc(x_595); -lean_dec(x_582); -if (lean_obj_tag(x_581) == 4) -{ -lean_object* x_603; lean_object* x_604; -lean_dec(x_579); +lean_object* x_607; lean_object* x_608; +lean_dec(x_583); lean_dec(x_4); -x_603 = lean_ctor_get(x_581, 0); -lean_inc(x_603); -lean_dec(x_581); -x_604 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_604, 0, x_603); -lean_ctor_set(x_604, 1, x_595); -return x_604; -} -else -{ -lean_object* x_605; -lean_dec(x_581); -x_605 = lean_box(0); -x_596 = x_605; -goto block_602; -} -block_602: -{ -lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; -lean_dec(x_596); -x_597 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_597, 0, x_579); -x_598 = l_Lean_indentExpr(x_597); -x_599 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_600 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_600, 0, x_599); -lean_ctor_set(x_600, 1, x_598); -x_601 = l_Lean_Elab_Term_throwError___rarg(x_1, x_600, x_4, x_595); -return x_601; -} -} -} -else -{ -uint8_t x_606; -lean_dec(x_581); -lean_dec(x_579); -lean_dec(x_4); -x_606 = !lean_is_exclusive(x_582); -if (x_606 == 0) -{ -return x_582; -} -else -{ -lean_object* x_607; lean_object* x_608; lean_object* x_609; -x_607 = lean_ctor_get(x_582, 0); -x_608 = lean_ctor_get(x_582, 1); -lean_inc(x_608); +x_607 = lean_ctor_get(x_585, 0); lean_inc(x_607); -lean_dec(x_582); -x_609 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_609, 0, x_607); -lean_ctor_set(x_609, 1, x_608); -return x_609; +lean_dec(x_585); +x_608 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_608, 0, x_607); +lean_ctor_set(x_608, 1, x_599); +return x_608; +} +else +{ +lean_object* x_609; +lean_dec(x_585); +x_609 = lean_box(0); +x_600 = x_609; +goto block_606; +} +block_606: +{ +lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; +lean_dec(x_600); +x_601 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_601, 0, x_583); +x_602 = l_Lean_indentExpr(x_601); +x_603 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_604 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_604, 0, x_603); +lean_ctor_set(x_604, 1, x_602); +x_605 = l_Lean_Elab_Term_throwError___rarg(x_1, x_604, x_4, x_599); +return x_605; } } } else { uint8_t x_610; +lean_dec(x_585); +lean_dec(x_583); lean_dec(x_4); -x_610 = !lean_is_exclusive(x_578); +x_610 = !lean_is_exclusive(x_586); if (x_610 == 0) { -return x_578; +return x_586; } else { lean_object* x_611; lean_object* x_612; lean_object* x_613; -x_611 = lean_ctor_get(x_578, 0); -x_612 = lean_ctor_get(x_578, 1); +x_611 = lean_ctor_get(x_586, 0); +x_612 = lean_ctor_get(x_586, 1); lean_inc(x_612); lean_inc(x_611); -lean_dec(x_578); +lean_dec(x_586); x_613 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_613, 0, x_611); lean_ctor_set(x_613, 1, x_612); @@ -6223,19 +5479,19 @@ else { uint8_t x_614; lean_dec(x_4); -x_614 = !lean_is_exclusive(x_575); +x_614 = !lean_is_exclusive(x_582); if (x_614 == 0) { -return x_575; +return x_582; } else { lean_object* x_615; lean_object* x_616; lean_object* x_617; -x_615 = lean_ctor_get(x_575, 0); -x_616 = lean_ctor_get(x_575, 1); +x_615 = lean_ctor_get(x_582, 0); +x_616 = lean_ctor_get(x_582, 1); lean_inc(x_616); lean_inc(x_615); -lean_dec(x_575); +lean_dec(x_582); x_617 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_617, 0, x_615); lean_ctor_set(x_617, 1, x_616); @@ -6245,2462 +5501,2281 @@ return x_617; } else { -lean_object* x_618; -lean_dec(x_3); -x_618 = lean_box(0); -x_115 = x_618; -goto block_121; -} -} -default: +uint8_t x_618; +lean_dec(x_4); +x_618 = !lean_is_exclusive(x_579); +if (x_618 == 0) { -lean_dec(x_122); -lean_free_object(x_111); -if (lean_obj_tag(x_3) == 2) +return x_579; +} +else { -lean_object* x_619; lean_object* x_620; -lean_dec(x_110); -x_619 = lean_ctor_get(x_3, 1); +lean_object* x_619; lean_object* x_620; lean_object* x_621; +x_619 = lean_ctor_get(x_579, 0); +x_620 = lean_ctor_get(x_579, 1); +lean_inc(x_620); lean_inc(x_619); +lean_dec(x_579); +x_621 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_621, 0, x_619); +lean_ctor_set(x_621, 1, x_620); +return x_621; +} +} +} +else +{ +lean_object* x_622; lean_dec(x_3); -lean_inc(x_4); -x_620 = l_Lean_Elab_Term_inferType(x_1, x_619, x_4, x_114); -if (lean_obj_tag(x_620) == 0) +x_622 = lean_box(0); +x_74 = x_622; +goto block_80; +} +} +} +block_80: { -lean_object* x_621; lean_object* x_622; lean_object* x_623; -x_621 = lean_ctor_get(x_620, 0); -lean_inc(x_621); -x_622 = lean_ctor_get(x_620, 1); -lean_inc(x_622); -lean_dec(x_620); -lean_inc(x_4); -x_623 = l_Lean_Elab_Term_whnf(x_1, x_621, x_4, x_622); -if (lean_obj_tag(x_623) == 0) +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_74); +x_75 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_75, 0, x_69); +x_76 = l_Lean_indentExpr(x_75); +x_77 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__3; +x_78 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +x_79 = l_Lean_Elab_Term_throwError___rarg(x_1, x_78, x_4, x_73); +return x_79; +} +} +else { -lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; -x_624 = lean_ctor_get(x_623, 0); +lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_632; +x_623 = lean_ctor_get(x_70, 0); +x_624 = lean_ctor_get(x_70, 1); lean_inc(x_624); -x_625 = lean_ctor_get(x_623, 1); -lean_inc(x_625); +lean_inc(x_623); +lean_dec(x_70); +x_632 = l_Lean_Expr_getAppFn___main(x_623); lean_dec(x_623); -x_626 = l_Lean_Expr_getAppFn___main(x_624); -x_627 = l_Lean_Elab_Term_tryPostponeIfMVar(x_624, x_4, x_625); -if (lean_obj_tag(x_627) == 0) -{ -uint8_t x_628; -x_628 = !lean_is_exclusive(x_627); -if (x_628 == 0) -{ -lean_object* x_629; lean_object* x_630; lean_object* x_631; -x_629 = lean_ctor_get(x_627, 1); -x_630 = lean_ctor_get(x_627, 0); -lean_dec(x_630); -if (lean_obj_tag(x_626) == 4) -{ -lean_object* x_638; -lean_dec(x_624); -lean_dec(x_4); -x_638 = lean_ctor_get(x_626, 0); -lean_inc(x_638); -lean_dec(x_626); -lean_ctor_set(x_627, 0, x_638); -return x_627; -} -else -{ -lean_object* x_639; -lean_free_object(x_627); -lean_dec(x_626); -x_639 = lean_box(0); -x_631 = x_639; -goto block_637; -} -block_637: -{ -lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; -lean_dec(x_631); -x_632 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_632, 0, x_624); -x_633 = l_Lean_indentExpr(x_632); -x_634 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_635 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_635, 0, x_634); -lean_ctor_set(x_635, 1, x_633); -x_636 = l_Lean_Elab_Term_throwError___rarg(x_1, x_635, x_4, x_629); -return x_636; -} -} -else -{ -lean_object* x_640; lean_object* x_641; -x_640 = lean_ctor_get(x_627, 1); -lean_inc(x_640); -lean_dec(x_627); -if (lean_obj_tag(x_626) == 4) -{ -lean_object* x_648; lean_object* x_649; -lean_dec(x_624); -lean_dec(x_4); -x_648 = lean_ctor_get(x_626, 0); -lean_inc(x_648); -lean_dec(x_626); -x_649 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_649, 0, x_648); -lean_ctor_set(x_649, 1, x_640); -return x_649; -} -else -{ -lean_object* x_650; -lean_dec(x_626); -x_650 = lean_box(0); -x_641 = x_650; -goto block_647; -} -block_647: -{ -lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; -lean_dec(x_641); -x_642 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_642, 0, x_624); -x_643 = l_Lean_indentExpr(x_642); -x_644 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_645 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_645, 0, x_644); -lean_ctor_set(x_645, 1, x_643); -x_646 = l_Lean_Elab_Term_throwError___rarg(x_1, x_645, x_4, x_640); -return x_646; -} -} -} -else -{ -uint8_t x_651; -lean_dec(x_626); -lean_dec(x_624); -lean_dec(x_4); -x_651 = !lean_is_exclusive(x_627); -if (x_651 == 0) -{ -return x_627; -} -else -{ -lean_object* x_652; lean_object* x_653; lean_object* x_654; -x_652 = lean_ctor_get(x_627, 0); -x_653 = lean_ctor_get(x_627, 1); -lean_inc(x_653); -lean_inc(x_652); -lean_dec(x_627); -x_654 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_654, 0, x_652); -lean_ctor_set(x_654, 1, x_653); -return x_654; -} -} -} -else -{ -uint8_t x_655; -lean_dec(x_4); -x_655 = !lean_is_exclusive(x_623); -if (x_655 == 0) -{ -return x_623; -} -else -{ -lean_object* x_656; lean_object* x_657; lean_object* x_658; -x_656 = lean_ctor_get(x_623, 0); -x_657 = lean_ctor_get(x_623, 1); -lean_inc(x_657); -lean_inc(x_656); -lean_dec(x_623); -x_658 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_658, 0, x_656); -lean_ctor_set(x_658, 1, x_657); -return x_658; -} -} -} -else -{ -uint8_t x_659; -lean_dec(x_4); -x_659 = !lean_is_exclusive(x_620); -if (x_659 == 0) -{ -return x_620; -} -else -{ -lean_object* x_660; lean_object* x_661; lean_object* x_662; -x_660 = lean_ctor_get(x_620, 0); -x_661 = lean_ctor_get(x_620, 1); -lean_inc(x_661); -lean_inc(x_660); -lean_dec(x_620); -x_662 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_662, 0, x_660); -lean_ctor_set(x_662, 1, x_661); -return x_662; -} -} -} -else -{ -lean_object* x_663; -lean_dec(x_3); -x_663 = lean_box(0); -x_115 = x_663; -goto block_121; -} -} -} -block_121: -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -lean_dec(x_115); -x_116 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_116, 0, x_110); -x_117 = l_Lean_indentExpr(x_116); -x_118 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9; -x_119 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -x_120 = l_Lean_Elab_Term_throwError___rarg(x_1, x_119, x_4, x_114); -return x_120; -} -} -else -{ -lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_673; -x_664 = lean_ctor_get(x_111, 0); -x_665 = lean_ctor_get(x_111, 1); -lean_inc(x_665); -lean_inc(x_664); -lean_dec(x_111); -x_673 = l_Lean_Expr_getAppFn___main(x_664); -lean_dec(x_664); -switch (lean_obj_tag(x_673)) { +switch (lean_obj_tag(x_632)) { case 0: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_674; lean_object* x_675; -lean_dec(x_110); -x_674 = lean_ctor_get(x_3, 1); -lean_inc(x_674); +lean_object* x_633; lean_object* x_634; +lean_dec(x_69); +x_633 = lean_ctor_get(x_3, 1); +lean_inc(x_633); lean_dec(x_3); lean_inc(x_4); -x_675 = l_Lean_Elab_Term_inferType(x_1, x_674, x_4, x_665); -if (lean_obj_tag(x_675) == 0) +x_634 = l_Lean_Elab_Term_inferType(x_1, x_633, x_4, x_624); +if (lean_obj_tag(x_634) == 0) { -lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_676 = lean_ctor_get(x_675, 0); -lean_inc(x_676); -x_677 = lean_ctor_get(x_675, 1); -lean_inc(x_677); -lean_dec(x_675); +lean_object* x_635; lean_object* x_636; lean_object* x_637; +x_635 = lean_ctor_get(x_634, 0); +lean_inc(x_635); +x_636 = lean_ctor_get(x_634, 1); +lean_inc(x_636); +lean_dec(x_634); lean_inc(x_4); -x_678 = l_Lean_Elab_Term_whnf(x_1, x_676, x_4, x_677); -if (lean_obj_tag(x_678) == 0) +x_637 = l_Lean_Elab_Term_whnf(x_1, x_635, x_4, x_636); +if (lean_obj_tag(x_637) == 0) { -lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_679 = lean_ctor_get(x_678, 0); -lean_inc(x_679); -x_680 = lean_ctor_get(x_678, 1); -lean_inc(x_680); -lean_dec(x_678); -x_681 = l_Lean_Expr_getAppFn___main(x_679); -x_682 = l_Lean_Elab_Term_tryPostponeIfMVar(x_679, x_4, x_680); -if (lean_obj_tag(x_682) == 0) +lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; +x_638 = lean_ctor_get(x_637, 0); +lean_inc(x_638); +x_639 = lean_ctor_get(x_637, 1); +lean_inc(x_639); +lean_dec(x_637); +x_640 = l_Lean_Expr_getAppFn___main(x_638); +x_641 = l_Lean_Elab_Term_tryPostponeIfMVar(x_638, x_4, x_639); +if (lean_obj_tag(x_641) == 0) { -lean_object* x_683; lean_object* x_684; lean_object* x_685; -x_683 = lean_ctor_get(x_682, 1); -lean_inc(x_683); -if (lean_is_exclusive(x_682)) { - lean_ctor_release(x_682, 0); - lean_ctor_release(x_682, 1); - x_684 = x_682; +lean_object* x_642; lean_object* x_643; lean_object* x_644; +x_642 = lean_ctor_get(x_641, 1); +lean_inc(x_642); +if (lean_is_exclusive(x_641)) { + lean_ctor_release(x_641, 0); + lean_ctor_release(x_641, 1); + x_643 = x_641; } else { - lean_dec_ref(x_682); - x_684 = lean_box(0); + lean_dec_ref(x_641); + x_643 = lean_box(0); } -if (lean_obj_tag(x_681) == 4) +if (lean_obj_tag(x_640) == 4) { -lean_object* x_692; lean_object* x_693; -lean_dec(x_679); +lean_object* x_651; lean_object* x_652; +lean_dec(x_638); lean_dec(x_4); -x_692 = lean_ctor_get(x_681, 0); -lean_inc(x_692); -lean_dec(x_681); -if (lean_is_scalar(x_684)) { - x_693 = lean_alloc_ctor(0, 2, 0); +x_651 = lean_ctor_get(x_640, 0); +lean_inc(x_651); +lean_dec(x_640); +if (lean_is_scalar(x_643)) { + x_652 = lean_alloc_ctor(0, 2, 0); } else { - x_693 = x_684; + x_652 = x_643; } -lean_ctor_set(x_693, 0, x_692); -lean_ctor_set(x_693, 1, x_683); -return x_693; +lean_ctor_set(x_652, 0, x_651); +lean_ctor_set(x_652, 1, x_642); +return x_652; } else { -lean_object* x_694; -lean_dec(x_684); -lean_dec(x_681); -x_694 = lean_box(0); -x_685 = x_694; -goto block_691; +lean_object* x_653; +lean_dec(x_643); +lean_dec(x_640); +x_653 = lean_box(0); +x_644 = x_653; +goto block_650; } -block_691: +block_650: { -lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; -lean_dec(x_685); -x_686 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_686, 0, x_679); -x_687 = l_Lean_indentExpr(x_686); -x_688 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_689 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_689, 0, x_688); -lean_ctor_set(x_689, 1, x_687); -x_690 = l_Lean_Elab_Term_throwError___rarg(x_1, x_689, x_4, x_683); -return x_690; +lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; +lean_dec(x_644); +x_645 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_645, 0, x_638); +x_646 = l_Lean_indentExpr(x_645); +x_647 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_648 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_648, 0, x_647); +lean_ctor_set(x_648, 1, x_646); +x_649 = l_Lean_Elab_Term_throwError___rarg(x_1, x_648, x_4, x_642); +return x_649; } } else { -lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; -lean_dec(x_681); -lean_dec(x_679); +lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; +lean_dec(x_640); +lean_dec(x_638); lean_dec(x_4); -x_695 = lean_ctor_get(x_682, 0); -lean_inc(x_695); -x_696 = lean_ctor_get(x_682, 1); -lean_inc(x_696); -if (lean_is_exclusive(x_682)) { - lean_ctor_release(x_682, 0); - lean_ctor_release(x_682, 1); - x_697 = x_682; +x_654 = lean_ctor_get(x_641, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_641, 1); +lean_inc(x_655); +if (lean_is_exclusive(x_641)) { + lean_ctor_release(x_641, 0); + lean_ctor_release(x_641, 1); + x_656 = x_641; } else { - lean_dec_ref(x_682); - x_697 = lean_box(0); + lean_dec_ref(x_641); + x_656 = lean_box(0); } -if (lean_is_scalar(x_697)) { - x_698 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_656)) { + x_657 = lean_alloc_ctor(1, 2, 0); } else { - x_698 = x_697; + x_657 = x_656; } -lean_ctor_set(x_698, 0, x_695); -lean_ctor_set(x_698, 1, x_696); -return x_698; +lean_ctor_set(x_657, 0, x_654); +lean_ctor_set(x_657, 1, x_655); +return x_657; } } else { -lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; +lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_dec(x_4); -x_699 = lean_ctor_get(x_678, 0); -lean_inc(x_699); -x_700 = lean_ctor_get(x_678, 1); -lean_inc(x_700); -if (lean_is_exclusive(x_678)) { - lean_ctor_release(x_678, 0); - lean_ctor_release(x_678, 1); - x_701 = x_678; +x_658 = lean_ctor_get(x_637, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_637, 1); +lean_inc(x_659); +if (lean_is_exclusive(x_637)) { + lean_ctor_release(x_637, 0); + lean_ctor_release(x_637, 1); + x_660 = x_637; } else { - lean_dec_ref(x_678); - x_701 = lean_box(0); + lean_dec_ref(x_637); + x_660 = lean_box(0); } -if (lean_is_scalar(x_701)) { - x_702 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_660)) { + x_661 = lean_alloc_ctor(1, 2, 0); } else { - x_702 = x_701; + x_661 = x_660; } -lean_ctor_set(x_702, 0, x_699); -lean_ctor_set(x_702, 1, x_700); -return x_702; +lean_ctor_set(x_661, 0, x_658); +lean_ctor_set(x_661, 1, x_659); +return x_661; } } else { -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; +lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_dec(x_4); -x_703 = lean_ctor_get(x_675, 0); -lean_inc(x_703); -x_704 = lean_ctor_get(x_675, 1); -lean_inc(x_704); -if (lean_is_exclusive(x_675)) { - lean_ctor_release(x_675, 0); - lean_ctor_release(x_675, 1); - x_705 = x_675; +x_662 = lean_ctor_get(x_634, 0); +lean_inc(x_662); +x_663 = lean_ctor_get(x_634, 1); +lean_inc(x_663); +if (lean_is_exclusive(x_634)) { + lean_ctor_release(x_634, 0); + lean_ctor_release(x_634, 1); + x_664 = x_634; } else { - lean_dec_ref(x_675); - x_705 = lean_box(0); + lean_dec_ref(x_634); + x_664 = lean_box(0); } -if (lean_is_scalar(x_705)) { - x_706 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_664)) { + x_665 = lean_alloc_ctor(1, 2, 0); } else { - x_706 = x_705; + x_665 = x_664; } -lean_ctor_set(x_706, 0, x_703); -lean_ctor_set(x_706, 1, x_704); -return x_706; +lean_ctor_set(x_665, 0, x_662); +lean_ctor_set(x_665, 1, x_663); +return x_665; } } else { -lean_object* x_707; +lean_object* x_666; lean_dec(x_3); -x_707 = lean_box(0); -x_666 = x_707; -goto block_672; +x_666 = lean_box(0); +x_625 = x_666; +goto block_631; } } case 1: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_708; lean_object* x_709; -lean_dec(x_110); -x_708 = lean_ctor_get(x_3, 1); -lean_inc(x_708); +lean_object* x_667; lean_object* x_668; +lean_dec(x_69); +x_667 = lean_ctor_get(x_3, 1); +lean_inc(x_667); lean_dec(x_3); lean_inc(x_4); -x_709 = l_Lean_Elab_Term_inferType(x_1, x_708, x_4, x_665); -if (lean_obj_tag(x_709) == 0) +x_668 = l_Lean_Elab_Term_inferType(x_1, x_667, x_4, x_624); +if (lean_obj_tag(x_668) == 0) { -lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_710 = lean_ctor_get(x_709, 0); -lean_inc(x_710); -x_711 = lean_ctor_get(x_709, 1); -lean_inc(x_711); -lean_dec(x_709); +lean_object* x_669; lean_object* x_670; lean_object* x_671; +x_669 = lean_ctor_get(x_668, 0); +lean_inc(x_669); +x_670 = lean_ctor_get(x_668, 1); +lean_inc(x_670); +lean_dec(x_668); lean_inc(x_4); -x_712 = l_Lean_Elab_Term_whnf(x_1, x_710, x_4, x_711); -if (lean_obj_tag(x_712) == 0) +x_671 = l_Lean_Elab_Term_whnf(x_1, x_669, x_4, x_670); +if (lean_obj_tag(x_671) == 0) { -lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; -x_713 = lean_ctor_get(x_712, 0); -lean_inc(x_713); -x_714 = lean_ctor_get(x_712, 1); -lean_inc(x_714); -lean_dec(x_712); -x_715 = l_Lean_Expr_getAppFn___main(x_713); -x_716 = l_Lean_Elab_Term_tryPostponeIfMVar(x_713, x_4, x_714); -if (lean_obj_tag(x_716) == 0) +lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; +x_672 = lean_ctor_get(x_671, 0); +lean_inc(x_672); +x_673 = lean_ctor_get(x_671, 1); +lean_inc(x_673); +lean_dec(x_671); +x_674 = l_Lean_Expr_getAppFn___main(x_672); +x_675 = l_Lean_Elab_Term_tryPostponeIfMVar(x_672, x_4, x_673); +if (lean_obj_tag(x_675) == 0) { -lean_object* x_717; lean_object* x_718; lean_object* x_719; -x_717 = lean_ctor_get(x_716, 1); -lean_inc(x_717); -if (lean_is_exclusive(x_716)) { - lean_ctor_release(x_716, 0); - lean_ctor_release(x_716, 1); - x_718 = x_716; +lean_object* x_676; lean_object* x_677; lean_object* x_678; +x_676 = lean_ctor_get(x_675, 1); +lean_inc(x_676); +if (lean_is_exclusive(x_675)) { + lean_ctor_release(x_675, 0); + lean_ctor_release(x_675, 1); + x_677 = x_675; } else { - lean_dec_ref(x_716); - x_718 = lean_box(0); + lean_dec_ref(x_675); + x_677 = lean_box(0); } -if (lean_obj_tag(x_715) == 4) +if (lean_obj_tag(x_674) == 4) { -lean_object* x_726; lean_object* x_727; -lean_dec(x_713); +lean_object* x_685; lean_object* x_686; +lean_dec(x_672); lean_dec(x_4); -x_726 = lean_ctor_get(x_715, 0); -lean_inc(x_726); -lean_dec(x_715); -if (lean_is_scalar(x_718)) { - x_727 = lean_alloc_ctor(0, 2, 0); +x_685 = lean_ctor_get(x_674, 0); +lean_inc(x_685); +lean_dec(x_674); +if (lean_is_scalar(x_677)) { + x_686 = lean_alloc_ctor(0, 2, 0); } else { - x_727 = x_718; + x_686 = x_677; } -lean_ctor_set(x_727, 0, x_726); -lean_ctor_set(x_727, 1, x_717); -return x_727; +lean_ctor_set(x_686, 0, x_685); +lean_ctor_set(x_686, 1, x_676); +return x_686; } else { -lean_object* x_728; -lean_dec(x_718); -lean_dec(x_715); -x_728 = lean_box(0); -x_719 = x_728; -goto block_725; +lean_object* x_687; +lean_dec(x_677); +lean_dec(x_674); +x_687 = lean_box(0); +x_678 = x_687; +goto block_684; } -block_725: +block_684: { -lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; -lean_dec(x_719); -x_720 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_720, 0, x_713); -x_721 = l_Lean_indentExpr(x_720); -x_722 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_723 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_723, 0, x_722); -lean_ctor_set(x_723, 1, x_721); -x_724 = l_Lean_Elab_Term_throwError___rarg(x_1, x_723, x_4, x_717); -return x_724; +lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; +lean_dec(x_678); +x_679 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_679, 0, x_672); +x_680 = l_Lean_indentExpr(x_679); +x_681 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_682 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_682, 0, x_681); +lean_ctor_set(x_682, 1, x_680); +x_683 = l_Lean_Elab_Term_throwError___rarg(x_1, x_682, x_4, x_676); +return x_683; } } else { -lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; -lean_dec(x_715); -lean_dec(x_713); +lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; +lean_dec(x_674); +lean_dec(x_672); lean_dec(x_4); -x_729 = lean_ctor_get(x_716, 0); -lean_inc(x_729); -x_730 = lean_ctor_get(x_716, 1); -lean_inc(x_730); -if (lean_is_exclusive(x_716)) { - lean_ctor_release(x_716, 0); - lean_ctor_release(x_716, 1); - x_731 = x_716; +x_688 = lean_ctor_get(x_675, 0); +lean_inc(x_688); +x_689 = lean_ctor_get(x_675, 1); +lean_inc(x_689); +if (lean_is_exclusive(x_675)) { + lean_ctor_release(x_675, 0); + lean_ctor_release(x_675, 1); + x_690 = x_675; } else { - lean_dec_ref(x_716); - x_731 = lean_box(0); + lean_dec_ref(x_675); + x_690 = lean_box(0); } -if (lean_is_scalar(x_731)) { - x_732 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_690)) { + x_691 = lean_alloc_ctor(1, 2, 0); } else { - x_732 = x_731; + x_691 = x_690; } -lean_ctor_set(x_732, 0, x_729); -lean_ctor_set(x_732, 1, x_730); -return x_732; +lean_ctor_set(x_691, 0, x_688); +lean_ctor_set(x_691, 1, x_689); +return x_691; } } else { -lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; +lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_dec(x_4); -x_733 = lean_ctor_get(x_712, 0); -lean_inc(x_733); -x_734 = lean_ctor_get(x_712, 1); -lean_inc(x_734); -if (lean_is_exclusive(x_712)) { - lean_ctor_release(x_712, 0); - lean_ctor_release(x_712, 1); - x_735 = x_712; +x_692 = lean_ctor_get(x_671, 0); +lean_inc(x_692); +x_693 = lean_ctor_get(x_671, 1); +lean_inc(x_693); +if (lean_is_exclusive(x_671)) { + lean_ctor_release(x_671, 0); + lean_ctor_release(x_671, 1); + x_694 = x_671; } else { - lean_dec_ref(x_712); - x_735 = lean_box(0); + lean_dec_ref(x_671); + x_694 = lean_box(0); } -if (lean_is_scalar(x_735)) { - x_736 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_694)) { + x_695 = lean_alloc_ctor(1, 2, 0); } else { - x_736 = x_735; + x_695 = x_694; } -lean_ctor_set(x_736, 0, x_733); -lean_ctor_set(x_736, 1, x_734); -return x_736; +lean_ctor_set(x_695, 0, x_692); +lean_ctor_set(x_695, 1, x_693); +return x_695; } } else { -lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; +lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_dec(x_4); -x_737 = lean_ctor_get(x_709, 0); -lean_inc(x_737); -x_738 = lean_ctor_get(x_709, 1); -lean_inc(x_738); -if (lean_is_exclusive(x_709)) { - lean_ctor_release(x_709, 0); - lean_ctor_release(x_709, 1); - x_739 = x_709; +x_696 = lean_ctor_get(x_668, 0); +lean_inc(x_696); +x_697 = lean_ctor_get(x_668, 1); +lean_inc(x_697); +if (lean_is_exclusive(x_668)) { + lean_ctor_release(x_668, 0); + lean_ctor_release(x_668, 1); + x_698 = x_668; } else { - lean_dec_ref(x_709); - x_739 = lean_box(0); + lean_dec_ref(x_668); + x_698 = lean_box(0); } -if (lean_is_scalar(x_739)) { - x_740 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_698)) { + x_699 = lean_alloc_ctor(1, 2, 0); } else { - x_740 = x_739; + x_699 = x_698; } -lean_ctor_set(x_740, 0, x_737); -lean_ctor_set(x_740, 1, x_738); -return x_740; +lean_ctor_set(x_699, 0, x_696); +lean_ctor_set(x_699, 1, x_697); +return x_699; } } else { -lean_object* x_741; +lean_object* x_700; lean_dec(x_3); -x_741 = lean_box(0); -x_666 = x_741; -goto block_672; +x_700 = lean_box(0); +x_625 = x_700; +goto block_631; } } case 2: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_742; lean_object* x_743; -lean_dec(x_110); -x_742 = lean_ctor_get(x_3, 1); -lean_inc(x_742); +lean_object* x_701; lean_object* x_702; +lean_dec(x_69); +x_701 = lean_ctor_get(x_3, 1); +lean_inc(x_701); lean_dec(x_3); lean_inc(x_4); -x_743 = l_Lean_Elab_Term_inferType(x_1, x_742, x_4, x_665); -if (lean_obj_tag(x_743) == 0) +x_702 = l_Lean_Elab_Term_inferType(x_1, x_701, x_4, x_624); +if (lean_obj_tag(x_702) == 0) { -lean_object* x_744; lean_object* x_745; lean_object* x_746; -x_744 = lean_ctor_get(x_743, 0); -lean_inc(x_744); -x_745 = lean_ctor_get(x_743, 1); -lean_inc(x_745); -lean_dec(x_743); +lean_object* x_703; lean_object* x_704; lean_object* x_705; +x_703 = lean_ctor_get(x_702, 0); +lean_inc(x_703); +x_704 = lean_ctor_get(x_702, 1); +lean_inc(x_704); +lean_dec(x_702); lean_inc(x_4); -x_746 = l_Lean_Elab_Term_whnf(x_1, x_744, x_4, x_745); -if (lean_obj_tag(x_746) == 0) +x_705 = l_Lean_Elab_Term_whnf(x_1, x_703, x_4, x_704); +if (lean_obj_tag(x_705) == 0) { -lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; -x_747 = lean_ctor_get(x_746, 0); -lean_inc(x_747); -x_748 = lean_ctor_get(x_746, 1); -lean_inc(x_748); -lean_dec(x_746); -x_749 = l_Lean_Expr_getAppFn___main(x_747); -x_750 = l_Lean_Elab_Term_tryPostponeIfMVar(x_747, x_4, x_748); -if (lean_obj_tag(x_750) == 0) +lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; +x_706 = lean_ctor_get(x_705, 0); +lean_inc(x_706); +x_707 = lean_ctor_get(x_705, 1); +lean_inc(x_707); +lean_dec(x_705); +x_708 = l_Lean_Expr_getAppFn___main(x_706); +x_709 = l_Lean_Elab_Term_tryPostponeIfMVar(x_706, x_4, x_707); +if (lean_obj_tag(x_709) == 0) { -lean_object* x_751; lean_object* x_752; lean_object* x_753; -x_751 = lean_ctor_get(x_750, 1); -lean_inc(x_751); -if (lean_is_exclusive(x_750)) { - lean_ctor_release(x_750, 0); - lean_ctor_release(x_750, 1); - x_752 = x_750; +lean_object* x_710; lean_object* x_711; lean_object* x_712; +x_710 = lean_ctor_get(x_709, 1); +lean_inc(x_710); +if (lean_is_exclusive(x_709)) { + lean_ctor_release(x_709, 0); + lean_ctor_release(x_709, 1); + x_711 = x_709; } else { - lean_dec_ref(x_750); - x_752 = lean_box(0); + lean_dec_ref(x_709); + x_711 = lean_box(0); } -if (lean_obj_tag(x_749) == 4) +if (lean_obj_tag(x_708) == 4) { -lean_object* x_760; lean_object* x_761; -lean_dec(x_747); +lean_object* x_719; lean_object* x_720; +lean_dec(x_706); lean_dec(x_4); -x_760 = lean_ctor_get(x_749, 0); -lean_inc(x_760); -lean_dec(x_749); -if (lean_is_scalar(x_752)) { - x_761 = lean_alloc_ctor(0, 2, 0); +x_719 = lean_ctor_get(x_708, 0); +lean_inc(x_719); +lean_dec(x_708); +if (lean_is_scalar(x_711)) { + x_720 = lean_alloc_ctor(0, 2, 0); } else { - x_761 = x_752; + x_720 = x_711; } -lean_ctor_set(x_761, 0, x_760); -lean_ctor_set(x_761, 1, x_751); -return x_761; +lean_ctor_set(x_720, 0, x_719); +lean_ctor_set(x_720, 1, x_710); +return x_720; } else { -lean_object* x_762; -lean_dec(x_752); -lean_dec(x_749); -x_762 = lean_box(0); -x_753 = x_762; -goto block_759; +lean_object* x_721; +lean_dec(x_711); +lean_dec(x_708); +x_721 = lean_box(0); +x_712 = x_721; +goto block_718; } -block_759: +block_718: { -lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; -lean_dec(x_753); -x_754 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_754, 0, x_747); -x_755 = l_Lean_indentExpr(x_754); -x_756 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_757 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_757, 0, x_756); -lean_ctor_set(x_757, 1, x_755); -x_758 = l_Lean_Elab_Term_throwError___rarg(x_1, x_757, x_4, x_751); -return x_758; +lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; +lean_dec(x_712); +x_713 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_713, 0, x_706); +x_714 = l_Lean_indentExpr(x_713); +x_715 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_716 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_716, 0, x_715); +lean_ctor_set(x_716, 1, x_714); +x_717 = l_Lean_Elab_Term_throwError___rarg(x_1, x_716, x_4, x_710); +return x_717; } } else { -lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; -lean_dec(x_749); -lean_dec(x_747); +lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; +lean_dec(x_708); +lean_dec(x_706); lean_dec(x_4); -x_763 = lean_ctor_get(x_750, 0); -lean_inc(x_763); -x_764 = lean_ctor_get(x_750, 1); -lean_inc(x_764); -if (lean_is_exclusive(x_750)) { - lean_ctor_release(x_750, 0); - lean_ctor_release(x_750, 1); - x_765 = x_750; +x_722 = lean_ctor_get(x_709, 0); +lean_inc(x_722); +x_723 = lean_ctor_get(x_709, 1); +lean_inc(x_723); +if (lean_is_exclusive(x_709)) { + lean_ctor_release(x_709, 0); + lean_ctor_release(x_709, 1); + x_724 = x_709; } else { - lean_dec_ref(x_750); - x_765 = lean_box(0); + lean_dec_ref(x_709); + x_724 = lean_box(0); } -if (lean_is_scalar(x_765)) { - x_766 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_724)) { + x_725 = lean_alloc_ctor(1, 2, 0); } else { - x_766 = x_765; + x_725 = x_724; } -lean_ctor_set(x_766, 0, x_763); -lean_ctor_set(x_766, 1, x_764); -return x_766; +lean_ctor_set(x_725, 0, x_722); +lean_ctor_set(x_725, 1, x_723); +return x_725; } } else { -lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; +lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_dec(x_4); -x_767 = lean_ctor_get(x_746, 0); -lean_inc(x_767); -x_768 = lean_ctor_get(x_746, 1); -lean_inc(x_768); -if (lean_is_exclusive(x_746)) { - lean_ctor_release(x_746, 0); - lean_ctor_release(x_746, 1); - x_769 = x_746; +x_726 = lean_ctor_get(x_705, 0); +lean_inc(x_726); +x_727 = lean_ctor_get(x_705, 1); +lean_inc(x_727); +if (lean_is_exclusive(x_705)) { + lean_ctor_release(x_705, 0); + lean_ctor_release(x_705, 1); + x_728 = x_705; } else { - lean_dec_ref(x_746); - x_769 = lean_box(0); + lean_dec_ref(x_705); + x_728 = lean_box(0); } -if (lean_is_scalar(x_769)) { - x_770 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_728)) { + x_729 = lean_alloc_ctor(1, 2, 0); } else { - x_770 = x_769; + x_729 = x_728; } -lean_ctor_set(x_770, 0, x_767); -lean_ctor_set(x_770, 1, x_768); -return x_770; +lean_ctor_set(x_729, 0, x_726); +lean_ctor_set(x_729, 1, x_727); +return x_729; } } else { -lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; +lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_dec(x_4); -x_771 = lean_ctor_get(x_743, 0); -lean_inc(x_771); -x_772 = lean_ctor_get(x_743, 1); -lean_inc(x_772); -if (lean_is_exclusive(x_743)) { - lean_ctor_release(x_743, 0); - lean_ctor_release(x_743, 1); - x_773 = x_743; +x_730 = lean_ctor_get(x_702, 0); +lean_inc(x_730); +x_731 = lean_ctor_get(x_702, 1); +lean_inc(x_731); +if (lean_is_exclusive(x_702)) { + lean_ctor_release(x_702, 0); + lean_ctor_release(x_702, 1); + x_732 = x_702; } else { - lean_dec_ref(x_743); - x_773 = lean_box(0); + lean_dec_ref(x_702); + x_732 = lean_box(0); } -if (lean_is_scalar(x_773)) { - x_774 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_732)) { + x_733 = lean_alloc_ctor(1, 2, 0); } else { - x_774 = x_773; + x_733 = x_732; } -lean_ctor_set(x_774, 0, x_771); -lean_ctor_set(x_774, 1, x_772); -return x_774; +lean_ctor_set(x_733, 0, x_730); +lean_ctor_set(x_733, 1, x_731); +return x_733; } } else { -lean_object* x_775; +lean_object* x_734; lean_dec(x_3); -x_775 = lean_box(0); -x_666 = x_775; -goto block_672; +x_734 = lean_box(0); +x_625 = x_734; +goto block_631; } } case 3: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_776; lean_object* x_777; -lean_dec(x_110); -x_776 = lean_ctor_get(x_3, 1); -lean_inc(x_776); +lean_object* x_735; lean_object* x_736; +lean_dec(x_69); +x_735 = lean_ctor_get(x_3, 1); +lean_inc(x_735); lean_dec(x_3); lean_inc(x_4); -x_777 = l_Lean_Elab_Term_inferType(x_1, x_776, x_4, x_665); -if (lean_obj_tag(x_777) == 0) +x_736 = l_Lean_Elab_Term_inferType(x_1, x_735, x_4, x_624); +if (lean_obj_tag(x_736) == 0) { -lean_object* x_778; lean_object* x_779; lean_object* x_780; -x_778 = lean_ctor_get(x_777, 0); -lean_inc(x_778); -x_779 = lean_ctor_get(x_777, 1); -lean_inc(x_779); -lean_dec(x_777); +lean_object* x_737; lean_object* x_738; lean_object* x_739; +x_737 = lean_ctor_get(x_736, 0); +lean_inc(x_737); +x_738 = lean_ctor_get(x_736, 1); +lean_inc(x_738); +lean_dec(x_736); lean_inc(x_4); -x_780 = l_Lean_Elab_Term_whnf(x_1, x_778, x_4, x_779); -if (lean_obj_tag(x_780) == 0) +x_739 = l_Lean_Elab_Term_whnf(x_1, x_737, x_4, x_738); +if (lean_obj_tag(x_739) == 0) { -lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; -x_781 = lean_ctor_get(x_780, 0); -lean_inc(x_781); -x_782 = lean_ctor_get(x_780, 1); -lean_inc(x_782); -lean_dec(x_780); -x_783 = l_Lean_Expr_getAppFn___main(x_781); -x_784 = l_Lean_Elab_Term_tryPostponeIfMVar(x_781, x_4, x_782); -if (lean_obj_tag(x_784) == 0) +lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; +x_740 = lean_ctor_get(x_739, 0); +lean_inc(x_740); +x_741 = lean_ctor_get(x_739, 1); +lean_inc(x_741); +lean_dec(x_739); +x_742 = l_Lean_Expr_getAppFn___main(x_740); +x_743 = l_Lean_Elab_Term_tryPostponeIfMVar(x_740, x_4, x_741); +if (lean_obj_tag(x_743) == 0) { -lean_object* x_785; lean_object* x_786; lean_object* x_787; -x_785 = lean_ctor_get(x_784, 1); -lean_inc(x_785); -if (lean_is_exclusive(x_784)) { - lean_ctor_release(x_784, 0); - lean_ctor_release(x_784, 1); - x_786 = x_784; +lean_object* x_744; lean_object* x_745; lean_object* x_746; +x_744 = lean_ctor_get(x_743, 1); +lean_inc(x_744); +if (lean_is_exclusive(x_743)) { + lean_ctor_release(x_743, 0); + lean_ctor_release(x_743, 1); + x_745 = x_743; } else { - lean_dec_ref(x_784); - x_786 = lean_box(0); + lean_dec_ref(x_743); + x_745 = lean_box(0); } -if (lean_obj_tag(x_783) == 4) +if (lean_obj_tag(x_742) == 4) { -lean_object* x_794; lean_object* x_795; -lean_dec(x_781); +lean_object* x_753; lean_object* x_754; +lean_dec(x_740); lean_dec(x_4); -x_794 = lean_ctor_get(x_783, 0); -lean_inc(x_794); -lean_dec(x_783); -if (lean_is_scalar(x_786)) { - x_795 = lean_alloc_ctor(0, 2, 0); +x_753 = lean_ctor_get(x_742, 0); +lean_inc(x_753); +lean_dec(x_742); +if (lean_is_scalar(x_745)) { + x_754 = lean_alloc_ctor(0, 2, 0); } else { - x_795 = x_786; + x_754 = x_745; } -lean_ctor_set(x_795, 0, x_794); -lean_ctor_set(x_795, 1, x_785); -return x_795; +lean_ctor_set(x_754, 0, x_753); +lean_ctor_set(x_754, 1, x_744); +return x_754; } else { -lean_object* x_796; -lean_dec(x_786); -lean_dec(x_783); -x_796 = lean_box(0); -x_787 = x_796; -goto block_793; +lean_object* x_755; +lean_dec(x_745); +lean_dec(x_742); +x_755 = lean_box(0); +x_746 = x_755; +goto block_752; } -block_793: +block_752: { -lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; -lean_dec(x_787); -x_788 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_788, 0, x_781); -x_789 = l_Lean_indentExpr(x_788); -x_790 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_791 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_791, 0, x_790); -lean_ctor_set(x_791, 1, x_789); -x_792 = l_Lean_Elab_Term_throwError___rarg(x_1, x_791, x_4, x_785); -return x_792; +lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; +lean_dec(x_746); +x_747 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_747, 0, x_740); +x_748 = l_Lean_indentExpr(x_747); +x_749 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_750 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_750, 0, x_749); +lean_ctor_set(x_750, 1, x_748); +x_751 = l_Lean_Elab_Term_throwError___rarg(x_1, x_750, x_4, x_744); +return x_751; } } else { -lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; -lean_dec(x_783); -lean_dec(x_781); +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; +lean_dec(x_742); +lean_dec(x_740); lean_dec(x_4); -x_797 = lean_ctor_get(x_784, 0); -lean_inc(x_797); -x_798 = lean_ctor_get(x_784, 1); -lean_inc(x_798); -if (lean_is_exclusive(x_784)) { - lean_ctor_release(x_784, 0); - lean_ctor_release(x_784, 1); - x_799 = x_784; +x_756 = lean_ctor_get(x_743, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_743, 1); +lean_inc(x_757); +if (lean_is_exclusive(x_743)) { + lean_ctor_release(x_743, 0); + lean_ctor_release(x_743, 1); + x_758 = x_743; } else { - lean_dec_ref(x_784); - x_799 = lean_box(0); + lean_dec_ref(x_743); + x_758 = lean_box(0); } -if (lean_is_scalar(x_799)) { - x_800 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_758)) { + x_759 = lean_alloc_ctor(1, 2, 0); } else { - x_800 = x_799; + x_759 = x_758; } -lean_ctor_set(x_800, 0, x_797); -lean_ctor_set(x_800, 1, x_798); -return x_800; +lean_ctor_set(x_759, 0, x_756); +lean_ctor_set(x_759, 1, x_757); +return x_759; } } else { -lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; +lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_dec(x_4); -x_801 = lean_ctor_get(x_780, 0); -lean_inc(x_801); -x_802 = lean_ctor_get(x_780, 1); -lean_inc(x_802); -if (lean_is_exclusive(x_780)) { - lean_ctor_release(x_780, 0); - lean_ctor_release(x_780, 1); - x_803 = x_780; +x_760 = lean_ctor_get(x_739, 0); +lean_inc(x_760); +x_761 = lean_ctor_get(x_739, 1); +lean_inc(x_761); +if (lean_is_exclusive(x_739)) { + lean_ctor_release(x_739, 0); + lean_ctor_release(x_739, 1); + x_762 = x_739; } else { - lean_dec_ref(x_780); - x_803 = lean_box(0); + lean_dec_ref(x_739); + x_762 = lean_box(0); } -if (lean_is_scalar(x_803)) { - x_804 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_762)) { + x_763 = lean_alloc_ctor(1, 2, 0); } else { - x_804 = x_803; + x_763 = x_762; } -lean_ctor_set(x_804, 0, x_801); -lean_ctor_set(x_804, 1, x_802); -return x_804; +lean_ctor_set(x_763, 0, x_760); +lean_ctor_set(x_763, 1, x_761); +return x_763; } } else { -lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; +lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_dec(x_4); -x_805 = lean_ctor_get(x_777, 0); -lean_inc(x_805); -x_806 = lean_ctor_get(x_777, 1); -lean_inc(x_806); -if (lean_is_exclusive(x_777)) { - lean_ctor_release(x_777, 0); - lean_ctor_release(x_777, 1); - x_807 = x_777; +x_764 = lean_ctor_get(x_736, 0); +lean_inc(x_764); +x_765 = lean_ctor_get(x_736, 1); +lean_inc(x_765); +if (lean_is_exclusive(x_736)) { + lean_ctor_release(x_736, 0); + lean_ctor_release(x_736, 1); + x_766 = x_736; } else { - lean_dec_ref(x_777); - x_807 = lean_box(0); + lean_dec_ref(x_736); + x_766 = lean_box(0); } -if (lean_is_scalar(x_807)) { - x_808 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_766)) { + x_767 = lean_alloc_ctor(1, 2, 0); } else { - x_808 = x_807; + x_767 = x_766; } -lean_ctor_set(x_808, 0, x_805); -lean_ctor_set(x_808, 1, x_806); -return x_808; +lean_ctor_set(x_767, 0, x_764); +lean_ctor_set(x_767, 1, x_765); +return x_767; } } else { -lean_object* x_809; +lean_object* x_768; lean_dec(x_3); -x_809 = lean_box(0); -x_666 = x_809; -goto block_672; +x_768 = lean_box(0); +x_625 = x_768; +goto block_631; } } case 4: { -lean_object* x_810; lean_object* x_811; -lean_dec(x_110); +lean_object* x_769; lean_object* x_770; +lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); -x_810 = lean_ctor_get(x_673, 0); -lean_inc(x_810); -lean_dec(x_673); -x_811 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_811, 0, x_810); -lean_ctor_set(x_811, 1, x_665); -return x_811; +x_769 = lean_ctor_get(x_632, 0); +lean_inc(x_769); +lean_dec(x_632); +x_770 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_770, 0, x_769); +lean_ctor_set(x_770, 1, x_624); +return x_770; } case 5: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_812; lean_object* x_813; -lean_dec(x_110); -x_812 = lean_ctor_get(x_3, 1); -lean_inc(x_812); +lean_object* x_771; lean_object* x_772; +lean_dec(x_69); +x_771 = lean_ctor_get(x_3, 1); +lean_inc(x_771); lean_dec(x_3); lean_inc(x_4); -x_813 = l_Lean_Elab_Term_inferType(x_1, x_812, x_4, x_665); -if (lean_obj_tag(x_813) == 0) +x_772 = l_Lean_Elab_Term_inferType(x_1, x_771, x_4, x_624); +if (lean_obj_tag(x_772) == 0) { -lean_object* x_814; lean_object* x_815; lean_object* x_816; -x_814 = lean_ctor_get(x_813, 0); -lean_inc(x_814); -x_815 = lean_ctor_get(x_813, 1); -lean_inc(x_815); -lean_dec(x_813); +lean_object* x_773; lean_object* x_774; lean_object* x_775; +x_773 = lean_ctor_get(x_772, 0); +lean_inc(x_773); +x_774 = lean_ctor_get(x_772, 1); +lean_inc(x_774); +lean_dec(x_772); lean_inc(x_4); -x_816 = l_Lean_Elab_Term_whnf(x_1, x_814, x_4, x_815); -if (lean_obj_tag(x_816) == 0) +x_775 = l_Lean_Elab_Term_whnf(x_1, x_773, x_4, x_774); +if (lean_obj_tag(x_775) == 0) { -lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; -x_817 = lean_ctor_get(x_816, 0); -lean_inc(x_817); -x_818 = lean_ctor_get(x_816, 1); -lean_inc(x_818); -lean_dec(x_816); -x_819 = l_Lean_Expr_getAppFn___main(x_817); -x_820 = l_Lean_Elab_Term_tryPostponeIfMVar(x_817, x_4, x_818); -if (lean_obj_tag(x_820) == 0) +lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; +x_776 = lean_ctor_get(x_775, 0); +lean_inc(x_776); +x_777 = lean_ctor_get(x_775, 1); +lean_inc(x_777); +lean_dec(x_775); +x_778 = l_Lean_Expr_getAppFn___main(x_776); +x_779 = l_Lean_Elab_Term_tryPostponeIfMVar(x_776, x_4, x_777); +if (lean_obj_tag(x_779) == 0) { -lean_object* x_821; lean_object* x_822; lean_object* x_823; -x_821 = lean_ctor_get(x_820, 1); -lean_inc(x_821); -if (lean_is_exclusive(x_820)) { - lean_ctor_release(x_820, 0); - lean_ctor_release(x_820, 1); - x_822 = x_820; +lean_object* x_780; lean_object* x_781; lean_object* x_782; +x_780 = lean_ctor_get(x_779, 1); +lean_inc(x_780); +if (lean_is_exclusive(x_779)) { + lean_ctor_release(x_779, 0); + lean_ctor_release(x_779, 1); + x_781 = x_779; } else { - lean_dec_ref(x_820); - x_822 = lean_box(0); + lean_dec_ref(x_779); + x_781 = lean_box(0); } -if (lean_obj_tag(x_819) == 4) +if (lean_obj_tag(x_778) == 4) { -lean_object* x_830; lean_object* x_831; -lean_dec(x_817); +lean_object* x_789; lean_object* x_790; +lean_dec(x_776); lean_dec(x_4); -x_830 = lean_ctor_get(x_819, 0); -lean_inc(x_830); -lean_dec(x_819); -if (lean_is_scalar(x_822)) { - x_831 = lean_alloc_ctor(0, 2, 0); +x_789 = lean_ctor_get(x_778, 0); +lean_inc(x_789); +lean_dec(x_778); +if (lean_is_scalar(x_781)) { + x_790 = lean_alloc_ctor(0, 2, 0); } else { - x_831 = x_822; + x_790 = x_781; } -lean_ctor_set(x_831, 0, x_830); -lean_ctor_set(x_831, 1, x_821); -return x_831; +lean_ctor_set(x_790, 0, x_789); +lean_ctor_set(x_790, 1, x_780); +return x_790; } else { -lean_object* x_832; -lean_dec(x_822); -lean_dec(x_819); -x_832 = lean_box(0); -x_823 = x_832; -goto block_829; +lean_object* x_791; +lean_dec(x_781); +lean_dec(x_778); +x_791 = lean_box(0); +x_782 = x_791; +goto block_788; } -block_829: +block_788: { -lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; -lean_dec(x_823); -x_824 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_824, 0, x_817); -x_825 = l_Lean_indentExpr(x_824); -x_826 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_827 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_827, 0, x_826); -lean_ctor_set(x_827, 1, x_825); -x_828 = l_Lean_Elab_Term_throwError___rarg(x_1, x_827, x_4, x_821); -return x_828; +lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; +lean_dec(x_782); +x_783 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_783, 0, x_776); +x_784 = l_Lean_indentExpr(x_783); +x_785 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_786 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_786, 0, x_785); +lean_ctor_set(x_786, 1, x_784); +x_787 = l_Lean_Elab_Term_throwError___rarg(x_1, x_786, x_4, x_780); +return x_787; } } else { -lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; -lean_dec(x_819); -lean_dec(x_817); +lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; +lean_dec(x_778); +lean_dec(x_776); lean_dec(x_4); -x_833 = lean_ctor_get(x_820, 0); -lean_inc(x_833); -x_834 = lean_ctor_get(x_820, 1); -lean_inc(x_834); -if (lean_is_exclusive(x_820)) { - lean_ctor_release(x_820, 0); - lean_ctor_release(x_820, 1); - x_835 = x_820; +x_792 = lean_ctor_get(x_779, 0); +lean_inc(x_792); +x_793 = lean_ctor_get(x_779, 1); +lean_inc(x_793); +if (lean_is_exclusive(x_779)) { + lean_ctor_release(x_779, 0); + lean_ctor_release(x_779, 1); + x_794 = x_779; } else { - lean_dec_ref(x_820); - x_835 = lean_box(0); + lean_dec_ref(x_779); + x_794 = lean_box(0); } -if (lean_is_scalar(x_835)) { - x_836 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_794)) { + x_795 = lean_alloc_ctor(1, 2, 0); } else { - x_836 = x_835; + x_795 = x_794; } -lean_ctor_set(x_836, 0, x_833); -lean_ctor_set(x_836, 1, x_834); -return x_836; +lean_ctor_set(x_795, 0, x_792); +lean_ctor_set(x_795, 1, x_793); +return x_795; } } else { -lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; +lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_dec(x_4); -x_837 = lean_ctor_get(x_816, 0); -lean_inc(x_837); -x_838 = lean_ctor_get(x_816, 1); -lean_inc(x_838); -if (lean_is_exclusive(x_816)) { - lean_ctor_release(x_816, 0); - lean_ctor_release(x_816, 1); - x_839 = x_816; +x_796 = lean_ctor_get(x_775, 0); +lean_inc(x_796); +x_797 = lean_ctor_get(x_775, 1); +lean_inc(x_797); +if (lean_is_exclusive(x_775)) { + lean_ctor_release(x_775, 0); + lean_ctor_release(x_775, 1); + x_798 = x_775; } else { - lean_dec_ref(x_816); - x_839 = lean_box(0); + lean_dec_ref(x_775); + x_798 = lean_box(0); } -if (lean_is_scalar(x_839)) { - x_840 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_798)) { + x_799 = lean_alloc_ctor(1, 2, 0); } else { - x_840 = x_839; + x_799 = x_798; } -lean_ctor_set(x_840, 0, x_837); -lean_ctor_set(x_840, 1, x_838); -return x_840; +lean_ctor_set(x_799, 0, x_796); +lean_ctor_set(x_799, 1, x_797); +return x_799; } } else { -lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; +lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_dec(x_4); -x_841 = lean_ctor_get(x_813, 0); -lean_inc(x_841); -x_842 = lean_ctor_get(x_813, 1); -lean_inc(x_842); -if (lean_is_exclusive(x_813)) { - lean_ctor_release(x_813, 0); - lean_ctor_release(x_813, 1); - x_843 = x_813; +x_800 = lean_ctor_get(x_772, 0); +lean_inc(x_800); +x_801 = lean_ctor_get(x_772, 1); +lean_inc(x_801); +if (lean_is_exclusive(x_772)) { + lean_ctor_release(x_772, 0); + lean_ctor_release(x_772, 1); + x_802 = x_772; } else { - lean_dec_ref(x_813); - x_843 = lean_box(0); + lean_dec_ref(x_772); + x_802 = lean_box(0); } -if (lean_is_scalar(x_843)) { - x_844 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_802)) { + x_803 = lean_alloc_ctor(1, 2, 0); } else { - x_844 = x_843; + x_803 = x_802; } -lean_ctor_set(x_844, 0, x_841); -lean_ctor_set(x_844, 1, x_842); -return x_844; +lean_ctor_set(x_803, 0, x_800); +lean_ctor_set(x_803, 1, x_801); +return x_803; } } else { -lean_object* x_845; +lean_object* x_804; lean_dec(x_3); -x_845 = lean_box(0); -x_666 = x_845; -goto block_672; +x_804 = lean_box(0); +x_625 = x_804; +goto block_631; } } case 6: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_846; lean_object* x_847; -lean_dec(x_110); -x_846 = lean_ctor_get(x_3, 1); -lean_inc(x_846); +lean_object* x_805; lean_object* x_806; +lean_dec(x_69); +x_805 = lean_ctor_get(x_3, 1); +lean_inc(x_805); lean_dec(x_3); lean_inc(x_4); -x_847 = l_Lean_Elab_Term_inferType(x_1, x_846, x_4, x_665); -if (lean_obj_tag(x_847) == 0) +x_806 = l_Lean_Elab_Term_inferType(x_1, x_805, x_4, x_624); +if (lean_obj_tag(x_806) == 0) { -lean_object* x_848; lean_object* x_849; lean_object* x_850; -x_848 = lean_ctor_get(x_847, 0); -lean_inc(x_848); -x_849 = lean_ctor_get(x_847, 1); -lean_inc(x_849); -lean_dec(x_847); +lean_object* x_807; lean_object* x_808; lean_object* x_809; +x_807 = lean_ctor_get(x_806, 0); +lean_inc(x_807); +x_808 = lean_ctor_get(x_806, 1); +lean_inc(x_808); +lean_dec(x_806); lean_inc(x_4); -x_850 = l_Lean_Elab_Term_whnf(x_1, x_848, x_4, x_849); -if (lean_obj_tag(x_850) == 0) +x_809 = l_Lean_Elab_Term_whnf(x_1, x_807, x_4, x_808); +if (lean_obj_tag(x_809) == 0) { -lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; -x_851 = lean_ctor_get(x_850, 0); -lean_inc(x_851); -x_852 = lean_ctor_get(x_850, 1); -lean_inc(x_852); -lean_dec(x_850); -x_853 = l_Lean_Expr_getAppFn___main(x_851); -x_854 = l_Lean_Elab_Term_tryPostponeIfMVar(x_851, x_4, x_852); -if (lean_obj_tag(x_854) == 0) +lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; +x_810 = lean_ctor_get(x_809, 0); +lean_inc(x_810); +x_811 = lean_ctor_get(x_809, 1); +lean_inc(x_811); +lean_dec(x_809); +x_812 = l_Lean_Expr_getAppFn___main(x_810); +x_813 = l_Lean_Elab_Term_tryPostponeIfMVar(x_810, x_4, x_811); +if (lean_obj_tag(x_813) == 0) { -lean_object* x_855; lean_object* x_856; lean_object* x_857; -x_855 = lean_ctor_get(x_854, 1); -lean_inc(x_855); -if (lean_is_exclusive(x_854)) { - lean_ctor_release(x_854, 0); - lean_ctor_release(x_854, 1); - x_856 = x_854; +lean_object* x_814; lean_object* x_815; lean_object* x_816; +x_814 = lean_ctor_get(x_813, 1); +lean_inc(x_814); +if (lean_is_exclusive(x_813)) { + lean_ctor_release(x_813, 0); + lean_ctor_release(x_813, 1); + x_815 = x_813; } else { - lean_dec_ref(x_854); - x_856 = lean_box(0); + lean_dec_ref(x_813); + x_815 = lean_box(0); } -if (lean_obj_tag(x_853) == 4) +if (lean_obj_tag(x_812) == 4) { -lean_object* x_864; lean_object* x_865; -lean_dec(x_851); +lean_object* x_823; lean_object* x_824; +lean_dec(x_810); lean_dec(x_4); -x_864 = lean_ctor_get(x_853, 0); -lean_inc(x_864); -lean_dec(x_853); -if (lean_is_scalar(x_856)) { - x_865 = lean_alloc_ctor(0, 2, 0); +x_823 = lean_ctor_get(x_812, 0); +lean_inc(x_823); +lean_dec(x_812); +if (lean_is_scalar(x_815)) { + x_824 = lean_alloc_ctor(0, 2, 0); } else { - x_865 = x_856; + x_824 = x_815; } -lean_ctor_set(x_865, 0, x_864); -lean_ctor_set(x_865, 1, x_855); -return x_865; +lean_ctor_set(x_824, 0, x_823); +lean_ctor_set(x_824, 1, x_814); +return x_824; } else { -lean_object* x_866; -lean_dec(x_856); -lean_dec(x_853); -x_866 = lean_box(0); -x_857 = x_866; -goto block_863; +lean_object* x_825; +lean_dec(x_815); +lean_dec(x_812); +x_825 = lean_box(0); +x_816 = x_825; +goto block_822; } -block_863: +block_822: { -lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; -lean_dec(x_857); -x_858 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_858, 0, x_851); -x_859 = l_Lean_indentExpr(x_858); -x_860 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_861 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_861, 0, x_860); -lean_ctor_set(x_861, 1, x_859); -x_862 = l_Lean_Elab_Term_throwError___rarg(x_1, x_861, x_4, x_855); -return x_862; +lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; +lean_dec(x_816); +x_817 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_817, 0, x_810); +x_818 = l_Lean_indentExpr(x_817); +x_819 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_820 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_820, 0, x_819); +lean_ctor_set(x_820, 1, x_818); +x_821 = l_Lean_Elab_Term_throwError___rarg(x_1, x_820, x_4, x_814); +return x_821; } } else { -lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; -lean_dec(x_853); -lean_dec(x_851); +lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; +lean_dec(x_812); +lean_dec(x_810); lean_dec(x_4); -x_867 = lean_ctor_get(x_854, 0); -lean_inc(x_867); -x_868 = lean_ctor_get(x_854, 1); -lean_inc(x_868); -if (lean_is_exclusive(x_854)) { - lean_ctor_release(x_854, 0); - lean_ctor_release(x_854, 1); - x_869 = x_854; +x_826 = lean_ctor_get(x_813, 0); +lean_inc(x_826); +x_827 = lean_ctor_get(x_813, 1); +lean_inc(x_827); +if (lean_is_exclusive(x_813)) { + lean_ctor_release(x_813, 0); + lean_ctor_release(x_813, 1); + x_828 = x_813; } else { - lean_dec_ref(x_854); - x_869 = lean_box(0); + lean_dec_ref(x_813); + x_828 = lean_box(0); } -if (lean_is_scalar(x_869)) { - x_870 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_828)) { + x_829 = lean_alloc_ctor(1, 2, 0); } else { - x_870 = x_869; + x_829 = x_828; } -lean_ctor_set(x_870, 0, x_867); -lean_ctor_set(x_870, 1, x_868); -return x_870; +lean_ctor_set(x_829, 0, x_826); +lean_ctor_set(x_829, 1, x_827); +return x_829; } } else { -lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; +lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_dec(x_4); -x_871 = lean_ctor_get(x_850, 0); -lean_inc(x_871); -x_872 = lean_ctor_get(x_850, 1); -lean_inc(x_872); -if (lean_is_exclusive(x_850)) { - lean_ctor_release(x_850, 0); - lean_ctor_release(x_850, 1); - x_873 = x_850; +x_830 = lean_ctor_get(x_809, 0); +lean_inc(x_830); +x_831 = lean_ctor_get(x_809, 1); +lean_inc(x_831); +if (lean_is_exclusive(x_809)) { + lean_ctor_release(x_809, 0); + lean_ctor_release(x_809, 1); + x_832 = x_809; } else { - lean_dec_ref(x_850); - x_873 = lean_box(0); + lean_dec_ref(x_809); + x_832 = lean_box(0); } -if (lean_is_scalar(x_873)) { - x_874 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_832)) { + x_833 = lean_alloc_ctor(1, 2, 0); } else { - x_874 = x_873; + x_833 = x_832; } -lean_ctor_set(x_874, 0, x_871); -lean_ctor_set(x_874, 1, x_872); -return x_874; +lean_ctor_set(x_833, 0, x_830); +lean_ctor_set(x_833, 1, x_831); +return x_833; } } else { -lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; +lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_dec(x_4); -x_875 = lean_ctor_get(x_847, 0); -lean_inc(x_875); -x_876 = lean_ctor_get(x_847, 1); -lean_inc(x_876); -if (lean_is_exclusive(x_847)) { - lean_ctor_release(x_847, 0); - lean_ctor_release(x_847, 1); - x_877 = x_847; +x_834 = lean_ctor_get(x_806, 0); +lean_inc(x_834); +x_835 = lean_ctor_get(x_806, 1); +lean_inc(x_835); +if (lean_is_exclusive(x_806)) { + lean_ctor_release(x_806, 0); + lean_ctor_release(x_806, 1); + x_836 = x_806; } else { - lean_dec_ref(x_847); - x_877 = lean_box(0); + lean_dec_ref(x_806); + x_836 = lean_box(0); } -if (lean_is_scalar(x_877)) { - x_878 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_836)) { + x_837 = lean_alloc_ctor(1, 2, 0); } else { - x_878 = x_877; + x_837 = x_836; } -lean_ctor_set(x_878, 0, x_875); -lean_ctor_set(x_878, 1, x_876); -return x_878; +lean_ctor_set(x_837, 0, x_834); +lean_ctor_set(x_837, 1, x_835); +return x_837; } } else { -lean_object* x_879; +lean_object* x_838; lean_dec(x_3); -x_879 = lean_box(0); -x_666 = x_879; -goto block_672; +x_838 = lean_box(0); +x_625 = x_838; +goto block_631; } } case 7: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_880; lean_object* x_881; -lean_dec(x_110); -x_880 = lean_ctor_get(x_3, 1); -lean_inc(x_880); +lean_object* x_839; lean_object* x_840; +lean_dec(x_69); +x_839 = lean_ctor_get(x_3, 1); +lean_inc(x_839); lean_dec(x_3); lean_inc(x_4); -x_881 = l_Lean_Elab_Term_inferType(x_1, x_880, x_4, x_665); -if (lean_obj_tag(x_881) == 0) +x_840 = l_Lean_Elab_Term_inferType(x_1, x_839, x_4, x_624); +if (lean_obj_tag(x_840) == 0) { -lean_object* x_882; lean_object* x_883; lean_object* x_884; -x_882 = lean_ctor_get(x_881, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_881, 1); -lean_inc(x_883); -lean_dec(x_881); +lean_object* x_841; lean_object* x_842; lean_object* x_843; +x_841 = lean_ctor_get(x_840, 0); +lean_inc(x_841); +x_842 = lean_ctor_get(x_840, 1); +lean_inc(x_842); +lean_dec(x_840); lean_inc(x_4); -x_884 = l_Lean_Elab_Term_whnf(x_1, x_882, x_4, x_883); -if (lean_obj_tag(x_884) == 0) +x_843 = l_Lean_Elab_Term_whnf(x_1, x_841, x_4, x_842); +if (lean_obj_tag(x_843) == 0) { -lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; -x_885 = lean_ctor_get(x_884, 0); -lean_inc(x_885); -x_886 = lean_ctor_get(x_884, 1); -lean_inc(x_886); -lean_dec(x_884); -x_887 = l_Lean_Expr_getAppFn___main(x_885); -x_888 = l_Lean_Elab_Term_tryPostponeIfMVar(x_885, x_4, x_886); -if (lean_obj_tag(x_888) == 0) +lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; +x_844 = lean_ctor_get(x_843, 0); +lean_inc(x_844); +x_845 = lean_ctor_get(x_843, 1); +lean_inc(x_845); +lean_dec(x_843); +x_846 = l_Lean_Expr_getAppFn___main(x_844); +x_847 = l_Lean_Elab_Term_tryPostponeIfMVar(x_844, x_4, x_845); +if (lean_obj_tag(x_847) == 0) { -lean_object* x_889; lean_object* x_890; lean_object* x_891; -x_889 = lean_ctor_get(x_888, 1); -lean_inc(x_889); -if (lean_is_exclusive(x_888)) { - lean_ctor_release(x_888, 0); - lean_ctor_release(x_888, 1); - x_890 = x_888; +lean_object* x_848; lean_object* x_849; lean_object* x_850; +x_848 = lean_ctor_get(x_847, 1); +lean_inc(x_848); +if (lean_is_exclusive(x_847)) { + lean_ctor_release(x_847, 0); + lean_ctor_release(x_847, 1); + x_849 = x_847; } else { - lean_dec_ref(x_888); - x_890 = lean_box(0); + lean_dec_ref(x_847); + x_849 = lean_box(0); } -if (lean_obj_tag(x_887) == 4) +if (lean_obj_tag(x_846) == 4) { -lean_object* x_898; lean_object* x_899; -lean_dec(x_885); +lean_object* x_857; lean_object* x_858; +lean_dec(x_844); lean_dec(x_4); -x_898 = lean_ctor_get(x_887, 0); -lean_inc(x_898); -lean_dec(x_887); -if (lean_is_scalar(x_890)) { - x_899 = lean_alloc_ctor(0, 2, 0); +x_857 = lean_ctor_get(x_846, 0); +lean_inc(x_857); +lean_dec(x_846); +if (lean_is_scalar(x_849)) { + x_858 = lean_alloc_ctor(0, 2, 0); } else { - x_899 = x_890; + x_858 = x_849; } -lean_ctor_set(x_899, 0, x_898); -lean_ctor_set(x_899, 1, x_889); -return x_899; +lean_ctor_set(x_858, 0, x_857); +lean_ctor_set(x_858, 1, x_848); +return x_858; } else { -lean_object* x_900; -lean_dec(x_890); -lean_dec(x_887); -x_900 = lean_box(0); -x_891 = x_900; -goto block_897; +lean_object* x_859; +lean_dec(x_849); +lean_dec(x_846); +x_859 = lean_box(0); +x_850 = x_859; +goto block_856; } -block_897: +block_856: { -lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; -lean_dec(x_891); -x_892 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_892, 0, x_885); -x_893 = l_Lean_indentExpr(x_892); -x_894 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_895 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_895, 0, x_894); -lean_ctor_set(x_895, 1, x_893); -x_896 = l_Lean_Elab_Term_throwError___rarg(x_1, x_895, x_4, x_889); -return x_896; +lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; +lean_dec(x_850); +x_851 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_851, 0, x_844); +x_852 = l_Lean_indentExpr(x_851); +x_853 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_854 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_854, 0, x_853); +lean_ctor_set(x_854, 1, x_852); +x_855 = l_Lean_Elab_Term_throwError___rarg(x_1, x_854, x_4, x_848); +return x_855; } } else { -lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; -lean_dec(x_887); -lean_dec(x_885); +lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; +lean_dec(x_846); +lean_dec(x_844); lean_dec(x_4); -x_901 = lean_ctor_get(x_888, 0); -lean_inc(x_901); -x_902 = lean_ctor_get(x_888, 1); -lean_inc(x_902); -if (lean_is_exclusive(x_888)) { - lean_ctor_release(x_888, 0); - lean_ctor_release(x_888, 1); - x_903 = x_888; +x_860 = lean_ctor_get(x_847, 0); +lean_inc(x_860); +x_861 = lean_ctor_get(x_847, 1); +lean_inc(x_861); +if (lean_is_exclusive(x_847)) { + lean_ctor_release(x_847, 0); + lean_ctor_release(x_847, 1); + x_862 = x_847; } else { - lean_dec_ref(x_888); - x_903 = lean_box(0); + lean_dec_ref(x_847); + x_862 = lean_box(0); } -if (lean_is_scalar(x_903)) { - x_904 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_862)) { + x_863 = lean_alloc_ctor(1, 2, 0); } else { - x_904 = x_903; + x_863 = x_862; } -lean_ctor_set(x_904, 0, x_901); -lean_ctor_set(x_904, 1, x_902); -return x_904; +lean_ctor_set(x_863, 0, x_860); +lean_ctor_set(x_863, 1, x_861); +return x_863; } } else { -lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; +lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_dec(x_4); -x_905 = lean_ctor_get(x_884, 0); -lean_inc(x_905); -x_906 = lean_ctor_get(x_884, 1); -lean_inc(x_906); -if (lean_is_exclusive(x_884)) { - lean_ctor_release(x_884, 0); - lean_ctor_release(x_884, 1); - x_907 = x_884; +x_864 = lean_ctor_get(x_843, 0); +lean_inc(x_864); +x_865 = lean_ctor_get(x_843, 1); +lean_inc(x_865); +if (lean_is_exclusive(x_843)) { + lean_ctor_release(x_843, 0); + lean_ctor_release(x_843, 1); + x_866 = x_843; } else { - lean_dec_ref(x_884); - x_907 = lean_box(0); + lean_dec_ref(x_843); + x_866 = lean_box(0); } -if (lean_is_scalar(x_907)) { - x_908 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_866)) { + x_867 = lean_alloc_ctor(1, 2, 0); } else { - x_908 = x_907; + x_867 = x_866; } -lean_ctor_set(x_908, 0, x_905); -lean_ctor_set(x_908, 1, x_906); -return x_908; +lean_ctor_set(x_867, 0, x_864); +lean_ctor_set(x_867, 1, x_865); +return x_867; } } else { -lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; +lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_dec(x_4); -x_909 = lean_ctor_get(x_881, 0); -lean_inc(x_909); -x_910 = lean_ctor_get(x_881, 1); -lean_inc(x_910); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_911 = x_881; +x_868 = lean_ctor_get(x_840, 0); +lean_inc(x_868); +x_869 = lean_ctor_get(x_840, 1); +lean_inc(x_869); +if (lean_is_exclusive(x_840)) { + lean_ctor_release(x_840, 0); + lean_ctor_release(x_840, 1); + x_870 = x_840; } else { - lean_dec_ref(x_881); - x_911 = lean_box(0); + lean_dec_ref(x_840); + x_870 = lean_box(0); } -if (lean_is_scalar(x_911)) { - x_912 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_870)) { + x_871 = lean_alloc_ctor(1, 2, 0); } else { - x_912 = x_911; + x_871 = x_870; } -lean_ctor_set(x_912, 0, x_909); -lean_ctor_set(x_912, 1, x_910); -return x_912; +lean_ctor_set(x_871, 0, x_868); +lean_ctor_set(x_871, 1, x_869); +return x_871; } } else { -lean_object* x_913; +lean_object* x_872; lean_dec(x_3); -x_913 = lean_box(0); -x_666 = x_913; -goto block_672; +x_872 = lean_box(0); +x_625 = x_872; +goto block_631; } } case 8: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_914; lean_object* x_915; -lean_dec(x_110); -x_914 = lean_ctor_get(x_3, 1); -lean_inc(x_914); +lean_object* x_873; lean_object* x_874; +lean_dec(x_69); +x_873 = lean_ctor_get(x_3, 1); +lean_inc(x_873); lean_dec(x_3); lean_inc(x_4); -x_915 = l_Lean_Elab_Term_inferType(x_1, x_914, x_4, x_665); -if (lean_obj_tag(x_915) == 0) +x_874 = l_Lean_Elab_Term_inferType(x_1, x_873, x_4, x_624); +if (lean_obj_tag(x_874) == 0) { -lean_object* x_916; lean_object* x_917; lean_object* x_918; -x_916 = lean_ctor_get(x_915, 0); -lean_inc(x_916); -x_917 = lean_ctor_get(x_915, 1); -lean_inc(x_917); -lean_dec(x_915); +lean_object* x_875; lean_object* x_876; lean_object* x_877; +x_875 = lean_ctor_get(x_874, 0); +lean_inc(x_875); +x_876 = lean_ctor_get(x_874, 1); +lean_inc(x_876); +lean_dec(x_874); lean_inc(x_4); -x_918 = l_Lean_Elab_Term_whnf(x_1, x_916, x_4, x_917); -if (lean_obj_tag(x_918) == 0) +x_877 = l_Lean_Elab_Term_whnf(x_1, x_875, x_4, x_876); +if (lean_obj_tag(x_877) == 0) { -lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; -x_919 = lean_ctor_get(x_918, 0); -lean_inc(x_919); -x_920 = lean_ctor_get(x_918, 1); -lean_inc(x_920); -lean_dec(x_918); -x_921 = l_Lean_Expr_getAppFn___main(x_919); -x_922 = l_Lean_Elab_Term_tryPostponeIfMVar(x_919, x_4, x_920); -if (lean_obj_tag(x_922) == 0) +lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; +x_878 = lean_ctor_get(x_877, 0); +lean_inc(x_878); +x_879 = lean_ctor_get(x_877, 1); +lean_inc(x_879); +lean_dec(x_877); +x_880 = l_Lean_Expr_getAppFn___main(x_878); +x_881 = l_Lean_Elab_Term_tryPostponeIfMVar(x_878, x_4, x_879); +if (lean_obj_tag(x_881) == 0) { -lean_object* x_923; lean_object* x_924; lean_object* x_925; -x_923 = lean_ctor_get(x_922, 1); -lean_inc(x_923); -if (lean_is_exclusive(x_922)) { - lean_ctor_release(x_922, 0); - lean_ctor_release(x_922, 1); - x_924 = x_922; +lean_object* x_882; lean_object* x_883; lean_object* x_884; +x_882 = lean_ctor_get(x_881, 1); +lean_inc(x_882); +if (lean_is_exclusive(x_881)) { + lean_ctor_release(x_881, 0); + lean_ctor_release(x_881, 1); + x_883 = x_881; } else { - lean_dec_ref(x_922); - x_924 = lean_box(0); + lean_dec_ref(x_881); + x_883 = lean_box(0); } -if (lean_obj_tag(x_921) == 4) +if (lean_obj_tag(x_880) == 4) { -lean_object* x_932; lean_object* x_933; -lean_dec(x_919); +lean_object* x_891; lean_object* x_892; +lean_dec(x_878); lean_dec(x_4); -x_932 = lean_ctor_get(x_921, 0); -lean_inc(x_932); -lean_dec(x_921); -if (lean_is_scalar(x_924)) { - x_933 = lean_alloc_ctor(0, 2, 0); +x_891 = lean_ctor_get(x_880, 0); +lean_inc(x_891); +lean_dec(x_880); +if (lean_is_scalar(x_883)) { + x_892 = lean_alloc_ctor(0, 2, 0); } else { - x_933 = x_924; + x_892 = x_883; } -lean_ctor_set(x_933, 0, x_932); -lean_ctor_set(x_933, 1, x_923); -return x_933; +lean_ctor_set(x_892, 0, x_891); +lean_ctor_set(x_892, 1, x_882); +return x_892; } else { -lean_object* x_934; -lean_dec(x_924); -lean_dec(x_921); -x_934 = lean_box(0); -x_925 = x_934; -goto block_931; +lean_object* x_893; +lean_dec(x_883); +lean_dec(x_880); +x_893 = lean_box(0); +x_884 = x_893; +goto block_890; } -block_931: +block_890: { -lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; -lean_dec(x_925); -x_926 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_926, 0, x_919); -x_927 = l_Lean_indentExpr(x_926); -x_928 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_929 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_929, 0, x_928); -lean_ctor_set(x_929, 1, x_927); -x_930 = l_Lean_Elab_Term_throwError___rarg(x_1, x_929, x_4, x_923); -return x_930; +lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; +lean_dec(x_884); +x_885 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_885, 0, x_878); +x_886 = l_Lean_indentExpr(x_885); +x_887 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_888 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_888, 0, x_887); +lean_ctor_set(x_888, 1, x_886); +x_889 = l_Lean_Elab_Term_throwError___rarg(x_1, x_888, x_4, x_882); +return x_889; } } else { -lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; -lean_dec(x_921); -lean_dec(x_919); +lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; +lean_dec(x_880); +lean_dec(x_878); lean_dec(x_4); -x_935 = lean_ctor_get(x_922, 0); -lean_inc(x_935); -x_936 = lean_ctor_get(x_922, 1); -lean_inc(x_936); -if (lean_is_exclusive(x_922)) { - lean_ctor_release(x_922, 0); - lean_ctor_release(x_922, 1); - x_937 = x_922; +x_894 = lean_ctor_get(x_881, 0); +lean_inc(x_894); +x_895 = lean_ctor_get(x_881, 1); +lean_inc(x_895); +if (lean_is_exclusive(x_881)) { + lean_ctor_release(x_881, 0); + lean_ctor_release(x_881, 1); + x_896 = x_881; } else { - lean_dec_ref(x_922); - x_937 = lean_box(0); + lean_dec_ref(x_881); + x_896 = lean_box(0); } -if (lean_is_scalar(x_937)) { - x_938 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_896)) { + x_897 = lean_alloc_ctor(1, 2, 0); } else { - x_938 = x_937; + x_897 = x_896; } -lean_ctor_set(x_938, 0, x_935); -lean_ctor_set(x_938, 1, x_936); -return x_938; +lean_ctor_set(x_897, 0, x_894); +lean_ctor_set(x_897, 1, x_895); +return x_897; } } else { -lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; +lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_dec(x_4); -x_939 = lean_ctor_get(x_918, 0); -lean_inc(x_939); -x_940 = lean_ctor_get(x_918, 1); -lean_inc(x_940); -if (lean_is_exclusive(x_918)) { - lean_ctor_release(x_918, 0); - lean_ctor_release(x_918, 1); - x_941 = x_918; +x_898 = lean_ctor_get(x_877, 0); +lean_inc(x_898); +x_899 = lean_ctor_get(x_877, 1); +lean_inc(x_899); +if (lean_is_exclusive(x_877)) { + lean_ctor_release(x_877, 0); + lean_ctor_release(x_877, 1); + x_900 = x_877; } else { - lean_dec_ref(x_918); - x_941 = lean_box(0); + lean_dec_ref(x_877); + x_900 = lean_box(0); } -if (lean_is_scalar(x_941)) { - x_942 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_900)) { + x_901 = lean_alloc_ctor(1, 2, 0); } else { - x_942 = x_941; + x_901 = x_900; } -lean_ctor_set(x_942, 0, x_939); -lean_ctor_set(x_942, 1, x_940); -return x_942; +lean_ctor_set(x_901, 0, x_898); +lean_ctor_set(x_901, 1, x_899); +return x_901; } } else { -lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; +lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_dec(x_4); -x_943 = lean_ctor_get(x_915, 0); -lean_inc(x_943); -x_944 = lean_ctor_get(x_915, 1); -lean_inc(x_944); -if (lean_is_exclusive(x_915)) { - lean_ctor_release(x_915, 0); - lean_ctor_release(x_915, 1); - x_945 = x_915; +x_902 = lean_ctor_get(x_874, 0); +lean_inc(x_902); +x_903 = lean_ctor_get(x_874, 1); +lean_inc(x_903); +if (lean_is_exclusive(x_874)) { + lean_ctor_release(x_874, 0); + lean_ctor_release(x_874, 1); + x_904 = x_874; } else { - lean_dec_ref(x_915); - x_945 = lean_box(0); + lean_dec_ref(x_874); + x_904 = lean_box(0); } -if (lean_is_scalar(x_945)) { - x_946 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_904)) { + x_905 = lean_alloc_ctor(1, 2, 0); } else { - x_946 = x_945; + x_905 = x_904; } -lean_ctor_set(x_946, 0, x_943); -lean_ctor_set(x_946, 1, x_944); -return x_946; +lean_ctor_set(x_905, 0, x_902); +lean_ctor_set(x_905, 1, x_903); +return x_905; } } else { -lean_object* x_947; +lean_object* x_906; lean_dec(x_3); -x_947 = lean_box(0); -x_666 = x_947; -goto block_672; +x_906 = lean_box(0); +x_625 = x_906; +goto block_631; } } case 9: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_948; lean_object* x_949; -lean_dec(x_110); -x_948 = lean_ctor_get(x_3, 1); -lean_inc(x_948); +lean_object* x_907; lean_object* x_908; +lean_dec(x_69); +x_907 = lean_ctor_get(x_3, 1); +lean_inc(x_907); lean_dec(x_3); lean_inc(x_4); -x_949 = l_Lean_Elab_Term_inferType(x_1, x_948, x_4, x_665); -if (lean_obj_tag(x_949) == 0) +x_908 = l_Lean_Elab_Term_inferType(x_1, x_907, x_4, x_624); +if (lean_obj_tag(x_908) == 0) { -lean_object* x_950; lean_object* x_951; lean_object* x_952; -x_950 = lean_ctor_get(x_949, 0); -lean_inc(x_950); -x_951 = lean_ctor_get(x_949, 1); -lean_inc(x_951); -lean_dec(x_949); +lean_object* x_909; lean_object* x_910; lean_object* x_911; +x_909 = lean_ctor_get(x_908, 0); +lean_inc(x_909); +x_910 = lean_ctor_get(x_908, 1); +lean_inc(x_910); +lean_dec(x_908); lean_inc(x_4); -x_952 = l_Lean_Elab_Term_whnf(x_1, x_950, x_4, x_951); -if (lean_obj_tag(x_952) == 0) +x_911 = l_Lean_Elab_Term_whnf(x_1, x_909, x_4, x_910); +if (lean_obj_tag(x_911) == 0) { -lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; -x_953 = lean_ctor_get(x_952, 0); -lean_inc(x_953); -x_954 = lean_ctor_get(x_952, 1); -lean_inc(x_954); -lean_dec(x_952); -x_955 = l_Lean_Expr_getAppFn___main(x_953); -x_956 = l_Lean_Elab_Term_tryPostponeIfMVar(x_953, x_4, x_954); -if (lean_obj_tag(x_956) == 0) +lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; +x_912 = lean_ctor_get(x_911, 0); +lean_inc(x_912); +x_913 = lean_ctor_get(x_911, 1); +lean_inc(x_913); +lean_dec(x_911); +x_914 = l_Lean_Expr_getAppFn___main(x_912); +x_915 = l_Lean_Elab_Term_tryPostponeIfMVar(x_912, x_4, x_913); +if (lean_obj_tag(x_915) == 0) { -lean_object* x_957; lean_object* x_958; lean_object* x_959; -x_957 = lean_ctor_get(x_956, 1); -lean_inc(x_957); -if (lean_is_exclusive(x_956)) { - lean_ctor_release(x_956, 0); - lean_ctor_release(x_956, 1); - x_958 = x_956; +lean_object* x_916; lean_object* x_917; lean_object* x_918; +x_916 = lean_ctor_get(x_915, 1); +lean_inc(x_916); +if (lean_is_exclusive(x_915)) { + lean_ctor_release(x_915, 0); + lean_ctor_release(x_915, 1); + x_917 = x_915; } else { - lean_dec_ref(x_956); - x_958 = lean_box(0); + lean_dec_ref(x_915); + x_917 = lean_box(0); } -if (lean_obj_tag(x_955) == 4) +if (lean_obj_tag(x_914) == 4) { -lean_object* x_966; lean_object* x_967; -lean_dec(x_953); +lean_object* x_925; lean_object* x_926; +lean_dec(x_912); lean_dec(x_4); -x_966 = lean_ctor_get(x_955, 0); -lean_inc(x_966); -lean_dec(x_955); -if (lean_is_scalar(x_958)) { - x_967 = lean_alloc_ctor(0, 2, 0); +x_925 = lean_ctor_get(x_914, 0); +lean_inc(x_925); +lean_dec(x_914); +if (lean_is_scalar(x_917)) { + x_926 = lean_alloc_ctor(0, 2, 0); } else { - x_967 = x_958; + x_926 = x_917; } -lean_ctor_set(x_967, 0, x_966); -lean_ctor_set(x_967, 1, x_957); -return x_967; +lean_ctor_set(x_926, 0, x_925); +lean_ctor_set(x_926, 1, x_916); +return x_926; } else { -lean_object* x_968; -lean_dec(x_958); -lean_dec(x_955); -x_968 = lean_box(0); -x_959 = x_968; -goto block_965; +lean_object* x_927; +lean_dec(x_917); +lean_dec(x_914); +x_927 = lean_box(0); +x_918 = x_927; +goto block_924; } -block_965: +block_924: { -lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; -lean_dec(x_959); -x_960 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_960, 0, x_953); -x_961 = l_Lean_indentExpr(x_960); -x_962 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_963 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_963, 0, x_962); -lean_ctor_set(x_963, 1, x_961); -x_964 = l_Lean_Elab_Term_throwError___rarg(x_1, x_963, x_4, x_957); -return x_964; +lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; +lean_dec(x_918); +x_919 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_919, 0, x_912); +x_920 = l_Lean_indentExpr(x_919); +x_921 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_922 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_922, 0, x_921); +lean_ctor_set(x_922, 1, x_920); +x_923 = l_Lean_Elab_Term_throwError___rarg(x_1, x_922, x_4, x_916); +return x_923; } } else { -lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; -lean_dec(x_955); -lean_dec(x_953); +lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; +lean_dec(x_914); +lean_dec(x_912); lean_dec(x_4); -x_969 = lean_ctor_get(x_956, 0); -lean_inc(x_969); -x_970 = lean_ctor_get(x_956, 1); -lean_inc(x_970); -if (lean_is_exclusive(x_956)) { - lean_ctor_release(x_956, 0); - lean_ctor_release(x_956, 1); - x_971 = x_956; +x_928 = lean_ctor_get(x_915, 0); +lean_inc(x_928); +x_929 = lean_ctor_get(x_915, 1); +lean_inc(x_929); +if (lean_is_exclusive(x_915)) { + lean_ctor_release(x_915, 0); + lean_ctor_release(x_915, 1); + x_930 = x_915; } else { - lean_dec_ref(x_956); - x_971 = lean_box(0); + lean_dec_ref(x_915); + x_930 = lean_box(0); } -if (lean_is_scalar(x_971)) { - x_972 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_930)) { + x_931 = lean_alloc_ctor(1, 2, 0); } else { - x_972 = x_971; + x_931 = x_930; } -lean_ctor_set(x_972, 0, x_969); -lean_ctor_set(x_972, 1, x_970); -return x_972; +lean_ctor_set(x_931, 0, x_928); +lean_ctor_set(x_931, 1, x_929); +return x_931; } } else { -lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; +lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_dec(x_4); -x_973 = lean_ctor_get(x_952, 0); -lean_inc(x_973); -x_974 = lean_ctor_get(x_952, 1); -lean_inc(x_974); -if (lean_is_exclusive(x_952)) { - lean_ctor_release(x_952, 0); - lean_ctor_release(x_952, 1); - x_975 = x_952; +x_932 = lean_ctor_get(x_911, 0); +lean_inc(x_932); +x_933 = lean_ctor_get(x_911, 1); +lean_inc(x_933); +if (lean_is_exclusive(x_911)) { + lean_ctor_release(x_911, 0); + lean_ctor_release(x_911, 1); + x_934 = x_911; } else { - lean_dec_ref(x_952); - x_975 = lean_box(0); + lean_dec_ref(x_911); + x_934 = lean_box(0); } -if (lean_is_scalar(x_975)) { - x_976 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_934)) { + x_935 = lean_alloc_ctor(1, 2, 0); } else { - x_976 = x_975; + x_935 = x_934; } -lean_ctor_set(x_976, 0, x_973); -lean_ctor_set(x_976, 1, x_974); -return x_976; +lean_ctor_set(x_935, 0, x_932); +lean_ctor_set(x_935, 1, x_933); +return x_935; } } else { -lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; +lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_dec(x_4); -x_977 = lean_ctor_get(x_949, 0); -lean_inc(x_977); -x_978 = lean_ctor_get(x_949, 1); -lean_inc(x_978); -if (lean_is_exclusive(x_949)) { - lean_ctor_release(x_949, 0); - lean_ctor_release(x_949, 1); - x_979 = x_949; +x_936 = lean_ctor_get(x_908, 0); +lean_inc(x_936); +x_937 = lean_ctor_get(x_908, 1); +lean_inc(x_937); +if (lean_is_exclusive(x_908)) { + lean_ctor_release(x_908, 0); + lean_ctor_release(x_908, 1); + x_938 = x_908; } else { - lean_dec_ref(x_949); - x_979 = lean_box(0); + lean_dec_ref(x_908); + x_938 = lean_box(0); } -if (lean_is_scalar(x_979)) { - x_980 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_938)) { + x_939 = lean_alloc_ctor(1, 2, 0); } else { - x_980 = x_979; + x_939 = x_938; } -lean_ctor_set(x_980, 0, x_977); -lean_ctor_set(x_980, 1, x_978); -return x_980; +lean_ctor_set(x_939, 0, x_936); +lean_ctor_set(x_939, 1, x_937); +return x_939; } } else { -lean_object* x_981; +lean_object* x_940; lean_dec(x_3); -x_981 = lean_box(0); -x_666 = x_981; -goto block_672; +x_940 = lean_box(0); +x_625 = x_940; +goto block_631; } } case 10: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_982; lean_object* x_983; -lean_dec(x_110); -x_982 = lean_ctor_get(x_3, 1); -lean_inc(x_982); +lean_object* x_941; lean_object* x_942; +lean_dec(x_69); +x_941 = lean_ctor_get(x_3, 1); +lean_inc(x_941); lean_dec(x_3); lean_inc(x_4); -x_983 = l_Lean_Elab_Term_inferType(x_1, x_982, x_4, x_665); -if (lean_obj_tag(x_983) == 0) +x_942 = l_Lean_Elab_Term_inferType(x_1, x_941, x_4, x_624); +if (lean_obj_tag(x_942) == 0) { -lean_object* x_984; lean_object* x_985; lean_object* x_986; -x_984 = lean_ctor_get(x_983, 0); -lean_inc(x_984); -x_985 = lean_ctor_get(x_983, 1); -lean_inc(x_985); -lean_dec(x_983); +lean_object* x_943; lean_object* x_944; lean_object* x_945; +x_943 = lean_ctor_get(x_942, 0); +lean_inc(x_943); +x_944 = lean_ctor_get(x_942, 1); +lean_inc(x_944); +lean_dec(x_942); lean_inc(x_4); -x_986 = l_Lean_Elab_Term_whnf(x_1, x_984, x_4, x_985); -if (lean_obj_tag(x_986) == 0) +x_945 = l_Lean_Elab_Term_whnf(x_1, x_943, x_4, x_944); +if (lean_obj_tag(x_945) == 0) { -lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; -x_987 = lean_ctor_get(x_986, 0); -lean_inc(x_987); -x_988 = lean_ctor_get(x_986, 1); -lean_inc(x_988); -lean_dec(x_986); -x_989 = l_Lean_Expr_getAppFn___main(x_987); -x_990 = l_Lean_Elab_Term_tryPostponeIfMVar(x_987, x_4, x_988); -if (lean_obj_tag(x_990) == 0) +lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; +x_946 = lean_ctor_get(x_945, 0); +lean_inc(x_946); +x_947 = lean_ctor_get(x_945, 1); +lean_inc(x_947); +lean_dec(x_945); +x_948 = l_Lean_Expr_getAppFn___main(x_946); +x_949 = l_Lean_Elab_Term_tryPostponeIfMVar(x_946, x_4, x_947); +if (lean_obj_tag(x_949) == 0) { -lean_object* x_991; lean_object* x_992; lean_object* x_993; -x_991 = lean_ctor_get(x_990, 1); -lean_inc(x_991); -if (lean_is_exclusive(x_990)) { - lean_ctor_release(x_990, 0); - lean_ctor_release(x_990, 1); - x_992 = x_990; +lean_object* x_950; lean_object* x_951; lean_object* x_952; +x_950 = lean_ctor_get(x_949, 1); +lean_inc(x_950); +if (lean_is_exclusive(x_949)) { + lean_ctor_release(x_949, 0); + lean_ctor_release(x_949, 1); + x_951 = x_949; } else { - lean_dec_ref(x_990); - x_992 = lean_box(0); + lean_dec_ref(x_949); + x_951 = lean_box(0); } -if (lean_obj_tag(x_989) == 4) +if (lean_obj_tag(x_948) == 4) { -lean_object* x_1000; lean_object* x_1001; -lean_dec(x_987); +lean_object* x_959; lean_object* x_960; +lean_dec(x_946); lean_dec(x_4); -x_1000 = lean_ctor_get(x_989, 0); -lean_inc(x_1000); -lean_dec(x_989); -if (lean_is_scalar(x_992)) { - x_1001 = lean_alloc_ctor(0, 2, 0); +x_959 = lean_ctor_get(x_948, 0); +lean_inc(x_959); +lean_dec(x_948); +if (lean_is_scalar(x_951)) { + x_960 = lean_alloc_ctor(0, 2, 0); } else { - x_1001 = x_992; + x_960 = x_951; } -lean_ctor_set(x_1001, 0, x_1000); -lean_ctor_set(x_1001, 1, x_991); -return x_1001; +lean_ctor_set(x_960, 0, x_959); +lean_ctor_set(x_960, 1, x_950); +return x_960; } else { -lean_object* x_1002; -lean_dec(x_992); -lean_dec(x_989); -x_1002 = lean_box(0); -x_993 = x_1002; -goto block_999; +lean_object* x_961; +lean_dec(x_951); +lean_dec(x_948); +x_961 = lean_box(0); +x_952 = x_961; +goto block_958; } -block_999: +block_958: { -lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; -lean_dec(x_993); -x_994 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_994, 0, x_987); -x_995 = l_Lean_indentExpr(x_994); -x_996 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_997 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_997, 0, x_996); -lean_ctor_set(x_997, 1, x_995); -x_998 = l_Lean_Elab_Term_throwError___rarg(x_1, x_997, x_4, x_991); -return x_998; +lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; +lean_dec(x_952); +x_953 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_953, 0, x_946); +x_954 = l_Lean_indentExpr(x_953); +x_955 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_956 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_956, 0, x_955); +lean_ctor_set(x_956, 1, x_954); +x_957 = l_Lean_Elab_Term_throwError___rarg(x_1, x_956, x_4, x_950); +return x_957; } } else { -lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; -lean_dec(x_989); -lean_dec(x_987); +lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; +lean_dec(x_948); +lean_dec(x_946); lean_dec(x_4); -x_1003 = lean_ctor_get(x_990, 0); -lean_inc(x_1003); -x_1004 = lean_ctor_get(x_990, 1); -lean_inc(x_1004); -if (lean_is_exclusive(x_990)) { - lean_ctor_release(x_990, 0); - lean_ctor_release(x_990, 1); - x_1005 = x_990; +x_962 = lean_ctor_get(x_949, 0); +lean_inc(x_962); +x_963 = lean_ctor_get(x_949, 1); +lean_inc(x_963); +if (lean_is_exclusive(x_949)) { + lean_ctor_release(x_949, 0); + lean_ctor_release(x_949, 1); + x_964 = x_949; } else { - lean_dec_ref(x_990); - x_1005 = lean_box(0); + lean_dec_ref(x_949); + x_964 = lean_box(0); } -if (lean_is_scalar(x_1005)) { - x_1006 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_964)) { + x_965 = lean_alloc_ctor(1, 2, 0); } else { - x_1006 = x_1005; + x_965 = x_964; } -lean_ctor_set(x_1006, 0, x_1003); -lean_ctor_set(x_1006, 1, x_1004); -return x_1006; +lean_ctor_set(x_965, 0, x_962); +lean_ctor_set(x_965, 1, x_963); +return x_965; } } else { -lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; +lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_dec(x_4); -x_1007 = lean_ctor_get(x_986, 0); -lean_inc(x_1007); -x_1008 = lean_ctor_get(x_986, 1); -lean_inc(x_1008); -if (lean_is_exclusive(x_986)) { - lean_ctor_release(x_986, 0); - lean_ctor_release(x_986, 1); - x_1009 = x_986; +x_966 = lean_ctor_get(x_945, 0); +lean_inc(x_966); +x_967 = lean_ctor_get(x_945, 1); +lean_inc(x_967); +if (lean_is_exclusive(x_945)) { + lean_ctor_release(x_945, 0); + lean_ctor_release(x_945, 1); + x_968 = x_945; } else { - lean_dec_ref(x_986); - x_1009 = lean_box(0); + lean_dec_ref(x_945); + x_968 = lean_box(0); } -if (lean_is_scalar(x_1009)) { - x_1010 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_968)) { + x_969 = lean_alloc_ctor(1, 2, 0); } else { - x_1010 = x_1009; + x_969 = x_968; } -lean_ctor_set(x_1010, 0, x_1007); -lean_ctor_set(x_1010, 1, x_1008); -return x_1010; +lean_ctor_set(x_969, 0, x_966); +lean_ctor_set(x_969, 1, x_967); +return x_969; } } else { -lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; +lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_dec(x_4); -x_1011 = lean_ctor_get(x_983, 0); -lean_inc(x_1011); -x_1012 = lean_ctor_get(x_983, 1); -lean_inc(x_1012); -if (lean_is_exclusive(x_983)) { - lean_ctor_release(x_983, 0); - lean_ctor_release(x_983, 1); - x_1013 = x_983; +x_970 = lean_ctor_get(x_942, 0); +lean_inc(x_970); +x_971 = lean_ctor_get(x_942, 1); +lean_inc(x_971); +if (lean_is_exclusive(x_942)) { + lean_ctor_release(x_942, 0); + lean_ctor_release(x_942, 1); + x_972 = x_942; } else { - lean_dec_ref(x_983); - x_1013 = lean_box(0); + lean_dec_ref(x_942); + x_972 = lean_box(0); } -if (lean_is_scalar(x_1013)) { - x_1014 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_972)) { + x_973 = lean_alloc_ctor(1, 2, 0); } else { - x_1014 = x_1013; + x_973 = x_972; } -lean_ctor_set(x_1014, 0, x_1011); -lean_ctor_set(x_1014, 1, x_1012); -return x_1014; +lean_ctor_set(x_973, 0, x_970); +lean_ctor_set(x_973, 1, x_971); +return x_973; } } else { -lean_object* x_1015; +lean_object* x_974; lean_dec(x_3); -x_1015 = lean_box(0); -x_666 = x_1015; -goto block_672; +x_974 = lean_box(0); +x_625 = x_974; +goto block_631; } } case 11: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_1016; lean_object* x_1017; -lean_dec(x_110); -x_1016 = lean_ctor_get(x_3, 1); -lean_inc(x_1016); +lean_object* x_975; lean_object* x_976; +lean_dec(x_69); +x_975 = lean_ctor_get(x_3, 1); +lean_inc(x_975); lean_dec(x_3); lean_inc(x_4); -x_1017 = l_Lean_Elab_Term_inferType(x_1, x_1016, x_4, x_665); -if (lean_obj_tag(x_1017) == 0) +x_976 = l_Lean_Elab_Term_inferType(x_1, x_975, x_4, x_624); +if (lean_obj_tag(x_976) == 0) { -lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; -x_1018 = lean_ctor_get(x_1017, 0); -lean_inc(x_1018); -x_1019 = lean_ctor_get(x_1017, 1); -lean_inc(x_1019); -lean_dec(x_1017); +lean_object* x_977; lean_object* x_978; lean_object* x_979; +x_977 = lean_ctor_get(x_976, 0); +lean_inc(x_977); +x_978 = lean_ctor_get(x_976, 1); +lean_inc(x_978); +lean_dec(x_976); lean_inc(x_4); -x_1020 = l_Lean_Elab_Term_whnf(x_1, x_1018, x_4, x_1019); -if (lean_obj_tag(x_1020) == 0) +x_979 = l_Lean_Elab_Term_whnf(x_1, x_977, x_4, x_978); +if (lean_obj_tag(x_979) == 0) { -lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; -x_1021 = lean_ctor_get(x_1020, 0); -lean_inc(x_1021); -x_1022 = lean_ctor_get(x_1020, 1); -lean_inc(x_1022); -lean_dec(x_1020); -x_1023 = l_Lean_Expr_getAppFn___main(x_1021); -x_1024 = l_Lean_Elab_Term_tryPostponeIfMVar(x_1021, x_4, x_1022); -if (lean_obj_tag(x_1024) == 0) +lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; +x_980 = lean_ctor_get(x_979, 0); +lean_inc(x_980); +x_981 = lean_ctor_get(x_979, 1); +lean_inc(x_981); +lean_dec(x_979); +x_982 = l_Lean_Expr_getAppFn___main(x_980); +x_983 = l_Lean_Elab_Term_tryPostponeIfMVar(x_980, x_4, x_981); +if (lean_obj_tag(x_983) == 0) { -lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; -x_1025 = lean_ctor_get(x_1024, 1); -lean_inc(x_1025); -if (lean_is_exclusive(x_1024)) { - lean_ctor_release(x_1024, 0); - lean_ctor_release(x_1024, 1); - x_1026 = x_1024; +lean_object* x_984; lean_object* x_985; lean_object* x_986; +x_984 = lean_ctor_get(x_983, 1); +lean_inc(x_984); +if (lean_is_exclusive(x_983)) { + lean_ctor_release(x_983, 0); + lean_ctor_release(x_983, 1); + x_985 = x_983; } else { - lean_dec_ref(x_1024); - x_1026 = lean_box(0); + lean_dec_ref(x_983); + x_985 = lean_box(0); } -if (lean_obj_tag(x_1023) == 4) +if (lean_obj_tag(x_982) == 4) { -lean_object* x_1034; lean_object* x_1035; -lean_dec(x_1021); +lean_object* x_993; lean_object* x_994; +lean_dec(x_980); lean_dec(x_4); -x_1034 = lean_ctor_get(x_1023, 0); -lean_inc(x_1034); -lean_dec(x_1023); -if (lean_is_scalar(x_1026)) { - x_1035 = lean_alloc_ctor(0, 2, 0); +x_993 = lean_ctor_get(x_982, 0); +lean_inc(x_993); +lean_dec(x_982); +if (lean_is_scalar(x_985)) { + x_994 = lean_alloc_ctor(0, 2, 0); } else { - x_1035 = x_1026; + x_994 = x_985; } -lean_ctor_set(x_1035, 0, x_1034); -lean_ctor_set(x_1035, 1, x_1025); -return x_1035; +lean_ctor_set(x_994, 0, x_993); +lean_ctor_set(x_994, 1, x_984); +return x_994; } else { -lean_object* x_1036; -lean_dec(x_1026); -lean_dec(x_1023); -x_1036 = lean_box(0); -x_1027 = x_1036; -goto block_1033; +lean_object* x_995; +lean_dec(x_985); +lean_dec(x_982); +x_995 = lean_box(0); +x_986 = x_995; +goto block_992; } -block_1033: +block_992: { -lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; -lean_dec(x_1027); -x_1028 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1028, 0, x_1021); -x_1029 = l_Lean_indentExpr(x_1028); -x_1030 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_1031 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1031, 0, x_1030); -lean_ctor_set(x_1031, 1, x_1029); -x_1032 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1031, x_4, x_1025); -return x_1032; +lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; +lean_dec(x_986); +x_987 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_987, 0, x_980); +x_988 = l_Lean_indentExpr(x_987); +x_989 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_990 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_990, 0, x_989); +lean_ctor_set(x_990, 1, x_988); +x_991 = l_Lean_Elab_Term_throwError___rarg(x_1, x_990, x_4, x_984); +return x_991; } } else { -lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; -lean_dec(x_1023); -lean_dec(x_1021); +lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; +lean_dec(x_982); +lean_dec(x_980); lean_dec(x_4); -x_1037 = lean_ctor_get(x_1024, 0); -lean_inc(x_1037); -x_1038 = lean_ctor_get(x_1024, 1); -lean_inc(x_1038); -if (lean_is_exclusive(x_1024)) { - lean_ctor_release(x_1024, 0); - lean_ctor_release(x_1024, 1); - x_1039 = x_1024; +x_996 = lean_ctor_get(x_983, 0); +lean_inc(x_996); +x_997 = lean_ctor_get(x_983, 1); +lean_inc(x_997); +if (lean_is_exclusive(x_983)) { + lean_ctor_release(x_983, 0); + lean_ctor_release(x_983, 1); + x_998 = x_983; } else { - lean_dec_ref(x_1024); - x_1039 = lean_box(0); + lean_dec_ref(x_983); + x_998 = lean_box(0); } -if (lean_is_scalar(x_1039)) { - x_1040 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_998)) { + x_999 = lean_alloc_ctor(1, 2, 0); } else { - x_1040 = x_1039; + x_999 = x_998; } -lean_ctor_set(x_1040, 0, x_1037); -lean_ctor_set(x_1040, 1, x_1038); -return x_1040; +lean_ctor_set(x_999, 0, x_996); +lean_ctor_set(x_999, 1, x_997); +return x_999; } } else { -lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; +lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_dec(x_4); -x_1041 = lean_ctor_get(x_1020, 0); -lean_inc(x_1041); -x_1042 = lean_ctor_get(x_1020, 1); -lean_inc(x_1042); -if (lean_is_exclusive(x_1020)) { - lean_ctor_release(x_1020, 0); - lean_ctor_release(x_1020, 1); - x_1043 = x_1020; +x_1000 = lean_ctor_get(x_979, 0); +lean_inc(x_1000); +x_1001 = lean_ctor_get(x_979, 1); +lean_inc(x_1001); +if (lean_is_exclusive(x_979)) { + lean_ctor_release(x_979, 0); + lean_ctor_release(x_979, 1); + x_1002 = x_979; } else { - lean_dec_ref(x_1020); - x_1043 = lean_box(0); + lean_dec_ref(x_979); + x_1002 = lean_box(0); } -if (lean_is_scalar(x_1043)) { - x_1044 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1002)) { + x_1003 = lean_alloc_ctor(1, 2, 0); } else { - x_1044 = x_1043; + x_1003 = x_1002; } -lean_ctor_set(x_1044, 0, x_1041); -lean_ctor_set(x_1044, 1, x_1042); -return x_1044; +lean_ctor_set(x_1003, 0, x_1000); +lean_ctor_set(x_1003, 1, x_1001); +return x_1003; } } else { -lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; +lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_dec(x_4); -x_1045 = lean_ctor_get(x_1017, 0); -lean_inc(x_1045); -x_1046 = lean_ctor_get(x_1017, 1); -lean_inc(x_1046); -if (lean_is_exclusive(x_1017)) { - lean_ctor_release(x_1017, 0); - lean_ctor_release(x_1017, 1); - x_1047 = x_1017; +x_1004 = lean_ctor_get(x_976, 0); +lean_inc(x_1004); +x_1005 = lean_ctor_get(x_976, 1); +lean_inc(x_1005); +if (lean_is_exclusive(x_976)) { + lean_ctor_release(x_976, 0); + lean_ctor_release(x_976, 1); + x_1006 = x_976; } else { - lean_dec_ref(x_1017); - x_1047 = lean_box(0); + lean_dec_ref(x_976); + x_1006 = lean_box(0); } -if (lean_is_scalar(x_1047)) { - x_1048 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1006)) { + x_1007 = lean_alloc_ctor(1, 2, 0); } else { - x_1048 = x_1047; + x_1007 = x_1006; } -lean_ctor_set(x_1048, 0, x_1045); -lean_ctor_set(x_1048, 1, x_1046); -return x_1048; +lean_ctor_set(x_1007, 0, x_1004); +lean_ctor_set(x_1007, 1, x_1005); +return x_1007; } } else { -lean_object* x_1049; +lean_object* x_1008; lean_dec(x_3); -x_1049 = lean_box(0); -x_666 = x_1049; -goto block_672; +x_1008 = lean_box(0); +x_625 = x_1008; +goto block_631; } } default: { -lean_dec(x_673); +lean_dec(x_632); if (lean_obj_tag(x_3) == 2) { -lean_object* x_1050; lean_object* x_1051; -lean_dec(x_110); -x_1050 = lean_ctor_get(x_3, 1); -lean_inc(x_1050); +lean_object* x_1009; lean_object* x_1010; +lean_dec(x_69); +x_1009 = lean_ctor_get(x_3, 1); +lean_inc(x_1009); lean_dec(x_3); lean_inc(x_4); -x_1051 = l_Lean_Elab_Term_inferType(x_1, x_1050, x_4, x_665); -if (lean_obj_tag(x_1051) == 0) +x_1010 = l_Lean_Elab_Term_inferType(x_1, x_1009, x_4, x_624); +if (lean_obj_tag(x_1010) == 0) { -lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; -x_1052 = lean_ctor_get(x_1051, 0); -lean_inc(x_1052); -x_1053 = lean_ctor_get(x_1051, 1); -lean_inc(x_1053); -lean_dec(x_1051); +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; +x_1011 = lean_ctor_get(x_1010, 0); +lean_inc(x_1011); +x_1012 = lean_ctor_get(x_1010, 1); +lean_inc(x_1012); +lean_dec(x_1010); lean_inc(x_4); -x_1054 = l_Lean_Elab_Term_whnf(x_1, x_1052, x_4, x_1053); -if (lean_obj_tag(x_1054) == 0) +x_1013 = l_Lean_Elab_Term_whnf(x_1, x_1011, x_4, x_1012); +if (lean_obj_tag(x_1013) == 0) { -lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; -x_1055 = lean_ctor_get(x_1054, 0); -lean_inc(x_1055); -x_1056 = lean_ctor_get(x_1054, 1); -lean_inc(x_1056); -lean_dec(x_1054); -x_1057 = l_Lean_Expr_getAppFn___main(x_1055); -x_1058 = l_Lean_Elab_Term_tryPostponeIfMVar(x_1055, x_4, x_1056); -if (lean_obj_tag(x_1058) == 0) +lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; +x_1014 = lean_ctor_get(x_1013, 0); +lean_inc(x_1014); +x_1015 = lean_ctor_get(x_1013, 1); +lean_inc(x_1015); +lean_dec(x_1013); +x_1016 = l_Lean_Expr_getAppFn___main(x_1014); +x_1017 = l_Lean_Elab_Term_tryPostponeIfMVar(x_1014, x_4, x_1015); +if (lean_obj_tag(x_1017) == 0) { -lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; -x_1059 = lean_ctor_get(x_1058, 1); -lean_inc(x_1059); -if (lean_is_exclusive(x_1058)) { - lean_ctor_release(x_1058, 0); - lean_ctor_release(x_1058, 1); - x_1060 = x_1058; +lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; +x_1018 = lean_ctor_get(x_1017, 1); +lean_inc(x_1018); +if (lean_is_exclusive(x_1017)) { + lean_ctor_release(x_1017, 0); + lean_ctor_release(x_1017, 1); + x_1019 = x_1017; } else { - lean_dec_ref(x_1058); - x_1060 = lean_box(0); + lean_dec_ref(x_1017); + x_1019 = lean_box(0); } -if (lean_obj_tag(x_1057) == 4) +if (lean_obj_tag(x_1016) == 4) { -lean_object* x_1068; lean_object* x_1069; -lean_dec(x_1055); +lean_object* x_1027; lean_object* x_1028; +lean_dec(x_1014); lean_dec(x_4); -x_1068 = lean_ctor_get(x_1057, 0); -lean_inc(x_1068); -lean_dec(x_1057); -if (lean_is_scalar(x_1060)) { - x_1069 = lean_alloc_ctor(0, 2, 0); +x_1027 = lean_ctor_get(x_1016, 0); +lean_inc(x_1027); +lean_dec(x_1016); +if (lean_is_scalar(x_1019)) { + x_1028 = lean_alloc_ctor(0, 2, 0); } else { - x_1069 = x_1060; + x_1028 = x_1019; } -lean_ctor_set(x_1069, 0, x_1068); -lean_ctor_set(x_1069, 1, x_1059); -return x_1069; +lean_ctor_set(x_1028, 0, x_1027); +lean_ctor_set(x_1028, 1, x_1018); +return x_1028; } else { -lean_object* x_1070; -lean_dec(x_1060); -lean_dec(x_1057); -x_1070 = lean_box(0); -x_1061 = x_1070; -goto block_1067; +lean_object* x_1029; +lean_dec(x_1019); +lean_dec(x_1016); +x_1029 = lean_box(0); +x_1020 = x_1029; +goto block_1026; } -block_1067: +block_1026: { -lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; -lean_dec(x_1061); -x_1062 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1062, 0, x_1055); -x_1063 = l_Lean_indentExpr(x_1062); -x_1064 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12; -x_1065 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1065, 0, x_1064); -lean_ctor_set(x_1065, 1, x_1063); -x_1066 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1065, x_4, x_1059); -return x_1066; +lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; +lean_dec(x_1020); +x_1021 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1021, 0, x_1014); +x_1022 = l_Lean_indentExpr(x_1021); +x_1023 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6; +x_1024 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1024, 0, x_1023); +lean_ctor_set(x_1024, 1, x_1022); +x_1025 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1024, x_4, x_1018); +return x_1025; } } else { -lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; -lean_dec(x_1057); -lean_dec(x_1055); +lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; +lean_dec(x_1016); +lean_dec(x_1014); lean_dec(x_4); -x_1071 = lean_ctor_get(x_1058, 0); -lean_inc(x_1071); -x_1072 = lean_ctor_get(x_1058, 1); -lean_inc(x_1072); -if (lean_is_exclusive(x_1058)) { - lean_ctor_release(x_1058, 0); - lean_ctor_release(x_1058, 1); - x_1073 = x_1058; +x_1030 = lean_ctor_get(x_1017, 0); +lean_inc(x_1030); +x_1031 = lean_ctor_get(x_1017, 1); +lean_inc(x_1031); +if (lean_is_exclusive(x_1017)) { + lean_ctor_release(x_1017, 0); + lean_ctor_release(x_1017, 1); + x_1032 = x_1017; } else { - lean_dec_ref(x_1058); - x_1073 = lean_box(0); + lean_dec_ref(x_1017); + x_1032 = lean_box(0); } -if (lean_is_scalar(x_1073)) { - x_1074 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1032)) { + x_1033 = lean_alloc_ctor(1, 2, 0); } else { - x_1074 = x_1073; + x_1033 = x_1032; } -lean_ctor_set(x_1074, 0, x_1071); -lean_ctor_set(x_1074, 1, x_1072); -return x_1074; +lean_ctor_set(x_1033, 0, x_1030); +lean_ctor_set(x_1033, 1, x_1031); +return x_1033; } } else { -lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; +lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_dec(x_4); -x_1075 = lean_ctor_get(x_1054, 0); -lean_inc(x_1075); -x_1076 = lean_ctor_get(x_1054, 1); -lean_inc(x_1076); -if (lean_is_exclusive(x_1054)) { - lean_ctor_release(x_1054, 0); - lean_ctor_release(x_1054, 1); - x_1077 = x_1054; +x_1034 = lean_ctor_get(x_1013, 0); +lean_inc(x_1034); +x_1035 = lean_ctor_get(x_1013, 1); +lean_inc(x_1035); +if (lean_is_exclusive(x_1013)) { + lean_ctor_release(x_1013, 0); + lean_ctor_release(x_1013, 1); + x_1036 = x_1013; } else { - lean_dec_ref(x_1054); - x_1077 = lean_box(0); + lean_dec_ref(x_1013); + x_1036 = lean_box(0); } -if (lean_is_scalar(x_1077)) { - x_1078 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1036)) { + x_1037 = lean_alloc_ctor(1, 2, 0); } else { - x_1078 = x_1077; + x_1037 = x_1036; } -lean_ctor_set(x_1078, 0, x_1075); -lean_ctor_set(x_1078, 1, x_1076); -return x_1078; +lean_ctor_set(x_1037, 0, x_1034); +lean_ctor_set(x_1037, 1, x_1035); +return x_1037; } } else { -lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; +lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_dec(x_4); -x_1079 = lean_ctor_get(x_1051, 0); -lean_inc(x_1079); -x_1080 = lean_ctor_get(x_1051, 1); -lean_inc(x_1080); -if (lean_is_exclusive(x_1051)) { - lean_ctor_release(x_1051, 0); - lean_ctor_release(x_1051, 1); - x_1081 = x_1051; +x_1038 = lean_ctor_get(x_1010, 0); +lean_inc(x_1038); +x_1039 = lean_ctor_get(x_1010, 1); +lean_inc(x_1039); +if (lean_is_exclusive(x_1010)) { + lean_ctor_release(x_1010, 0); + lean_ctor_release(x_1010, 1); + x_1040 = x_1010; } else { - lean_dec_ref(x_1051); - x_1081 = lean_box(0); + lean_dec_ref(x_1010); + x_1040 = lean_box(0); } -if (lean_is_scalar(x_1081)) { - x_1082 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1040)) { + x_1041 = lean_alloc_ctor(1, 2, 0); } else { - x_1082 = x_1081; + x_1041 = x_1040; } -lean_ctor_set(x_1082, 0, x_1079); -lean_ctor_set(x_1082, 1, x_1080); -return x_1082; +lean_ctor_set(x_1041, 0, x_1038); +lean_ctor_set(x_1041, 1, x_1039); +return x_1041; } } else { -lean_object* x_1083; +lean_object* x_1042; lean_dec(x_3); -x_1083 = lean_box(0); -x_666 = x_1083; -goto block_672; +x_1042 = lean_box(0); +x_625 = x_1042; +goto block_631; } } } -block_672: +block_631: { -lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; -lean_dec(x_666); -x_667 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_667, 0, x_110); -x_668 = l_Lean_indentExpr(x_667); -x_669 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9; -x_670 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_670, 0, x_669); -lean_ctor_set(x_670, 1, x_668); -x_671 = l_Lean_Elab_Term_throwError___rarg(x_1, x_670, x_4, x_665); -return x_671; +lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; +lean_dec(x_625); +x_626 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_626, 0, x_69); +x_627 = l_Lean_indentExpr(x_626); +x_628 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__3; +x_629 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_629, 0, x_628); +lean_ctor_set(x_629, 1, x_627); +x_630 = l_Lean_Elab_Term_throwError___rarg(x_1, x_629, x_4, x_624); +return x_630; } } } else { -uint8_t x_1084; -lean_dec(x_110); +uint8_t x_1043; +lean_dec(x_69); lean_dec(x_4); lean_dec(x_3); -x_1084 = !lean_is_exclusive(x_111); -if (x_1084 == 0) +x_1043 = !lean_is_exclusive(x_70); +if (x_1043 == 0) { -return x_111; +return x_70; } else { -lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; -x_1085 = lean_ctor_get(x_111, 0); -x_1086 = lean_ctor_get(x_111, 1); -lean_inc(x_1086); -lean_inc(x_1085); -lean_dec(x_111); -x_1087 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1087, 0, x_1085); -lean_ctor_set(x_1087, 1, x_1086); -return x_1087; +lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; +x_1044 = lean_ctor_get(x_70, 0); +x_1045 = lean_ctor_get(x_70, 1); +lean_inc(x_1045); +lean_inc(x_1044); +lean_dec(x_70); +x_1046 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1046, 0, x_1044); +lean_ctor_set(x_1046, 1, x_1045); +return x_1046; } } } -block_64: +block_23: { -lean_dec(x_49); +lean_dec(x_8); if (lean_obj_tag(x_2) == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_50 = l_Lean_Expr_Inhabited; -x_51 = l_Option_get_x21___rarg___closed__3; -x_52 = lean_panic_fn(x_50, x_51); -x_53 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_53, 0, x_52); -x_54 = l_Lean_indentExpr(x_53); -x_55 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9; -x_56 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -x_57 = l_Lean_Elab_Term_throwError___rarg(x_1, x_56, x_4, x_48); -return x_57; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_9 = l_Lean_Expr_Inhabited; +x_10 = l_Option_get_x21___rarg___closed__3; +x_11 = lean_panic_fn(x_9, x_10); +x_12 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = l_Lean_indentExpr(x_12); +x_14 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__3; +x_15 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +x_16 = l_Lean_Elab_Term_throwError___rarg(x_1, x_15, x_4, x_7); +return x_16; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_58 = lean_ctor_get(x_2, 0); -lean_inc(x_58); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); lean_dec(x_2); -x_59 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_59, 0, x_58); -x_60 = l_Lean_indentExpr(x_59); -x_61 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9; -x_62 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = l_Lean_Elab_Term_throwError___rarg(x_1, x_62, x_4, x_48); -return x_63; +x_18 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Lean_indentExpr(x_18); +x_20 = l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__3; +x_21 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_Elab_Term_throwError___rarg(x_1, x_21, x_4, x_7); +return x_22; } } } else { -uint8_t x_1088; +uint8_t x_1047; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_1088 = !lean_is_exclusive(x_47); -if (x_1088 == 0) +x_1047 = !lean_is_exclusive(x_6); +if (x_1047 == 0) { -return x_47; +return x_6; } else { -lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; -x_1089 = lean_ctor_get(x_47, 0); -x_1090 = lean_ctor_get(x_47, 1); -lean_inc(x_1090); -lean_inc(x_1089); -lean_dec(x_47); -x_1091 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1091, 0, x_1089); -lean_ctor_set(x_1091, 1, x_1090); -return x_1091; -} +lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; +x_1048 = lean_ctor_get(x_6, 0); +x_1049 = lean_ctor_get(x_6, 1); +lean_inc(x_1049); +lean_inc(x_1048); +lean_dec(x_6); +x_1050 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1050, 0, x_1048); +lean_ctor_set(x_1050, 1, x_1049); +return x_1050; } } } @@ -9245,40 +8320,6 @@ return x_14; } } } -lean_object* l_Lean_fmt___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__2(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_2; -x_2 = l_Lean_Format_join___closed__1; -return x_2; -} -case 1: -{ -lean_object* x_3; -x_3 = l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2; -return x_3; -} -default: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; -x_4 = lean_ctor_get(x_1, 1); -x_5 = lean_expr_dbg_to_string(x_4); -x_6 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_6, 0, x_5); -x_7 = 0; -x_8 = l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4; -x_9 = lean_alloc_ctor(4, 2, 1); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_6); -lean_ctor_set_uint8(x_9, sizeof(void*)*2, x_7); -return x_9; -} -} -} -} lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1() { _start: { @@ -9299,58 +8340,114 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } +lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" .. }"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_match___elambda__1___closed__7; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_2 = lean_ctor_get(x_1, 1); +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 2); lean_inc(x_2); -x_3 = lean_ctor_get(x_1, 2); +x_3 = lean_ctor_get(x_1, 3); lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 3); -lean_inc(x_4); lean_dec(x_1); -x_5 = l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___main___spec__1(x_2); -x_6 = 0; -x_7 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; -x_8 = lean_alloc_ctor(4, 2, 1); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_5); -lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_6); -x_9 = l_Lean_Elab_Term_StructInst_formatField___closed__2; -x_10 = lean_alloc_ctor(4, 2, 1); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -lean_ctor_set_uint8(x_10, sizeof(void*)*2, x_6); -x_11 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(x_3); -x_12 = l_Lean_formatKVMap___closed__1; -x_13 = l_Lean_Format_joinSep___main___at___private_Init_Lean_Data_Trie_6__toStringAux___main___spec__1(x_11, x_12); -lean_dec(x_11); -x_14 = lean_alloc_ctor(4, 2, 1); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_13); -lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_6); -x_15 = l_Lean_fmt___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__2(x_4); +x_4 = l_List_map___main___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__1(x_2); +x_5 = l_Lean_formatKVMap___closed__1; +x_6 = l_Lean_Format_joinSep___main___at___private_Init_Lean_Data_Trie_6__toStringAux___main___spec__1(x_4, x_5); lean_dec(x_4); +switch (lean_obj_tag(x_3)) { +case 0: +{ +uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = 0; +x_8 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; +x_9 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +lean_ctor_set_uint8(x_9, sizeof(void*)*2, x_7); +x_10 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; +x_11 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_uint8(x_11, sizeof(void*)*2, x_7); +return x_11; +} +case 1: +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_3); +x_12 = 0; +x_13 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; +x_14 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_6); +lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_12); +x_15 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4; x_16 = lean_alloc_ctor(4, 2, 1); lean_ctor_set(x_16, 0, x_14); lean_ctor_set(x_16, 1, x_15); -lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_6); -x_17 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; -x_18 = lean_alloc_ctor(4, 2, 1); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -lean_ctor_set_uint8(x_18, sizeof(void*)*2, x_6); -return x_18; +lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_12); +return x_16; } -} -lean_object* l_Lean_fmt___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__2___boxed(lean_object* x_1) { -_start: +default: { -lean_object* x_2; -x_2 = l_Lean_fmt___at_Lean_Elab_Term_StructInst_formatStruct___main___spec__2(x_1); -lean_dec(x_1); -return x_2; +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_17 = lean_ctor_get(x_3, 1); +lean_inc(x_17); +lean_dec(x_3); +x_18 = lean_expr_dbg_to_string(x_17); +lean_dec(x_17); +x_19 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_19, 0, x_18); +x_20 = 0; +x_21 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1; +x_22 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +lean_ctor_set_uint8(x_22, sizeof(void*)*2, x_20); +x_23 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5; +x_24 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_20); +x_25 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_6); +lean_ctor_set_uint8(x_25, sizeof(void*)*2, x_20); +x_26 = l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2; +x_27 = lean_alloc_ctor(4, 2, 1); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set_uint8(x_27, sizeof(void*)*2, x_20); +return x_27; +} +} } } lean_object* l_Lean_Elab_Term_StructInst_formatStruct(lean_object* x_1) { @@ -13543,14 +12640,13 @@ uint8_t x_15; x_15 = !lean_is_exclusive(x_9); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = lean_ctor_get(x_9, 0); -x_17 = lean_ctor_get(x_9, 1); -x_18 = lean_array_get_size(x_17); -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_dec_lt(x_19, x_18); -lean_dec(x_18); -if (x_20 == 0) +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = lean_ctor_get(x_9, 1); +x_17 = lean_array_get_size(x_16); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_lt(x_18, x_17); +lean_dec(x_17); +if (x_19 == 0) { lean_dec(x_4); lean_ctor_set(x_5, 1, x_14); @@ -13559,43 +12655,13 @@ return x_11; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_array_fget(x_17, x_19); -x_22 = lean_box(0); -x_23 = lean_array_fset(x_17, x_19, x_22); -switch (lean_obj_tag(x_21)) { -case 1: -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_21); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_21, 1); -x_26 = lean_array_get_size(x_25); -x_27 = lean_unsigned_to_nat(0u); -x_28 = lean_nat_dec_lt(x_27, x_26); -lean_dec(x_26); -if (x_28 == 0) -{ -lean_object* x_29; -lean_dec(x_4); -x_29 = lean_array_fset(x_23, x_19, x_21); -lean_ctor_set(x_9, 1, x_29); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_array_fget(x_25, x_27); -x_31 = lean_array_fset(x_25, x_27, x_22); -x_32 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_30, x_4); -x_33 = lean_array_fset(x_31, x_27, x_32); -lean_ctor_set(x_21, 1, x_33); -x_34 = lean_array_fset(x_23, x_19, x_21); -lean_ctor_set(x_9, 1, x_34); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_array_fget(x_16, x_18); +x_21 = lean_box(0); +x_22 = lean_array_fset(x_16, x_18, x_21); +x_23 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_20, x_4); +x_24 = lean_array_fset(x_22, x_18, x_23); +lean_ctor_set(x_9, 1, x_24); lean_ctor_set(x_5, 1, x_14); lean_ctor_set(x_11, 0, x_5); return x_11; @@ -13603,232 +12669,44 @@ return x_11; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_35 = lean_ctor_get(x_21, 0); -x_36 = lean_ctor_get(x_21, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_21); -x_37 = lean_array_get_size(x_36); -x_38 = lean_unsigned_to_nat(0u); -x_39 = lean_nat_dec_lt(x_38, x_37); -lean_dec(x_37); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -lean_dec(x_4); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_36); -x_41 = lean_array_fset(x_23, x_19, x_40); -lean_ctor_set(x_9, 1, x_41); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_42 = lean_array_fget(x_36, x_38); -x_43 = lean_array_fset(x_36, x_38, x_22); -x_44 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_42, x_4); -x_45 = lean_array_fset(x_43, x_38, x_44); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_35); -lean_ctor_set(x_46, 1, x_45); -x_47 = lean_array_fset(x_23, x_19, x_46); -lean_ctor_set(x_9, 1, x_47); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -} -} -case 2: -{ -lean_object* x_48; uint8_t x_49; -lean_free_object(x_9); -lean_dec(x_4); -lean_inc(x_21); -x_48 = lean_array_fset(x_23, x_19, x_21); -x_49 = !lean_is_exclusive(x_21); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_21, 1); -lean_dec(x_50); -x_51 = lean_ctor_get(x_21, 0); -lean_dec(x_51); -lean_ctor_set_tag(x_21, 1); -lean_ctor_set(x_21, 1, x_48); -lean_ctor_set(x_21, 0, x_16); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_21); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -else -{ -lean_object* x_52; -lean_dec(x_21); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_16); -lean_ctor_set(x_52, 1, x_48); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_52); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -} -default: -{ -lean_object* x_53; -lean_dec(x_4); -x_53 = lean_array_fset(x_23, x_19, x_21); -lean_ctor_set(x_9, 1, x_53); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_54 = lean_ctor_get(x_9, 0); -x_55 = lean_ctor_get(x_9, 1); -lean_inc(x_55); -lean_inc(x_54); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_25 = lean_ctor_get(x_9, 0); +x_26 = lean_ctor_get(x_9, 1); +lean_inc(x_26); +lean_inc(x_25); lean_dec(x_9); -x_56 = lean_array_get_size(x_55); -x_57 = lean_unsigned_to_nat(1u); -x_58 = lean_nat_dec_lt(x_57, x_56); -lean_dec(x_56); -if (x_58 == 0) +x_27 = lean_array_get_size(x_26); +x_28 = lean_unsigned_to_nat(0u); +x_29 = lean_nat_dec_lt(x_28, x_27); +lean_dec(x_27); +if (x_29 == 0) { -lean_object* x_59; +lean_object* x_30; lean_dec(x_4); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_54); -lean_ctor_set(x_59, 1, x_55); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_25); +lean_ctor_set(x_30, 1, x_26); lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_59); +lean_ctor_set(x_5, 0, x_30); lean_ctor_set(x_11, 0, x_5); return x_11; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_array_fget(x_55, x_57); -x_61 = lean_box(0); -x_62 = lean_array_fset(x_55, x_57, x_61); -switch (lean_obj_tag(x_60)) { -case 1: -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_60, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_65 = x_60; -} else { - lean_dec_ref(x_60); - x_65 = lean_box(0); -} -x_66 = lean_array_get_size(x_64); -x_67 = lean_unsigned_to_nat(0u); -x_68 = lean_nat_dec_lt(x_67, x_66); -lean_dec(x_66); -if (x_68 == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_dec(x_4); -if (lean_is_scalar(x_65)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_65; -} -lean_ctor_set(x_69, 0, x_63); -lean_ctor_set(x_69, 1, x_64); -x_70 = lean_array_fset(x_62, x_57, x_69); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_54); -lean_ctor_set(x_71, 1, x_70); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_31 = lean_array_fget(x_26, x_28); +x_32 = lean_box(0); +x_33 = lean_array_fset(x_26, x_28, x_32); +x_34 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_31, x_4); +x_35 = lean_array_fset(x_33, x_28, x_34); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_25); +lean_ctor_set(x_36, 1, x_35); lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_71); +lean_ctor_set(x_5, 0, x_36); lean_ctor_set(x_11, 0, x_5); return x_11; } -else -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_72 = lean_array_fget(x_64, x_67); -x_73 = lean_array_fset(x_64, x_67, x_61); -x_74 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_72, x_4); -x_75 = lean_array_fset(x_73, x_67, x_74); -if (lean_is_scalar(x_65)) { - x_76 = lean_alloc_ctor(1, 2, 0); -} else { - x_76 = x_65; -} -lean_ctor_set(x_76, 0, x_63); -lean_ctor_set(x_76, 1, x_75); -x_77 = lean_array_fset(x_62, x_57, x_76); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_54); -lean_ctor_set(x_78, 1, x_77); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_78); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -} -case 2: -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -lean_dec(x_4); -lean_inc(x_60); -x_79 = lean_array_fset(x_62, x_57, x_60); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_80 = x_60; -} else { - lean_dec_ref(x_60); - x_80 = lean_box(0); -} -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(1, 2, 0); -} else { - x_81 = x_80; - lean_ctor_set_tag(x_81, 1); -} -lean_ctor_set(x_81, 0, x_54); -lean_ctor_set(x_81, 1, x_79); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_81); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -default: -{ -lean_object* x_82; lean_object* x_83; -lean_dec(x_4); -x_82 = lean_array_fset(x_62, x_57, x_60); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_54); -lean_ctor_set(x_83, 1, x_82); -lean_ctor_set(x_5, 1, x_14); -lean_ctor_set(x_5, 0, x_83); -lean_ctor_set(x_11, 0, x_5); -return x_11; -} -} -} } } else @@ -13841,504 +12719,267 @@ return x_11; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_11, 0); -x_85 = lean_ctor_get(x_11, 1); -lean_inc(x_85); -lean_inc(x_84); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_11, 0); +x_38 = lean_ctor_get(x_11, 1); +lean_inc(x_38); +lean_inc(x_37); lean_dec(x_11); -x_86 = l_Lean_mkProj(x_2, x_84, x_10); +x_39 = l_Lean_mkProj(x_2, x_37, x_10); if (lean_obj_tag(x_9) == 1) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_87 = lean_ctor_get(x_9, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_9, 1); -lean_inc(x_88); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_40 = lean_ctor_get(x_9, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_9, 1); +lean_inc(x_41); if (lean_is_exclusive(x_9)) { lean_ctor_release(x_9, 0); lean_ctor_release(x_9, 1); - x_89 = x_9; + x_42 = x_9; } else { lean_dec_ref(x_9); - x_89 = lean_box(0); + x_42 = lean_box(0); } -x_90 = lean_array_get_size(x_88); -x_91 = lean_unsigned_to_nat(1u); -x_92 = lean_nat_dec_lt(x_91, x_90); -lean_dec(x_90); -if (x_92 == 0) +x_43 = lean_array_get_size(x_41); +x_44 = lean_unsigned_to_nat(0u); +x_45 = lean_nat_dec_lt(x_44, x_43); +lean_dec(x_43); +if (x_45 == 0) { -lean_object* x_93; lean_object* x_94; +lean_object* x_46; lean_object* x_47; lean_dec(x_4); -if (lean_is_scalar(x_89)) { - x_93 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_42)) { + x_46 = lean_alloc_ctor(1, 2, 0); } else { - x_93 = x_89; + x_46 = x_42; } -lean_ctor_set(x_93, 0, x_87); -lean_ctor_set(x_93, 1, x_88); -lean_ctor_set(x_5, 1, x_86); -lean_ctor_set(x_5, 0, x_93); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_5); -lean_ctor_set(x_94, 1, x_85); -return x_94; +lean_ctor_set(x_46, 0, x_40); +lean_ctor_set(x_46, 1, x_41); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_46); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_38); +return x_47; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_array_fget(x_88, x_91); -x_96 = lean_box(0); -x_97 = lean_array_fset(x_88, x_91, x_96); -switch (lean_obj_tag(x_95)) { -case 1: -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_98 = lean_ctor_get(x_95, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_95, 1); -lean_inc(x_99); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_100 = x_95; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_48 = lean_array_fget(x_41, x_44); +x_49 = lean_box(0); +x_50 = lean_array_fset(x_41, x_44, x_49); +x_51 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_48, x_4); +x_52 = lean_array_fset(x_50, x_44, x_51); +if (lean_is_scalar(x_42)) { + x_53 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_95); - x_100 = lean_box(0); + x_53 = x_42; } -x_101 = lean_array_get_size(x_99); -x_102 = lean_unsigned_to_nat(0u); -x_103 = lean_nat_dec_lt(x_102, x_101); -lean_dec(x_101); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -lean_dec(x_4); -if (lean_is_scalar(x_100)) { - x_104 = lean_alloc_ctor(1, 2, 0); -} else { - x_104 = x_100; +lean_ctor_set(x_53, 0, x_40); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_5, 1, x_39); +lean_ctor_set(x_5, 0, x_53); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_5); +lean_ctor_set(x_54, 1, x_38); +return x_54; } -lean_ctor_set(x_104, 0, x_98); -lean_ctor_set(x_104, 1, x_99); -x_105 = lean_array_fset(x_97, x_91, x_104); -if (lean_is_scalar(x_89)) { - x_106 = lean_alloc_ctor(1, 2, 0); -} else { - x_106 = x_89; -} -lean_ctor_set(x_106, 0, x_87); -lean_ctor_set(x_106, 1, x_105); -lean_ctor_set(x_5, 1, x_86); -lean_ctor_set(x_5, 0, x_106); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_5); -lean_ctor_set(x_107, 1, x_85); -return x_107; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_108 = lean_array_fget(x_99, x_102); -x_109 = lean_array_fset(x_99, x_102, x_96); -x_110 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_108, x_4); -x_111 = lean_array_fset(x_109, x_102, x_110); -if (lean_is_scalar(x_100)) { - x_112 = lean_alloc_ctor(1, 2, 0); -} else { - x_112 = x_100; -} -lean_ctor_set(x_112, 0, x_98); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_array_fset(x_97, x_91, x_112); -if (lean_is_scalar(x_89)) { - x_114 = lean_alloc_ctor(1, 2, 0); -} else { - x_114 = x_89; -} -lean_ctor_set(x_114, 0, x_87); -lean_ctor_set(x_114, 1, x_113); -lean_ctor_set(x_5, 1, x_86); -lean_ctor_set(x_5, 0, x_114); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_5); -lean_ctor_set(x_115, 1, x_85); -return x_115; -} -} -case 2: -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_89); +lean_object* x_55; lean_dec(x_4); -lean_inc(x_95); -x_116 = lean_array_fset(x_97, x_91, x_95); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_117 = x_95; -} else { - lean_dec_ref(x_95); - x_117 = lean_box(0); -} -if (lean_is_scalar(x_117)) { - x_118 = lean_alloc_ctor(1, 2, 0); -} else { - x_118 = x_117; - lean_ctor_set_tag(x_118, 1); -} -lean_ctor_set(x_118, 0, x_87); -lean_ctor_set(x_118, 1, x_116); -lean_ctor_set(x_5, 1, x_86); -lean_ctor_set(x_5, 0, x_118); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_5); -lean_ctor_set(x_119, 1, x_85); -return x_119; -} -default: -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_dec(x_4); -x_120 = lean_array_fset(x_97, x_91, x_95); -if (lean_is_scalar(x_89)) { - x_121 = lean_alloc_ctor(1, 2, 0); -} else { - x_121 = x_89; -} -lean_ctor_set(x_121, 0, x_87); -lean_ctor_set(x_121, 1, x_120); -lean_ctor_set(x_5, 1, x_86); -lean_ctor_set(x_5, 0, x_121); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_5); -lean_ctor_set(x_122, 1, x_85); -return x_122; -} +lean_ctor_set(x_5, 1, x_39); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_5); +lean_ctor_set(x_55, 1, x_38); +return x_55; } } } else { -lean_object* x_123; -lean_dec(x_4); -lean_ctor_set(x_5, 1, x_86); -x_123 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_123, 0, x_5); -lean_ctor_set(x_123, 1, x_85); -return x_123; -} -} -} -else -{ -uint8_t x_124; +uint8_t x_56; lean_free_object(x_5); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); -x_124 = !lean_is_exclusive(x_11); -if (x_124 == 0) +x_56 = !lean_is_exclusive(x_11); +if (x_56 == 0) { return x_11; } else { -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_11, 0); -x_126 = lean_ctor_get(x_11, 1); -lean_inc(x_126); -lean_inc(x_125); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_11, 0); +x_58 = lean_ctor_get(x_11, 1); +lean_inc(x_58); +lean_inc(x_57); lean_dec(x_11); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_5, 0); -x_129 = lean_ctor_get(x_5, 1); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_5, 0); +x_61 = lean_ctor_get(x_5, 1); +lean_inc(x_61); +lean_inc(x_60); lean_dec(x_5); lean_inc(x_4); lean_inc(x_2); -x_130 = l___private_Init_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_6, x_7); -if (lean_obj_tag(x_130) == 0) +x_62 = l___private_Init_Lean_Elab_StructInst_14__getFieldIdx(x_1, x_2, x_3, x_4, x_6, x_7); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_133 = x_130; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_65 = x_62; } else { - lean_dec_ref(x_130); - x_133 = lean_box(0); + lean_dec_ref(x_62); + x_65 = lean_box(0); } -x_134 = l_Lean_mkProj(x_2, x_131, x_129); -if (lean_obj_tag(x_128) == 1) +x_66 = l_Lean_mkProj(x_2, x_63, x_61); +if (lean_obj_tag(x_60) == 1) { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_135 = lean_ctor_get(x_128, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_128, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_137 = x_128; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; +x_67 = lean_ctor_get(x_60, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_60, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_69 = x_60; } else { - lean_dec_ref(x_128); - x_137 = lean_box(0); + lean_dec_ref(x_60); + x_69 = lean_box(0); } -x_138 = lean_array_get_size(x_136); -x_139 = lean_unsigned_to_nat(1u); -x_140 = lean_nat_dec_lt(x_139, x_138); -lean_dec(x_138); -if (x_140 == 0) +x_70 = lean_array_get_size(x_68); +x_71 = lean_unsigned_to_nat(0u); +x_72 = lean_nat_dec_lt(x_71, x_70); +lean_dec(x_70); +if (x_72 == 0) { -lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_dec(x_4); -if (lean_is_scalar(x_137)) { - x_141 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_69)) { + x_73 = lean_alloc_ctor(1, 2, 0); } else { - x_141 = x_137; + x_73 = x_69; } -lean_ctor_set(x_141, 0, x_135); -lean_ctor_set(x_141, 1, x_136); -x_142 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_134); -if (lean_is_scalar(x_133)) { - x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_67); +lean_ctor_set(x_73, 1, x_68); +x_74 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_66); +if (lean_is_scalar(x_65)) { + x_75 = lean_alloc_ctor(0, 2, 0); } else { - x_143 = x_133; + x_75 = x_65; } -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_132); -return x_143; +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_64); +return x_75; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_array_fget(x_136, x_139); -x_145 = lean_box(0); -x_146 = lean_array_fset(x_136, x_139, x_145); -switch (lean_obj_tag(x_144)) { -case 1: -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; -x_147 = lean_ctor_get(x_144, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_144, 1); -lean_inc(x_148); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_149 = x_144; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_76 = lean_array_fget(x_68, x_71); +x_77 = lean_box(0); +x_78 = lean_array_fset(x_68, x_71, x_77); +x_79 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_76, x_4); +x_80 = lean_array_fset(x_78, x_71, x_79); +if (lean_is_scalar(x_69)) { + x_81 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_144); - x_149 = lean_box(0); + x_81 = x_69; } -x_150 = lean_array_get_size(x_148); -x_151 = lean_unsigned_to_nat(0u); -x_152 = lean_nat_dec_lt(x_151, x_150); -lean_dec(x_150); -if (x_152 == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_4); -if (lean_is_scalar(x_149)) { - x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_67); +lean_ctor_set(x_81, 1, x_80); +x_82 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_66); +if (lean_is_scalar(x_65)) { + x_83 = lean_alloc_ctor(0, 2, 0); } else { - x_153 = x_149; -} -lean_ctor_set(x_153, 0, x_147); -lean_ctor_set(x_153, 1, x_148); -x_154 = lean_array_fset(x_146, x_139, x_153); -if (lean_is_scalar(x_137)) { - x_155 = lean_alloc_ctor(1, 2, 0); -} else { - x_155 = x_137; -} -lean_ctor_set(x_155, 0, x_135); -lean_ctor_set(x_155, 1, x_154); -x_156 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_134); -if (lean_is_scalar(x_133)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_133; -} -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_132); -return x_157; -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_158 = lean_array_fget(x_148, x_151); -x_159 = lean_array_fset(x_148, x_151, x_145); -x_160 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_158, x_4); -x_161 = lean_array_fset(x_159, x_151, x_160); -if (lean_is_scalar(x_149)) { - x_162 = lean_alloc_ctor(1, 2, 0); -} else { - x_162 = x_149; -} -lean_ctor_set(x_162, 0, x_147); -lean_ctor_set(x_162, 1, x_161); -x_163 = lean_array_fset(x_146, x_139, x_162); -if (lean_is_scalar(x_137)) { - x_164 = lean_alloc_ctor(1, 2, 0); -} else { - x_164 = x_137; -} -lean_ctor_set(x_164, 0, x_135); -lean_ctor_set(x_164, 1, x_163); -x_165 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_134); -if (lean_is_scalar(x_133)) { - x_166 = lean_alloc_ctor(0, 2, 0); -} else { - x_166 = x_133; -} -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_132); -return x_166; -} -} -case 2: -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_137); -lean_dec(x_4); -lean_inc(x_144); -x_167 = lean_array_fset(x_146, x_139, x_144); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_168 = x_144; -} else { - lean_dec_ref(x_144); - x_168 = lean_box(0); -} -if (lean_is_scalar(x_168)) { - x_169 = lean_alloc_ctor(1, 2, 0); -} else { - x_169 = x_168; - lean_ctor_set_tag(x_169, 1); -} -lean_ctor_set(x_169, 0, x_135); -lean_ctor_set(x_169, 1, x_167); -x_170 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_170, 0, x_169); -lean_ctor_set(x_170, 1, x_134); -if (lean_is_scalar(x_133)) { - x_171 = lean_alloc_ctor(0, 2, 0); -} else { - x_171 = x_133; -} -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_132); -return x_171; -} -default: -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_4); -x_172 = lean_array_fset(x_146, x_139, x_144); -if (lean_is_scalar(x_137)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_137; -} -lean_ctor_set(x_173, 0, x_135); -lean_ctor_set(x_173, 1, x_172); -x_174 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_134); -if (lean_is_scalar(x_133)) { - x_175 = lean_alloc_ctor(0, 2, 0); -} else { - x_175 = x_133; -} -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_132); -return x_175; -} + x_83 = x_65; } +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_64); +return x_83; } } else { -lean_object* x_176; lean_object* x_177; +lean_object* x_84; lean_object* x_85; lean_dec(x_4); -x_176 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_176, 0, x_128); -lean_ctor_set(x_176, 1, x_134); -if (lean_is_scalar(x_133)) { - x_177 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_84, 0, x_60); +lean_ctor_set(x_84, 1, x_66); +if (lean_is_scalar(x_65)) { + x_85 = lean_alloc_ctor(0, 2, 0); } else { - x_177 = x_133; + x_85 = x_65; } -lean_ctor_set(x_177, 0, x_176); -lean_ctor_set(x_177, 1, x_132); -return x_177; +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_64); +return x_85; } } else { -lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_129); -lean_dec(x_128); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_61); +lean_dec(x_60); lean_dec(x_4); lean_dec(x_2); -x_178 = lean_ctor_get(x_130, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_130, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_180 = x_130; +x_86 = lean_ctor_get(x_62, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_62, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_88 = x_62; } else { - lean_dec_ref(x_130); - x_180 = lean_box(0); + lean_dec_ref(x_62); + x_88 = lean_box(0); } -if (lean_is_scalar(x_180)) { - x_181 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(1, 2, 0); } else { - x_181 = x_180; + x_89 = x_88; } -lean_ctor_set(x_181, 0, x_178); -lean_ctor_set(x_181, 1, x_179); -return x_181; +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_87); +return x_89; } } } else { -lean_object* x_182; +lean_object* x_90; lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_5); -lean_ctor_set(x_182, 1, x_7); -return x_182; +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_5); +lean_ctor_set(x_90, 1, x_7); +return x_90; } } } @@ -14461,7 +13102,7 @@ if (lean_obj_tag(x_22) == 0) lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_dec(x_7); lean_dec(x_5); -x_23 = lean_unsigned_to_nat(1u); +x_23 = lean_unsigned_to_nat(4u); x_24 = l_Lean_mkOptionalNode___closed__1; lean_inc(x_14); x_25 = l_Lean_Syntax_setArg(x_14, x_23, x_24); @@ -14475,14 +13116,14 @@ x_31 = l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3___close x_32 = lean_unsigned_to_nat(0u); x_33 = l_Array_umapMAux___main___rarg(x_30, lean_box(0), x_31, x_32, x_29); x_34 = x_33; -x_35 = l_Lean_Elab_Term_StructInst_Source_addSyntax(x_18, x_34); -x_36 = l_Lean_List_format___rarg___closed__2; -x_37 = l_Lean_mkAtomFrom(x_14, x_36); +x_35 = l_Lean_List_format___rarg___closed__2; +x_36 = l_Lean_mkAtomFrom(x_14, x_35); lean_dec(x_14); -x_38 = l_Lean_mkSepStx(x_35, x_37); -lean_dec(x_35); -x_39 = lean_unsigned_to_nat(2u); -x_40 = l_Lean_Syntax_setArg(x_25, x_39, x_38); +x_37 = l_Lean_mkSepStx(x_34, x_36); +lean_dec(x_34); +x_38 = lean_unsigned_to_nat(2u); +x_39 = l_Lean_Syntax_setArg(x_25, x_38, x_37); +x_40 = l_Lean_Elab_Term_StructInst_setStructSourceSyntax(x_39, x_18); x_41 = !lean_is_exclusive(x_21); if (x_41 == 0) { @@ -14693,7 +13334,7 @@ if (lean_obj_tag(x_102) == 0) lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_dec(x_7); lean_dec(x_5); -x_103 = lean_unsigned_to_nat(1u); +x_103 = lean_unsigned_to_nat(4u); x_104 = l_Lean_mkOptionalNode___closed__1; lean_inc(x_14); x_105 = l_Lean_Syntax_setArg(x_14, x_103, x_104); @@ -14707,14 +13348,14 @@ x_111 = l___private_Init_Lean_Elab_StructInst_17__groupFields___lambda__3___clos x_112 = lean_unsigned_to_nat(0u); x_113 = l_Array_umapMAux___main___rarg(x_110, lean_box(0), x_111, x_112, x_109); x_114 = x_113; -x_115 = l_Lean_Elab_Term_StructInst_Source_addSyntax(x_98, x_114); -x_116 = l_Lean_List_format___rarg___closed__2; -x_117 = l_Lean_mkAtomFrom(x_14, x_116); +x_115 = l_Lean_List_format___rarg___closed__2; +x_116 = l_Lean_mkAtomFrom(x_14, x_115); lean_dec(x_14); -x_118 = l_Lean_mkSepStx(x_115, x_117); -lean_dec(x_115); -x_119 = lean_unsigned_to_nat(2u); -x_120 = l_Lean_Syntax_setArg(x_105, x_119, x_118); +x_117 = l_Lean_mkSepStx(x_114, x_116); +lean_dec(x_114); +x_118 = lean_unsigned_to_nat(2u); +x_119 = l_Lean_Syntax_setArg(x_105, x_118, x_117); +x_120 = l_Lean_Elab_Term_StructInst_setStructSourceSyntax(x_119, x_98); x_121 = lean_ctor_get(x_101, 0); lean_inc(x_121); x_122 = lean_ctor_get(x_101, 1); @@ -15145,191 +13786,190 @@ return x_31; } default: { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; x_32 = lean_ctor_get(x_16, 0); lean_inc(x_32); lean_dec(x_16); -x_33 = lean_unsigned_to_nat(1u); +x_33 = lean_unsigned_to_nat(0u); x_34 = l_Lean_Syntax_getArg(x_32, x_33); lean_dec(x_32); -x_35 = lean_unsigned_to_nat(0u); -x_36 = l_Lean_Syntax_getArg(x_34, x_35); +x_35 = l_Lean_Syntax_getArg(x_34, x_33); lean_dec(x_34); lean_inc(x_9); -x_37 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_36, x_9); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); +x_36 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_35, x_9); +x_37 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_37, 0, x_36); lean_inc(x_4); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_4); -lean_ctor_set(x_39, 1, x_9); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_5); -x_41 = lean_box(0); -x_42 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_42, 0, x_4); -lean_ctor_set(x_42, 1, x_40); -lean_ctor_set(x_42, 2, x_38); -lean_ctor_set(x_42, 3, x_41); -x_43 = lean_alloc_ctor(1, 2, 0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_4); +lean_ctor_set(x_38, 1, x_9); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_5); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_41, 0, x_4); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_37); +lean_ctor_set(x_41, 3, x_40); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_10); +x_43 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_10); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_12); -return x_44; +lean_ctor_set(x_43, 1, x_12); +return x_43; } } } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_15, 0); -lean_inc(x_45); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_15, 0); +lean_inc(x_44); lean_dec(x_15); -x_46 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); +x_45 = l_Lean_Elab_Term_StructInst_Struct_source(x_1); lean_inc(x_11); lean_inc(x_9); -x_47 = l___private_Init_Lean_Elab_StructInst_16__mkSubstructSource(x_4, x_3, x_6, x_9, x_46, x_11, x_12); -if (lean_obj_tag(x_47) == 0) +x_46 = l___private_Init_Lean_Elab_StructInst_16__mkSubstructSource(x_4, x_3, x_6, x_9, x_45, x_11, x_12); +if (lean_obj_tag(x_46) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_48 = lean_ctor_get(x_47, 0); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); +lean_dec(x_46); lean_inc(x_5); lean_inc(x_4); -x_50 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_50, 0, x_4); -lean_ctor_set(x_50, 1, x_45); -lean_ctor_set(x_50, 2, x_5); -lean_ctor_set(x_50, 3, x_48); -x_51 = lean_apply_3(x_7, x_50, x_11, x_49); -if (lean_obj_tag(x_51) == 0) +x_49 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_49, 0, x_4); +lean_ctor_set(x_49, 1, x_44); +lean_ctor_set(x_49, 2, x_5); +lean_ctor_set(x_49, 3, x_47); +x_50 = lean_apply_3(x_7, x_49, x_11, x_48); +if (lean_obj_tag(x_50) == 0) { -uint8_t x_52; -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) +uint8_t x_51; +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_53 = lean_ctor_get(x_51, 0); -x_54 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_54, 0, x_53); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_52 = lean_ctor_get(x_50, 0); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); lean_inc(x_4); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_4); -lean_ctor_set(x_55, 1, x_9); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_5); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_58, 0, x_4); -lean_ctor_set(x_58, 1, x_56); -lean_ctor_set(x_58, 2, x_54); -lean_ctor_set(x_58, 3, x_57); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_10); -lean_ctor_set(x_51, 0, x_59); -return x_51; +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_4); +lean_ctor_set(x_54, 1, x_9); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_5); +x_56 = lean_box(0); +x_57 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_57, 0, x_4); +lean_ctor_set(x_57, 1, x_55); +lean_ctor_set(x_57, 2, x_53); +lean_ctor_set(x_57, 3, x_56); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_10); +lean_ctor_set(x_50, 0, x_58); +return x_50; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_60 = lean_ctor_get(x_51, 0); -x_61 = lean_ctor_get(x_51, 1); -lean_inc(x_61); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_59 = lean_ctor_get(x_50, 0); +x_60 = lean_ctor_get(x_50, 1); lean_inc(x_60); -lean_dec(x_51); -x_62 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_62, 0, x_60); +lean_inc(x_59); +lean_dec(x_50); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_59); lean_inc(x_4); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_4); -lean_ctor_set(x_63, 1, x_9); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_5); -x_65 = lean_box(0); -x_66 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_66, 0, x_4); -lean_ctor_set(x_66, 1, x_64); -lean_ctor_set(x_66, 2, x_62); -lean_ctor_set(x_66, 3, x_65); -x_67 = lean_alloc_ctor(1, 2, 0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_4); +lean_ctor_set(x_62, 1, x_9); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_5); +x_64 = lean_box(0); +x_65 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_65, 0, x_4); +lean_ctor_set(x_65, 1, x_63); +lean_ctor_set(x_65, 2, x_61); +lean_ctor_set(x_65, 3, x_64); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_10); +x_67 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_10); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_61); -return x_68; +lean_ctor_set(x_67, 1, x_60); +return x_67; } } else { -uint8_t x_69; +uint8_t x_68; lean_dec(x_10); lean_dec(x_9); lean_dec(x_5); lean_dec(x_4); -x_69 = !lean_is_exclusive(x_51); -if (x_69 == 0) +x_68 = !lean_is_exclusive(x_50); +if (x_68 == 0) { -return x_51; +return x_50; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_51, 0); -x_71 = lean_ctor_get(x_51, 1); -lean_inc(x_71); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_50, 0); +x_70 = lean_ctor_get(x_50, 1); lean_inc(x_70); -lean_dec(x_51); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +lean_inc(x_69); +lean_dec(x_50); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } else { -uint8_t x_73; -lean_dec(x_45); +uint8_t x_72; +lean_dec(x_44); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); -x_73 = !lean_is_exclusive(x_47); -if (x_73 == 0) +x_72 = !lean_is_exclusive(x_46); +if (x_72 == 0) { -return x_47; +return x_46; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_47, 0); -x_75 = lean_ctor_get(x_47, 1); -lean_inc(x_75); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_46, 0); +x_74 = lean_ctor_get(x_46, 1); lean_inc(x_74); -lean_dec(x_47); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; +lean_inc(x_73); +lean_dec(x_46); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_dec(x_11); lean_dec(x_9); lean_dec(x_7); @@ -15337,16 +13977,16 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_77 = lean_ctor_get(x_14, 0); -lean_inc(x_77); +x_76 = lean_ctor_get(x_14, 0); +lean_inc(x_76); lean_dec(x_14); -x_78 = lean_alloc_ctor(1, 2, 0); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_10); +x_78 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_10); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_12); -return x_79; +lean_ctor_set(x_78, 1, x_12); +return x_78; } } } @@ -15742,7 +14382,7 @@ x_23 = l_Lean_isSubobjectField_x3f(x_2, x_3, x_13); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_24 = lean_unsigned_to_nat(1u); +x_24 = lean_unsigned_to_nat(4u); x_25 = l_Lean_mkOptionalNode___closed__1; lean_inc(x_17); x_26 = l_Lean_Syntax_setArg(x_17, x_24, x_25); @@ -15754,14 +14394,14 @@ x_30 = x_29; x_31 = lean_unsigned_to_nat(0u); x_32 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_31, x_30); x_33 = x_32; -x_34 = l_Lean_Elab_Term_StructInst_Source_addSyntax(x_20, x_33); -x_35 = l_Lean_List_format___rarg___closed__2; -x_36 = l_Lean_mkAtomFrom(x_17, x_35); +x_34 = l_Lean_List_format___rarg___closed__2; +x_35 = l_Lean_mkAtomFrom(x_17, x_34); lean_dec(x_17); -x_37 = l_Lean_mkSepStx(x_34, x_36); -lean_dec(x_34); -x_38 = lean_unsigned_to_nat(2u); -x_39 = l_Lean_Syntax_setArg(x_26, x_38, x_37); +x_36 = l_Lean_mkSepStx(x_33, x_35); +lean_dec(x_33); +x_37 = lean_unsigned_to_nat(2u); +x_38 = l_Lean_Syntax_setArg(x_26, x_37, x_36); +x_39 = l_Lean_Elab_Term_StructInst_setStructSourceSyntax(x_38, x_20); x_40 = !lean_is_exclusive(x_22); if (x_40 == 0) { @@ -16248,7 +14888,7 @@ x_146 = l_Lean_isSubobjectField_x3f(x_2, x_3, x_136); if (lean_obj_tag(x_146) == 0) { lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_147 = lean_unsigned_to_nat(1u); +x_147 = lean_unsigned_to_nat(4u); x_148 = l_Lean_mkOptionalNode___closed__1; lean_inc(x_140); x_149 = l_Lean_Syntax_setArg(x_140, x_147, x_148); @@ -16260,14 +14900,14 @@ x_153 = x_152; x_154 = lean_unsigned_to_nat(0u); x_155 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_StructInst_19__expandStruct___main___spec__4(x_154, x_153); x_156 = x_155; -x_157 = l_Lean_Elab_Term_StructInst_Source_addSyntax(x_143, x_156); -x_158 = l_Lean_List_format___rarg___closed__2; -x_159 = l_Lean_mkAtomFrom(x_140, x_158); +x_157 = l_Lean_List_format___rarg___closed__2; +x_158 = l_Lean_mkAtomFrom(x_140, x_157); lean_dec(x_140); -x_160 = l_Lean_mkSepStx(x_157, x_159); -lean_dec(x_157); -x_161 = lean_unsigned_to_nat(2u); -x_162 = l_Lean_Syntax_setArg(x_149, x_161, x_160); +x_159 = l_Lean_mkSepStx(x_156, x_158); +lean_dec(x_156); +x_160 = lean_unsigned_to_nat(2u); +x_161 = l_Lean_Syntax_setArg(x_149, x_160, x_159); +x_162 = l_Lean_Elab_Term_StructInst_setStructSourceSyntax(x_161, x_143); x_163 = lean_ctor_get(x_145, 0); lean_inc(x_163); x_164 = lean_ctor_get(x_145, 1); @@ -16767,11 +15407,11 @@ lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean x_39 = lean_ctor_get(x_21, 0); lean_inc(x_39); lean_dec(x_21); -x_40 = l_Lean_Syntax_getArg(x_39, x_16); +x_40 = lean_unsigned_to_nat(0u); +x_41 = l_Lean_Syntax_getArg(x_39, x_40); lean_dec(x_39); -x_41 = lean_unsigned_to_nat(0u); -x_42 = l_Lean_Syntax_getArg(x_40, x_41); -lean_dec(x_40); +x_42 = l_Lean_Syntax_getArg(x_41, x_40); +lean_dec(x_41); lean_inc(x_15); x_43 = l___private_Init_Lean_Elab_StructInst_15__mkProjStx(x_42, x_15); x_44 = lean_alloc_ctor(0, 1, 0); @@ -25145,49 +23785,31 @@ lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux__ _start: { lean_object* x_1; -x_1 = lean_mk_string("struct"); +x_1 = lean_mk_string("invalid {...} notation, '"); return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Util_4__regTraceClasses___closed__1; -x_2 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("invalid {...} notation, '"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__3; +x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; +x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__4() { _start: { lean_object* x_1; @@ -25195,21 +23817,21 @@ x_1 = lean_mk_string("' is not a structure"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; +x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__7; +x_1 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -25249,11 +23871,11 @@ lean_dec(x_13); lean_dec(x_2); x_76 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_76, 0, x_7); -x_77 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5; +x_77 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__3; x_78 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_78, 0, x_77); lean_ctor_set(x_78, 1, x_76); -x_79 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__8; +x_79 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6; x_80 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_80, 0, x_78); lean_ctor_set(x_80, 1, x_79); @@ -25323,7 +23945,7 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); -x_26 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; +x_26 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2; x_27 = l_Lean_checkTraceOption(x_24, x_26); lean_dec(x_24); if (x_27 == 0) @@ -25580,6 +24202,75 @@ return x_89; } } } +lean_object* l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_unsigned_to_nat(4u); +x_5 = l_Lean_Syntax_getArg(x_1, x_4); +x_6 = l_Lean_Syntax_isNone(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_7 = lean_unsigned_to_nat(1u); +x_8 = l_Lean_Syntax_getArg(x_5, x_7); +lean_dec(x_5); +x_9 = l_Lean_mkOptionalNode___closed__1; +x_10 = l_Lean_Syntax_setArg(x_1, x_4, x_9); +x_11 = l_Array_empty___closed__1; +x_12 = lean_array_push(x_11, x_10); +x_13 = l_Lean_Elab_Term_elabArrow___lambda__1___closed__4; +x_14 = lean_array_push(x_13, x_8); +x_15 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_array_push(x_11, x_16); +x_18 = l_Lean_nullKind___closed__2; +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_array_push(x_12, x_19); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_18); +lean_ctor_set(x_21, 1, x_20); +x_22 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__28; +x_23 = lean_array_push(x_22, x_21); +x_24 = l___private_Init_Lean_Elab_Quotation_2__quoteSyntax___main___closed__44; +x_25 = lean_array_push(x_23, x_24); +x_26 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_3); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_5); +lean_dec(x_1); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_3); +return x_31; +} +} +} +lean_object* l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} lean_object* _init_l_Lean_Elab_Term_StructInst_elabStructInst___closed__1() { _start: { @@ -25611,175 +24302,252 @@ return x_2; lean_object* l_Lean_Elab_Term_StructInst_elabStructInst(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; -lean_inc(x_3); +lean_object* x_5; lean_object* x_6; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Elab_Term_getEnv___rarg(x_86); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 0); +lean_inc(x_89); +lean_dec(x_87); +x_90 = !lean_is_exclusive(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_91 = lean_ctor_get(x_88, 5); +x_92 = lean_environment_main_module(x_89); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_85); lean_inc(x_1); -x_5 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(x_1, x_3, x_4); +x_94 = l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_93, x_91); +lean_dec(x_93); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +lean_ctor_set(x_88, 5, x_96); +x_5 = x_95; +x_6 = x_88; +goto block_83; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_97 = lean_ctor_get(x_88, 0); +x_98 = lean_ctor_get(x_88, 1); +x_99 = lean_ctor_get(x_88, 2); +x_100 = lean_ctor_get(x_88, 3); +x_101 = lean_ctor_get(x_88, 4); +x_102 = lean_ctor_get(x_88, 5); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_88); +x_103 = lean_environment_main_module(x_89); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_85); +lean_inc(x_1); +x_105 = l___private_Init_Lean_Elab_StructInst_26__expandStructInstExpectedType(x_1, x_104, x_102); +lean_dec(x_104); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_108, 0, x_97); +lean_ctor_set(x_108, 1, x_98); +lean_ctor_set(x_108, 2, x_99); +lean_ctor_set(x_108, 3, x_100); +lean_ctor_set(x_108, 4, x_101); +lean_ctor_set(x_108, 5, x_107); +x_5 = x_106; +x_6 = x_108; +goto block_83; +} +block_83: +{ if (lean_obj_tag(x_5) == 0) { -lean_object* x_6; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 0) -{ lean_object* x_7; lean_object* x_8; -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); lean_inc(x_3); -x_8 = l___private_Init_Lean_Elab_StructInst_2__getStructSource(x_1, x_3, x_7); +lean_inc(x_1); +x_7 = l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource(x_1, x_3, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); if (lean_obj_tag(x_8) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); +lean_dec(x_7); lean_inc(x_3); -x_11 = l___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f(x_1, x_3, x_10); -if (lean_obj_tag(x_11) == 0) +x_10 = l___private_Init_Lean_Elab_StructInst_2__getStructSource(x_1, x_3, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -if (lean_obj_tag(x_12) == 0) +lean_dec(x_10); +lean_inc(x_3); +x_13 = l___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f(x_1, x_3, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux(x_1, x_2, x_9, x_3, x_13); -return x_14; -} -else +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) { -if (lean_obj_tag(x_9) == 2) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_11, 1); +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -lean_dec(x_11); -x_16 = lean_ctor_get(x_12, 0); -lean_inc(x_16); -lean_dec(x_12); -x_17 = lean_ctor_get(x_9, 0); -lean_inc(x_17); -lean_dec(x_9); -x_18 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp(x_1, x_16, x_17, x_2, x_3, x_15); -return x_18; +lean_dec(x_13); +x_16 = l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux(x_1, x_2, x_11, x_3, x_15); +return x_16; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_12); -lean_dec(x_9); -lean_dec(x_2); -x_19 = lean_ctor_get(x_11, 1); +if (lean_obj_tag(x_11) == 2) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +lean_dec(x_13); +x_18 = lean_ctor_get(x_14, 0); +lean_inc(x_18); +lean_dec(x_14); +x_19 = lean_ctor_get(x_11, 0); lean_inc(x_19); lean_dec(x_11); -x_20 = l_Lean_Elab_Term_StructInst_elabStructInst___closed__3; -x_21 = l_Lean_Elab_Term_throwError___rarg(x_1, x_20, x_3, x_19); -lean_dec(x_1); -return x_21; -} -} +x_20 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp(x_1, x_18, x_19, x_2, x_3, x_17); +return x_20; } else { -uint8_t x_22; -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_11); -if (x_22 == 0) -{ -return x_11; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_11, 0); -x_24 = lean_ctor_get(x_11, 1); -lean_inc(x_24); -lean_inc(x_23); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_14); lean_dec(x_11); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_dec(x_2); +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_dec(x_13); +x_22 = l_Lean_Elab_Term_StructInst_elabStructInst___closed__3; +x_23 = l_Lean_Elab_Term_throwError___rarg(x_1, x_22, x_3, x_21); +lean_dec(x_1); +return x_23; } } } else { -uint8_t x_26; +uint8_t x_24; +lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_26 = !lean_is_exclusive(x_8); -if (x_26 == 0) +x_24 = !lean_is_exclusive(x_13); +if (x_24 == 0) { -return x_8; +return x_13; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_8, 0); -x_28 = lean_ctor_get(x_8, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_8); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_13); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } } else { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_5, 1); +uint8_t x_28; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_10); +if (x_28 == 0) +{ +return x_10; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_10, 0); +x_30 = lean_ctor_get(x_10, 1); lean_inc(x_30); -lean_dec(x_5); -x_31 = lean_ctor_get(x_6, 0); -lean_inc(x_31); -lean_dec(x_6); -x_32 = !lean_is_exclusive(x_3); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; -x_33 = lean_ctor_get(x_3, 8); -lean_inc(x_31); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_31); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -lean_ctor_set(x_3, 8, x_35); -x_36 = 1; -x_37 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_36, x_36, x_31, x_3, x_30); -return x_37; +lean_inc(x_29); +lean_dec(x_10); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; -x_38 = lean_ctor_get(x_3, 0); -x_39 = lean_ctor_get(x_3, 1); -x_40 = lean_ctor_get(x_3, 2); -x_41 = lean_ctor_get(x_3, 3); -x_42 = lean_ctor_get(x_3, 4); -x_43 = lean_ctor_get(x_3, 5); -x_44 = lean_ctor_get(x_3, 6); -x_45 = lean_ctor_get(x_3, 7); -x_46 = lean_ctor_get(x_3, 8); -x_47 = lean_ctor_get(x_3, 9); -x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_49 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_7, 1); +lean_inc(x_32); +lean_dec(x_7); +x_33 = lean_ctor_get(x_8, 0); +lean_inc(x_33); +lean_dec(x_8); +x_34 = !lean_is_exclusive(x_3); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_3, 8); +lean_inc(x_33); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +lean_ctor_set(x_3, 8, x_37); +x_38 = 1; +x_39 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_38, x_38, x_33, x_3, x_32); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; +x_40 = lean_ctor_get(x_3, 0); +x_41 = lean_ctor_get(x_3, 1); +x_42 = lean_ctor_get(x_3, 2); +x_43 = lean_ctor_get(x_3, 3); +x_44 = lean_ctor_get(x_3, 4); +x_45 = lean_ctor_get(x_3, 5); +x_46 = lean_ctor_get(x_3, 6); +x_47 = lean_ctor_get(x_3, 7); +x_48 = lean_ctor_get(x_3, 8); +x_49 = lean_ctor_get(x_3, 9); +x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_inc(x_49); +lean_inc(x_48); lean_inc(x_47); lean_inc(x_46); lean_inc(x_45); @@ -25788,59 +24556,109 @@ lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); lean_dec(x_3); -lean_inc(x_31); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_1); -lean_ctor_set(x_51, 1, x_31); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_46); -x_53 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_53, 0, x_38); -lean_ctor_set(x_53, 1, x_39); -lean_ctor_set(x_53, 2, x_40); -lean_ctor_set(x_53, 3, x_41); -lean_ctor_set(x_53, 4, x_42); -lean_ctor_set(x_53, 5, x_43); -lean_ctor_set(x_53, 6, x_44); -lean_ctor_set(x_53, 7, x_45); -lean_ctor_set(x_53, 8, x_52); -lean_ctor_set(x_53, 9, x_47); -lean_ctor_set_uint8(x_53, sizeof(void*)*10, x_48); -lean_ctor_set_uint8(x_53, sizeof(void*)*10 + 1, x_49); -lean_ctor_set_uint8(x_53, sizeof(void*)*10 + 2, x_50); -x_54 = 1; -x_55 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_54, x_54, x_31, x_53, x_30); -return x_55; +lean_inc(x_33); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_1); +lean_ctor_set(x_53, 1, x_33); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_48); +x_55 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_55, 0, x_40); +lean_ctor_set(x_55, 1, x_41); +lean_ctor_set(x_55, 2, x_42); +lean_ctor_set(x_55, 3, x_43); +lean_ctor_set(x_55, 4, x_44); +lean_ctor_set(x_55, 5, x_45); +lean_ctor_set(x_55, 6, x_46); +lean_ctor_set(x_55, 7, x_47); +lean_ctor_set(x_55, 8, x_54); +lean_ctor_set(x_55, 9, x_49); +lean_ctor_set_uint8(x_55, sizeof(void*)*10, x_50); +lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 1, x_51); +lean_ctor_set_uint8(x_55, sizeof(void*)*10 + 2, x_52); +x_56 = 1; +x_57 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_56, x_56, x_33, x_55, x_32); +return x_57; } } } else { -uint8_t x_56; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_56 = !lean_is_exclusive(x_5); -if (x_56 == 0) -{ -return x_5; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_5, 0); -x_58 = lean_ctor_get(x_5, 1); +lean_object* x_58; uint8_t x_59; +x_58 = lean_ctor_get(x_5, 0); lean_inc(x_58); -lean_inc(x_57); lean_dec(x_5); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +x_59 = !lean_is_exclusive(x_3); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_3, 8); +lean_inc(x_58); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_1); +lean_ctor_set(x_61, 1, x_58); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +lean_ctor_set(x_3, 8, x_62); +x_63 = 1; +x_64 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_63, x_63, x_58, x_3, x_6); +return x_64; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; +x_65 = lean_ctor_get(x_3, 0); +x_66 = lean_ctor_get(x_3, 1); +x_67 = lean_ctor_get(x_3, 2); +x_68 = lean_ctor_get(x_3, 3); +x_69 = lean_ctor_get(x_3, 4); +x_70 = lean_ctor_get(x_3, 5); +x_71 = lean_ctor_get(x_3, 6); +x_72 = lean_ctor_get(x_3, 7); +x_73 = lean_ctor_get(x_3, 8); +x_74 = lean_ctor_get(x_3, 9); +x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_77 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_3); +lean_inc(x_58); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_1); +lean_ctor_set(x_78, 1, x_58); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_73); +x_80 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_80, 0, x_65); +lean_ctor_set(x_80, 1, x_66); +lean_ctor_set(x_80, 2, x_67); +lean_ctor_set(x_80, 3, x_68); +lean_ctor_set(x_80, 4, x_69); +lean_ctor_set(x_80, 5, x_70); +lean_ctor_set(x_80, 6, x_71); +lean_ctor_set(x_80, 7, x_72); +lean_ctor_set(x_80, 8, x_79); +lean_ctor_set(x_80, 9, x_74); +lean_ctor_set_uint8(x_80, sizeof(void*)*10, x_75); +lean_ctor_set_uint8(x_80, sizeof(void*)*10 + 1, x_76); +lean_ctor_set_uint8(x_80, sizeof(void*)*10 + 2, x_77); +x_81 = 1; +x_82 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_81, x_81, x_58, x_80, x_6); +return x_82; +} } } } @@ -25864,6 +24682,62 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l___private_Init_Lean_Elab_StructInst_27__regTraceClasses(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2; +x_3 = l_Lean_registerTraceClass(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_3); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_3, 0); +lean_dec(x_5); +x_6 = lean_box(0); +lean_ctor_set(x_3, 0, x_6); +return x_3; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_3, 1); +lean_inc(x_7); +lean_dec(x_3); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +return x_3; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_3, 0); +x_12 = lean_ctor_get(x_3, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_3); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} lean_object* initialize_Init_Lean_Util_FindExpr(lean_object*); lean_object* initialize_Init_Lean_Elab_App(lean_object*); lean_object* initialize_Init_Lean_Elab_Binders(lean_object*); @@ -25885,36 +24759,22 @@ lean_dec_ref(res); res = initialize_Init_Lean_Elab_Quotation(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__1); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__2); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__3); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__4); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__5); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__6); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__7); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__8); -l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9(); -lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_StructInst_ExpandNonAtomicExplicitSource_main___spec__1___closed__9); l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1 = _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__1); +l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2 = _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__2); +l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3 = _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__3); +l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4 = _init_l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_1__expandNonAtomicExplicitSource___closed__4); l_Lean_Elab_Term_StructInst_Source_inhabited = _init_l_Lean_Elab_Term_StructInst_Source_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_Source_inhabited); -l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__1 = _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__1); -l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2 = _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__2); -l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__3 = _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__3); -l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4 = _init_l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_StructInst_Source_hasFormat___closed__4); +l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__1 = _init_l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__1); +l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__2 = _init_l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__2); +l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__3 = _init_l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_2__getStructSource___closed__3); l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1 = _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1(); lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__1); l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2 = _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__2(); @@ -25927,12 +24787,6 @@ l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModif lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__5); l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6 = _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6(); lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__6); -l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7 = _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__7); -l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8 = _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__8); -l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__9 = _init_l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__9(); -lean_mark_persistent(l_Array_foldlStepMAux___main___at___private_Init_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__9); l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__1); l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__2(); @@ -25965,6 +24819,30 @@ l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__15 = _init_l___p lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__15); l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16(); lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__16); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__17); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__18 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__18(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__18); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__19 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__19(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__19); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__20); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__21 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__21(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__21); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__22 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__22(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__22); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__23 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__23(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__23); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__24 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__24(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__24); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__25 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__25(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__25); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__26 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__26(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__26); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__27 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__27(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__27); +l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__28 = _init_l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__28(); +lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_4__elabModifyOp___closed__28); l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__1 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__1); l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__2 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__2(); @@ -25977,18 +24855,6 @@ l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__5 = _init_l___p lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__5); l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6(); lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__6); -l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__7 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__7); -l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__8 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__8); -l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__9); -l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__10 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__10); -l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__11 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__11(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__11); -l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12 = _init_l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_5__getStructName___closed__12); l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1 = _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_FieldLHS_inhabited___closed__1); l_Lean_Elab_Term_StructInst_FieldLHS_inhabited = _init_l_Lean_Elab_Term_StructInst_FieldLHS_inhabited(); @@ -26015,6 +24881,12 @@ l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1 = _init_l_Lean_Elab_ lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__1); l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__2); +l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__3); +l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__4); +l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5 = _init_l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5); l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1 = _init_l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_Struct_hasFormat___closed__1); l_Lean_Elab_Term_StructInst_Struct_hasFormat = _init_l_Lean_Elab_Term_StructInst_Struct_hasFormat(); @@ -26155,10 +25027,6 @@ l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5 = _init_ lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__5); l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6 = _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6(); lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__6); -l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__7 = _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__7); -l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__8 = _init_l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_StructInst_25__elabStructInstAux___closed__8); l_Lean_Elab_Term_StructInst_elabStructInst___closed__1 = _init_l_Lean_Elab_Term_StructInst_elabStructInst___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_StructInst_elabStructInst___closed__1); l_Lean_Elab_Term_StructInst_elabStructInst___closed__2 = _init_l_Lean_Elab_Term_StructInst_elabStructInst___closed__2(); @@ -26170,6 +25038,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst___c res = l___regBuiltin_Lean_Elab_Term_StructInst_elabStructInst(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = l___private_Init_Lean_Elab_StructInst_27__regTraceClasses(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus