Adding procedures to specify permutations with unused flops.

This commit is contained in:
Alan Mishchenko
2013-08-28 20:21:01 -07:00
parent 42f8082c59
commit eec022ea64
4 changed files with 79 additions and 3 deletions
+21
View File
@@ -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 []