X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fuzzer.h;h=65210e09ae8e147693d3b5300e4c5db3ff766cc6;hb=HEAD;hp=64875f2d4518935ae49dbf38d5e254e2fcdc1cf0;hpb=d55f961768e13c12ab9d7b6a4f7f1490748f18c5;p=c11tester.git diff --git a/fuzzer.h b/fuzzer.h index 64875f2d..65210e09 100644 --- a/fuzzer.h +++ b/fuzzer.h @@ -9,14 +9,16 @@ class Fuzzer { public: Fuzzer() {} 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); + + Thread * selectNotify(simple_action_list_t * waiters); bool shouldSleep(const ModelAction *sleep); bool shouldWake(const ModelAction *sleep); - virtual bool shouldWait(const ModelAction *wait) = 0; - virtual void register_engine(ModelHistory * history, ModelExecution * execution) = 0; + virtual bool waitShouldFail(ModelAction *wait); + bool waitShouldWakeUp(const ModelAction *wait); + bool randomizeWaitTime(ModelAction * timed_wait); + virtual void register_engine(ModelChecker * _model, ModelExecution * execution) {} SNAPSHOTALLOC private: };