Output:
Assertion failed: (_inner.size() == _topo.size()), function compute_sets, file mffc_view.hpp, line 271.
mffc_view assumes that the fanout size of every node is stored in its value, but refactoring doesn't seem to maintain these values correctly. Adding the following lines in the foreach_gate loop in refactoring solves the issue (but this is of course inefficient).
ntk.foreach_node( [&]( auto const& n ) {
ntk.set_value( n, ntk.fanout_size( n ) );
} );
I think the problem comes from the refactoring framework but not sop_factoring, but I didn't try with other node_resynthesis methods.
Check list
[x] I have tried to run in DEBUG mode and there was no assertion failure (or the reported bug is an assertion failure).
[x] I have made sure that the provided code compiles and the testcase reproduces the error.
Describe the bug
refactoring
usingsop_factoring
assertion fails inmffc_view
.To Reproduce
tmp_minimized.aig.zip
Output:
Assertion failed: (_inner.size() == _topo.size()), function compute_sets, file mffc_view.hpp, line 271.
mffc_view
assumes that the fanout size of every node is stored in its value, butrefactoring
doesn't seem to maintain these values correctly. Adding the following lines in theforeach_gate
loop inrefactoring
solves the issue (but this is of course inefficient).I think the problem comes from the
refactoring
framework but notsop_factoring
, but I didn't try with othernode_resynthesis
methods.Check list