Assert if the vcdid generation overflows.

It should never happen, but if it does assert vs generating an
invalid VCD identifier.
This commit is contained in:
Cary R 2010-11-16 17:21:51 -08:00 committed by Stephen Williams
parent e7d7dec713
commit bebdcd5adf
1 changed files with 3 additions and 1 deletions

View File

@ -76,9 +76,11 @@ static void gen_new_vcd_id(void)
v /= 94;
if(!v) {
vcdid[i+1] = '\0';
break;
return;
}
}
// This should never happen since 94**7 is a lot if identifiers!
assert(0);
}
static char *truncate_bitvec(char *s)