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
96c622b3
Commit
96c622b3
authored
Apr 11, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making BDD computation more robust by using dynamic resource limit.
parent
dff6e2ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/base/abci/abcNtbdd.c
+5
-2
No files found.
src/base/abci/abcNtbdd.c
View file @
96c622b3
...
@@ -367,7 +367,7 @@ void * Abc_NtkBuildGlobalBdds( Abc_Ntk_t * pNtk, int nBddSizeMax, int fDropInter
...
@@ -367,7 +367,7 @@ void * Abc_NtkBuildGlobalBdds( Abc_Ntk_t * pNtk, int nBddSizeMax, int fDropInter
DdNode
*
Abc_NodeGlobalBdds_rec
(
DdManager
*
dd
,
Abc_Obj_t
*
pNode
,
int
nBddSizeMax
,
int
fDropInternal
,
ProgressBar
*
pProgress
,
int
*
pCounter
,
int
fVerbose
)
DdNode
*
Abc_NodeGlobalBdds_rec
(
DdManager
*
dd
,
Abc_Obj_t
*
pNode
,
int
nBddSizeMax
,
int
fDropInternal
,
ProgressBar
*
pProgress
,
int
*
pCounter
,
int
fVerbose
)
{
{
DdNode
*
bFunc
,
*
bFunc0
,
*
bFunc1
,
*
bFuncC
;
DdNode
*
bFunc
,
*
bFunc0
,
*
bFunc1
,
*
bFuncC
;
int
fDetectMuxes
=
1
;
int
fDetectMuxes
=
0
;
assert
(
!
Abc_ObjIsComplement
(
pNode
)
);
assert
(
!
Abc_ObjIsComplement
(
pNode
)
);
if
(
Cudd_ReadKeys
(
dd
)
-
Cudd_ReadDead
(
dd
)
>
(
unsigned
)
nBddSizeMax
)
if
(
Cudd_ReadKeys
(
dd
)
-
Cudd_ReadDead
(
dd
)
>
(
unsigned
)
nBddSizeMax
)
{
{
...
@@ -438,7 +438,10 @@ DdNode * Abc_NodeGlobalBdds_rec( DdManager * dd, Abc_Obj_t * pNode, int nBddSize
...
@@ -438,7 +438,10 @@ DdNode * Abc_NodeGlobalBdds_rec( DdManager * dd, Abc_Obj_t * pNode, int nBddSize
bFunc0
=
Cudd_NotCond
(
bFunc0
,
(
int
)
Abc_ObjFaninC0
(
pNode
)
);
bFunc0
=
Cudd_NotCond
(
bFunc0
,
(
int
)
Abc_ObjFaninC0
(
pNode
)
);
bFunc1
=
Cudd_NotCond
(
bFunc1
,
(
int
)
Abc_ObjFaninC1
(
pNode
)
);
bFunc1
=
Cudd_NotCond
(
bFunc1
,
(
int
)
Abc_ObjFaninC1
(
pNode
)
);
// get the final result
// get the final result
bFunc
=
Cudd_bddAnd
(
dd
,
bFunc0
,
bFunc1
);
Cudd_Ref
(
bFunc
);
bFunc
=
Cudd_bddAndLimit
(
dd
,
bFunc0
,
bFunc1
,
nBddSizeMax
);
if
(
bFunc
==
NULL
)
return
NULL
;
Cudd_Ref
(
bFunc
);
Cudd_RecursiveDeref
(
dd
,
bFunc0
);
Cudd_RecursiveDeref
(
dd
,
bFunc0
);
Cudd_RecursiveDeref
(
dd
,
bFunc1
);
Cudd_RecursiveDeref
(
dd
,
bFunc1
);
// add the number of used nodes
// add the number of used nodes
...
...
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