diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-27 20:57:27 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-27 20:57:27 -0800 |
commit | 39839c3feb11fd6dcf112267f22d94777ab29062 (patch) | |
tree | 2d01282d3c66a709f686aa39727f5d5f6b984322 /src/base | |
parent | 4704dbc7989680c2d0cc97bd49514acf389d3ce6 (diff) | |
download | abc-39839c3feb11fd6dcf112267f22d94777ab29062.tar.gz abc-39839c3feb11fd6dcf112267f22d94777ab29062.tar.bz2 abc-39839c3feb11fd6dcf112267f22d94777ab29062.zip |
Updated read_status/write_status to correctly handle the case of seq cex without regs.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abci/abcLog.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/base/abci/abcLog.c b/src/base/abci/abcLog.c index 79947b52..ecccb36b 100644 --- a/src/base/abci/abcLog.c +++ b/src/base/abci/abcLog.c @@ -29,26 +29,27 @@ ABC_NAMESPACE_IMPL_START //////////////////////////////////////////////////////////////////////// /* - Log file format (Jiang, Mon, 28 Sep 2009) + Log file format (Jiang, Mon, 28 Sep 2009; updated by Alan in Jan 2011) - <result> <cyc> <engine_name> - <TRACE> : default is "NULL" - <INIT_STATE> : default is "NULL" - - <retult> is the following: - snl_SAT - snl_UNSAT - snl_UNK - snl_ABORT - - <cyc> : # of cycles + <result> <bug_free_depth> <engine_name> <0-based_output_num> <0-based_frame> + <INIT_STATE> : default is empty line. + <TRACE> : default is empty line + <result> is one of the following: "snl_SAT", "snl_UNSAT", "snl_UNK", "snl_ABORT". + <bug_free_depth> is the number of timeframes exhaustively explored without counter-examples + <0-based_output_num> only need to be given if the problem is SAT. + <0-based_frame> only need to be given if the problem is SAT and <0-based_frame> is different from <bug_free_depth>. <INIT_STATE> : initial state <TRACE> : input vector - + <INIT_STATE>and <TRACE> are strings of 0/1/- ( - means don't care). The length is equivalent to #input*#<cyc>. */ + + + + + //////////////////////////////////////////////////////////////////////// /// FUNCTION DEFINITIONS /// //////////////////////////////////////////////////////////////////////// @@ -189,7 +190,7 @@ int Abc_NtkReadLogFile( char * pFileName, Abc_Cex_t ** ppCex, int * pnFrames ) if ( Vec_IntSize(vNums) ) { int iFrameCex = (nFrames2 == -1) ? nFrames : nFrames2; - if ( nRegs == 0 ) + if ( nRegs < 0 ) { printf( "Cannot read register number.\n" ); return -1; |