From 13ce36ebd2ed7a26c9a62464efd06fc07b0edb51 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 3 Jan 2012 18:27:12 +0100 Subject: [PATCH] bug_fix: add missing assertion --- preprocessor/ComputingTasks.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc index 2051b5fb7..3b277f9ea 100644 --- a/preprocessor/ComputingTasks.cc +++ b/preprocessor/ComputingTasks.cc @@ -1443,6 +1443,7 @@ MarkovSwitchingStatement::checkPass(ModFileStructure &mod_file_struct) using namespace boost; OptionsList::num_options_t::const_iterator it_num_regimes = options_list.num_options.find("ms.number_of_regimes"); + assert(it_num_regimes != options_list.num_options.end()); int num_regimes = lexical_cast< int >(it_num_regimes->second); vector col_trans_prob_sum (num_regimes, 0); vector row_trans_prob_sum (num_regimes, 0);