From 6e37bd32716348513862436d7fe785915e8b892a Mon Sep 17 00:00:00 2001 From: TimQu Date: Wed, 26 Sep 2018 12:58:21 +0200 Subject: [PATCH] fixed an issue with building MAs via jit --- src/storm/builder/jit/ModelComponentsBuilder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storm/builder/jit/ModelComponentsBuilder.cpp b/src/storm/builder/jit/ModelComponentsBuilder.cpp index 208d4490f..34cdf8af3 100644 --- a/src/storm/builder/jit/ModelComponentsBuilder.cpp +++ b/src/storm/builder/jit/ModelComponentsBuilder.cpp @@ -133,6 +133,7 @@ namespace storm { } else if (modelType == storm::jani::ModelType::MDP || modelType == storm::jani::ModelType::LTS) { return new storm::models::sparse::Mdp>(std::move(transitionMatrix), std::move(stateLabeling), std::move(rewardModels)); } else if (modelType == storm::jani::ModelType::MA) { + markovianStates->resize(transitionMatrix.getRowGroupCount()); return new storm::models::sparse::MarkovAutomaton>(std::move(transitionMatrix), std::move(stateLabeling), std::move(*markovianStates), std::move(rewardModels)); } else { STORM_LOG_THROW(false, storm::exceptions::WrongFormatException, "Model type unsupported by JIT builder.");