model: add sequence numbers to ModelAction
[model-checker.git] / action.h
index 3eafaa99a9f971fe7111c8a640da32e7954d09c5..cca56390567a0b66b265d371656417b60a34e748 100644 (file)
--- a/action.h
+++ b/action.h
@@ -3,7 +3,7 @@
 
 #include <list>
 
-#include "libthreads.h"
+#include "threads.h"
 #include "libatomic.h"
 
 #define VALUE_NONE -1
@@ -28,6 +28,7 @@ public:
        action_type get_type() { return type; }
        memory_order get_mo() { return order; }
        void * get_location() { return location; }
+       int get_seq_number() { return seq_number; }
 
        TreeNode * get_node() { return node; }
        void set_node(TreeNode *n) { node = n; }
@@ -46,6 +47,7 @@ private:
        thread_id_t tid;
        int value;
        TreeNode *node;
+       int seq_number;
 };
 
 typedef std::list<class ModelAction *> action_list_t;