X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=fuzzer.h;h=14dff6e023ddbbf174f1a129378bee7a55b72f55;hp=e794d225b70c15d5e8954ab9fed034e37f168d96;hb=c07babdd4135ec7c471981e436913aa7624ff643;hpb=39e9009d50498d0dd1bccc1a54e378f7aef5a28a diff --git a/fuzzer.h b/fuzzer.h index e794d225..14dff6e0 100644 --- a/fuzzer.h +++ b/fuzzer.h @@ -3,16 +3,21 @@ #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(int * threadlist, int numthreads); + virtual int selectWrite(ModelAction *read, SnapVector* rf_set); + virtual bool has_paused_threads() { return false; } + virtual Thread * selectThread(int * threadlist, int numthreads); + Thread * selectNotify(action_list_t * waiters); bool shouldSleep(const ModelAction *sleep); bool shouldWake(const ModelAction *sleep); - MEMALLOC + virtual bool shouldWait(const ModelAction *wait); + virtual void register_engine(ModelChecker * _model, ModelExecution * execution) {} + SNAPSHOTALLOC private: }; #endif