summaryrefslogtreecommitdiffstats
path: root/src/base/abci/abcReconv.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2006-06-14 08:01:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2006-06-14 08:01:00 -0700
commit3814121784af2250e2d5f17173b209e74cb7ae45 (patch)
tree69d4653ccb629e4d7a3c7a0142720db9c2a46682 /src/base/abci/abcReconv.c
parent3db1557f45b03875a0a0b8adddcc15c4565895d2 (diff)
downloadabc-3814121784af2250e2d5f17173b209e74cb7ae45.tar.gz
abc-3814121784af2250e2d5f17173b209e74cb7ae45.tar.bz2
abc-3814121784af2250e2d5f17173b209e74cb7ae45.zip
Version abc60614
Diffstat (limited to 'src/base/abci/abcReconv.c')
-rw-r--r--src/base/abci/abcReconv.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/base/abci/abcReconv.c b/src/base/abci/abcReconv.c
index e5b9e024..10400129 100644
--- a/src/base/abci/abcReconv.c
+++ b/src/base/abci/abcReconv.c
@@ -321,7 +321,8 @@ int Abc_NodeBuildCutLevelOne_int( Vec_Ptr_t * vVisited, Vec_Ptr_t * vLeaves, int
{
CostCur = Abc_NodeGetLeafCostOne( pNode, nFaninLimit );
//printf( " Fanin %s has cost %d.\n", Abc_ObjName(pNode), CostCur );
- if ( CostBest > CostCur )
+ if ( CostBest > CostCur ||
+ (CostBest == CostCur && pNode->Level > pFaninBest->Level) )
{
CostBest = CostCur;
pFaninBest = pNode;
@@ -643,6 +644,22 @@ Vec_Ptr_t * Abc_NtkManCutReadCutLarge( Abc_ManCut_t * p )
SeeAlso []
***********************************************************************/
+Vec_Ptr_t * Abc_NtkManCutReadCutSmall( Abc_ManCut_t * p )
+{
+ return p->vNodeLeaves;
+}
+
+/**Function*************************************************************
+
+ Synopsis [Returns the leaves of the cone.]
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
Vec_Ptr_t * Abc_NtkManCutReadVisited( Abc_ManCut_t * p )
{
return p->vVisited;