Skip to content
Prev Previous commit
Next Next commit
resize levels after each iteration.
  • Loading branch information
hriener committed Apr 23, 2021
commit cbbe628f8a30a24549a0283f7eb38d909cadc230
4 changes: 4 additions & 0 deletions include/mockturtle/algorithms/window_rewriting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,12 @@ class window_rewriting_impl
});
}
}

/* clean the level */
levels[level_index].clear();
}
levels.clear();
levels.resize( ntk.depth() );
}

/* eagerly update the node levels without topologically sorting (may
Expand Down