add support for docs
[model-checker.git] / action.cc
index d76796d406c4d22d3642850fd2fcfcdae881b5d0..ec50807422cc4a8e6c9864e65c561896df579000 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -84,7 +84,9 @@ 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
@@ -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";
        }