unsigned Configuration::getNumDebugTags() {
#if CVC4_DEBUG
- return sizeof(Debug_tags) / sizeof(Debug_tags[0]);
+ /* -1 because a NULL pointer is inserted as the last value */
+ return sizeof(Debug_tags) / sizeof(Debug_tags[0]) - 1;
#else /* CVC4_DEBUG */
return 0;
#endif /* CVC4_DEBUG */
unsigned Configuration::getNumTraceTags() {
#if CVC4_TRACING
- return sizeof(Trace_tags) / sizeof(Trace_tags[0]);
+ /* -1 because a NULL pointer is inserted as the last value */
+ return sizeof(Trace_tags) / sizeof(Trace_tags[0]) - 1;
#else /* CVC4_TRACING */
return 0;
#endif /* CVC4_TRACING */