Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
1d26d58a
Commit
1d26d58a
authored
May 25, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding switch 'pdr -o' to control using property output in induction.
parent
58c81ec0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
src/base/abci/abc.c
+6
-2
src/proof/pdr/pdr.h
+1
-0
src/proof/pdr/pdrCore.c
+1
-0
src/proof/pdr/pdrSat.c
+2
-0
No files found.
src/base/abci/abc.c
View file @
1d26d58a
...
...
@@ -25204,7 +25204,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Pdr_ManSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"MFCDRTHGaxrmsipdgvwzh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"MFCDRTHGaxrmsipdg
o
vwzh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -25323,6 +25323,9 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'g'
:
pPars
->
fSkipGeneral
^=
1
;
break
;
case
'o'
:
pPars
->
fUsePropOut
^=
1
;
break
;
case
'v'
:
pPars
->
fVerbose
^=
1
;
break
;
...
...
@@ -25364,7 +25367,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: pdr [-MFCDRTHG <num>] [-axrmsipdgvwzh]
\n
"
);
Abc_Print
(
-
2
,
"usage: pdr [-MFCDRTHG <num>] [-axrmsipdg
o
vwzh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
model checking using property directed reachability (aka IC3)
\n
"
);
Abc_Print
(
-
2
,
"
\t
pioneered by Aaron Bradley (http://ecee.colorado.edu/~bradleya/ic3/)
\n
"
);
Abc_Print
(
-
2
,
"
\t
with improvements by Niklas Een (http://een.se/niklas/)
\n
"
);
...
...
@@ -25385,6 +25388,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-p : toggle reusing proof-obligations in the last timeframe [default = %s]
\n
"
,
pPars
->
fReuseProofOblig
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle dumping invariant (valid if init state is all-0) [default = %s]
\n
"
,
pPars
->
fDumpInv
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-g : toggle skipping expensive generalization step [default = %s]
\n
"
,
pPars
->
fSkipGeneral
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-o : toggle using property output as inductive hypothesis [default = %s]
\n
"
,
pPars
->
fUsePropOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing optimization summary [default = %s]
\n
"
,
pPars
->
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing detailed stats default = %s]
\n
"
,
pPars
->
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-z : toggle suppressing report about solved outputs [default = %s]
\n
"
,
pPars
->
fNotVerbose
?
"yes"
:
"no"
);
src/proof/pdr/pdr.h
View file @
1d26d58a
...
...
@@ -63,6 +63,7 @@ struct Pdr_Par_t_
int
fSolveAll
;
// do not stop when found a SAT output
int
fStoreCex
;
// enable storing counter-examples in MO mode
int
fUseBridge
;
// use bridge interface
int
fUsePropOut
;
// use property output
int
nFailOuts
;
// the number of failed outputs
int
nDropOuts
;
// the number of timed out outputs
int
nProveOuts
;
// the number of proved outputs
...
...
src/proof/pdr/pdrCore.c
View file @
1d26d58a
...
...
@@ -61,6 +61,7 @@ void Pdr_ManSetDefaultParams( Pdr_Par_t * pPars )
pPars
->
fMonoCnf
=
0
;
// monolythic CNF
pPars
->
fDumpInv
=
0
;
// dump inductive invariant
pPars
->
fShortest
=
0
;
// forces bug traces to be shortest
pPars
->
fUsePropOut
=
1
;
// use property output
pPars
->
fVerbose
=
0
;
// verbose output
pPars
->
fVeryVerbose
=
0
;
// very verbose output
pPars
->
fNotVerbose
=
0
;
// not printing line-by-line progress
...
...
src/proof/pdr/pdrSat.c
View file @
1d26d58a
...
...
@@ -179,6 +179,8 @@ void Pdr_ManSetPropertyOutput( Pdr_Man_t * p, int k )
sat_solver
*
pSat
;
Aig_Obj_t
*
pObj
;
int
Lit
,
RetValue
,
i
;
if
(
!
p
->
pPars
->
fUsePropOut
)
return
;
pSat
=
Pdr_ManSolver
(
p
,
k
);
Saig_ManForEachPo
(
p
->
pAig
,
pObj
,
i
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment