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
7c7d5277
Commit
7c7d5277
authored
May 09, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing per-output runtime limit to be in miliseconds.
parent
68566713
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
30 deletions
+30
-30
src/base/abci/abc.c
+26
-26
src/proof/pdr/pdrCore.c
+1
-1
src/proof/pdr/pdrMan.c
+1
-1
src/sat/bmc/bmcBmc3.c
+2
-2
No files found.
src/base/abci/abc.c
View file @
7c7d5277
...
...
@@ -21051,7 +21051,7 @@ int Abc_CommandBmc3( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Saig_ParBmcSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"SFT
GH
CDJILaxdruvzh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"SFT
HG
CDJILaxdruvzh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -21088,26 +21088,26 @@ int Abc_CommandBmc3( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
nTimeOut
<
0
)
goto
usage
;
break
;
case
'
G
'
:
case
'
H
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
G
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
H
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nTimeOut
Gap
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nTimeOut
One
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nTimeOut
Gap
<
0
)
if
(
pPars
->
nTimeOut
One
<
0
)
goto
usage
;
break
;
case
'
H
'
:
case
'
G
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
H
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
G
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nTimeOut
One
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nTimeOut
Gap
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nTimeOut
One
<
0
)
if
(
pPars
->
nTimeOut
Gap
<
0
)
goto
usage
;
break
;
case
'C'
:
...
...
@@ -21240,13 +21240,13 @@ int Abc_CommandBmc3( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: bmc3 [-SFT
GH
CDJI num] [-L file] [-axduvzh]
\n
"
);
Abc_Print
(
-
2
,
"usage: bmc3 [-SFT
HG
CDJI num] [-L file] [-axduvzh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs bounded model checking with dynamic unrolling
\n
"
);
Abc_Print
(
-
2
,
"
\t
-S num : the starting time frame [default = %d]
\n
"
,
pPars
->
nStart
);
Abc_Print
(
-
2
,
"
\t
-F num : the max number of time frames (0 = unused) [default = %d]
\n
"
,
pPars
->
nFramesMax
);
Abc_Print
(
-
2
,
"
\t
-T num :
approximate runtime limit in seconds [default = %d]
\n
"
,
pPars
->
nTimeOut
);
Abc_Print
(
-
2
,
"
\t
-
G num : approximate runtime gap since the last CEX [default = %d]
\n
"
,
pPars
->
nTimeOutGap
);
Abc_Print
(
-
2
,
"
\t
-
H num : approximate runtime per output (with
\"
-a
\"
) [default = %d]
\n
"
,
pPars
->
nTimeOutOne
);
Abc_Print
(
-
2
,
"
\t
-T num :
runtime limit, in seconds [default = %d]
\n
"
,
pPars
->
nTimeOut
);
Abc_Print
(
-
2
,
"
\t
-
H num : runtime limit per output, in miliseconds (with
\"
-a
\"
) [default = %d]
\n
"
,
pPars
->
nTimeOutOne
);
Abc_Print
(
-
2
,
"
\t
-
G num : runtime gap since the last CEX, in seconds [default = %d]
\n
"
,
pPars
->
nTimeOutGap
);
Abc_Print
(
-
2
,
"
\t
-C num : max conflicts at an output [default = %d]
\n
"
,
pPars
->
nConfLimit
);
Abc_Print
(
-
2
,
"
\t
-D num : max conflicts after jumping (0 = infinity) [default = %d]
\n
"
,
pPars
->
nConfLimitJump
);
Abc_Print
(
-
2
,
"
\t
-J num : the number of timeframes to jump (0 = not used) [default = %d]
\n
"
,
pPars
->
nFramesJump
);
...
...
@@ -22648,7 +22648,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Pdr_ManSetDefaultParams
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"MFCRT
GH
axrmsdgvwzh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"MFCRT
HG
axrmsdgvwzh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -22707,26 +22707,26 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
pPars
->
nTimeOut
<
0
)
goto
usage
;
break
;
case
'
G
'
:
case
'
H
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
G
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
H
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nTimeOut
Gap
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nTimeOut
One
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nTimeOut
Gap
<
0
)
if
(
pPars
->
nTimeOut
One
<
0
)
goto
usage
;
break
;
case
'
H
'
:
case
'
G
'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-
H
\"
should be followed by an integer.
\n
"
);
Abc_Print
(
-
1
,
"Command line switch
\"
-
G
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
pPars
->
nTimeOut
One
=
atoi
(
argv
[
globalUtilOptind
]);
pPars
->
nTimeOut
Gap
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
pPars
->
nTimeOut
One
<
0
)
if
(
pPars
->
nTimeOut
Gap
<
0
)
goto
usage
;
break
;
case
'a'
:
...
...
@@ -22792,7 +22792,7 @@ int Abc_CommandPdr( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: pdr [-MFCRT
GH
<num>] [-axrmsdgvwzh]
\n
"
);
Abc_Print
(
-
2
,
"usage: pdr [-MFCRT
HG
<num>] [-axrmsdgvwzh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
model checking using property directed reachability (aka IC3)
\n
"
);
Abc_Print
(
-
2
,
"
\t
pioneered by Aaron Bradley (http://ecee.colorado.edu/~bradleya/ic3/)
\n
"
);
Abc_Print
(
-
2
,
"
\t
with improvements by Niklas Een (http://een.se/niklas/)
\n
"
);
...
...
@@ -22800,9 +22800,9 @@ usage:
Abc_Print
(
-
2
,
"
\t
-F num : limit on timeframes explored to stop computation [default = %d]
\n
"
,
pPars
->
nFrameMax
);
Abc_Print
(
-
2
,
"
\t
-C num : limit on conflicts in one SAT call (0 = no limit) [default = %d]
\n
"
,
pPars
->
nConfLimit
);
Abc_Print
(
-
2
,
"
\t
-R num : limit on proof obligations before a restart (0 = no limit) [default = %d]
\n
"
,
pPars
->
nRestLimit
);
Abc_Print
(
-
2
,
"
\t
-T num :
approximate timeout in seconds (0 = no limit) [default = %d]
\n
"
,
pPars
->
nTimeOut
);
Abc_Print
(
-
2
,
"
\t
-
G num : approximate runtime gap since the last CEX (0 = no limit) [default = %d]
\n
"
,
pPars
->
nTimeOutGap
);
Abc_Print
(
-
2
,
"
\t
-
H num : approximate runtime per output (with
\"
-a
\"
) [default = %d]
\n
"
,
pPars
->
nTimeOutOne
);
Abc_Print
(
-
2
,
"
\t
-T num :
runtime limit, in seconds (0 = no limit) [default = %d]
\n
"
,
pPars
->
nTimeOut
);
Abc_Print
(
-
2
,
"
\t
-
H num : runtime limit per output, in miliseconds (with
\"
-a
\"
) [default = %d]
\n
"
,
pPars
->
nTimeOutOne
);
Abc_Print
(
-
2
,
"
\t
-
G num : runtime gap since the last CEX (0 = no limit) [default = %d]
\n
"
,
pPars
->
nTimeOutGap
);
Abc_Print
(
-
2
,
"
\t
-a : toggle solving all outputs even if one of them is SAT [default = %s]
\n
"
,
pPars
->
fSolveAll
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-x : toggle storing CEXes when solving all outputs [default = %s]
\n
"
,
pPars
->
fStoreCex
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle using more effort in generalization [default = %s]
\n
"
,
pPars
->
fTwoRounds
?
"yes"
:
"no"
);
...
...
src/proof/pdr/pdrCore.c
View file @
7c7d5277
...
...
@@ -839,7 +839,7 @@ int Pdr_ManSolve( Aig_Man_t * pAig, Pdr_Par_t * pPars )
int
RetValue
;
clock_t
clk
=
clock
();
if
(
pPars
->
nTimeOutOne
)
pPars
->
nTimeOut
=
pPars
->
nTimeOutOne
*
Saig_ManPoNum
(
pAig
);
pPars
->
nTimeOut
=
pPars
->
nTimeOutOne
*
Saig_ManPoNum
(
pAig
)
/
1000
+
1
;
if
(
pPars
->
nTimeOutOne
&&
!
pPars
->
fSolveAll
)
pPars
->
nTimeOutOne
=
0
;
if
(
pPars
->
fVerbose
)
...
...
src/proof/pdr/pdrMan.c
View file @
7c7d5277
...
...
@@ -79,7 +79,7 @@ Pdr_Man_t * Pdr_ManStart( Aig_Man_t * pAig, Pdr_Par_t * pPars, Vec_Int_t * vPrio
int
i
;
p
->
pTime4Outs
=
ABC_ALLOC
(
clock_t
,
Saig_ManPoNum
(
pAig
)
);
for
(
i
=
0
;
i
<
Saig_ManPoNum
(
pAig
);
i
++
)
p
->
pTime4Outs
[
i
]
=
pPars
->
nTimeOutOne
*
CLOCKS_PER_SEC
;
p
->
pTime4Outs
[
i
]
=
pPars
->
nTimeOutOne
*
CLOCKS_PER_SEC
/
1000
+
1
;
}
if
(
pPars
->
fSolveAll
)
{
...
...
src/sat/bmc/bmcBmc3.c
View file @
7c7d5277
...
...
@@ -742,7 +742,7 @@ Gia_ManBmc_t * Saig_Bmc3ManStart( Aig_Man_t * pAig, int nTimeOutOne )
{
p
->
pTime4Outs
=
ABC_ALLOC
(
clock_t
,
Saig_ManPoNum
(
pAig
)
);
for
(
i
=
0
;
i
<
Saig_ManPoNum
(
pAig
);
i
++
)
p
->
pTime4Outs
[
i
]
=
nTimeOutOne
*
CLOCKS_PER_SEC
;
p
->
pTime4Outs
[
i
]
=
nTimeOutOne
*
CLOCKS_PER_SEC
/
1000
+
1
;
}
return
p
;
}
...
...
@@ -1396,7 +1396,7 @@ int Saig_ManBmcScalable( Aig_Man_t * pAig, Saig_ParBmc_t * pPars )
clock_t
nTimeUnsat
=
0
,
nTimeSat
=
0
,
nTimeUndec
=
0
,
clkOne
=
0
;
clock_t
nTimeToStopNG
,
nTimeToStop
;
if
(
pPars
->
nTimeOutOne
)
pPars
->
nTimeOut
=
pPars
->
nTimeOutOne
*
Saig_ManPoNum
(
pAig
);
pPars
->
nTimeOut
=
pPars
->
nTimeOutOne
*
Saig_ManPoNum
(
pAig
)
/
1000
+
1
;
if
(
pPars
->
nTimeOutOne
&&
!
pPars
->
fSolveAll
)
pPars
->
nTimeOutOne
=
0
;
nTimeToStopNG
=
pPars
->
nTimeOut
?
pPars
->
nTimeOut
*
CLOCKS_PER_SEC
+
clock
()
:
0
;
...
...
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