Browse Source

Remove unnecessary convertNumber

Fixes build errors when GMP numbers are used
tempestpy_adaptions
Daniel Basgöze 3 years ago
committed by Stefan Pranger
parent
commit
22388425d7
  1. 2
      src/storm-pars/analysis/AssumptionChecker.cpp
  2. 2
      src/storm-pars/analysis/MonotonicityHelper.cpp

2
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<VariableType, CoefficientType>(var, utility::convertNumber<CoefficientType>(lb + i * (ub - lb) / (numberOfSamples - 1)));
auto val = std::pair<VariableType, CoefficientType>(var, (lb + i * (ub - lb) / (numberOfSamples - 1)));
valuation.insert(val);
}
models::sparse::Dtmc<ConstantType> sampleModel = instantiator.instantiate(valuation);

2
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<typename utility::parametric::CoefficientType<ValueType>::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<typename utility::parametric::CoefficientType<ValueType>::type>(lb);

Loading…
Cancel
Save