reset memory locations of FuncInsts when new executions start
[c11tester.git] / history.h
index 2edf12a8c790d95f4ef56b18812220861cec4f7b..36b584831fdcba9ac3f1112e700dcb6650b3f6f4 100644 (file)
--- a/history.h
+++ b/history.h
@@ -7,7 +7,6 @@
 #include "hashset.h"
 #include "threads-model.h"
 
-typedef HashSet<uint64_t, uint64_t, 0, model_malloc, model_calloc, model_free> write_set_t;
 
 class ModelHistory {
 public:
@@ -31,7 +30,9 @@ public:
        uint64_t query_last_read(void * location, thread_id_t tid);
 
        void add_to_write_history(void * location, uint64_t write_val);
+       HashTable<void *, write_set_t *, uintptr_t, 4> * getWriteHistory() { return &write_history; }
 
+       void set_new_exec_flag();
        void print_write();
        void print_func_node();
 
@@ -46,8 +47,8 @@ private:
 
        ModelVector<FuncNode *> func_nodes;
 
-       HashTable<void *, write_set_t *, uintptr_t, 4, model_malloc, model_calloc, model_free> write_history;
-       HashSet<void *, uintptr_t, 4, model_malloc, model_calloc, model_free> write_locations;
+       HashTable<void *, write_set_t *, uintptr_t, 4> write_history;
+       HashSet<void *, uintptr_t, 4> write_locations;
 };
 
 #endif /* __HISTORY_H__ */