X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=nodestack.cc;h=3db80e8f6b4f8931ad3a238215c4294c86cd9708;hp=72c8d5cf5e46f7dca4241aa12f26958439ad15c3;hb=b8b39c87557325a384faa45d0cae56a6f71f52b1;hpb=07d9e344693c6d2b85f821447be80deaee118b65 diff --git a/nodestack.cc b/nodestack.cc index 72c8d5c..3db80e8 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -267,13 +267,13 @@ thread_id_t Node::get_next_backtrack() bool Node::is_enabled(Thread *t) { int thread_id=id_to_int(t->get_id()); - return thread_id < num_threads && (enabled_array[thread_id] == THREAD_ENABLED); + return thread_id < num_threads && (enabled_array[thread_id] != THREAD_DISABLED); } bool Node::is_enabled(thread_id_t tid) { int thread_id=id_to_int(tid); - return thread_id < num_threads && (enabled_array[thread_id] == THREAD_ENABLED); + return thread_id < num_threads && (enabled_array[thread_id] != THREAD_DISABLED); } bool Node::has_priority(thread_id_t tid)