summaryrefslogtreecommitdiffstats
path: root/src/aig/ivy
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2011-12-23 00:29:26 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2011-12-23 00:29:26 -0800
commit9d2893040ea7c69f384b0735a1407e9d91f89e35 (patch)
tree2202268143c4175f7a126d820c8036c13da37ad5 /src/aig/ivy
parent844c385e2b8610ec8bdc4a55400f8efe79eac119 (diff)
downloadabc-9d2893040ea7c69f384b0735a1407e9d91f89e35.tar.gz
abc-9d2893040ea7c69f384b0735a1407e9d91f89e35.tar.bz2
abc-9d2893040ea7c69f384b0735a1407e9d91f89e35.zip
Transforming the solver to use different clause representation.
Diffstat (limited to 'src/aig/ivy')
-rw-r--r--src/aig/ivy/ivyFraig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/aig/ivy/ivyFraig.c b/src/aig/ivy/ivyFraig.c
index b53805b4..f7c0743b 100644
--- a/src/aig/ivy/ivyFraig.c
+++ b/src/aig/ivy/ivyFraig.c
@@ -2113,6 +2113,7 @@ int Ivy_FraigNodesAreEquiv( Ivy_FraigMan_t * p, Ivy_Obj_t * pOld, Ivy_Obj_t * pN
if ( p->pSat == NULL )
{
p->pSat = sat_solver_new();
+ p->pSat->factors = ABC_CALLOC( double, 1 );
p->nSatVars = 1;
sat_solver_setnvars( p->pSat, 1000 );
// var 0 is reserved for const1 node - add the clause
@@ -2264,6 +2265,7 @@ int Ivy_FraigNodeIsConst( Ivy_FraigMan_t * p, Ivy_Obj_t * pNew )
if ( p->pSat == NULL )
{
p->pSat = sat_solver_new();
+ p->pSat->factors = ABC_CALLOC( double, 1 );
p->nSatVars = 1;
sat_solver_setnvars( p->pSat, 1000 );
// var 0 is reserved for const1 node - add the clause