@@ -855,27 +855,29 @@ Gia_Man_t * Gia_ManDupPerm( Gia_Man_t * p, Vec_Int_t * vPiPerm )
855
855
}
856
856
Gia_Man_t * Gia_ManDupPermFlop ( Gia_Man_t * p , Vec_Int_t * vFfPerm )
857
857
{
858
- Vec_Int_t * vPermInv ;
858
+ // Vec_Int_t * vPermInv;
859
859
Gia_Man_t * pNew ;
860
860
Gia_Obj_t * pObj ;
861
861
int i ;
862
862
assert ( Vec_IntSize (vFfPerm ) == Gia_ManRegNum (p ) );
863
- vPermInv = Vec_IntInvert ( vFfPerm , -1 );
863
+ // vPermInv = Vec_IntInvert( vFfPerm, -1 );
864
864
pNew = Gia_ManStart ( Gia_ManObjNum (p ) );
865
865
pNew -> pName = Abc_UtilStrsav ( p -> pName );
866
866
pNew -> pSpec = Abc_UtilStrsav ( p -> pSpec );
867
867
Gia_ManConst0 (p )-> Value = 0 ;
868
868
Gia_ManForEachPi ( p , pObj , i )
869
869
pObj -> Value = Gia_ManAppendCi (pNew );
870
870
Gia_ManForEachRo ( p , pObj , i )
871
- Gia_ManRo (p , Vec_IntEntry (vPermInv , i ))-> Value = Gia_ManAppendCi (pNew );
871
+ //Gia_ManRo(p, Vec_IntEntry(vPermInv, i))->Value = Gia_ManAppendCi(pNew);
872
+ Gia_ManRo (p , Vec_IntEntry (vFfPerm , i ))-> Value = Gia_ManAppendCi ( pNew );
872
873
Gia_ManForEachAnd ( p , pObj , i )
873
874
pObj -> Value = Gia_ManAppendAnd ( pNew , Gia_ObjFanin0Copy (pObj ), Gia_ObjFanin1Copy (pObj ) );
874
875
Gia_ManForEachPo ( p , pObj , i )
875
876
pObj -> Value = Gia_ManAppendCo ( pNew , Gia_ObjFanin0Copy (pObj ) );
876
877
Gia_ManForEachRi ( p , pObj , i )
877
- pObj -> Value = Gia_ManAppendCo ( pNew , Gia_ObjFanin0Copy ( Gia_ManRi (p , Vec_IntEntry (vPermInv , i )) ) );
878
- Vec_IntFree ( vPermInv );
878
+ //pObj->Value = Gia_ManAppendCo( pNew, Gia_ObjFanin0Copy( Gia_ManRi(p, Vec_IntEntry(vPermInv, i)) ) );
879
+ pObj -> Value = Gia_ManAppendCo ( pNew , Gia_ObjFanin0Copy ( Gia_ManRi (p , Vec_IntEntry (vFfPerm , i )) ) );
880
+ //Vec_IntFree( vPermInv );
879
881
Gia_ManSetRegNum ( pNew , Gia_ManRegNum (p ) );
880
882
return pNew ;
881
883
}
0 commit comments