Skip to content
Prev Previous commit
Next Next commit
minor cleanup.
  • Loading branch information
hriener committed Apr 23, 2021
commit 3d20f7d3a2cb1a2f98dfefe8739deb8f66c9fcd6
5 changes: 2 additions & 3 deletions include/mockturtle/algorithms/window_rewriting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class window_rewriting_impl
{
ntk.decr_fanout_size( nn );
}
/* remove the node if it's fanout_size becomes 0 */
/* remove the node if its fanout_size becomes 0 */
if ( ntk.fanout_size( nn ) == 0 )
{
ntk.take_out_node( nn );
Expand Down Expand Up @@ -406,8 +406,7 @@ class window_rewriting_impl
substitutions.pop_front();

// for ( auto index = 1u; index < _storage->nodes.size(); ++index )
const auto parents = ntk.fanout( old_node );
for ( auto index : parents )
for ( auto index : ntk.fanout( old_node ) )
{
/* skip CIs and dead nodes */
if ( ntk.is_dead( index ) )
Expand Down