Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Sep 29, 2023
1 parent 8cd5fda commit 02545de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,14 @@ impl EGraph {
let recent_run_report = self.recent_run_report.clone();
let overall_run_report = self.overall_run_report.clone();
let messages = self.msgs.clone();

*self = e;
self.extract_report = extract_report.or(self.extract_report.clone());
// We union the run reports, meaning
// that statistics are shared across
// push/pop
self.recent_run_report = recent_run_report.or(self.recent_run_report.clone());
self.overall_run_report = self.overall_run_report.union(&overall_run_report);
self.overall_run_report = overall_run_report;
self.msgs.extend(messages);
Ok(())
}
Expand Down

0 comments on commit 02545de

Please sign in to comment.