diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-02-20 16:21:15 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-02-20 16:21:15 -0800 |
commit | 3e59c102e8abddc7cadb6d0cbbaa9b82011aa9d1 (patch) | |
tree | a85ee2fc7dbf5406ea71ae806ff8e0405b959a55 /src/aig/gia/giaDup.c | |
parent | 466c4e9992fb10e4f6b1dc92b41e14c1305d8269 (diff) | |
download | abc-3e59c102e8abddc7cadb6d0cbbaa9b82011aa9d1.tar.gz abc-3e59c102e8abddc7cadb6d0cbbaa9b82011aa9d1.tar.bz2 abc-3e59c102e8abddc7cadb6d0cbbaa9b82011aa9d1.zip |
Integrating sweeping information.
Diffstat (limited to 'src/aig/gia/giaDup.c')
-rw-r--r-- | src/aig/gia/giaDup.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/aig/gia/giaDup.c b/src/aig/gia/giaDup.c index 735bd566..c23cc555 100644 --- a/src/aig/gia/giaDup.c +++ b/src/aig/gia/giaDup.c @@ -220,6 +220,40 @@ Gia_Man_t * Gia_ManDupOutputGroup( Gia_Man_t * p, int iOutStart, int iOutStop ) /**Function************************************************************* + Synopsis [Duplicates AIG while putting objects in the DFS order.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +Gia_Man_t * Gia_ManDupOutputVec( Gia_Man_t * p, Vec_Int_t * vOutPres ) +{ + Gia_Man_t * pNew; + Gia_Obj_t * pObj; + int i; + assert( Gia_ManRegNum(p) == 0 ); + assert( Gia_ManPoNum(p) == Vec_IntSize(vOutPres) ); + Gia_ManFillValue( p ); + pNew = Gia_ManStart( Gia_ManObjNum(p) ); + pNew->pName = Abc_UtilStrsav( p->pName ); + pNew->pSpec = Abc_UtilStrsav( p->pSpec ); + Gia_ManConst0(p)->Value = 0; + Gia_ManForEachPi( p, pObj, i ) + pObj->Value = Gia_ManAppendCi(pNew); + Gia_ManForEachPo( p, pObj, i ) + if ( Vec_IntEntry(vOutPres, i) ) + Gia_ManDupOrderDfs_rec( pNew, p, pObj ); + Gia_ManForEachPo( p, pObj, i ) + if ( Vec_IntEntry(vOutPres, i) ) + pObj->Value = Gia_ManAppendCo( pNew, Gia_ObjFanin0Copy(pObj) ); + return pNew; +} + +/**Function************************************************************* + Synopsis [Duplicates the AIG in the DFS order.] Description [] |