From c66b0ea44225376679dfa6cd174e9a879d299c9c Mon Sep 17 00:00:00 2001 From: Tim Quatmann Date: Tue, 18 Feb 2020 15:28:10 +0100 Subject: [PATCH] model-handling: Fixed compatibility checks --- src/storm-cli-utilities/model-handling.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/storm-cli-utilities/model-handling.h b/src/storm-cli-utilities/model-handling.h index 9a4ad13af..40383171a 100644 --- a/src/storm-cli-utilities/model-handling.h +++ b/src/storm-cli-utilities/model-handling.h @@ -194,6 +194,7 @@ namespace storm { if (pf.enableExact() && mpi.verificationValueType == ModelProcessingInformation::ValueType::FinitePrecision) { mpi.verificationValueType = ModelProcessingInformation::ValueType::Exact; } + STORM_PRINT_AND_LOG( "Portfolio engine picked the following settings: " << std::endl << "\tengine=" << mpi.engine << "\t bisimulation=" << mpi.applyBisimulation << "\t exact=" << (mpi.verificationValueType != ModelProcessingInformation::ValueType::FinitePrecision) << std::endl) } ModelProcessingInformation getModelProcessingInformation(SymbolicInput const& input) { @@ -229,11 +230,14 @@ namespace storm { if (input.model) { switch (mpi.verificationValueType) { case ModelProcessingInformation::ValueType::Parametric: - incompatibleSettings = storm::utility::canHandle(mpi.engine, input.preprocessedProperties.is_initialized() ? input.preprocessedProperties.get() : input.properties, input.model.get()); + incompatibleSettings = !storm::utility::canHandle(mpi.engine, input.preprocessedProperties.is_initialized() ? input.preprocessedProperties.get() : input.properties, input.model.get()); + break; case ModelProcessingInformation::ValueType::Exact: - incompatibleSettings = storm::utility::canHandle(mpi.engine, input.preprocessedProperties.is_initialized() ? input.preprocessedProperties.get() : input.properties, input.model.get()); + incompatibleSettings = !storm::utility::canHandle(mpi.engine, input.preprocessedProperties.is_initialized() ? input.preprocessedProperties.get() : input.properties, input.model.get()); + break; case ModelProcessingInformation::ValueType::FinitePrecision: - incompatibleSettings = storm::utility::canHandle(mpi.engine, input.preprocessedProperties.is_initialized() ? input.preprocessedProperties.get() : input.properties, input.model.get()); + incompatibleSettings = !storm::utility::canHandle(mpi.engine, input.preprocessedProperties.is_initialized() ? input.preprocessedProperties.get() : input.properties, input.model.get()); + break; } } if (incompatibleSettings) {