action: move ModelAction::get_node to action.cc
[model-checker.git] / action.cc
index 576f78a54bf6f27c79a89733de53e6a5d74c4990..121f5ee7499d7161257dd136e5edd646bc8c8c94 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -346,6 +346,12 @@ void ModelAction::set_try_lock(bool obtainedlock) {
                value=VALUE_TRYFAILED;
 }
 
+/** @return The Node associated with this ModelAction */
+Node * ModelAction::get_node() const
+{
+       return node;
+}
+
 /**
  * Update the model action's read_from action
  * @param act The action to read from; should be a write