Browse Source

Give message when no lattices are created

tempestpy_adaptions
Jip Spel 6 years ago
parent
commit
c85da52e8b
  1. 13
      src/storm-pars-cli/storm-pars.cpp

13
src/storm-pars-cli/storm-pars.cpp

@ -556,10 +556,15 @@ namespace storm {
// Monotonicity? // Monotonicity?
storm::utility::Stopwatch monotonicityWatch(true); storm::utility::Stopwatch monotonicityWatch(true);
auto monotonicityChecker = storm::analysis::MonotonicityChecker<ValueType>();
monotonicityChecker.checkMonotonicity(result, sparseModel->getTransitionMatrix());
monotonicityWatch.stop();
STORM_PRINT(std::endl << "Time for monotonicity: " << monotonicityWatch << "." << std::endl << std::endl);
if (result.size() > 0) {
auto monotonicityChecker = storm::analysis::MonotonicityChecker<ValueType>();
monotonicityChecker.checkMonotonicity(result, sparseModel->getTransitionMatrix());
monotonicityWatch.stop();
} else {
STORM_PRINT(std::endl << "Could not find monotonicity, no lattices created" << std::endl);
}
STORM_PRINT(std::endl << "Time for monotonicity: " << monotonicityWatch << "." << std::endl
<< std::endl);
std::cout << "Bye, Jip2" << std::endl; std::cout << "Bye, Jip2" << std::endl;
return; return;

Loading…
Cancel
Save