X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=nodestack.cc;h=b2ef73cac30108fab56745f89b0542a186fc6410;hb=09c3eb5539455e82dcb357fbce82bf5974c3a37c;hp=addf93f67469f1cd7f96a15ffad8ec5551cb1c1b;hpb=9aae08ba6d60aa253039d2da1c3571fdde2ac159;p=model-checker.git diff --git a/nodestack.cc b/nodestack.cc index addf93f..b2ef73c 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -556,7 +556,11 @@ ModelAction * NodeStack::explore_action(ModelAction *act, enabled_type_t *is_ena if (model->params.fairwindow != 0 && head_idx > (int)model->params.fairwindow) prevfairness = node_list[head_idx - model->params.fairwindow]; } - node_list.push_back(new Node(act, head, model->get_num_threads(), prevfairness)); + + int next_threads = model->get_num_threads(); + if (act->get_type() == THREAD_CREATE) + next_threads++; + node_list.push_back(new Node(act, head, next_threads, prevfairness)); total_nodes++; head_idx++; return NULL;