add support for docs
[model-checker.git] / action.cc
index 73d4c498a2c03a0a26b085fbf6a8b94a289b277a..ec50807422cc4a8e6c9864e65c561896df579000 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -84,11 +84,13 @@ bool ModelAction::is_dependent(ModelAction *act)
 
 void ModelAction::create_cv(ModelAction *parent)
 {
-       ASSERT(cv == NULL);
+       if (cv)
+               return;
+
        if (parent)
                cv = new ClockVector(parent->cv, this);
        else
-               cv = new ClockVector();
+               cv = new ClockVector(NULL, this);
 }
 
 void ModelAction::read_from(ModelAction *act)
@@ -118,6 +120,9 @@ void ModelAction::print(void)
        case ATOMIC_WRITE:
                type_str = "atomic write";
                break;
+       case ATOMIC_RMW:
+               type_str = "atomic rmw";
+               break;
        default:
                type_str = "unknown type";
        }