Skip to content

Commit

Permalink
Updating counter-example generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanminko committed May 9, 2024
1 parent c194c11 commit f04f9c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/aig/gia/giaPat2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1384,15 +1384,18 @@ void Gia_GenerateCexesDumpFile( char * pFileName, Gia_Man_t * p, Vec_Wec_t * vCe
int i, k, c, iLit, nOuts[2] = {0}, nCexes = Vec_WecSize(vCexes) / Gia_ManCoNum(p);
Gia_ManForEachCo( p, pObj, i ) {
if ( Gia_ObjFaninLit0p(p, Gia_ManCo(p, i)) == 0 ) {
fprintf( pFile, "%d :\n", i );
fprintf( pFile, "%d : unsat\n", i );
nOuts[0]++;
}
else if ( fShort ) {
for ( c = 0; c < nCexes; c++ ) {
Vec_Int_t * vPat = Vec_WecEntry( vCexes, i*nCexes+c );
fprintf( pFile, "%d :", i );
Vec_IntForEachEntry( vPat, iLit, k )
fprintf( pFile, " %d", iLit );
if ( Vec_IntSize(vPat) == 0 )
fprintf( pFile, " not available" );
else
Vec_IntForEachEntry( vPat, iLit, k )
fprintf( pFile, " %d", iLit );
fprintf( pFile, "\n" );
}
nOuts[1]++;
Expand Down

0 comments on commit f04f9c4

Please sign in to comment.