model: fixup style
[model-checker.git] / nodestack.cc
index b79863e2abbcc443e76721360724cc1c800d9b61..86d7f6bbc61a5f88caeb56ff54810e255514a0fd 100644 (file)
@@ -1,3 +1,5 @@
+#include <string.h>
+
 #include "nodestack.h"
 #include "action.h"
 #include "common.h"
@@ -224,6 +226,12 @@ bool Node::is_enabled(Thread *t)
        return thread_id < num_threads && enabled_array[thread_id];
 }
 
+bool Node::is_enabled(thread_id_t tid)
+{
+       int thread_id=id_to_int(tid);
+       return thread_id < num_threads && enabled_array[thread_id];
+}
+
 /**
  * Add an action to the may_read_from set.
  * @param act is the action to add