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
49c5beef
Commit
49c5beef
authored
Feb 11, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable timeframe abstraction.
parent
95d7b478
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
src/aig/gia/gia.h
+2
-2
src/aig/gia/giaAbsVta.c
+5
-5
src/base/abci/abc.c
+14
-14
No files found.
src/aig/gia/gia.h
View file @
49c5beef
...
...
@@ -201,9 +201,9 @@ struct Gia_ParSim_t_
typedef
struct
Gia_ParVta_t_
Gia_ParVta_t
;
struct
Gia_ParVta_t_
{
int
nFramesStart
;
// starting frame
int
nFramesMax
;
// maximum frames
int
nFramesOver
;
// overlap frames
int
nFramesStart
;
// starting frame
int
nFramesPast
;
// overlap frames
int
nConfLimit
;
// conflict limit
int
nTimeOut
;
// timeout in seconds
int
nRatioMin
;
// stop when less than this % of object is abstracted
...
...
src/aig/gia/giaAbsVta.c
View file @
49c5beef
...
...
@@ -145,13 +145,13 @@ extern void Vga_ManAddClausesOne( Vta_Man_t * p, int iObj, int iFrame );
void
Gia_VtaSetDefaultParams
(
Gia_ParVta_t
*
p
)
{
memset
(
p
,
0
,
sizeof
(
Gia_ParVta_t
)
);
p
->
nFramesStart
=
5
;
// starting frame
p
->
nFramesOver
=
4
;
// overlap frames
p
->
nFramesMax
=
0
;
// maximum frames
p
->
nFramesStart
=
5
;
// starting frame
p
->
nFramesPast
=
4
;
// overlap frames
p
->
nConfLimit
=
0
;
// conflict limit
p
->
nTimeOut
=
0
;
// timeout in seconds
p
->
nRatioMin
=
10
;
// stop when less than this % of object is abstracted
p
->
fUseTermVars
=
0
;
// use terminal variables
p
->
fUseTermVars
=
1
;
// use terminal variables
p
->
fVerbose
=
0
;
// verbose flag
p
->
iFrame
=
-
1
;
// the number of frames covered
}
...
...
@@ -1409,7 +1409,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
{
printf
(
"Running variable-timeframe abstraction (VTA) with the following parameters:
\n
"
);
printf
(
"FrameStart = %d FramePast = %d FrameMax = %d Conf = %d Timeout = %d. RatioMin = %d %%.
\n
"
,
p
->
pPars
->
nFramesStart
,
p
->
pPars
->
nFrames
Over
,
p
->
pPars
->
nFramesMax
,
p
->
pPars
->
nFramesStart
,
p
->
pPars
->
nFrames
Past
,
p
->
pPars
->
nFramesMax
,
p
->
pPars
->
nConfLimit
,
p
->
pPars
->
nTimeOut
,
pPars
->
nRatioMin
);
printf
(
"Frame Abs Confl Cex Core F0 F1 F2 F3 ...
\n
"
);
}
...
...
@@ -1435,7 +1435,7 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
sat_solver2_bookmark
(
p
->
pSat
);
Vec_IntClear
(
p
->
vAddedNew
);
// load the time frame
for
(
i
=
1
;
i
<=
Abc_MinInt
(
p
->
pPars
->
nFrames
Over
,
p
->
pPars
->
nFramesStart
);
i
++
)
for
(
i
=
1
;
i
<=
Abc_MinInt
(
p
->
pPars
->
nFrames
Past
,
p
->
pPars
->
nFramesStart
);
i
++
)
Vga_ManLoadSlice
(
p
,
(
Vec_Int_t
*
)
Vec_PtrEntry
(
p
->
vCores
,
f
-
i
),
i
);
// iterate as long as there are counter-examples
for
(
i
=
0
;
;
i
++
)
...
...
src/base/abci/abc.c
View file @
49c5beef
...
...
@@ -26711,30 +26711,30 @@ int Abc_CommandAbc9Vta( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Gia_VtaSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
SF
PCTRtvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
FS
PCTRtvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'
S
'
:
case
'
F
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
S
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
F
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nFrames
Start
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nFrames
Max
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nFrames
Start
<
0
)
if
(
pPars
->
nFrames
Max
<
0
)
goto
usage
;
break
;
case
'
F
'
:
case
'
S
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
F
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
S
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nFrames
Max
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nFrames
Start
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nFrames
Max
<
0
)
if
(
pPars
->
nFrames
Start
<
0
)
goto
usage
;
break
;
case
'P'
:
...
...
@@ -26743,9 +26743,9 @@ int Abc_CommandAbc9Vta( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Command line switch
\"
-P
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nFrames
Over
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nFrames
Past
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nFrames
Over
<
0
)
if
(
pPars
->
nFrames
Past
<
0
)
goto
usage
;
break
;
case
'C'
:
...
...
@@ -26824,11 +26824,11 @@ int Abc_CommandAbc9Vta( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &vta [-
SF
PCTR num] [-tvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &vta [-
FS
PCTR num] [-tvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
refines abstracted object map with proof-based abstraction
\n
"
);
Abc_Print
(
-
2
,
"
\t
-S num : the starting time frame (0=unused) [default = %d]
\n
"
,
pPars
->
nFramesStart
);
Abc_Print
(
-
2
,
"
\t
-F num : the max number of timeframes to unroll [default = %d]
\n
"
,
pPars
->
nFramesMax
);
Abc_Print
(
-
2
,
"
\t
-P num : the number of previous frames for UNSAT core [default = %d]
\n
"
,
pPars
->
nFramesOver
);
Abc_Print
(
-
2
,
"
\t
-S num : the starting time frame (0=unused) [default = %d]
\n
"
,
pPars
->
nFramesStart
);
Abc_Print
(
-
2
,
"
\t
-P num : the number of previous frames for UNSAT core [default = %d]
\n
"
,
pPars
->
nFramesPast
);
Abc_Print
(
-
2
,
"
\t
-C num : the max number of SAT solver conflicts (0=unused) [default = %d]
\n
"
,
pPars
->
nConfLimit
);
Abc_Print
(
-
2
,
"
\t
-T num : an approximate timeout, in seconds [default = %d]
\n
"
,
pPars
->
nTimeOut
);
Abc_Print
(
-
2
,
"
\t
-R num : stop when less than this %% of object is abstracted (0<=num<=100) [default = %d]
\n
"
,
pPars
->
nRatioMin
);
...
...
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