From b09926e8e26de8df20a3973a3c9a1c63b06952cb Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 28 Apr 2013 01:25:29 -0700 Subject: SAT sweeping under constraints. --- src/misc/vec/vecInt.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/misc/vec/vecInt.h') diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h index 60352a0f..5222ef53 100644 --- a/src/misc/vec/vecInt.h +++ b/src/misc/vec/vecInt.h @@ -886,6 +886,26 @@ static inline int Vec_IntRemove( Vec_Int_t * p, int Entry ) return 1; } +/**Function************************************************************* + + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline void Vec_IntDrop( Vec_Int_t * p, int i ) +{ + int k; + assert( i >= 0 && i < Vec_IntSize(p) ); + p->nSize--; + for ( k = i; k < p->nSize; k++ ) + p->pArray[k] = p->pArray[k+1]; +} + /**Function************************************************************* Synopsis [Interts entry at the index iHere. Shifts other entries.] -- cgit v1.2.3