From 9d01c98e62e2cfd413ca44cdd3e2c53ab281046c Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 10 Sep 2013 13:27:39 -0700 Subject: Added sorting equiv classes by the index of their representatives. --- src/aig/gia/giaIso2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/aig/gia/giaIso2.c') diff --git a/src/aig/gia/giaIso2.c b/src/aig/gia/giaIso2.c index 79e0bb10..ef5dbf42 100644 --- a/src/aig/gia/giaIso2.c +++ b/src/aig/gia/giaIso2.c @@ -668,6 +668,8 @@ Gia_Man_t * Gia_ManIsoReduce2( Gia_Man_t * pGia, Vec_Ptr_t ** pvPosEquivs, Vec_P vEquivs2 = Gia_Iso2ManCheckIsoClasses( pGia, vEquivs ); Vec_WecFree( vEquivs ); vEquivs = vEquivs2; + // sort equiv classes by the first integer + Vec_WecSortByFirstInt( vEquivs, 0 ); // find the first outputs vRemains = Vec_WecCollectFirsts( vEquivs ); // derive the final GIA -- cgit v1.2.3