bool ModelAction::is_write() const
{
- return type == ATOMIC_WRITE;
+ return type == ATOMIC_WRITE || type == ATOMIC_INIT;
}
bool ModelAction::is_rmw() const
return type == ATOMIC_RMW;
}
+bool ModelAction::is_initialization() const
+{
+ return type == ATOMIC_INIT;
+}
+
bool ModelAction::is_acquire() const
{
switch (order) {
case ATOMIC_RMW:
type_str = "atomic rmw";
break;
+ case ATOMIC_INIT:
+ type_str = "init atomic";
+ break;
default:
type_str = "unknown type";
}