Skip to content

Commit

Permalink
Fixed linearization of subexpressions
Browse files Browse the repository at this point in the history
  • Loading branch information
benruijl committed Jul 3, 2024
1 parent 0d4a5eb commit 390c4eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evaluate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,14 @@ impl<T: Clone + Default + PartialEq> EvalTree<T> {
})
.collect();

let mut sub_expr_pos = HashMap::default();
let func = &self.functions[*id].2;
self.linearize_impl(
&func.tree[0],
&func.subexpressions,
stack,
instr,
sub_expr_pos,
&mut sub_expr_pos,
&new_args,
)
}
Expand Down

0 comments on commit 390c4eb

Please sign in to comment.