Skip to content

Commit

Permalink
Fixed pop to clear pending
Browse files Browse the repository at this point in the history
  • Loading branch information
dewert99 committed Mar 8, 2024
1 parent 1af4039 commit 2c1c95f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/raw/semi_persistent1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ impl<L: Language, D, U: AsUnwrap<UndoLog>> RawEGraph<L, D, U> {
memo_log_count,
pop_parents_count,
} = info;
self.pending.clear();
self.pop_memo1(memo_log_count);
self.pop_unions1(union_count, pop_parents_count, split);
self.pop_nodes1(node_count);
Expand Down
1 change: 1 addition & 0 deletions src/raw/semi_persistent2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ impl<L: Language, D, U: AsUnwrap<UndoLog>> RawEGraph<L, D, U> {
memo_log_count,
pop_parents_count,
} = info;
self.pending.clear();
self.pop_memo2(memo_log_count);
self.pop_parents2(pop_parents_count, node_count);
self.pop_unions2(union_count, node_count, state, clear, mk_data, handle_eqv);
Expand Down

0 comments on commit 2c1c95f

Please sign in to comment.