Merge pull request #360 from wjrforcyber/fix_print_mffc

Fix(print_mffc): Missing condition when single output linked to CO
This commit is contained in:
alanminko 2025-02-15 05:29:37 +07:00 committed by GitHub
commit a2c6cb8fd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1083,7 +1083,7 @@ void Abc_NtkPrintMffc( FILE * pFile, Abc_Ntk_t * pNtk )
int i;
extern void Abc_NodeMffcConeSuppPrint( Abc_Obj_t * pNode );
Abc_NtkForEachNode( pNtk, pNode, i )
if ( Abc_ObjFanoutNum(pNode) > 1 )
if ( Abc_ObjFanoutNum(pNode) > 1 || (Abc_ObjFanoutNum(pNode) == 1 && Abc_ObjIsCo(Abc_ObjFanout0(pNode))))
Abc_NodeMffcConeSuppPrint( pNode );
}