MCPcopy Create free account
hub / github.com/argumentcomputer/ix / test_compile_expr_app

Function test_compile_expr_app

crates/compile/src/compile.rs:4029–4044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4027 // `compile_single_def` produces for a non-mutual Lean Defn.
4028 //
4029 // Inductives are never unwrapped — their projection scheme requires
4030 // the block.
4031 if ixon_mutuals.len() == 1
4032 && !matches!(&ixon_mutuals[0], IxonMutConst::Indc(_))
4033 {
4034 let single = ixon_mutuals.pop().unwrap();
4035 let result = match single {
4036 IxonMutConst::Defn(def) => apply_sharing_to_definition_with_stats(
4037 def,
4038 refs,
4039 univs,
4040 Some(&name_str),
4041 ),
4042 IxonMutConst::Recr(rec) => {
4043 apply_sharing_to_recursor_with_stats(rec, refs, univs)
4044 },
4045 IxonMutConst::Indc(_) => unreachable!(),
4046 };
4047 let standalone_constant = result.constant;

Callers

nothing calls this directly

Calls 2

compile_exprFunction · 0.85
appFunction · 0.50

Tested by

no test coverage detected