1 #ifndef __NEWFUZZER_H__
2 #define __NEWFUZZER_H__
9 class NewFuzzer : public Fuzzer {
12 int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
13 void selectBranch(int thread_id, Predicate * curr_pred, FuncInst * read_inst);
14 Predicate * get_selected_child_branch(thread_id_t tid);
16 Thread * selectThread(int * threadlist, int numthreads);
17 Thread * selectNotify(action_list_t * waiters);
18 bool shouldSleep(const ModelAction *sleep);
19 bool shouldWake(const ModelAction *sleep);
21 void register_engine(ModelHistory * history, ModelExecution * execution);
25 ModelHistory * history;
26 ModelExecution * execution;
28 SnapVector<ModelAction *> thrd_last_read_act;
29 SnapVector<Predicate *> thrd_curr_pred;
30 SnapVector<Predicate *> thrd_selected_child_branch;
33 #endif /* end of __NEWFUZZER_H__ */