X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=nodestack.cc;h=76d167d82a9438e6cd941d114c5a172867ca0780;hp=4cf89500fc1faba0f98714173fbd4eca557edefa;hb=59eb730e1d19a0825008c40eb521bfc5c29df5f9;hpb=b4a228de75d93aad50a07b3b048f69bc57ba2dd8 diff --git a/nodestack.cc b/nodestack.cc index 4cf8950..76d167d 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -265,13 +265,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)