Skip to content

Commit

Permalink
test without elimination
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarruscag committed Jan 1, 2024
1 parent 241b9aa commit 29ee94b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ ExpressionTree<NumberType> Parse(StringType expr, StringListType& symbols) {
}

// Eliminate duplicate symbols or numbers.
#if 0
for (int i = 0; i < tree.size; ++i) {
auto& node_i = tree.nodes[i];
if (node_i.type != internal::OpCode::SYMBOL &&
Expand Down Expand Up @@ -543,7 +544,7 @@ ExpressionTree<NumberType> Parse(StringType expr, StringListType& symbols) {
}
}
}

#endif
// Sort nodes by their level in the tree, nodes in level i can be evaluated
// with the values at level i+1. This makes the evaluation faster and it
// allows removing the eliminated nodes easily.
Expand Down

0 comments on commit 29ee94b

Please sign in to comment.