}
}
-bool ModelExecution::assert_bug(const char *msg)
+void ModelExecution::assert_bug(const char *msg)
{
priv->bugs.push_back(new bug_message(msg));
-
- return false;
+ set_assert();
}
/** @return True, if any bugs have been reported for this execution */
bool check_action_enabled(ModelAction *curr);
- bool assert_bug(const char *msg);
+ void assert_bug(const char *msg);
bool have_bug_reports() const;
* @param msg Descriptive message for the bug (do not include newline char)
* @return True if bug is immediately-feasible
*/
-bool ModelChecker::assert_bug(const char *msg, ...)
+void ModelChecker::assert_bug(const char *msg, ...)
{
char str[800];
vsnprintf(str, sizeof(str), msg, ap);
va_end(ap);
- return execution->assert_bug(str);
+ execution->assert_bug(str);
}
/**
void ModelChecker::assert_user_bug(const char *msg)
{
/* If feasible bug, bail out now */
- if (assert_bug(msg))
- switch_to_master(NULL);
+ assert_bug(msg);
+ switch_to_master(NULL);
}
/** @brief Print bug report listing for this execution (if any bugs exist) */
void switch_from_master(Thread *thread);
uint64_t switch_to_master(ModelAction *act);
- bool assert_bug(const char *msg, ...);
+ void assert_bug(const char *msg, ...);
void assert_user_bug(const char *msg);