Browse Source

Do not show a conversion warning if no conversion happens.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
87ef49a2d0
  1. 4
      src/storm-cli-utilities/model-handling.h

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

@ -300,8 +300,8 @@ namespace storm {
auto builderType = storm::utility::getBuilderType(mpi.engine); auto builderType = storm::utility::getBuilderType(mpi.engine);
bool transformToJaniForJit = builderType == storm::builder::BuilderType::Jit; bool transformToJaniForJit = builderType == storm::builder::BuilderType::Jit;
STORM_LOG_WARN_COND(mpi.transformToJani || !transformToJaniForJit, "The JIT-based model builder is only available for JANI models, automatically converting the PRISM input model."); STORM_LOG_WARN_COND(mpi.transformToJani || !transformToJaniForJit, "The JIT-based model builder is only available for JANI models, automatically converting the PRISM input model.");
bool transformToJaniForDdMA = (builderType == storm::builder::BuilderType::Dd) && (input.model->getModelType() == storm::storage::SymbolicModelDescription::ModelType::MA);
STORM_LOG_WARN_COND(mpi.transformToJani || !transformToJaniForDdMA, "Dd-based model builder for Markov Automata is only available for JANI models, automatically converting the PRISM input model.");
bool transformToJaniForDdMA = (builderType == storm::builder::BuilderType::Dd) && (input.model->getModelType() == storm::storage::SymbolicModelDescription::ModelType::MA) && (!input.model->isJaniModel());
STORM_LOG_WARN_COND(mpi.transformToJani || !transformToJaniForDdMA, "Dd-based model builder for Markov Automata is only available for JANI models, automatically converting the input model.");
mpi.transformToJani |= (transformToJaniForJit || transformToJaniForDdMA); mpi.transformToJani |= (transformToJaniForJit || transformToJaniForDdMA);
} }

Loading…
Cancel
Save