Skip to content

Commit

Permalink
Keep extract report across commands
Browse files Browse the repository at this point in the history
otherwise it wont be preserved when after (pop) in de-sugared simplify
  • Loading branch information
saulshanabrook committed Aug 23, 2023
1 parent dc08e24 commit d860ca5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -926,8 +926,6 @@ impl EGraph {

fn run_command(&mut self, command: NCommand, should_run: bool) -> Result<(), Error> {
let pre_rebuild = Instant::now();
self.extract_report = None;
self.run_report = None;
let rebuild_num = self.rebuild()?;
if rebuild_num > 0 {
log::info!(
Expand All @@ -938,8 +936,6 @@ impl EGraph {

self.debug_assert_invariants();

self.extract_report = None;
self.run_report = None;
match command {
NCommand::SetOption { name, value } => {
let str = format!("Set option {} to {}", name, value);
Expand Down

0 comments on commit d860ca5

Please sign in to comment.