From 77fab468ad32d15de5c065c211f6f74371670940 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 13 Apr 2009 08:01:00 -0700 Subject: Version abc90413 --- src/aig/gia/giaDfs.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'src/aig/gia/giaDfs.c') diff --git a/src/aig/gia/giaDfs.c b/src/aig/gia/giaDfs.c index a978dcc3..8a3aef92 100644 --- a/src/aig/gia/giaDfs.c +++ b/src/aig/gia/giaDfs.c @@ -122,7 +122,7 @@ void Gia_ManCollectAnds( Gia_Man_t * p, int * pNodes, int nNodes, Vec_Int_t * vN Gia_Obj_t * pObj; int i; Vec_IntClear( vNodes ); - Gia_ManIncrementTravId( p ); +// Gia_ManIncrementTravId( p ); Gia_ObjSetTravIdCurrent( p, Gia_ManConst0(p) ); for ( i = 0; i < nNodes; i++ ) { @@ -134,6 +134,34 @@ void Gia_ManCollectAnds( Gia_Man_t * p, int * pNodes, int nNodes, Vec_Int_t * vN } } +/**Function************************************************************* + + Synopsis [Collects support nodes.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +void Gia_ManCollectTest( Gia_Man_t * p ) +{ + Vec_Int_t * vNodes; + Gia_Obj_t * pObj; + int i, iNode, clk = clock(); + vNodes = Vec_IntAlloc( 100 ); + Gia_ManResetTravId( p ); + Gia_ManIncrementTravId( p ); + Gia_ManForEachCo( p, pObj, i ) + { + iNode = Gia_ObjId(p, pObj); + Gia_ManCollectAnds( p, &iNode, 1, vNodes ); + } + Vec_IntFree( vNodes ); + ABC_PRT( "DFS from each output", clock() - clk ); +} + /**Function************************************************************* Synopsis [Collects support nodes.] -- cgit v1.2.3