cleanup code and fix bug
[c11tester.git] / fuzzer.h
index 348225c8f60184d90701b63df36767761bf0129e..14dff6e023ddbbf174f1a129378bee7a55b72f55 100644 (file)
--- a/fuzzer.h
+++ b/fuzzer.h
@@ -9,12 +9,14 @@ class Fuzzer {
 public:
        Fuzzer() {}
        virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
-       virtual Predicate * get_selected_child_branch(thread_id_t tid) = 0;
-       Thread * selectThread(int * threadlist, int numthreads);
+       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);
-       virtual void register_engine(ModelHistory * history, ModelExecution * execution) = 0;
+       virtual bool shouldWait(const ModelAction *wait);
+       virtual void register_engine(ModelChecker * _model, ModelExecution * execution) {}
        SNAPSHOTALLOC
 private:
 };