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