X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=predicate.cc;h=22fb0c7e8f8172d8cbf4963970c4edd7b5d85d3c;hb=5ca7bf3bd5afb9ca961fe8daaa1fae2d88c39211;hp=f6454dbce37d3efe8b62dd920429a230d1e32070;hpb=a3dc0324f0fd34a80919de8c343de96468992292;p=c11tester.git diff --git a/predicate.cc b/predicate.cc index f6454dbc..22fb0c7e 100644 --- a/predicate.cc +++ b/predicate.cc @@ -87,7 +87,8 @@ void Predicate::copy_predicate_expr(Predicate * other) */ Predicate * Predicate::follow_write_child(FuncInst * inst) { - ASSERT(inst->get_type() == ATOMIC_WRITE); + action_type type = inst->get_type(); + ASSERT(type == ATOMIC_WRITE || type == ATOMIC_INIT); for (uint i = 0;i < children.size();i++) { Predicate * child = children[i];