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
a3a1810a
Commit
a3a1810a
authored
Jun 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improving printouts in &vta and &gla.
parent
051cc64e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/aig/gia/giaAbsGla.c
+6
-3
src/aig/gia/giaAbsVta.c
+8
-6
No files found.
src/aig/gia/giaAbsGla.c
View file @
a3a1810a
...
...
@@ -370,6 +370,9 @@ Gla_Man_t * Gla_ManStart( Gia_Man_t * pGia, Gia_ParVta_t * pPars )
void
Gla_ManStop
(
Gla_Man_t
*
p
)
{
Gla_Obj_t
*
pGla
;
// if ( p->pPars->fVerbose )
Abc_Print
(
1
,
"SAT solver: Variables = %d. Clauses = %d. Conflicts = %d. Cexes = %d.
\n
"
,
sat_solver2_nvars
(
p
->
pSat
),
sat_solver2_nclauses
(
p
->
pSat
),
sat_solver2_nconflicts
(
p
->
pSat
),
p
->
nCexes
);
Gla_ManForEachObj
(
p
,
pGla
)
ABC_FREE
(
pGla
->
vFrames
.
pArray
);
Cnf_DataFree
(
p
->
pCnf
);
...
...
@@ -750,8 +753,8 @@ void Gla_ManAbsPrintFrame( Gla_Man_t * p, int nCoreSize, int nFrames, int nConfl
Abc_Print
(
1
,
"%5c"
,
'-'
);
else
Abc_Print
(
1
,
"%5d"
,
nCexes
);
Abc_Print
(
1
,
" %6d"
,
nCoreSize
>
0
?
nCoreSize
:
0
);
Abc_Print
(
1
,
" %9d"
,
sat_solver2_nvars
(
p
->
pSat
)
);
Abc_Print
(
1
,
" %6d"
,
nCoreSize
>
0
?
nCoreSize
:
0
);
Abc_Print
(
1
,
"%9.2f sec"
,
(
float
)(
Time
)
/
(
float
)(
CLOCKS_PER_SEC
)
);
Abc_Print
(
1
,
"%s"
,
nCoreSize
>
0
?
"
\n
"
:
"
\r
"
);
fflush
(
stdout
);
...
...
@@ -866,10 +869,10 @@ int Gia_GlaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
// perform initial abstraction
if
(
p
->
pPars
->
fVerbose
)
{
Abc_Print
(
1
,
"Running
variable-timeframe abstraction (VT
A) with the following parameters:
\n
"
);
Abc_Print
(
1
,
"Running
gate-level abstraction (GL
A) with the following parameters:
\n
"
);
Abc_Print
(
1
,
"FrameStart = %d FrameMax = %d Conf = %d Timeout = %d. RatioMin = %d %%.
\n
"
,
p
->
pPars
->
nFramesStart
,
p
->
pPars
->
nFramesMax
,
p
->
pPars
->
nConfLimit
,
p
->
pPars
->
nTimeOut
,
pPars
->
nRatioMin
);
Abc_Print
(
1
,
"Frame %% Abs PPI FF AND Confl Cex
Core SatVar
Time
\n
"
);
Abc_Print
(
1
,
"Frame %% Abs PPI FF AND Confl Cex
SatVar Core
Time
\n
"
);
}
for
(
f
=
i
=
0
;
!
p
->
pPars
->
nFramesMax
||
f
<
p
->
pPars
->
nFramesMax
;
f
++
)
{
...
...
src/aig/gia/giaAbsVta.c
View file @
a3a1810a
...
...
@@ -1181,6 +1181,7 @@ int Vta_ManAbsPrintFrame( Vta_Man_t * p, Vec_Int_t * vCore, int nFrames, int nCo
// Abc_Print( 1, "%5d%5d", pCountAll[0], pCountUni[0] );
Abc_Print
(
1
,
"%3d :"
,
nFrames
-
1
);
Abc_Print
(
1
,
"%4d"
,
Abc_MinInt
(
100
,
100
*
p
->
nSeenGla
/
(
Gia_ManRegNum
(
p
->
pGia
)
+
Gia_ManAndNum
(
p
->
pGia
)
+
1
))
);
Abc_Print
(
1
,
"%6d"
,
p
->
nSeenGla
);
Abc_Print
(
1
,
"%4d"
,
Abc_MinInt
(
100
,
100
*
p
->
nSeenAll
/
(
p
->
nSeenGla
*
nFrames
))
);
Abc_Print
(
1
,
"%8d"
,
nConfls
);
...
...
@@ -1188,10 +1189,11 @@ int Vta_ManAbsPrintFrame( Vta_Man_t * p, Vec_Int_t * vCore, int nFrames, int nCo
Abc_Print
(
1
,
"%5c"
,
'-'
);
else
Abc_Print
(
1
,
"%5d"
,
nCexes
);
Abc_Print
(
1
,
" %9d"
,
sat_solver2_nvars
(
p
->
pSat
)
);
if
(
vCore
==
NULL
)
{
Abc_Print
(
1
,
" ..."
);
for
(
k
=
0
;
k
<
10
;
k
++
)
for
(
k
=
0
;
k
<
7
;
k
++
)
Abc_Print
(
1
,
" "
);
Abc_Print
(
1
,
"%9.2f sec"
,
(
float
)(
Time
)
/
(
float
)(
CLOCKS_PER_SEC
)
);
Abc_Print
(
1
,
"
\r
"
);
...
...
@@ -1199,19 +1201,19 @@ int Vta_ManAbsPrintFrame( Vta_Man_t * p, Vec_Int_t * vCore, int nFrames, int nCo
else
{
Abc_Print
(
1
,
"%7d"
,
pCountAll
[
0
]
);
if
(
nFrames
>
10
)
if
(
nFrames
>
7
)
{
for
(
k
=
0
;
k
<
4
;
k
++
)
for
(
k
=
0
;
k
<
3
;
k
++
)
Abc_Print
(
1
,
"%5d"
,
pCountAll
[
k
+
1
]
);
Abc_Print
(
1
,
" ..."
);
for
(
k
=
nFrames
-
5
;
k
<
nFrames
;
k
++
)
for
(
k
=
nFrames
-
3
;
k
<
nFrames
;
k
++
)
Abc_Print
(
1
,
"%5d"
,
pCountAll
[
k
+
1
]
);
}
else
{
for
(
k
=
0
;
k
<
nFrames
;
k
++
)
Abc_Print
(
1
,
"%5d"
,
pCountAll
[
k
+
1
]
);
for
(
k
=
nFrames
;
k
<
10
;
k
++
)
for
(
k
=
nFrames
;
k
<
7
;
k
++
)
Abc_Print
(
1
,
" "
);
}
Abc_Print
(
1
,
"%9.2f sec"
,
(
float
)(
Time
)
/
(
float
)(
CLOCKS_PER_SEC
)
);
...
...
@@ -1497,7 +1499,7 @@ int Gia_VtaPerformInt( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
Abc_Print
(
1
,
"FrameStart = %d FramePast = %d FrameMax = %d Conf = %d Timeout = %d. RatioMin = %d %%.
\n
"
,
p
->
pPars
->
nFramesStart
,
p
->
pPars
->
nFramesPast
,
p
->
pPars
->
nFramesMax
,
p
->
pPars
->
nConfLimit
,
p
->
pPars
->
nTimeOut
,
pPars
->
nRatioMin
);
Abc_Print
(
1
,
"Frame
Abs %% Confl Cex Core F0 F1 F2 F3
...
\n
"
);
Abc_Print
(
1
,
"Frame
%% Abs %% Confl Cex SatVar Core F0 F1 F2
...
\n
"
);
}
for
(
f
=
i
=
0
;
!
p
->
pPars
->
nFramesMax
||
f
<
p
->
pPars
->
nFramesMax
;
f
++
)
{
...
...
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