Inline now handles (if cond then body else error) patterns.
This allows conditions like ```expect x == 1``` to match performance with ```x == 1 && ...``` Also change builtins forcing to accommodate the new case-constr apply optimization
This commit is contained in:
@@ -217,9 +217,11 @@ impl<'a> CodeGenerator<'a> {
|
||||
|
||||
fn finalize(&mut self, mut term: Term<Name>) -> Program<Name> {
|
||||
term = self.special_functions.apply_used_functions(term);
|
||||
|
||||
println!("PROG BEFORE IS {}", term.to_pretty());
|
||||
let program = aiken_optimize_and_intern(self.new_program(term));
|
||||
|
||||
println!("PROG IS {}", program.to_pretty());
|
||||
|
||||
// This is very important to call here.
|
||||
// If this isn't done, re-using the same instance
|
||||
// of the generator will result in free unique errors
|
||||
|
||||
Reference in New Issue
Block a user