mirror of https://github.com/YosysHQ/abc.git
Debugging a proof error.
This commit is contained in:
parent
6578d9cd00
commit
c25f488a83
|
|
@ -213,7 +213,7 @@ static inline int Vec_SetAppend( Vec_Set_t * p, int * pArray, int nSize )
|
|||
int nWords = Vec_SetWordNum( nSize );
|
||||
assert( nWords < (1 << p->nPageSize) );
|
||||
p->nEntries++;
|
||||
if ( Vec_SetLimit( p->pPages[p->iPage] ) + nWords > (1 << p->nPageSize) )
|
||||
if ( Vec_SetLimit( p->pPages[p->iPage] ) + nWords >= (1 << p->nPageSize) )
|
||||
{
|
||||
if ( ++p->iPage == p->nPagesAlloc )
|
||||
{
|
||||
|
|
@ -235,7 +235,7 @@ static inline int Vec_SetAppendS( Vec_Set_t * p, int nSize )
|
|||
{
|
||||
int nWords = Vec_SetWordNum( nSize );
|
||||
assert( nWords < (1 << p->nPageSize) );
|
||||
if ( Vec_SetLimitS( p->pPages[p->iPageS] ) + nWords > (1 << p->nPageSize) )
|
||||
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 );
|
||||
return Vec_SetHandCurrentS(p) - nWords;
|
||||
|
|
|
|||
Loading…
Reference in New Issue