More bug fixes
[c11tester.git] / fuzzer.h
index 56e40a984c8eaeeacefae1b352610edb0f9b876d..b0f533d2d622d70e6feb6091feed5c4be1b50f69 100644 (file)
--- a/fuzzer.h
+++ b/fuzzer.h
@@ -9,13 +9,15 @@ 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;
-       MEMALLOC
+       virtual bool shouldWait(const ModelAction *wait);
+       virtual void register_engine(ModelExecution * execution) {}
+       SNAPSHOTALLOC
 private:
 };
 #endif