diff --git a/src/storm/builder/jit/ModelComponentsBuilder.cpp b/src/storm/builder/jit/ModelComponentsBuilder.cpp index 62c78bc72..6c51840ad 100644 --- a/src/storm/builder/jit/ModelComponentsBuilder.cpp +++ b/src/storm/builder/jit/ModelComponentsBuilder.cpp @@ -131,7 +131,7 @@ namespace storm { return new storm::models::sparse::Ctmc>(std::move(transitionMatrix), std::move(stateLabeling), std::move(rewardModels)); } else if (modelType == storm::jani::ModelType::MDP) { return new storm::models::sparse::Mdp>(std::move(transitionMatrix), std::move(stateLabeling), std::move(rewardModels)); - } else { + } else if (modelType == storm::jani::ModelType::MA) { std::vector exitRates(transitionMatrix.getRowGroupCount(), storm::utility::zero()); for (auto state : *markovianStates) { for (auto const& element : transitionMatrix.getRow(transitionMatrix.getRowGroupIndices()[state])) { @@ -143,6 +143,8 @@ namespace storm { } return new storm::models::sparse::MarkovAutomaton>(std::move(transitionMatrix), std::move(stateLabeling), std::move(*markovianStates), std::move(exitRates), std::move(rewardModels)); + } else { + STORM_LOG_THROW(false, storm::exceptions::WrongFormatException, "Model type unsupported by JIT builder."); } }