1 #ifndef __NEWFUZZER_H__
2 #define __NEWFUZZER_H__
9 typedef HashTable<FuncInst *, ModelAction *, uintptr_t, 0> inst_act_map_t;
11 class NewFuzzer : public Fuzzer {
14 int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
15 Predicate * selectBranch(thread_id_t tid, Predicate * curr_pred, FuncInst * read_inst);
16 Predicate * get_selected_child_branch(thread_id_t tid);
17 bool prune_writes(thread_id_t tid, Predicate * pred, SnapVector<ModelAction *> * rf_set, inst_act_map_t * inst_act_map);
19 Thread * selectThread(int * threadlist, int numthreads);
20 Thread * selectNotify(action_list_t * waiters);
21 bool shouldSleep(const ModelAction *sleep);
22 bool shouldWake(const ModelAction *sleep);
24 void register_engine(ModelHistory * history, ModelExecution * execution);
28 ModelHistory * history;
29 ModelExecution * execution;
31 SnapVector<ModelAction *> thrd_last_read_act;
32 SnapVector<Predicate *> thrd_curr_pred;
33 SnapVector<Predicate *> thrd_selected_child_branch;
34 SnapVector< SnapVector<ModelAction *> * > thrd_pruned_writes;
37 #endif /* end of __NEWFUZZER_H__ */