diff --git a/src/storm-cli-utilities/model-handling.h b/src/storm-cli-utilities/model-handling.h index f413951c9..0a0dc28c1 100644 --- a/src/storm-cli-utilities/model-handling.h +++ b/src/storm-cli-utilities/model-handling.h @@ -421,10 +421,10 @@ namespace storm { template std::shared_ptr buildModelSparse(SymbolicInput const& input, storm::settings::modules::BuildSettings const& buildSettings, bool useJit) { storm::builder::BuilderOptions options(createFormulasToRespect(input.properties), input.model.get()); - options.setBuildChoiceLabels(buildSettings.isBuildChoiceLabelsSet()); - options.setBuildStateValuations(buildSettings.isBuildStateValuationsSet()); - options.setBuildAllLabels(buildSettings.isBuildAllLabelsSet()); - bool buildChoiceOrigins = buildSettings.isBuildChoiceOriginsSet(); + options.setBuildChoiceLabels(options.isBuildChoiceLabelsSet() || buildSettings.isBuildChoiceLabelsSet()); + options.setBuildStateValuations(options.isBuildStateValuationsSet() || buildSettings.isBuildStateValuationsSet()); + options.setBuildAllLabels(options.isBuildAllLabelsSet() || buildSettings.isBuildAllLabelsSet()); + bool buildChoiceOrigins = options.isBuildChoiceOriginsSet() || buildSettings.isBuildChoiceOriginsSet(); if (storm::settings::manager().hasModule(storm::settings::modules::CounterexampleGeneratorSettings::moduleName)) { auto counterexampleGeneratorSettings = storm::settings::getModule(); if (counterexampleGeneratorSettings.isCounterexampleSet()) { @@ -432,10 +432,6 @@ namespace storm { } } options.setBuildChoiceOrigins(buildChoiceOrigins); - if (input.model->getModelType() == storm::storage::SymbolicModelDescription::ModelType::POMDP) { - options.setBuildChoiceOrigins(true); - options.setBuildChoiceLabels(true); - } if (buildSettings.isApplyNoMaximumProgressAssumptionSet()) { options.setApplyMaximalProgressAssumption(false); diff --git a/src/storm/builder/BuilderOptions.cpp b/src/storm/builder/BuilderOptions.cpp index b84e5b89d..9831040c3 100644 --- a/src/storm/builder/BuilderOptions.cpp +++ b/src/storm/builder/BuilderOptions.cpp @@ -60,6 +60,8 @@ namespace storm { auto const& generalSettings = storm::settings::getModule(); if (modelDescription.hasModel()) { this->setApplyMaximalProgressAssumption(modelDescription.getModelType() == storm::storage::SymbolicModelDescription::ModelType::MA); + this->setBuildChoiceOrigins(modelDescription.getModelType() == storm::storage::SymbolicModelDescription::ModelType::POMDP); + this->setBuildChoiceLabels(modelDescription.getModelType() == storm::storage::SymbolicModelDescription::ModelType::POMDP); } showProgress = generalSettings.isVerboseSet(); showProgressDelay = generalSettings.getShowProgressDelay();