From d99e728add90a65f22663c508494e0473af2788d Mon Sep 17 00:00:00 2001 From: Jip Spel Date: Thu, 20 Sep 2018 12:48:16 +0200 Subject: [PATCH] Add return to check monotonicity --- src/storm-pars/analysis/MonotonicityChecker.cpp | 5 ++++- src/storm-pars/analysis/MonotonicityChecker.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/storm-pars/analysis/MonotonicityChecker.cpp b/src/storm-pars/analysis/MonotonicityChecker.cpp index 0ee7c6ad2..fa97cefc4 100644 --- a/src/storm-pars/analysis/MonotonicityChecker.cpp +++ b/src/storm-pars/analysis/MonotonicityChecker.cpp @@ -9,8 +9,9 @@ namespace storm { namespace analysis { template - void MonotonicityChecker::checkMonotonicity(std::map>> map, storm::storage::SparseMatrix matrix) { + std::map>> MonotonicityChecker::checkMonotonicity(std::map>> map, storm::storage::SparseMatrix matrix) { auto i = 0; + std::map>> result; for (auto itr = map.begin(); itr != map.end(); ++itr) { auto lattice = itr->first; auto assumptions = itr->second; @@ -53,7 +54,9 @@ namespace storm { } } ++i; + result.insert(std::pair>>(lattice, varsMonotone)); } + return result; } template diff --git a/src/storm-pars/analysis/MonotonicityChecker.h b/src/storm-pars/analysis/MonotonicityChecker.h index 222c0129a..9fe48067e 100644 --- a/src/storm-pars/analysis/MonotonicityChecker.h +++ b/src/storm-pars/analysis/MonotonicityChecker.h @@ -24,7 +24,7 @@ namespace storm { * @param map The map with lattices and the assumptions made to create the lattices. * @param matrix The transition matrix. */ - void checkMonotonicity(std::map>> map, storm::storage::SparseMatrix matrix); + std::map>> checkMonotonicity(std::map>> map, storm::storage::SparseMatrix matrix); private: std::map> analyseMonotonicity(uint_fast64_t i, storm::analysis::Lattice* lattice, storm::storage::SparseMatrix matrix) ;