Skip to content

Commit 324ceea

Browse files
authored
Merge pull request berkeley-abc#320 from YosysHQ/povik/revert-pdr
Revert recent PDR changes
2 parents 81fcf84 + de8620d commit 324ceea

File tree

9 files changed

+55
-478
lines changed

9 files changed

+55
-478
lines changed

src/base/abci/abc.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30251,7 +30251,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
3025130251
int c;
3025230252
Pdr_ManSetDefaultParams( pPars );
3025330253
Extra_UtilGetoptReset();
30254-
while ( ( c = Extra_UtilGetopt( argc, argv, "MFCDQTHGSLIXalxrmuyfqipdegjonctkvwzh" ) ) != EOF )
30254+
while ( ( c = Extra_UtilGetopt( argc, argv, "MFCDQTHGSLIaxrmuyfqipdegjonctkvwzh" ) ) != EOF )
3025530255
{
3025630256
switch ( c )
3025730257
{
@@ -30372,21 +30372,9 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
3037230372
pPars->pInvFileName = argv[globalUtilOptind];
3037330373
globalUtilOptind++;
3037430374
break;
30375-
case 'X':
30376-
if ( globalUtilOptind >= argc )
30377-
{
30378-
Abc_Print( -1, "Command line switch \"-X\" should be followed by a directory name.\n" );
30379-
goto usage;
30380-
}
30381-
pPars->pCexFilePrefix = argv[globalUtilOptind];
30382-
globalUtilOptind++;
30383-
break;
3038430375
case 'a':
3038530376
pPars->fSolveAll ^= 1;
3038630377
break;
30387-
case 'l':
30388-
pPars->fAnytime ^= 1;
30389-
break;
3039030378
case 'x':
3039130379
pPars->fStoreCex ^= 1;
3039230380
break;
@@ -30491,7 +30479,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
3049130479
return 0;
3049230480

3049330481
usage:
30494-
Abc_Print( -2, "usage: pdr [-MFCDQTHGS <num>] [-LI <file>] [-X <prefix>] [-axrmuyfqipdegjonctkvwzh]\n" );
30482+
Abc_Print( -2, "usage: pdr [-MFCDQTHGS <num>] [-LI <file>] [-axrmuyfqipdegjonctkvwzh]\n" );
3049530483
Abc_Print( -2, "\t model checking using property directed reachability (aka IC3)\n" );
3049630484
Abc_Print( -2, "\t pioneered by Aaron R. Bradley (http://theory.stanford.edu/~arbrad/)\n" );
3049730485
Abc_Print( -2, "\t with improvements by Niklas Een (http://een.se/niklas/)\n" );
@@ -30506,9 +30494,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
3050630494
Abc_Print( -2, "\t-S num : * value to seed the SAT solver with [default = %d]\n", pPars->nRandomSeed );
3050730495
Abc_Print( -2, "\t-L file: the log file name [default = %s]\n", pLogFileName ? pLogFileName : "no logging" );
3050830496
Abc_Print( -2, "\t-I file: the invariant file name [default = %s]\n", pPars->pInvFileName ? pPars->pInvFileName : "default name" );
30509-
Abc_Print( -2, "\t-X pref: when solving all outputs, store CEXes immediately as <pref>*.aiw [default = %s]\n", pPars->pCexFilePrefix ? pPars->pCexFilePrefix : "disabled");
3051030497
Abc_Print( -2, "\t-a : toggle solving all outputs even if one of them is SAT [default = %s]\n", pPars->fSolveAll? "yes": "no" );
30511-
Abc_Print( -2, "\t-l : toggle anytime schedule when solving all outputs [default = %s]\n", pPars->fAnytime? "yes": "no" );
3051230498
Abc_Print( -2, "\t-x : toggle storing CEXes when solving all outputs [default = %s]\n", pPars->fStoreCex? "yes": "no" );
3051330499
Abc_Print( -2, "\t-r : toggle using more effort in generalization [default = %s]\n", pPars->fTwoRounds? "yes": "no" );
3051430500
Abc_Print( -2, "\t-m : toggle using monolythic CNF computation [default = %s]\n", pPars->fMonoCnf? "yes": "no" );

src/proof/pdr/pdr.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ struct Pdr_Par_t_
7272
int fSilent; // totally silent execution
7373
int fSolveAll; // do not stop when found a SAT output
7474
int fStoreCex; // enable storing counter-examples in MO mode
75-
int fAnytime; // enable anytime scheduling
7675
int fUseBridge; // use bridge interface
7776
int fUsePropOut; // use property output
7877
int nFailOuts; // the number of failed outputs
@@ -85,7 +84,6 @@ struct Pdr_Par_t_
8584
abctime timeLastSolved; // the time when the last output was solved
8685
Vec_Int_t * vOutMap; // in the multi-output mode, contains status for each PO (0 = sat; 1 = unsat; negative = undecided)
8786
char * pInvFileName; // invariable file name
88-
char * pCexFilePrefix; // CEX output prefix
8987
};
9088

9189
////////////////////////////////////////////////////////////////////////
@@ -97,7 +95,6 @@ struct Pdr_Par_t_
9795
////////////////////////////////////////////////////////////////////////
9896

9997
/*=== pdrCore.c ==========================================================*/
100-
extern void Pdr_OutputCexToDir( Pdr_Par_t * pPars, Abc_Cex_t * pCex );
10198
extern void Pdr_ManSetDefaultParams( Pdr_Par_t * pPars );
10299
extern int Pdr_ManSolve( Aig_Man_t * p, Pdr_Par_t * pPars );
103100

0 commit comments

Comments
 (0)