summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecInt.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-04-28 01:25:29 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-04-28 01:25:29 -0700
commitb09926e8e26de8df20a3973a3c9a1c63b06952cb (patch)
treecd38678012538f93611262f680e00d7f12a83ba4 /src/misc/vec/vecInt.h
parent17a0d944b305cbadeb2bbbcdd7ef3c82b50c3c7a (diff)
downloadabc-b09926e8e26de8df20a3973a3c9a1c63b06952cb.tar.gz
abc-b09926e8e26de8df20a3973a3c9a1c63b06952cb.tar.bz2
abc-b09926e8e26de8df20a3973a3c9a1c63b06952cb.zip
SAT sweeping under constraints.
Diffstat (limited to 'src/misc/vec/vecInt.h')
-rw-r--r--src/misc/vec/vecInt.h20
1 files changed, 20 insertions, 0 deletions
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
@@ -888,6 +888,26 @@ static inline int Vec_IntRemove( Vec_Int_t * p, int Entry )
/**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.]
Description []