These should never be called with NULL. Don't make them a real
conditional.
*/
void ModelAction::set_read_from(const ModelAction *act)
{
+ ASSERT(act);
reads_from = act;
reads_from_promise = NULL;
- if (act && act->is_uninitialized())
+ if (act->is_uninitialized())
model->assert_bug("May read from uninitialized atomic\n");
}
*/
bool ModelChecker::read_from(ModelAction *act, const ModelAction *rf)
{
+ ASSERT(rf);
act->set_read_from(rf);
- if (rf != NULL && act->is_acquire()) {
+ if (act->is_acquire()) {
rel_heads_list_t release_heads;
get_release_seq_heads(act, act, &release_heads);
int num_heads = release_heads.size();