X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.cc;h=1e28264fbcedf171c673bace33be6f41c3aa3f35;hb=5485feb8f53f4fe816b08d854fc3e82b00c33b0b;hp=5d726a2a0514f1c63c66fc3604ec8409fe0ba8cb;hpb=e309adaee27786a638bcd44303ecb88351074257;p=model-checker.git diff --git a/action.cc b/action.cc index 5d726a2..1e28264 100644 --- a/action.cc +++ b/action.cc @@ -52,6 +52,11 @@ bool ModelAction::is_rmwc() const return type == ATOMIC_RMWC; } +bool ModelAction::is_fence() const +{ + return type == ATOMIC_FENCE; +} + bool ModelAction::is_initialization() const { return type == ATOMIC_INIT; @@ -230,6 +235,9 @@ void ModelAction::print(void) const case ATOMIC_RMW: type_str = "atomic rmw"; break; + case ATOMIC_FENCE: + type_str = "fence"; + break; case ATOMIC_RMWR: type_str = "atomic rmwr"; break;