X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=fuzzer.h;h=14dff6e023ddbbf174f1a129378bee7a55b72f55;hp=3a84351067690a66463a8651d260d8950cc269c8;hb=7719c6dc7e1a6dade8dfa022f3c9e19853f3e89f;hpb=89ecd60fab0d93d6df6aa35e663ab67db860fa1d diff --git a/fuzzer.h b/fuzzer.h index 3a843510..14dff6e0 100644 --- a/fuzzer.h +++ b/fuzzer.h @@ -3,14 +3,21 @@ #include "classlist.h" #include "mymemory.h" #include "stl-model.h" +#include "threads-model.h" class Fuzzer { public: Fuzzer() {} - int selectWrite(ModelAction *read, ModelVector* rf_set); - Thread * selectThread(Node *n, 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); - MEMALLOC + bool shouldSleep(const ModelAction *sleep); + bool shouldWake(const ModelAction *sleep); + virtual bool shouldWait(const ModelAction *wait); + virtual void register_engine(ModelChecker * _model, ModelExecution * execution) {} + SNAPSHOTALLOC private: }; #endif