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
5e91f132
Commit
5e91f132
authored
Jan 28, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable timeframe abstraction.
parent
095bf1c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
src/aig/gia/giaAbsVta.c
+5
-4
src/aig/gia/giaMan.c
+3
-3
No files found.
src/aig/gia/giaAbsVta.c
View file @
5e91f132
...
@@ -1161,10 +1161,10 @@ void Vta_ManAbsPrintFrame( Vta_Man_t * p, Vec_Int_t * vCore, int nFrames, int nC
...
@@ -1161,10 +1161,10 @@ void Vta_ManAbsPrintFrame( Vta_Man_t * p, Vec_Int_t * vCore, int nFrames, int nC
// printf( "%5d%5d", pCountAll[0], pCountUni[0] );
// printf( "%5d%5d", pCountAll[0], pCountUni[0] );
printf
(
"%6d"
,
p
->
nSeenGla
);
printf
(
"%6d"
,
p
->
nSeenGla
);
printf
(
"%5d"
,
nCexes
);
printf
(
"%5d"
,
nCexes
);
printf
(
"%
6
d"
,
pCountAll
[
0
]
);
printf
(
"%
7
d"
,
pCountAll
[
0
]
);
for
(
k
=
0
;
k
<
nFrames
;
k
++
)
for
(
k
=
0
;
k
<
nFrames
;
k
++
)
// printf( "%5d%5d ", pCountAll[k+1], pCountUni[k+1] );
// printf( "%5d%5d ", pCountAll[k+1], pCountUni[k+1] );
printf
(
"%
4
d"
,
pCountAll
[
k
+
1
]
);
printf
(
"%
5
d"
,
pCountAll
[
k
+
1
]
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
fflush
(
stdout
);
fflush
(
stdout
);
}
}
...
@@ -1356,7 +1356,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
...
@@ -1356,7 +1356,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
p
=
Vga_ManStart
(
pAig
,
pPars
);
p
=
Vga_ManStart
(
pAig
,
pPars
);
// perform initial abstraction
// perform initial abstraction
if
(
p
->
pPars
->
fVerbose
)
if
(
p
->
pPars
->
fVerbose
)
printf
(
"Frame
Confl One Cex All F0 F1 F2 F3
...
\n
"
);
printf
(
"Frame
Confl One Cex All F0 F1 F2 F3
...
\n
"
);
for
(
f
=
0
;
!
p
->
pPars
->
nFramesMax
||
f
<
p
->
pPars
->
nFramesMax
;
f
++
)
for
(
f
=
0
;
!
p
->
pPars
->
nFramesMax
||
f
<
p
->
pPars
->
nFramesMax
;
f
++
)
{
{
if
(
p
->
pPars
->
fVerbose
)
if
(
p
->
pPars
->
fVerbose
)
...
@@ -1369,6 +1369,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
...
@@ -1369,6 +1369,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
i
=
0
;
i
=
0
;
if
(
f
<
p
->
pPars
->
nFramesStart
)
if
(
f
<
p
->
pPars
->
nFramesStart
)
{
{
// printf( " Adding %8d ", Vec_IntSize(Vec_PtrEntry(p->vFrames, f)) );
Vga_ManAddClausesOne
(
p
,
0
,
f
);
Vga_ManAddClausesOne
(
p
,
0
,
f
);
Vga_ManLoadSlice
(
p
,
(
Vec_Int_t
*
)
Vec_PtrEntry
(
p
->
vFrames
,
f
),
0
);
Vga_ManLoadSlice
(
p
,
(
Vec_Int_t
*
)
Vec_PtrEntry
(
p
->
vFrames
,
f
),
0
);
}
}
...
@@ -1421,7 +1422,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
...
@@ -1421,7 +1422,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
vCore
=
Vta_ManUnsatCore
(
Vga_ManGetOutLit
(
p
,
f
),
p
->
vCla2Var
,
p
->
pSat
,
pPars
->
nConfLimit
,
p
->
pPars
->
fVerbose
,
&
Status
,
&
nConfls
);
vCore
=
Vta_ManUnsatCore
(
Vga_ManGetOutLit
(
p
,
f
),
p
->
vCla2Var
,
p
->
pSat
,
pPars
->
nConfLimit
,
p
->
pPars
->
fVerbose
,
&
Status
,
&
nConfls
);
p
->
timeUnsat
+=
clock
()
-
clk2
;
p
->
timeUnsat
+=
clock
()
-
clk2
;
if
(
p
->
pPars
->
fVerbose
)
if
(
p
->
pPars
->
fVerbose
)
printf
(
"%
5
d"
,
nConfls
);
printf
(
"%
6
d"
,
nConfls
);
assert
(
(
vCore
!=
NULL
)
==
(
Status
==
1
)
);
assert
(
(
vCore
!=
NULL
)
==
(
Status
==
1
)
);
if
(
Status
==
-
1
)
// resource limit is reached
if
(
Status
==
-
1
)
// resource limit is reached
break
;
break
;
...
...
src/aig/gia/giaMan.c
View file @
5e91f132
...
@@ -278,7 +278,7 @@ void Gia_ManPrintObjClasses( Gia_Man_t * p )
...
@@ -278,7 +278,7 @@ void Gia_ManPrintObjClasses( Gia_Man_t * p )
nObjMask
=
(
1
<<
nObjBits
)
-
1
;
nObjMask
=
(
1
<<
nObjBits
)
-
1
;
assert
(
Gia_ManObjNum
(
p
)
<=
nObjMask
);
assert
(
Gia_ManObjNum
(
p
)
<=
nObjMask
);
// print info about frames
// print info about frames
printf
(
"Frame
All F0 F1 F2
F3 ...
\n
"
);
printf
(
"Frame
All F0 F1 F2
F3 ...
\n
"
);
for
(
i
=
0
;
i
<
nFrames
;
i
++
)
for
(
i
=
0
;
i
<
nFrames
;
i
++
)
{
{
iStart
=
Vec_IntEntry
(
vAbs
,
i
+
1
);
iStart
=
Vec_IntEntry
(
vAbs
,
i
+
1
);
...
@@ -302,11 +302,11 @@ void Gia_ManPrintObjClasses( Gia_Man_t * p )
...
@@ -302,11 +302,11 @@ void Gia_ManPrintObjClasses( Gia_Man_t * p )
assert
(
pCountAll
[
0
]
==
(
iStop
-
iStart
)
);
assert
(
pCountAll
[
0
]
==
(
iStop
-
iStart
)
);
// printf( "%5d%5d ", pCountAll[0], pCountUni[0] );
// printf( "%5d%5d ", pCountAll[0], pCountUni[0] );
printf
(
"%3d :"
,
i
);
printf
(
"%3d :"
,
i
);
printf
(
"%
6
d"
,
pCountAll
[
0
]
);
printf
(
"%
7
d"
,
pCountAll
[
0
]
);
for
(
k
=
0
;
k
<
nFrames
;
k
++
)
for
(
k
=
0
;
k
<
nFrames
;
k
++
)
if
(
k
<=
i
)
if
(
k
<=
i
)
// printf( "%5d%5d ", pCountAll[k+1], pCountUni[k+1] );
// printf( "%5d%5d ", pCountAll[k+1], pCountUni[k+1] );
printf
(
"%
4
d"
,
pCountAll
[
k
+
1
]
);
printf
(
"%
5
d"
,
pCountAll
[
k
+
1
]
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
assert
(
iStop
==
Vec_IntSize
(
vAbs
)
);
assert
(
iStop
==
Vec_IntSize
(
vAbs
)
);
...
...
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