Added notification about exceeding the number of nodes.

This commit is contained in:
Alan Mishchenko 2012-01-17 22:40:40 -08:00
parent 6bff2986a2
commit 25914e417a
1 changed files with 2 additions and 0 deletions

View File

@ -430,6 +430,8 @@ static inline Gia_Obj_t * Gia_ManAppendObj( Gia_Man_t * p )
{
if ( p->nObjs == p->nObjsAlloc )
{
if ( 2 * p->nObjsAlloc > (1 << 29) )
printf( "Hard limit on the number of nodes (2^29) is reached. Quitting...\n" ), exit(1);
if ( p->fVerbose )
printf("Extending GIA object storage: %d -> %d.\n", p->nObjsAlloc, 2 * p->nObjsAlloc );
assert( p->nObjsAlloc > 0 );