52 printf(
"Io_WriteCnf() warning: Generating CNF by applying heuristic AIG to CNF conversion.\n" );
54 printf(
"Io_WriteCnf() warning: Generating CNF by convering logic nodes into CNF clauses.\n" );
57 fprintf( stdout,
"Io_WriteCnf(): Currently can only process the miter (the network with one PO).\n" );
62 fprintf( stdout,
"Io_WriteCnf(): Currently can only process the miter for combinational circuits.\n" );
67 fprintf( stdout,
"The network has no logic nodes. No CNF file is generaled.\n" );
77 fprintf( stdout,
"The problem is trivially UNSAT. No CNF file is generated.\n" );
108 fprintf( pFile,
"c PI variable numbers: <PI_name> <SAT_var_number>\n" );
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
static int Abc_NtkIsLogic(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
void sat_solver_delete(sat_solver *s)
static int Abc_NtkLatchNum(Abc_Ntk_t *pNtk)
void Io_WriteCnfOutputPiMapping(FILE *pFile, int incrementVars)
ABC_DLL void * Abc_NtkMiterSatCreate(Abc_Ntk_t *pNtk, int fAllPrimes)
int Io_WriteCnf(Abc_Ntk_t *pNtk, char *pFileName, int fAllPrimes)
FUNCTION DEFINITIONS ///.
static int Abc_NtkNodeNum(Abc_Ntk_t *pNtk)
Vec_Int_t * Abc_NtkGetCiSatVarNums(Abc_Ntk_t *pNtk)
static int Vec_IntEntry(Vec_Int_t *p, int i)
#define ABC_NAMESPACE_IMPL_END
ABC_DLL int Abc_NtkToBdd(Abc_Ntk_t *pNtk)
void Sat_SolverWriteDimacs(sat_solver *p, char *pFileName, lit *assumptionsBegin, lit *assumptionsEnd, int incrementVars)
#define ABC_NAMESPACE_IMPL_START
#define Abc_NtkForEachCi(pNtk, pCi, i)
static int Abc_NtkPoNum(Abc_Ntk_t *pNtk)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
static ABC_NAMESPACE_IMPL_START Abc_Ntk_t * s_pNtk
DECLARATIONS ///.
static void Vec_IntFree(Vec_Int_t *p)