model, nodestack: bugfix - retain UNINIT actions across executions
[c11tester.git] / nodestack.h
index 0a9422572eb0c4bd3ae6ce18b96757c57281a29f..8ad329eeaf04f09eb4037c6d9dc6931e8cc1524a 100644 (file)
@@ -64,6 +64,9 @@ public:
        enabled_type_t enabled_status(thread_id_t tid) const;
 
        ModelAction * get_action() const { return action; }
+       void set_uninit_action(ModelAction *act) { uninit_action = act; }
+       ModelAction * get_uninit_action() const { return uninit_action; }
+
        bool has_priority(thread_id_t tid) const;
        void update_yield(Scheduler *);
        bool has_priority_over(thread_id_t tid, thread_id_t tid2) const;
@@ -124,6 +127,10 @@ private:
        read_from_type_t read_from_status;
 
        ModelAction * const action;
+
+       /** @brief ATOMIC_UNINIT action which was created at this Node */
+       ModelAction *uninit_action;
+
        Node * const parent;
        const int num_threads;
        std::vector< bool, ModelAlloc<bool> > explored_children;