projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes to fix at least a bug
[model-checker.git]
/
nodestack.cc
diff --git
a/nodestack.cc
b/nodestack.cc
index 23e87ac690a79c334da6a9f8ed85a269ce073116..d08fa5c733e126f1faa710bfb613bb1df6ecccff 100644
(file)
--- a/
nodestack.cc
+++ b/
nodestack.cc
@@
-291,6
+291,14
@@
bool Node::is_enabled(Thread *t)
return thread_id < num_threads && (enabled_array[thread_id] != THREAD_DISABLED);
}
return thread_id < num_threads && (enabled_array[thread_id] != THREAD_DISABLED);
}
+enabled_type_t Node::enabled_status(thread_id_t tid) {
+ int thread_id=id_to_int(tid);
+ if (thread_id < num_threads)
+ return enabled_array[thread_id];
+ else
+ return THREAD_DISABLED;
+}
+
bool Node::is_enabled(thread_id_t tid)
{
int thread_id=id_to_int(tid);
bool Node::is_enabled(thread_id_t tid)
{
int thread_id=id_to_int(tid);