diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-25 12:37:19 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-25 12:37:19 -0700 |
commit | b2ad079a2a1c79b8ba31736defc2cdb617f93141 (patch) | |
tree | bfd81b09a952f3646b8157d98eaa42a98d953be3 /src/base | |
parent | 160b196a701ad36c84d9aa3d14e89fa3ff2ba1fe (diff) | |
download | abc-b2ad079a2a1c79b8ba31736defc2cdb617f93141.tar.gz abc-b2ad079a2a1c79b8ba31736defc2cdb617f93141.tar.bz2 abc-b2ad079a2a1c79b8ba31736defc2cdb617f93141.zip |
Allow for skipping structural hashing when reading GIA from file.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abci/abc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index da66df65..b5b1c578 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -840,7 +840,6 @@ void Abc_Init( Abc_Frame_t * pAbc ) { extern void Dar_LibStart(); - // char * pMem = malloc( (1<<30) * 3 / 2 ); Dar_LibStart(); } { @@ -22690,11 +22689,15 @@ int Abc_CommandAbc9Read( Abc_Frame_t * pAbc, int argc, char ** argv ) char * FileName, * pTemp; int nArgcNew; int c, fVerbose = 0; + int fSkipStrash = 0; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "vh" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "svh" ) ) != EOF ) { switch ( c ) { + case 's': + fSkipStrash ^= 1; + break; case 'v': fVerbose ^= 1; break; @@ -22726,13 +22729,14 @@ int Abc_CommandAbc9Read( Abc_Frame_t * pAbc, int argc, char ** argv ) } fclose( pFile ); - pAig = Gia_ReadAiger( FileName, 0, 0 ); + pAig = Gia_ReadAiger( FileName, fSkipStrash, 0 ); Abc_CommandUpdate9( pAbc, pAig ); return 0; usage: - Abc_Print( -2, "usage: &r [-vh] <file>\n" ); + Abc_Print( -2, "usage: &r [-svh] <file>\n" ); Abc_Print( -2, "\t reads the current AIG from the AIGER file\n" ); + Abc_Print( -2, "\t-s : toggles structural hashing while reading [default = %s]\n", !fSkipStrash? "yes": "no" ); Abc_Print( -2, "\t-v : toggles additional verbose output [default = %s]\n", fVerbose? "yes": "no" ); Abc_Print( -2, "\t-h : print the command usage\n"); Abc_Print( -2, "\t<file> : the file name\n"); |