Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
abc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kestrel Collaboration
Kestrel Tooling
abc
Commits
d556ad65
Commit
d556ad65
authored
Sep 06, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding switch &cec -w to print SAT solver stats.
parent
fe968e9d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
src/base/abci/abc.c
src/base/abci/abc.c
+6
-2
src/proof/cec/cecCec.c
src/proof/cec/cecCec.c
+1
-0
src/proof/cec/cecCore.c
src/proof/cec/cecCore.c
+1
-1
src/proof/cec/cecMan.c
src/proof/cec/cecMan.c
+1
-0
No files found.
src/base/abci/abc.c
View file @
d556ad65
...
...
@@ -36972,7 +36972,7 @@ int Abc_CommandAbc9Cec( Abc_Frame_t * pAbc, int argc, char ** argv )
int c, nArgcNew, fMiter = 0, fDualOutput = 0, fDumpMiter = 0;
Cec_ManCecSetDefaultParams( pPars );
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "CTnmdasvh" ) ) != EOF )
while ( ( c = Extra_UtilGetopt( argc, argv, "CTnmdasv
w
h" ) ) != EOF )
{
switch ( c )
{
...
...
@@ -37016,6 +37016,9 @@ int Abc_CommandAbc9Cec( Abc_Frame_t * pAbc, int argc, char ** argv )
case 'v':
pPars->fVerbose ^= 1;
break;
case 'w':
pPars->fVeryVerbose ^= 1;
break;
case 'h':
goto usage;
default:
...
...
@@ -37171,7 +37174,7 @@ int Abc_CommandAbc9Cec( Abc_Frame_t * pAbc, int argc, char ** argv )
return 0;
usage:
Abc_Print( -2, "usage: &cec [-CT num] [-nmdasvh]\n" );
Abc_Print( -2, "usage: &cec [-CT num] [-nmdasv
w
h]\n" );
Abc_Print( -2, "\t new combinational equivalence checker\n" );
Abc_Print( -2, "\t-C num : the max number of conflicts at a node [default = %d]\n", pPars->nBTLimit );
Abc_Print( -2, "\t-T num : approximate runtime limit in seconds [default = %d]\n", pPars->TimeLimit );
...
...
@@ -37181,6 +37184,7 @@ usage:
Abc_Print( -2, "\t-a : toggle writing dual-output miter [default = %s]\n", fDumpMiter? "yes":"no");
Abc_Print( -2, "\t-s : toggle silent operation [default = %s]\n", pPars->fSilent ? "yes":"no");
Abc_Print( -2, "\t-v : toggle verbose output [default = %s]\n", pPars->fVerbose? "yes":"no");
Abc_Print( -2, "\t-w : toggle printing SAT solver statistics [default = %s]\n", pPars->fVeryVerbose? "yes":"no");
Abc_Print( -2, "\t-h : print the command usage\n");
return 1;
}
src/proof/cec/cecCec.c
View file @
d556ad65
...
...
@@ -360,6 +360,7 @@ int Cec_ManVerify( Gia_Man_t * pInit, Cec_ParCec_t * pPars )
pParsFra
->
nBTLimit
=
pPars
->
nBTLimit
;
pParsFra
->
TimeLimit
=
pPars
->
TimeLimit
;
pParsFra
->
fVerbose
=
pPars
->
fVerbose
;
pParsFra
->
fVeryVerbose
=
pPars
->
fVeryVerbose
;
pParsFra
->
fCheckMiter
=
1
;
pParsFra
->
fDualOut
=
1
;
pNew
=
Cec_ManSatSweeping
(
p
,
pParsFra
,
pPars
->
fSilent
);
...
...
src/proof/cec/cecCore.c
View file @
d556ad65
...
...
@@ -385,7 +385,7 @@ Gia_Man_t * Cec_ManSatSweeping( Gia_Man_t * pAig, Cec_ParFra_t * pPars, int fSil
pParsSat
->
fVerbose
=
pPars
->
fVeryVerbose
;
// simulation patterns
pPat
=
Cec_ManPatStart
();
pPat
->
fVerbose
=
pPars
->
fVeryVerbose
;
//
pPat->fVerbose = pPars->fVeryVerbose;
// start equivalence classes
clk
=
Abc_Clock
();
...
...
src/proof/cec/cecMan.c
View file @
d556ad65
...
...
@@ -73,6 +73,7 @@ Cec_ManSat_t * Cec_ManSatCreate( Gia_Man_t * pAig, Cec_ParSat_t * pPars )
***********************************************************************/
void
Cec_ManSatPrintStats
(
Cec_ManSat_t
*
p
)
{
printf
(
"SAT solver statistics:
\n
"
);
Abc_Print
(
1
,
"CO = %8d "
,
Gia_ManCoNum
(
p
->
pAig
)
);
Abc_Print
(
1
,
"AND = %8d "
,
Gia_ManAndNum
(
p
->
pAig
)
);
Abc_Print
(
1
,
"Conf = %5d "
,
p
->
pPars
->
nBTLimit
);
...
...
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