From 22388425d78c7b92436949e4194d678982193874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Basg=C3=B6ze?= Date: Tue, 24 Aug 2021 16:45:22 +0200 Subject: [PATCH] Remove unnecessary convertNumber Fixes build errors when GMP numbers are used --- src/storm-pars/analysis/AssumptionChecker.cpp | 2 +- src/storm-pars/analysis/MonotonicityHelper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storm-pars/analysis/AssumptionChecker.cpp b/src/storm-pars/analysis/AssumptionChecker.cpp index 8dad3bd48..a6ad9bbaf 100644 --- a/src/storm-pars/analysis/AssumptionChecker.cpp +++ b/src/storm-pars/analysis/AssumptionChecker.cpp @@ -34,7 +34,7 @@ namespace storm { auto lb = region.getLowerBoundary(var.name()); auto ub = region.getUpperBoundary(var.name()); // Creates samples between lb and ub, that is: lb, lb + (ub-lb)/(#samples -1), lb + 2* (ub-lb)/(#samples -1), ..., ub - auto val = std::pair(var, utility::convertNumber(lb + i * (ub - lb) / (numberOfSamples - 1))); + auto val = std::pair(var, (lb + i * (ub - lb) / (numberOfSamples - 1))); valuation.insert(val); } models::sparse::Dtmc sampleModel = instantiator.instantiate(valuation); diff --git a/src/storm-pars/analysis/MonotonicityHelper.cpp b/src/storm-pars/analysis/MonotonicityHelper.cpp index 34406067d..9a652345c 100644 --- a/src/storm-pars/analysis/MonotonicityHelper.cpp +++ b/src/storm-pars/analysis/MonotonicityHelper.cpp @@ -266,7 +266,7 @@ namespace storm { auto lb = region.getLowerBoundary(itr->name()); auto ub = region.getUpperBoundary(itr->name()); // Creates samples between lb and ub, that is: lb, lb + (ub-lb)/(#samples -1), lb + 2* (ub-lb)/(#samples -1), ..., ub - valuation[*itr2] = utility::convertNumber::type>(lb + i*(ub-lb)/(numberOfSamples-1)); + valuation[*itr2] = (lb + i*(ub-lb)/(numberOfSamples-1)); } else { auto lb = region.getLowerBoundary(itr2->name()); valuation[*itr2] = utility::convertNumber::type>(lb);