X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=predicate.h;h=df46ca1052551dc04b0423e5d3a394261c669f1c;hb=5ca7bf3bd5afb9ca961fe8daaa1fae2d88c39211;hp=97e495de8a1024c6fe2d8e44dff7d93bbaa54d3a;hpb=25b12680719a51fc81d1681a280e076920dcaabc;p=c11tester.git diff --git a/predicate.h b/predicate.h index 97e495de..df46ca10 100644 --- a/predicate.h +++ b/predicate.h @@ -23,15 +23,17 @@ public: void add_predicate_expr(token_t token, FuncInst * func_inst, bool value); void add_child(Predicate * child); void set_parent(Predicate * parent_pred); - void set_exit(Predicate * exit_pred) { exit = exit_pred; } + void set_exit(Predicate * exit_pred); void add_backedge(Predicate * back_pred) { backedges.add(back_pred); } + void set_weight(double weight_) { weight = weight_; } void copy_predicate_expr(Predicate * other); - Predicate * get_single_child(FuncInst * inst); + Predicate * follow_write_child(FuncInst * inst); ModelVector * get_children() { return &children; } Predicate * get_parent() { return parent; } Predicate * get_exit() { return exit; } PredSet * get_backedges() { return &backedges; } + double get_weight() { return weight; } bool is_entry_predicate() { return entry_predicate; } void set_entry_predicate() { entry_predicate = true; } @@ -43,10 +45,12 @@ public: ConcretePredicate * evaluate(inst_act_map_t * inst_act_map, thread_id_t tid); uint32_t get_expl_count() { return exploration_count; } + uint32_t get_fail_count() { return failure_count; } uint32_t get_store_visible_count() { return store_visible_count; } uint32_t get_total_checking_count() { return total_checking_count; } void incr_expl_count() { exploration_count++; } + void incr_fail_count() { failure_count++; } void incr_store_visible_count() { store_visible_count++; } void incr_total_checking_count() { total_checking_count++; } @@ -65,8 +69,10 @@ private: /* Height of this predicate node in the predicate tree */ uint32_t depth; + double weight; uint32_t exploration_count; + uint32_t failure_count; uint32_t store_visible_count; uint32_t total_checking_count; /* The number of times the store visibility is checked */