diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-04-02 21:51:47 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-04-02 21:51:47 -0700 |
commit | f765e666ca4608f8dfe3ab2ecbacaf9966d25129 (patch) | |
tree | 6671beb24d849fee72e6a4254e207277ea52082a /src/sat/cnf/cnfMan.c | |
parent | 3898ba5486adc01e38199b5385d501e4ca58ddec (diff) | |
download | abc-f765e666ca4608f8dfe3ab2ecbacaf9966d25129.tar.gz abc-f765e666ca4608f8dfe3ab2ecbacaf9966d25129.tar.bz2 abc-f765e666ca4608f8dfe3ab2ecbacaf9966d25129.zip |
Experiments with don't-cares.
Diffstat (limited to 'src/sat/cnf/cnfMan.c')
-rw-r--r-- | src/sat/cnf/cnfMan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sat/cnf/cnfMan.c b/src/sat/cnf/cnfMan.c index d3a8aa9c..5a125ec3 100644 --- a/src/sat/cnf/cnfMan.c +++ b/src/sat/cnf/cnfMan.c @@ -215,14 +215,14 @@ void Cnf_DataLift( Cnf_Dat_t * p, int nVarsPlus ) for ( v = 0; v < p->nLiterals; v++ ) p->pClauses[0][v] += 2*nVarsPlus; } -Vec_Int_t * Cnf_DataCollectFlipLits( Cnf_Dat_t * p, int iFlipVar ) +void Cnf_DataCollectFlipLits( Cnf_Dat_t * p, int iFlipVar, Vec_Int_t * vFlips ) { - Vec_Int_t * vLits = Vec_IntAlloc( 100 ); int v; + int v; assert( p->pMan == NULL ); + Vec_IntClear( vFlips ); for ( v = 0; v < p->nLiterals; v++ ) if ( Abc_Lit2Var(p->pClauses[0][v]) == iFlipVar ) - Vec_IntPush( vLits, v ); - return vLits; + Vec_IntPush( vFlips, v ); } void Cnf_DataLiftAndFlipLits( Cnf_Dat_t * p, int nVarsPlus, Vec_Int_t * vLits ) { |