Modified structural constraint extraction (unfold -s) to work for multi-output testcases.

This commit is contained in:
Alan Mishchenko
2012-09-23 14:30:17 -07:00
parent c8ed816714
commit f7caf84f21
3 changed files with 296 additions and 195 deletions
+2 -2
View File
@@ -21280,9 +21280,9 @@ int Abc_CommandUnfold( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Constraints are already extracted.\n" );
return 0;
}
if ( Abc_NtkPoNum(pNtk) > 1 )
if ( Abc_NtkPoNum(pNtk) > 1 && !fStruct )
{
Abc_Print( -1, "Constraint extraction works for single-output miters (use \"orpos\").\n" );
Abc_Print( -1, "Functional constraint extraction works for single-output miters (use \"orpos\").\n" );
return 0;
}
// modify the current network