Skip to content

Commit d5e1a5d

Browse files
committed
Bug fix in &gencex.
1 parent 350dcd3 commit d5e1a5d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/aig/gia/giaPat2.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,12 @@ Vec_Wec_t * Min_ManComputeCexes( Gia_Man_t * p, Vec_Int_t * vOuts0, int nMaxTrie
965965
if ( Vec_IntEntry(vStats[2], i) >= nMinCexes || Vec_IntEntry(vStats[1], i) > 10*Vec_IntEntry(vStats[2], i) )
966966
continue;
967967
{
968+
assert( Gia_ObjIsCo(pObj) );
969+
if ( Gia_ObjFaninId0p(p, pObj) == 0 ) {
970+
if ( fVerbose )
971+
printf( "Output %d is driven by constant %d.\n", Gia_ObjCioId(pObj), Gia_ObjFaninC0(pObj) );
972+
continue;
973+
}
968974
abctime clk = Abc_Clock();
969975
int iObj = Min_ManCo(pNew, i);
970976
int Index = Gia_ObjCioId(pObj);

src/base/abci/abc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54262,7 +54262,7 @@ int Abc_CommandAbc9GenCex( Abc_Frame_t * pAbc, int argc, char ** argv )
5426254262
usage:
5426354263
Abc_Print( -2, "usage: &gencex [-CM num] [-F file] [-stcbvh]\n" );
5426454264
Abc_Print( -2, "\t generates satisfying assignments for each output of the miter\n" );
54265-
Abc_Print( -2, "\t-C num : the number of timeframes [default = %d]\n", nMinCexes );
54265+
Abc_Print( -2, "\t-C num : the number of satisfying assignments [default = %d]\n", nMinCexes );
5426654266
Abc_Print( -2, "\t-M num : the max simulation runs before using SAT [default = %d]\n", nMaxTries );
5426754267
Abc_Print( -2, "\t-F file : the output file name [default = %s]\n", pFileName );
5426854268
Abc_Print( -2, "\t-s : toggles using reverse simulation [default = %s]\n", fUseSim ? "yes": "no" );

0 commit comments

Comments
 (0)