commit 473766aba1704e0fa2b5c1c5672a728a0a20d390 Author: Amr Keleg Date: Tue Apr 2 23:49:29 2019 +0200 Fix the analysis weight computation bug When computing the overall weight of an analysis, The weight of the final state was ignored. diff --git a/lttoolbox/state.cc b/lttoolbox/state.cc index 0902e8f..bfa4909 100644 --- a/lttoolbox/state.cc +++ b/lttoolbox/state.cc @@ -600,6 +600,9 @@ State::filterFinals(map const &finals, cost += ((*(state[i].sequence))[j]).second; } } + + // Add the weight of the final state + cost += (*(finals.find(state[i].where))).second; response.push_back(make_pair(result, cost)); } }