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) ;