checkpoint - fixing tests and stuff

This commit is contained in:
microproofs
2023-07-25 21:19:23 -04:00
committed by Kasey
parent 72b6f0f847
commit 960a15c4ec
3 changed files with 117 additions and 37 deletions

View File

@@ -286,6 +286,15 @@ fn inline_basic_reduce(term: &mut Term<Name>) {
*term =
substitute_term(body.as_ref(), parameter_name.clone(), replace_term);
}
} else if occurrences == 0 {
if let Term::Var(_)
| Term::Constant(_)
| Term::Delay(_)
| Term::Lambda { .. }
| Term::Builtin(_) = arg
{
*term = body.as_ref().clone();
}
}
}
}