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
3c7842be
Commit
3c7842be
authored
May 11, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to timeout.
parent
bacf2386
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
12 deletions
+23
-12
abclib.dsp
+4
-0
src/aig/llb/llb4Nonlin.c
+13
-10
src/base/main/main.c
+4
-2
src/map/if/ifDec.c
+0
-0
src/sat/pdr/pdrCnf.c
+2
-0
No files found.
abclib.dsp
View file @
3c7842be
...
...
@@ -2027,6 +2027,10 @@ SOURCE=.\src\map\if\ifCut.c
# End Source File
# Begin Source File
SOURCE=.\src\map\if\ifDec.c
# End Source File
# Begin Source File
SOURCE=.\src\map\if\ifLib.c
# End Source File
# Begin Source File
...
...
src/aig/llb/llb4Nonlin.c
View file @
3c7842be
...
...
@@ -659,14 +659,6 @@ int Llb_Nonlin4Reachability( Llb_Mnx_t * p )
int
clkTemp
,
clkIter
,
clk
=
clock
();
assert
(
Aig_ManRegNum
(
p
->
pAig
)
>
0
);
// compute time to stop
if
(
p
->
pPars
->
TimeLimit
)
p
->
pPars
->
TimeTarget
=
clock
()
+
p
->
pPars
->
TimeLimit
*
CLOCKS_PER_SEC
;
else
p
->
pPars
->
TimeTarget
=
0
;
// set the stop time parameter
p
->
dd
->
TimeStop
=
p
->
pPars
->
TimeTarget
;
if
(
p
->
pPars
->
fBackward
)
{
// create bad state in the ring manager
...
...
@@ -935,11 +927,18 @@ Llb_Mnx_t * Llb_MnxStart( Aig_Man_t * pAig, Gia_ParLlb_t * pPars )
p
->
pAig
=
pAig
;
p
->
pPars
=
pPars
;
// compute time to stop
if
(
p
->
pPars
->
TimeLimit
)
p
->
pPars
->
TimeTarget
=
clock
()
+
p
->
pPars
->
TimeLimit
*
CLOCKS_PER_SEC
;
else
p
->
pPars
->
TimeTarget
=
0
;
if
(
pPars
->
fCluster
)
{
// Llb_Nonlin4Cluster( p->pAig, &p->dd, &p->vOrder, &p->vRoots, pPars->nBddMax, pPars->fVerbose );
// Cudd_AutodynEnable( p->dd, CUDD_REORDER_SYMM_SIFT );
Llb4_Nonlin4Sweep
(
p
->
pAig
,
pPars
->
nBddMax
,
pPars
->
nClusterMax
,
&
p
->
dd
,
&
p
->
vOrder
,
&
p
->
vRoots
,
pPars
->
fVerbose
);
// set the stop time parameter
p
->
dd
->
TimeStop
=
p
->
pPars
->
TimeTarget
;
}
else
{
...
...
@@ -948,6 +947,8 @@ Llb_Mnx_t * Llb_MnxStart( Aig_Man_t * pAig, Gia_ParLlb_t * pPars )
p
->
dd
=
Cudd_Init
(
Vec_IntSize
(
p
->
vOrder
),
0
,
CUDD_UNIQUE_SLOTS
,
CUDD_CACHE_SLOTS
,
0
);
Cudd_AutodynEnable
(
p
->
dd
,
CUDD_REORDER_SYMM_SIFT
);
Cudd_SetMaxGrowth
(
p
->
dd
,
1
.
05
);
// set the stop time parameter
p
->
dd
->
TimeStop
=
p
->
pPars
->
TimeTarget
;
p
->
vRoots
=
Llb_Nonlin4DerivePartitions
(
p
->
dd
,
pAig
,
p
->
vOrder
);
}
...
...
@@ -994,13 +995,15 @@ void Llb_MnxStop( Llb_Mnx_t * p )
Cudd_RecursiveDeref
(
p
->
dd
,
p
->
bCurrent
);
if
(
p
->
bNext
)
Cudd_RecursiveDeref
(
p
->
dd
,
p
->
bNext
);
if
(
p
->
vRings
);
Vec_PtrForEachEntry
(
DdNode
*
,
p
->
vRings
,
bTemp
,
i
)
Cudd_RecursiveDeref
(
p
->
dd
,
bTemp
);
if
(
p
->
vRoots
)
Vec_PtrForEachEntry
(
DdNode
*
,
p
->
vRoots
,
bTemp
,
i
)
Cudd_RecursiveDeref
(
p
->
dd
,
bTemp
);
// remove arrays
Vec_PtrFree
(
p
->
vRings
);
Vec_PtrFree
(
p
->
vRoots
);
Vec_PtrFree
P
(
&
p
->
vRings
);
Vec_PtrFree
P
(
&
p
->
vRoots
);
//Cudd_PrintInfo( p->dd, stdout );
Extra_StopManager
(
p
->
dd
);
Vec_IntFreeP
(
&
p
->
vOrder
);
...
...
src/base/main/main.c
View file @
3c7842be
...
...
@@ -64,8 +64,10 @@ int Abc_RealMain( int argc, char * argv[] )
char
*
sCommand
;
int
fStatus
=
0
;
int
c
,
fBatch
,
fInitSource
,
fInitRead
,
fFinalWrite
;
// added to detect memory leaks:
// added to detect memory leaks
// watch for {,,msvcrtd.dll}*__p__crtBreakAlloc()
// (http://support.microsoft.com/kb/151585)
#if defined(_DEBUG) && defined(_MSC_VER)
_CrtSetDbgFlag
(
_CRTDBG_ALLOC_MEM_DF
|
_CRTDBG_LEAK_CHECK_DF
);
#endif
...
...
src/map/if/ifDec.c
View file @
3c7842be
This diff is collapsed.
Click to expand it.
src/sat/pdr/pdrCnf.c
View file @
3c7842be
...
...
@@ -278,6 +278,7 @@ static inline sat_solver * Pdr_ManNewSolver1( Pdr_Man_t * p, int k, int fInit )
Vec_IntWriteEntry
(
p
->
vVar2Reg
,
Pdr_ObjSatVar
(
p
,
k
,
pObj
),
i
);
}
pSat
=
(
sat_solver
*
)
Cnf_DataWriteIntoSolver
(
p
->
pCnf1
,
1
,
fInit
);
sat_solver_set_runtime_limit
(
pSat
,
p
->
timeToStop
);
return
pSat
;
}
...
...
@@ -322,6 +323,7 @@ static inline sat_solver * Pdr_ManNewSolver2( Pdr_Man_t * p, int k, int fInit )
// start the SAT solver
pSat
=
sat_solver_new
();
sat_solver_setnvars
(
pSat
,
500
);
sat_solver_set_runtime_limit
(
pSat
,
p
->
timeToStop
);
return
pSat
;
}
...
...
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