PTHREAD_CREATE, // < A pthread creation action
PTHREAD_JOIN, // < A pthread join action
PTHREAD_CREATE, // < A pthread creation action
PTHREAD_JOIN, // < A pthread join action
NONATOMIC_WRITE, // < Represents a non-atomic store
ATOMIC_INIT, // < Initialization of an atomic object (e.g., atomic_init())
ATOMIC_WRITE, // < An atomic write action
NONATOMIC_WRITE, // < Represents a non-atomic store
ATOMIC_INIT, // < Initialization of an atomic object (e.g., atomic_init())
ATOMIC_WRITE, // < An atomic write action
ATOMIC_WAIT, // < A wait action
ATOMIC_TIMEDWAIT, // < A timed wait action
ATOMIC_ANNOTATION, // < An annotation action to pass information to a trace analysis
ATOMIC_WAIT, // < A wait action
ATOMIC_TIMEDWAIT, // < A timed wait action
ATOMIC_ANNOTATION, // < An annotation action to pass information to a trace analysis
* @brief Represents a single atomic action
*
* A ModelAction is always allocated as non-snapshotting, because it is used in
* @brief Represents a single atomic action
*
* A ModelAction is always allocated as non-snapshotting, because it is used in
- * multiple executions during backtracking. Except for fake uninitialized
- * (ATOMIC_UNINIT) ModelActions, each action is assigned a unique sequence
+ * multiple executions during backtracking. Except for non-atomic write
+ * ModelActions, each action is assigned a unique sequence
memory_order get_mo() const { return order; }
memory_order get_original_mo() const { return original_order; }
void set_mo(memory_order order) { this->order = order; }
memory_order get_mo() const { return order; }
memory_order get_original_mo() const { return original_order; }
void set_mo(memory_order order) { this->order = order; }
uint64_t get_write_value() const;
uint64_t get_return_value() const;
ModelAction * get_reads_from() const { return reads_from; }
uint64_t get_write_value() const;
uint64_t get_return_value() const;
ModelAction * get_reads_from() const { return reads_from; }
bool is_notify() const;
bool is_notify_one() const;
bool is_success_lock() const;
bool is_failed_trylock() const;
bool is_atomic_var() const;
bool is_notify() const;
bool is_notify_one() const;
bool is_success_lock() const;
bool is_failed_trylock() const;
bool is_atomic_var() const;
/* to accomodate pthread create and join */
Thread * thread_operand;
void set_thread_operand(Thread *th) { thread_operand = th; }
/* to accomodate pthread create and join */
Thread * thread_operand;
void set_thread_operand(Thread *th) { thread_operand = th; }
- void set_uninit_action(ModelAction *act) { uninitaction = act; }
- ModelAction * get_uninit_action() { return uninitaction; }
+
+ void setActionRef(sllnode<ModelAction *> *ref) { action_ref = ref; }
+ sllnode<ModelAction *> * getActionRef() { return action_ref; }
+