X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=model.cc;h=0d79a39c623158858a8cc5efa29b16322191150e;hb=e7e175a74d95b5ed0a50750453168275f2fa3589;hp=8e94561531ca063ccbd23bec2bf51d778530a95d;hpb=f9e2e3a893918a431d3af1e6657cd08260e31941;p=model-checker.git diff --git a/model.cc b/model.cc index 8e94561..0d79a39 100644 --- a/model.cc +++ b/model.cc @@ -444,7 +444,7 @@ void ModelChecker::run() * thread which just took a step--plus the first step * for any newly-created thread */ - for (unsigned int i = 0; i < execution->get_num_threads(); i++) { + for (unsigned int i = 0; i < get_num_threads(); i++) { thread_id_t tid = int_to_id(i); Thread *thr = get_thread(tid); if (!thr->is_model_thread() && !thr->is_complete() && !thr->get_pending()) {