From 972332810bb72c84ffb2e837d13d15043ef862df Mon Sep 17 00:00:00 2001 From: Sebastian Junges Date: Sun, 10 May 2020 18:27:57 -0700 Subject: [PATCH] cosmetic changes, better output, some assertions --- .../analysis/MemlessStrategySearchQualitative.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/storm-pomdp/analysis/MemlessStrategySearchQualitative.cpp b/src/storm-pomdp/analysis/MemlessStrategySearchQualitative.cpp index 9130da993..0b1ce1d63 100644 --- a/src/storm-pomdp/analysis/MemlessStrategySearchQualitative.cpp +++ b/src/storm-pomdp/analysis/MemlessStrategySearchQualitative.cpp @@ -13,7 +13,7 @@ namespace storm { uint64_t i = 0; std::stringstream ss; STORM_LOG_TRACE("states which we have now: "); - for (auto rv : reachVars) { + for (auto const& rv : reachVars) { if (model->getBooleanValue(rv)) { ss << " " << i; } @@ -23,14 +23,13 @@ namespace storm { i = 0; STORM_LOG_TRACE("states from which we continue: "); std::stringstream ss2; - for (auto rv : continuationVars) { + for (auto const& rv : continuationVars) { if (model->getBooleanValue(rv)) { ss2 << " " << i; } ++i; } STORM_LOG_TRACE(ss2.str()); - } } @@ -641,7 +640,6 @@ namespace storm { scheduler.printForObservations(observations,observationsAfterSwitch); } - stats.winningRegionUpdatesTimer.start(); storm::storage::BitVector updated(observations.size()); uint64_t newTargetObservations = 0; @@ -665,6 +663,7 @@ namespace storm { ++newTargetObservations; for (uint64_t state : statesPerObservation[observation]) { targetStates.set(state); + assert(!surelyReachSinkStates.get(state)); } } updated.set(observation); @@ -863,7 +862,7 @@ namespace storm { return false; } - STORM_LOG_DEBUG("Satisfying assignment: "); + STORM_LOG_TRACE("Satisfying assignment: "); STORM_LOG_TRACE(smtSolver->getModelAsValuation().toString(true)); return true; }