X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fuzzer.h;h=29d31edaac7456412c7269c3c6a891ee895b5697;hb=656b0a3c7d65500c7eba70dbcb6c5b54c358f370;hp=6cf1efbad26352782e4a45b985654e8f52069a1b;hpb=07a0b575fabd521fb3f4a3f1f2483d46349c35dd;p=c11tester.git diff --git a/fuzzer.h b/fuzzer.h index 6cf1efba..29d31eda 100644 --- a/fuzzer.h +++ b/fuzzer.h @@ -3,14 +3,20 @@ #include "classlist.h" #include "mymemory.h" #include "stl-model.h" +#include "threads-model.h" class Fuzzer { public: Fuzzer() {} - int selectWrite(ModelAction *read, SnapVector* rf_set); - Thread * selectThread(Node *n, int * threadlist, int numthreads); + virtual int selectWrite(ModelAction *read, SnapVector* rf_set); + virtual Predicate * get_selected_child_branch(thread_id_t tid) = 0; + virtual bool has_paused_threads() { return false; } + virtual Thread * selectThread(int * threadlist, int numthreads); Thread * selectNotify(action_list_t * waiters); - MEMALLOC + bool shouldSleep(const ModelAction *sleep); + bool shouldWake(const ModelAction *sleep); + virtual void register_engine(ModelHistory * history, ModelExecution * execution) = 0; + SNAPSHOTALLOC private: }; #endif