48 int pLits[4], RetValue, VarF, VarI, VarT, VarE, fCompT, fCompE;
50 assert( !Aig_IsComplement( pNode ) );
55 VarF = Dch_ObjSatNum(
p,pNode);
56 VarI = Dch_ObjSatNum(
p,pNodeI);
57 VarT = Dch_ObjSatNum(
p,Aig_Regular(pNodeT));
58 VarE = Dch_ObjSatNum(
p,Aig_Regular(pNodeE));
60 fCompT = Aig_IsComplement(pNodeT);
61 fCompE = Aig_IsComplement(pNodeE);
71 pLits[0] = toLitCond(VarI, 1);
72 pLits[1] = toLitCond(VarT, 1^fCompT);
73 pLits[2] = toLitCond(VarF, 0);
74 if (
p->pPars->fPolarFlip )
76 if ( pNodeI->
fPhase ) pLits[0] = lit_neg( pLits[0] );
77 if ( Aig_Regular(pNodeT)->fPhase ) pLits[1] = lit_neg( pLits[1] );
78 if ( pNode->
fPhase ) pLits[2] = lit_neg( pLits[2] );
82 pLits[0] = toLitCond(VarI, 1);
83 pLits[1] = toLitCond(VarT, 0^fCompT);
84 pLits[2] = toLitCond(VarF, 1);
85 if (
p->pPars->fPolarFlip )
87 if ( pNodeI->
fPhase ) pLits[0] = lit_neg( pLits[0] );
88 if ( Aig_Regular(pNodeT)->fPhase ) pLits[1] = lit_neg( pLits[1] );
89 if ( pNode->
fPhase ) pLits[2] = lit_neg( pLits[2] );
93 pLits[0] = toLitCond(VarI, 0);
94 pLits[1] = toLitCond(VarE, 1^fCompE);
95 pLits[2] = toLitCond(VarF, 0);
96 if (
p->pPars->fPolarFlip )
98 if ( pNodeI->
fPhase ) pLits[0] = lit_neg( pLits[0] );
99 if ( Aig_Regular(pNodeE)->fPhase ) pLits[1] = lit_neg( pLits[1] );
100 if ( pNode->
fPhase ) pLits[2] = lit_neg( pLits[2] );
104 pLits[0] = toLitCond(VarI, 0);
105 pLits[1] = toLitCond(VarE, 0^fCompE);
106 pLits[2] = toLitCond(VarF, 1);
107 if (
p->pPars->fPolarFlip )
109 if ( pNodeI->
fPhase ) pLits[0] = lit_neg( pLits[0] );
110 if ( Aig_Regular(pNodeE)->fPhase ) pLits[1] = lit_neg( pLits[1] );
111 if ( pNode->
fPhase ) pLits[2] = lit_neg( pLits[2] );
129 pLits[0] = toLitCond(VarT, 0^fCompT);
130 pLits[1] = toLitCond(VarE, 0^fCompE);
131 pLits[2] = toLitCond(VarF, 1);
132 if (
p->pPars->fPolarFlip )
134 if ( Aig_Regular(pNodeT)->fPhase ) pLits[0] = lit_neg( pLits[0] );
135 if ( Aig_Regular(pNodeE)->fPhase ) pLits[1] = lit_neg( pLits[1] );
136 if ( pNode->
fPhase ) pLits[2] = lit_neg( pLits[2] );
140 pLits[0] = toLitCond(VarT, 1^fCompT);
141 pLits[1] = toLitCond(VarE, 1^fCompE);
142 pLits[2] = toLitCond(VarF, 0);
143 if (
p->pPars->fPolarFlip )
145 if ( Aig_Regular(pNodeT)->fPhase ) pLits[0] = lit_neg( pLits[0] );
146 if ( Aig_Regular(pNodeE)->fPhase ) pLits[1] = lit_neg( pLits[1] );
147 if ( pNode->
fPhase ) pLits[2] = lit_neg( pLits[2] );
167 int * pLits, nLits, RetValue, i;
168 assert( !Aig_IsComplement(pNode) );
169 assert( Aig_ObjIsNode( pNode ) );
171 nLits = Vec_PtrSize(vSuper) + 1;
177 pLits[0] = toLitCond(Dch_ObjSatNum(
p,Aig_Regular(pFanin)), Aig_IsComplement(pFanin));
178 pLits[1] = toLitCond(Dch_ObjSatNum(
p,pNode), 1);
179 if (
p->pPars->fPolarFlip )
181 if ( Aig_Regular(pFanin)->fPhase ) pLits[0] = lit_neg( pLits[0] );
182 if ( pNode->
fPhase ) pLits[1] = lit_neg( pLits[1] );
190 pLits[i] = toLitCond(Dch_ObjSatNum(
p,Aig_Regular(pFanin)), !Aig_IsComplement(pFanin));
191 if (
p->pPars->fPolarFlip )
193 if ( Aig_Regular(pFanin)->fPhase ) pLits[i] = lit_neg( pLits[i] );
196 pLits[nLits-1] = toLitCond(Dch_ObjSatNum(
p,pNode), 0);
197 if (
p->pPars->fPolarFlip )
199 if ( pNode->
fPhase ) pLits[nLits-1] = lit_neg( pLits[nLits-1] );