Browse Source

only filter the result if there actually is a result and a filter

tempestpy_adaptions
TimQu 7 years ago
parent
commit
275f1ff15e
  1. 14
      src/storm/cli/cli.cpp

14
src/storm/cli/cli.cpp

@ -683,7 +683,9 @@ namespace storm {
} else { } else {
filter = storm::api::verifyWithSparseEngine<ValueType>(sparseModel, storm::api::createTask<ValueType>(states, false)); filter = storm::api::verifyWithSparseEngine<ValueType>(sparseModel, storm::api::createTask<ValueType>(states, false));
} }
result->filter(filter->asQualitativeCheckResult());
if (result && filter) {
result->filter(filter->asQualitativeCheckResult());
}
return result; return result;
}); });
} }
@ -703,8 +705,9 @@ namespace storm {
} else { } else {
filter = storm::api::verifyWithHybridEngine<DdType, ValueType>(symbolicModel, storm::api::createTask<ValueType>(states, false)); filter = storm::api::verifyWithHybridEngine<DdType, ValueType>(symbolicModel, storm::api::createTask<ValueType>(states, false));
} }
result->filter(filter->asQualitativeCheckResult());
if (result && filter) {
result->filter(filter->asQualitativeCheckResult());
}
return result; return result;
}); });
} }
@ -724,8 +727,9 @@ namespace storm {
} else { } else {
filter = storm::api::verifyWithDdEngine<DdType, ValueType>(symbolicModel, storm::api::createTask<ValueType>(states, false)); filter = storm::api::verifyWithDdEngine<DdType, ValueType>(symbolicModel, storm::api::createTask<ValueType>(states, false));
} }
result->filter(filter->asQualitativeCheckResult());
if (result && filter) {
result->filter(filter->asQualitativeCheckResult());
}
return result; return result;
}); });
} }

Loading…
Cancel
Save