Assign each predicate's initial weight ad 100. Remove some unused function and data...
[c11tester.git] / predicate.cc
index f6454dbce37d3efe8b62dd920429a230d1e32070..44f5e8d1844f55ec8e860a5118a6c780b5914d07 100644 (file)
@@ -8,7 +8,7 @@ Predicate::Predicate(FuncInst * func_inst, bool is_entry, bool is_exit) :
        exit_predicate(is_exit),
        does_write(false),
        depth(0),
-       weight(0),
+       weight(100),
        exploration_count(0),
        store_visible_count(0),
        total_checking_count(0),
@@ -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];