From eec022ea644ce0430d3f7c5259c72f850338f987 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 28 Aug 2013 20:21:01 -0700 Subject: Adding procedures to specify permutations with unused flops. --- src/misc/vec/vecInt.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/misc/vec') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index c821d121..2cba9f14 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -1043,6 +1043,27 @@ static inline Vec_Int_t * Vec_IntInvert( Vec_Int_t * p, int Fill ) return vRes; } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline Vec_Int_t * Vec_IntCondense( Vec_Int_t * p, int Fill ) +{ + int Entry, i; + Vec_Int_t * vRes = Vec_IntAlloc( Vec_IntSize(p) ); + Vec_IntForEachEntry( p, Entry, i ) + if ( Entry != Fill ) + Vec_IntPush( vRes, Entry ); + return vRes; +} + /**Function************************************************************* Synopsis [] -- cgit v1.2.3