47 int nBTLimit =
p->pPars->nBTLimit;
48 int pLits[2], RetValue, RetValue1, status;
53 assert( !Aig_IsComplement(pNew) );
54 assert( !Aig_IsComplement(pOld) );
60 if (
p->pSat == NULL ||
61 (
p->pPars->nSatVarMax &&
62 p->nSatVars >
p->pPars->nSatVarMax &&
63 p->nCallsSince >
p->pPars->nCallsRecycle) )
71 if (
p->pSat->qtail !=
p->pSat->qhead )
75 assert(
p->pSat->qtail ==
p->pSat->qhead );
80 pLits[0] = toLitCond( Dch_ObjSatNum(
p,pOld), 0 );
81 pLits[1] = toLitCond( Dch_ObjSatNum(
p,pNew), pOld->
fPhase == pNew->
fPhase );
82 if (
p->pPars->fPolarFlip )
84 if ( pOld->
fPhase ) pLits[0] = lit_neg( pLits[0] );
85 if ( pNew->
fPhase ) pLits[1] = lit_neg( pLits[1] );
90 (ABC_INT64_T)nBTLimit, (ABC_INT64_T)0, (ABC_INT64_T)0, (ABC_INT64_T)0 );
91p->timeSat += Abc_Clock() - clk;
94p->timeSatUnsat += Abc_Clock() - clk;
95 pLits[0] = lit_neg( pLits[0] );
96 pLits[1] = lit_neg( pLits[1] );
101 else if ( RetValue1 ==
l_True )
103p->timeSatSat += Abc_Clock() - clk;
109p->timeSatUndec += Abc_Clock() - clk;
115 if ( pOld == Aig_ManConst1(
p->pAigFraig) )
123 pLits[0] = toLitCond( Dch_ObjSatNum(
p,pOld), 1 );
124 pLits[1] = toLitCond( Dch_ObjSatNum(
p,pNew), pOld->
fPhase ^ pNew->
fPhase );
125 if (
p->pPars->fPolarFlip )
127 if ( pOld->
fPhase ) pLits[0] = lit_neg( pLits[0] );
128 if ( pNew->
fPhase ) pLits[1] = lit_neg( pLits[1] );
132 (ABC_INT64_T)nBTLimit, (ABC_INT64_T)0, (ABC_INT64_T)0, (ABC_INT64_T)0 );
133p->timeSat += Abc_Clock() - clk;
136p->timeSatUnsat += Abc_Clock() - clk;
137 pLits[0] = lit_neg( pLits[0] );
138 pLits[1] = lit_neg( pLits[1] );
143 else if ( RetValue1 ==
l_True )
145p->timeSatSat += Abc_Clock() - clk;
151p->timeSatUndec += Abc_Clock() - clk;