From d2cab85976175f8479ae7ec1fa3d4bf0105740ac Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 22 Feb 2012 08:06:22 -0800 Subject: Adding flag -s to &put to disable status clearing. --- src/aig/saig/saigIso.c | 2 +- src/base/abci/abc.c | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/aig/saig/saigIso.c b/src/aig/saig/saigIso.c index 1cc11496..874cdef3 100644 --- a/src/aig/saig/saigIso.c +++ b/src/aig/saig/saigIso.c @@ -426,7 +426,7 @@ Aig_Man_t * Iso_ManFilterPos( Aig_Man_t * pAig, Vec_Ptr_t ** pvPosEquivs, int fV Vec_Ptr_t * vBuffers, * vClasses; Vec_Int_t * vLevel, * vRemain; Vec_Str_t * vStr, * vPrev; - int i, nPos, nUnique = 0, clk = clock(); + int i, nPos, clk = clock(); int clkDup = 0, clkAig = 0, clkIso = 0, clk2; *pvPosEquivs = NULL; diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 80f61c5a..fe1e935e 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -21979,12 +21979,16 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv ) Aig_Man_t * pMan; Abc_Ntk_t * pNtk = Abc_FrameReadNtk(pAbc); int c, fVerbose = 0; + int fStatusClear = 1; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "vh" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "svh" ) ) != EOF ) { switch ( c ) { + case 's': + fStatusClear ^= 1; + break; case 'v': fVerbose ^= 1; break; @@ -22035,12 +22039,14 @@ int Abc_CommandAbc9Put( Abc_Frame_t * pAbc, int argc, char ** argv ) } // replace the current network Abc_FrameReplaceCurrentNetwork( pAbc, pNtk ); - Abc_FrameClearVerifStatus( pAbc ); + if ( fStatusClear ) + Abc_FrameClearVerifStatus( pAbc ); return 0; usage: - Abc_Print( -2, "usage: &put [-vh]\n" ); + Abc_Print( -2, "usage: &put [-svh]\n" ); Abc_Print( -2, "\t transfer the current network into the old ABC\n" ); + Abc_Print( -2, "\t-s : toggle clearning verification status [default = %s]\n", fStatusClear? "yes": "no" ); Abc_Print( -2, "\t-v : toggle verbose output [default = %s]\n", fVerbose? "yes": "no" ); Abc_Print( -2, "\t-h : print the command usage\n"); return 1; -- cgit v1.2.3