Store the set of predicate leaves in FuncNode
[c11tester.git] / fuzzer.h
index 3a84351067690a66463a8651d260d8950cc269c8..d31c22673a4aab928a614075490e79b1362dd9cf 100644 (file)
--- a/fuzzer.h
+++ b/fuzzer.h
@@ -3,14 +3,23 @@
 #include "classlist.h"
 #include "mymemory.h"
 #include "stl-model.h"
+#include "threads-model.h"
 
 class Fuzzer {
 public:
        Fuzzer() {}
-       int selectWrite(ModelAction *read, ModelVector<ModelAction *>* rf_set);
-       Thread * selectThread(Node *n, int * threadlist, int numthreads);
+       virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
+       virtual bool has_paused_threads() { return false; }
+       virtual void notify_paused_thread(Thread * thread) = 0;
+       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) = 0;
+       virtual void register_engine(ModelHistory * history, ModelExecution * execution) = 0;
+       virtual Predicate * get_selected_child_branch(thread_id_t tid) = 0;
+       SNAPSHOTALLOC
 private:
 };
 #endif