X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=fuzzer.h;h=0fcfb51f67e66ff9ee439f9b48c1bd860838cbfa;hp=6cf1efbad26352782e4a45b985654e8f52069a1b;hb=7742256df627848c1c375f979f5369a45c92057b;hpb=63b2c687570085f2a87b6a659d26608228af1ee0 diff --git a/fuzzer.h b/fuzzer.h index 6cf1efba..0fcfb51f 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, SnapVector* rf_set); - Thread * selectThread(Node *n, int * threadlist, int numthreads); - Thread * selectNotify(action_list_t * waiters); - MEMALLOC + virtual int selectWrite(ModelAction *read, SnapVector* rf_set); + virtual bool has_paused_threads() { return false; } + virtual Thread * selectThread(int * threadlist, int numthreads); + + Thread * selectNotify(simple_action_list_t * waiters); + 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