Add model checker check before trylock
[c11tester.git] / fuzzer.cc
index 3a3f98831b1c64245a5ab85569667e604878b361..5b174b15f847b1df433178d600758e3be93b30f8 100644 (file)
--- a/fuzzer.cc
+++ b/fuzzer.cc
@@ -3,12 +3,12 @@
 #include "threads-model.h"
 #include "model.h"
 
-int Fuzzer::selectWrite(ModelAction *read, SnapVector<const ModelAction *> * rf_set) {
+int Fuzzer::selectWrite(ModelAction *read, SnapVector<ModelAction *> * rf_set) {
        int random_index = random() % rf_set->size();
        return random_index;
 }
 
-Thread * Fuzzer::selectThread(Node *n, int * threadlist, int numthreads) {
+Thread * Fuzzer::selectThread(int * threadlist, int numthreads) {
        int random_index = random() % numthreads;
        int thread = threadlist[random_index];
        thread_id_t curr_tid = int_to_id(thread);