add func_map_rev to map function ids to function names
[c11tester.git] / history.h
index dd8f13d8c14a9527eddc19e4f17b1146966863c3..0b523b230bfce69db59634ce11bdd5735543a733 100644 (file)
--- a/history.h
+++ b/history.h
@@ -17,6 +17,8 @@ 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 print();
@@ -27,6 +29,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;
 };