|
@ -52,6 +52,31 @@ namespace storm { |
|
|
// Intentionally left empty.
|
|
|
// Intentionally left empty.
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
|
|
|
ExplicitQuantitativeCheckResult<ValueType>::ExplicitQuantitativeCheckResult(ExplicitQualitativeCheckResult const& other) { |
|
|
|
|
|
if (other.isResultForAllStates()) { |
|
|
|
|
|
storm::storage::BitVector const& bvValues = other.getTruthValuesVector(); |
|
|
|
|
|
|
|
|
|
|
|
vector_type newVector; |
|
|
|
|
|
newVector.reserve(bvValues.size()); |
|
|
|
|
|
for (std::size_t i = 0, n = bvValues.size(); i < n; i++) { |
|
|
|
|
|
newVector.push_back(bvValues.get(i) ? storm::utility::one<ValueType>() : storm::utility::zero<ValueType>()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
values = newVector; |
|
|
|
|
|
} else { |
|
|
|
|
|
ExplicitQualitativeCheckResult::map_type const& bitMap = other.getTruthValuesMap(); |
|
|
|
|
|
|
|
|
|
|
|
map_type newMap; |
|
|
|
|
|
for (auto const& e : bitMap) { |
|
|
|
|
|
newMap[e.first] = e.second ? storm::utility::one<ValueType>() : storm::utility::zero<ValueType>(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
values = newMap; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
template<typename ValueType> |
|
|
std::unique_ptr<CheckResult> ExplicitQuantitativeCheckResult<ValueType>::clone() const { |
|
|
std::unique_ptr<CheckResult> ExplicitQuantitativeCheckResult<ValueType>::clone() const { |
|
|
return std::make_unique<ExplicitQuantitativeCheckResult<ValueType>>(this->values, this->scheduler); |
|
|
return std::make_unique<ExplicitQuantitativeCheckResult<ValueType>>(this->values, this->scheduler); |
|
|