X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=newfuzzer.h;h=ecab8f216f96443734b732eff6165e79f57d56cd;hp=e94de3387f471a981cb0e5a02fad59171919bbb7;hb=e102155b9b54d88cf310d8eba39a42aa51a1aec2;hpb=08019b9073a49b656c51436ae6f11e011f0531a0 diff --git a/newfuzzer.h b/newfuzzer.h index e94de338..ecab8f21 100644 --- a/newfuzzer.h +++ b/newfuzzer.h @@ -5,6 +5,7 @@ #include "classlist.h" #include "mymemory.h" #include "stl-model.h" +#include "predicatetypes.h" class NewFuzzer : public Fuzzer { public: @@ -44,10 +45,11 @@ private: HashTable failed_predicates; void conditional_sleep(Thread * thread); + bool should_conditional_sleep(Predicate * predicate); void wake_up_paused_threads(int * threadlist, int * numthreads); bool find_threads(ModelAction * pending_read); - void update_predicate_score(Predicate * predicate, int type); + void update_predicate_score(Predicate * predicate, sleep_result_t type); }; #endif /* end of __NEWFUZZER_H__ */