augment hashtable with keyset
[c11tester.git] / history.h
index dd8f13d8c14a9527eddc19e4f17b1146966863c3..b6707f9fe6d2cd9f2343ae820080fe53f63eda79 100644 (file)
--- a/history.h
+++ b/history.h
@@ -17,8 +17,11 @@ public:
        void add_func_atomic(ModelAction *act, thread_id_t tid);
 
        HashTable<const char *, uint32_t, uintptr_t, 4, model_malloc, model_calloc, model_free> * getFuncMap() { return &func_map; }
+       ModelVector<const char *> * getFuncMapRev() { return &func_map_rev; }
+
        ModelVector<FuncNode *> * getFuncAtomics() { return &func_atomics; }
 
+       void link_insts(func_inst_list_t * inst_list);
        void print();
 
        MEMALLOC
@@ -27,6 +30,8 @@ private:
 
        /* map function names to integer ids */ 
        HashTable<const char *, uint32_t, uintptr_t, 4, model_malloc, model_calloc, model_free> func_map;
+       /* map integer ids to function names */ 
+       ModelVector<const char *> func_map_rev;
 
        ModelVector<FuncNode *> func_atomics;
 };