49 Abc_Print( -1,
"Command line switch \"-C\" should be followed by an integer.\n" );
58 if ( globalUtilOptind >= argc )
60 Abc_Print( -1,
"Command line switch \"-P\" should be followed by an integer.\n" );
63 nProps = atoi(argv[globalUtilOptind]);
84 Abc_Print( -1,
"The network is combinational.\n" );
89 Abc_Print( -1,
"Currently only works for structurally hashed circuits.\n" );
94 Abc_Print( -1,
"Constraints are already extracted.\n" );
99 Abc_Print( -1,
"Functional constraint extraction works for single-output miters (use \"orpos\").\n" );
103 pNtkRes =
Abc_NtkDarUnfold2( pNtk, nFrames, nConfs, nProps, fStruct, fOldAlgo, fVerbose );
104 if ( pNtkRes == NULL )
106 Abc_Print( 1,
"Transformation has failed.\n" );
113 Abc_Print( -2,
"usage: unfold2 [-FCP num] [-savh]\n" );
114 Abc_Print( -2,
"\t unfold hidden constraints as separate outputs\n" );
115 Abc_Print( -2,
"\t-C num : the max number of conflicts in SAT solving [default = %d]\n", nConfs );
116 Abc_Print( -2,
"\t-P num : the max number of constraint propagations [default = %d]\n", nProps );
117 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
118 Abc_Print( -2,
"\t-h : print the command usage\n");
159 Abc_Print( -1,
"Currently only works for structurally hashed circuits.\n" );
164 Abc_Print( 0,
"The network has no constraints.\n" );
168 Abc_Print( 0,
"The network is combinational.\n" );
171 if ( pNtkRes == NULL )
173 Abc_Print( 1,
"Transformation has failed.\n" );
181 Abc_Print( -2,
"\t folds constraints represented as separate outputs\n" );
183 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
184 Abc_Print( -2,
"\t-h : print the command usage\n");
ABC_DLL void Abc_FrameReplaceCurrentNetwork(Abc_Frame_t *p, Abc_Ntk_t *pNet)
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
static int Abc_NtkIsComb(Abc_Ntk_t *pNtk)
int Abc_CommandFold2(Abc_Frame_t *pAbc, int argc, char **argv)
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
static void Abc_Print(int level, const char *format,...)
static int Abc_NtkConstrNum(Abc_Ntk_t *pNtk)
ABC_DLL Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
int Abc_CommandUnfold2(Abc_Frame_t *pAbc, int argc, char **argv)
static int Abc_NtkPoNum(Abc_Ntk_t *pNtk)
Abc_Ntk_t * Abc_NtkDarFold2(Abc_Ntk_t *pNtk, int fCompl, int fVerbose, int)
Abc_Ntk_t * Abc_NtkDarUnfold2(Abc_Ntk_t *pNtk, int nFrames, int nConfs, int nProps, int fStruct, int fOldAlgo, int fVerbose)