Browse Source

Added debug output.

Former-commit-id: 247b615c1e
tempestpy_adaptions
dehnert 10 years ago
parent
commit
e32482b7a9
  1. 2
      src/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp
  2. 7
      src/stormParametric.cpp

2
src/modelchecker/reachability/SparseDtmcEliminationModelChecker.cpp

@ -543,7 +543,7 @@ namespace storm {
// if (storm::settings::parametricSettings().isSimplifySet()) {
// return storm::utility::simplify(stateRewards.get()[*initialStates.begin()]);
// } else {
return stateRewards.get()[*initialStates.begin()];
return storm::utility::simplify(stateRewards.get()[*initialStates.begin()]);
// }
} else {
// if (storm::settings::parametricSettings().isSimplifySet()) {

7
src/stormParametric.cpp

@ -194,9 +194,16 @@ void check() {
storm::modelchecker::reachability::CollectConstraints<ValueType> constraintCollector;
constraintCollector(*dtmc);
STORM_LOG_DEBUG("Computing function...");
std::unique_ptr<storm::modelchecker::CheckResult> result = modelchecker.check(*formula);
STORM_LOG_DEBUG("Computed the final result.");
ValueType valueFunction = result->asExplicitQuantitativeCheckResult<ValueType>()[*model->getInitialStates().begin()];
STORM_LOG_DEBUG("Extracted value function.");
// Report the result.
STORM_PRINT_AND_LOG(std::endl << "Result (initial state): ");
result->writeToStream(std::cout, model->getInitialStates());

Loading…
Cancel
Save