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
1531dd8e
Commit
1531dd8e
authored
Mar 31, 2017
by
Yen-Sheng Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
%pdra: added an option -t for disabling trace reuse
parent
04bd8631
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
src/base/wlc/wlc.h
+1
-0
src/base/wlc/wlcAbs.c
+1
-1
src/base/wlc/wlcCom.c
+6
-2
src/base/wlc/wlcNtk.c
+1
-0
src/proof/pdr/pdrIncr.c
+3
-0
No files found.
src/base/wlc/wlc.h
View file @
1531dd8e
...
@@ -182,6 +182,7 @@ struct Wlc_Par_t_
...
@@ -182,6 +182,7 @@ struct Wlc_Par_t_
int
fProofUsePPI
;
// Use PPI values in PBR
int
fProofUsePPI
;
// Use PPI values in PBR
int
fUseBmc3
;
// Run BMC3 in parallel
int
fUseBmc3
;
// Run BMC3 in parallel
int
fShrinkAbs
;
// Shrink Abs with BMC
int
fShrinkAbs
;
// Shrink Abs with BMC
int
fShrinkScratch
;
// Restart pdr from scratch after shrinking
int
fVerbose
;
// verbose output
int
fVerbose
;
// verbose output
int
fPdrVerbose
;
// verbose output
int
fPdrVerbose
;
// verbose output
};
};
...
...
src/base/wlc/wlcAbs.c
View file @
1531dd8e
...
@@ -1511,7 +1511,7 @@ int Wla_ManSolve( Wla_Man_t * pWla, Aig_Man_t * pAig )
...
@@ -1511,7 +1511,7 @@ int Wla_ManSolve( Wla_Man_t * pWla, Aig_Man_t * pAig )
assert
(
Vec_VecSize
(
pWla
->
vClauses
)
>=
2
);
assert
(
Vec_VecSize
(
pWla
->
vClauses
)
>=
2
);
if
(
pWla
->
fNewAbs
)
if
(
pWla
->
fNewAbs
)
IPdr_ManRebuildClauses
(
pPdr
,
pWla
->
vClauses
);
IPdr_ManRebuildClauses
(
pPdr
,
pWla
->
pPars
->
fShrinkScratch
?
NULL
:
pWla
->
vClauses
);
else
else
IPdr_ManRestoreClauses
(
pPdr
,
pWla
->
vClauses
,
NULL
);
IPdr_ManRestoreClauses
(
pPdr
,
pWla
->
vClauses
,
NULL
);
...
...
src/base/wlc/wlcCom.c
View file @
1531dd8e
...
@@ -464,7 +464,7 @@ int Abc_CommandPdrAbs( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -464,7 +464,7 @@ int Abc_CommandPdrAbs( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
int
c
;
Wlc_ManSetDefaultParams
(
pPars
);
Wlc_ManSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"AMXFILabrcdipqmsuxvwh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"AMXFILabrcdipqms
t
uxvwh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
...
@@ -567,6 +567,9 @@ int Abc_CommandPdrAbs( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -567,6 +567,9 @@ int Abc_CommandPdrAbs( Abc_Frame_t * pAbc, int argc, char ** argv )
case
's'
:
case
's'
:
pPars
->
fShrinkAbs
^=
1
;
pPars
->
fShrinkAbs
^=
1
;
break
;
break
;
case
't'
:
pPars
->
fShrinkScratch
^=
1
;
break
;
case
'u'
:
case
'u'
:
pPars
->
fCheckCombUnsat
^=
1
;
pPars
->
fCheckCombUnsat
^=
1
;
break
;
break
;
...
@@ -590,7 +593,7 @@ int Abc_CommandPdrAbs( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -590,7 +593,7 @@ int Abc_CommandPdrAbs( Abc_Frame_t * pAbc, int argc, char ** argv )
Wlc_NtkPdrAbs
(
pNtk
,
pPars
);
Wlc_NtkPdrAbs
(
pNtk
,
pPars
);
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: %%pdra [-AMXFIL num] [-abrcdipqmxsuvwh]
\n
"
);
Abc_Print
(
-
2
,
"usage: %%pdra [-AMXFIL num] [-abrcdipqmxs
t
uvwh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
abstraction for word-level networks
\n
"
);
Abc_Print
(
-
2
,
"
\t
abstraction for word-level networks
\n
"
);
Abc_Print
(
-
2
,
"
\t
-A num : minimum bit-width of an adder/subtractor to abstract [default = %d]
\n
"
,
pPars
->
nBitsAdd
);
Abc_Print
(
-
2
,
"
\t
-A num : minimum bit-width of an adder/subtractor to abstract [default = %d]
\n
"
,
pPars
->
nBitsAdd
);
Abc_Print
(
-
2
,
"
\t
-M num : minimum bit-width of a multiplier to abstract [default = %d]
\n
"
,
pPars
->
nBitsMul
);
Abc_Print
(
-
2
,
"
\t
-M num : minimum bit-width of a multiplier to abstract [default = %d]
\n
"
,
pPars
->
nBitsMul
);
...
@@ -606,6 +609,7 @@ usage:
...
@@ -606,6 +609,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-d : toggle using another way of creating abstractions [default = %s]
\n
"
,
pPars
->
fAbs2
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle using another way of creating abstractions [default = %s]
\n
"
,
pPars
->
fAbs2
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-i : toggle using PPI values in proof-based refinement [default = %s]
\n
"
,
pPars
->
fProofUsePPI
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-i : toggle using PPI values in proof-based refinement [default = %s]
\n
"
,
pPars
->
fProofUsePPI
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle shrinking abstractions with BMC [default = %s]
\n
"
,
pPars
->
fShrinkAbs
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle shrinking abstractions with BMC [default = %s]
\n
"
,
pPars
->
fShrinkAbs
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggle restarting pdr from scratch after shrinking abstractions with BMC [default = %s]
\n
"
,
pPars
->
fShrinkScratch
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-u : toggle checking combinationally unsat [default = %s]
\n
"
,
pPars
->
fCheckCombUnsat
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-u : toggle checking combinationally unsat [default = %s]
\n
"
,
pPars
->
fCheckCombUnsat
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-p : toggle pushing clauses in the reloaded trace [default = %s]
\n
"
,
pPars
->
fPushClauses
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-p : toggle pushing clauses in the reloaded trace [default = %s]
\n
"
,
pPars
->
fPushClauses
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-q : toggle running bmc3 in parallel for CEX [default = %s]
\n
"
,
pPars
->
fUseBmc3
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-q : toggle running bmc3 in parallel for CEX [default = %s]
\n
"
,
pPars
->
fUseBmc3
?
"yes"
:
"no"
);
...
...
src/base/wlc/wlcNtk.c
View file @
1531dd8e
...
@@ -126,6 +126,7 @@ void Wlc_ManSetDefaultParams( Wlc_Par_t * pPars )
...
@@ -126,6 +126,7 @@ void Wlc_ManSetDefaultParams( Wlc_Par_t * pPars )
pPars
->
fProofUsePPI
=
0
;
// Use PPI values in PBR
pPars
->
fProofUsePPI
=
0
;
// Use PPI values in PBR
pPars
->
fUseBmc3
=
0
;
// Run BMC3 in parallel
pPars
->
fUseBmc3
=
0
;
// Run BMC3 in parallel
pPars
->
fShrinkAbs
=
0
;
// Shrink Abs with BMC
pPars
->
fShrinkAbs
=
0
;
// Shrink Abs with BMC
pPars
->
fShrinkScratch
=
0
;
// Restart pdr from scratch after shrinking
pPars
->
fVerbose
=
0
;
// verbose output`
pPars
->
fVerbose
=
0
;
// verbose output`
pPars
->
fPdrVerbose
=
0
;
// show verbose PDR output
pPars
->
fPdrVerbose
=
0
;
// show verbose PDR output
}
}
...
...
src/proof/pdr/pdrIncr.c
View file @
1531dd8e
...
@@ -261,6 +261,9 @@ int IPdr_ManRebuildClauses( Pdr_Man_t * p, Vec_Vec_t * vClauses )
...
@@ -261,6 +261,9 @@ int IPdr_ManRebuildClauses( Pdr_Man_t * p, Vec_Vec_t * vClauses )
int
RetValue
=
-
1
;
int
RetValue
=
-
1
;
int
nCubes
=
0
;
int
nCubes
=
0
;
if
(
vClauses
==
NULL
)
return
RetValue
;
assert
(
Vec_VecSize
(
vClauses
)
>=
2
);
assert
(
Vec_VecSize
(
vClauses
)
>=
2
);
assert
(
Vec_VecSize
(
p
->
vClauses
)
==
0
);
assert
(
Vec_VecSize
(
p
->
vClauses
)
==
0
);
Vec_VecExpand
(
p
->
vClauses
,
1
);
Vec_VecExpand
(
p
->
vClauses
,
1
);
...
...
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