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
e23dd881
Commit
e23dd881
authored
Oct 29, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrapper around the BMC engine to restart it with higher resource limits.
parent
e3f9ad3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletions
+38
-1
src/sat/bmc/bmcBmcAnd.c
+38
-1
No files found.
src/sat/bmc/bmcBmcAnd.c
View file @
e23dd881
...
...
@@ -953,7 +953,7 @@ Cnf_Dat_t * Cnf_DeriveGia( Gia_Man_t * p )
SeeAlso []
***********************************************************************/
int
Gia_ManBmcPerform
(
Gia_Man_t
*
pGia
,
Bmc_AndPar_t
*
pPars
)
int
Gia_ManBmcPerform
Int
(
Gia_Man_t
*
pGia
,
Bmc_AndPar_t
*
pPars
)
{
Bmc_Mna_t
*
p
;
Gia_Man_t
*
pTemp
;
...
...
@@ -1050,6 +1050,43 @@ int Gia_ManBmcPerform( Gia_Man_t * pGia, Bmc_AndPar_t * pPars )
return
RetValue
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Gia_ManBmcPerform
(
Gia_Man_t
*
pGia
,
Bmc_AndPar_t
*
pPars
)
{
abctime
TimeToStop
=
pPars
->
nTimeOut
?
pPars
->
nTimeOut
*
CLOCKS_PER_SEC
+
Abc_Clock
()
:
0
;
if
(
pPars
->
nFramesAdd
==
0
)
return
Gia_ManBmcPerformInt
(
pGia
,
pPars
);
// iterate over the engine until we read the global timeout
assert
(
pPars
->
nTimeOut
>=
0
);
while
(
1
)
{
if
(
TimeToStop
&&
TimeToStop
<
Abc_Clock
()
)
return
-
1
;
if
(
Gia_ManBmcPerformInt
(
pGia
,
pPars
)
==
0
)
return
0
;
// set the new runtime limit
if
(
pPars
->
nTimeOut
)
{
pPars
->
nTimeOut
=
Abc_MinInt
(
pPars
->
nTimeOut
-
1
,
(
int
)((
TimeToStop
-
Abc_Clock
())
/
CLOCKS_PER_SEC
)
);
if
(
pPars
->
nTimeOut
<=
0
)
return
-
1
;
}
// set the new frames limit
pPars
->
nFramesAdd
*=
2
;
}
return
-
1
;
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
...
...
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