X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.h;h=ad3b828a6a5da33e61140eb0f9fa57831c00fefc;hb=3fe3c730dd6a8deb536276f7a68ef58cae0d74f3;hp=ad34c830f4b61d0b2a214199c5d208aa5abddca2;hpb=b5d7d602016a4640c31b79ba9598dceefa778ab6;p=model-checker.git diff --git a/action.h b/action.h index ad34c83..ad3b828 100644 --- a/action.h +++ b/action.h @@ -70,7 +70,9 @@ typedef enum action_type { ATOMIC_UNLOCK, /**< An unlock action */ ATOMIC_NOTIFY_ONE, /**< A notify_one action */ ATOMIC_NOTIFY_ALL, /**< A notify all action */ - ATOMIC_WAIT /**< A wait action */ + ATOMIC_WAIT, /**< A wait action */ + ATOMIC_ANNOTATION /**< An annotation action to pass information + to a trace analysis */ } action_type_t; /* Forward declaration */ @@ -142,6 +144,7 @@ public: bool is_rmw() const; bool is_fence() const; bool is_initialization() const; + bool is_annotation() const; bool is_relaxed() const; bool is_acquire() const; bool is_release() const; @@ -182,6 +185,9 @@ public: MEMALLOC private: + const char * get_type_str() const; + const char * get_mo_str() const; + /** @brief Type of action (read, write, RMW, fence, thread create, etc.) */ action_type type;