Browse Source

storm-cli: Splitting the 'export' part from buildPreprocessExportModelWithValueTypeAndDdLib. This allows to build the model without exporting it.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
82ad509405
  1. 10
      src/storm-cli-utilities/model-handling.h

10
src/storm-cli-utilities/model-handling.h

@ -1084,7 +1084,7 @@ namespace storm {
} }
template <storm::dd::DdType DdType, typename BuildValueType, typename VerificationValueType = BuildValueType> template <storm::dd::DdType DdType, typename BuildValueType, typename VerificationValueType = BuildValueType>
std::shared_ptr<storm::models::ModelBase> buildPreprocessExportModelWithValueTypeAndDdlib(SymbolicInput const& input, ModelProcessingInformation const& mpi) {
std::shared_ptr<storm::models::ModelBase> buildPreprocessModelWithValueTypeAndDdlib(SymbolicInput const& input, ModelProcessingInformation const& mpi) {
auto ioSettings = storm::settings::getModule<storm::settings::modules::IOSettings>(); auto ioSettings = storm::settings::getModule<storm::settings::modules::IOSettings>();
auto buildSettings = storm::settings::getModule<storm::settings::modules::BuildSettings>(); auto buildSettings = storm::settings::getModule<storm::settings::modules::BuildSettings>();
std::shared_ptr<storm::models::ModelBase> model; std::shared_ptr<storm::models::ModelBase> model;
@ -1104,6 +1104,14 @@ namespace storm {
model = preprocessingResult.first; model = preprocessingResult.first;
model->printModelInformationToStream(std::cout); model->printModelInformationToStream(std::cout);
} }
}
return model;
}
template <storm::dd::DdType DdType, typename BuildValueType, typename VerificationValueType = BuildValueType>
std::shared_ptr<storm::models::ModelBase> buildPreprocessExportModelWithValueTypeAndDdlib(SymbolicInput const& input, ModelProcessingInformation const& mpi) {
auto model = buildPreprocessModelWithValueTypeAndDdlib<DdType, BuildValueType, VerificationValueType>(input, mpi);
if (model) {
exportModel<DdType, BuildValueType>(model, input); exportModel<DdType, BuildValueType>(model, input);
} }
return model; return model;

Loading…
Cancel
Save