From b20da7c43f3128427987891a2ce7358290b8b7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=28Charybdis=29?= <stephane.adjemian@univ-lemans.fr> Date: Mon, 6 Aug 2018 21:36:52 +0200 Subject: [PATCH] Fixed timing issue in VAR_EXPECTATION expansion. --- src/ModFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModFile.cc b/src/ModFile.cc index 4f8d1e08..b5fdf322 100644 --- a/src/ModFile.cc +++ b/src/ModFile.cc @@ -548,7 +548,7 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, const /* Create auxiliary parameters and the expression to be substituted to the var_expectations statement */ auto subst_expr = dynamic_model.Zero; - for (int lag = 1; lag <= max_lag; lag++) + for (int lag = 0; lag < max_lag; lag++) for (auto variable : lhs) { string param_name = "var_expectation_model_" + model_name + '_' + symbol_table.getName(variable) + '_' + to_string(lag); -- GitLab