summaryrefslogtreecommitdiffstats
path: root/src/misc/vec/vecSet.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-07-13 18:15:32 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-07-13 18:15:32 -0700
commitc50d108f984c2e421f1c8d9b545a19d31d10be3b (patch)
treeab127e67903da0135d37b4d30bb2fc8a8446036d /src/misc/vec/vecSet.h
parent5ec4db2d44348ad668a10c9e5a81011fa949b403 (diff)
downloadabc-c50d108f984c2e421f1c8d9b545a19d31d10be3b.tar.gz
abc-c50d108f984c2e421f1c8d9b545a19d31d10be3b.tar.bz2
abc-c50d108f984c2e421f1c8d9b545a19d31d10be3b.zip
Debugging a proof error.
Diffstat (limited to 'src/misc/vec/vecSet.h')
-rw-r--r--src/misc/vec/vecSet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/vec/vecSet.h b/src/misc/vec/vecSet.h
index b47e05ad..153fb15f 100644
--- a/src/misc/vec/vecSet.h
+++ b/src/misc/vec/vecSet.h
@@ -238,6 +238,7 @@ static inline int Vec_SetAppendS( Vec_Set_t * p, int nSize )
if ( Vec_SetLimitS( p->pPages[p->iPageS] ) + nWords >= (1 << p->nPageSize) )
Vec_SetWriteLimitS( p->pPages[++p->iPageS], 2 );
Vec_SetIncLimitS( p->pPages[p->iPageS], nWords );
+ assert( Vec_SetHandCurrentS(p) - nWords < (1 << p->nPageSize) );
return Vec_SetHandCurrentS(p) - nWords;
}