Browse Source

Silenced several warnings

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
168b5fabd6
No known key found for this signature in database GPG Key ID: 6EDE19592731EEC3
  1. 4
      src/storm/modelchecker/prctl/helper/rewardbounded/CostLimitClosure.cpp
  2. 4
      src/storm/modelchecker/prctl/helper/rewardbounded/MemoryStateManager.cpp
  3. 2
      src/storm/modelchecker/results/ExplicitQualitativeCheckResult.cpp
  4. 12
      src/storm/solver/TerminationCondition.cpp
  5. 2
      src/storm/storage/expressions/SimpleValuation.cpp
  6. 2
      src/storm/storage/geometry/ReduceVertexCloud.cpp

4
src/storm/modelchecker/prctl/helper/rewardbounded/CostLimitClosure.cpp

@ -92,7 +92,7 @@ namespace storm {
bool CostLimitClosure::containsUpwardClosure(CostLimits const& costLimits) const {
CostLimits infinityProjection(costLimits);
for (auto const& dim : downwardDimensions) {
for (auto dim : downwardDimensions) {
infinityProjection[dim] = CostLimit::infinity();
}
return contains(infinityProjection);
@ -104,7 +104,7 @@ namespace storm {
bool CostLimitClosure::full() const {
CostLimits p(dimension(), CostLimit(0));
for (auto const& dim : downwardDimensions) {
for (auto dim : downwardDimensions) {
p[dim] = CostLimit::infinity();
}
return contains(p);

4
src/storm/modelchecker/prctl/helper/rewardbounded/MemoryStateManager.cpp

@ -61,12 +61,12 @@ namespace storm {
STORM_LOG_ASSERT(dimensionCount > 0, "Invoked MemoryStateManager with zero dimension count.");
STORM_LOG_ASSERT(dimensions.size() == dimensionCount, "Invalid size of given bitset.");
if (value) {
for (auto const& d : dimensions) {
for (auto d : dimensions) {
STORM_LOG_ASSERT(((dimensionBitMask << d) & dimensionsWithoutMemoryMask) == 0, "Tried to set a dimension to 'relevant'-memory state but the dimension is assumed to have no memory.");
state |= (dimensionBitMask << d);
}
} else {
for (auto const& d : dimensions) {
for (auto d : dimensions) {
STORM_LOG_ASSERT(((dimensionBitMask << d) & dimensionsWithoutMemoryMask) == 0, "Tried to set a dimension to 'unrelevant'-memory state but the dimension is assumed to have no memory.");
state &= ~(dimensionBitMask << d);
}

2
src/storm/modelchecker/results/ExplicitQualitativeCheckResult.cpp

@ -215,7 +215,7 @@ namespace storm {
if (this->isResultForAllStates()) {
map_type newMap;
for (auto const& element : filterTruthValues) {
for (auto element : filterTruthValues) {
newMap.emplace(element, this->getTruthValuesVector().get(element));
}
this->truthValues = newMap;

12
src/storm/solver/TerminationCondition.cpp

@ -69,7 +69,7 @@ namespace storm {
if (useMinimum) {
if (this->strict) {
for (auto const& pos : this->filter) {
for (auto pos : this->filter) {
extremum = std::min(valueGetter(pos), extremum);
if (extremum <= this->threshold) {
cachedExtremumIndex = pos;
@ -77,7 +77,7 @@ namespace storm {
}
}
} else {
for (auto const& pos : this->filter) {
for (auto pos : this->filter) {
extremum = std::min(valueGetter(pos), extremum);
if (extremum < this->threshold) {
cachedExtremumIndex = pos;
@ -86,7 +86,7 @@ namespace storm {
}
}
} else {
for (auto const& pos : this->filter) {
for (auto pos : this->filter) {
extremum = std::max(valueGetter(pos), extremum);
}
}
@ -118,12 +118,12 @@ namespace storm {
}
if (useMinimum) {
for (auto const& pos : this->filter) {
for (auto pos : this->filter) {
extremum = std::min(valueGetter(pos), extremum);
}
} else {
if (this->strict) {
for (auto const& pos : this->filter) {
for (auto pos : this->filter) {
extremum = std::max(valueGetter(pos), extremum);
if (extremum >= this->threshold) {
cachedExtremumIndex = pos;
@ -131,7 +131,7 @@ namespace storm {
}
}
} else {
for (auto const& pos : this->filter) {
for (auto pos : this->filter) {
extremum = std::max(valueGetter(pos), extremum);
if (extremum > this->threshold) {
cachedExtremumIndex = pos;

2
src/storm/storage/expressions/SimpleValuation.cpp

@ -122,7 +122,7 @@ namespace storm {
sstr << "[" << std::endl;
sstr << getManager() << std::endl;
if (!booleanValues.empty()) {
for (auto const& element : booleanValues) {
for (auto element : booleanValues) {
sstr << element << " ";
}
sstr << std::endl;

2
src/storm/storage/geometry/ReduceVertexCloud.cpp

@ -115,7 +115,7 @@ namespace storm {
}
if (timeOut > )
#endif
if (timeOut > 0 && totalTime.getTimeInMilliseconds() > timeOut) {
if (timeOut > 0 && static_cast<uint64_t>(totalTime.getTimeInMilliseconds()) > timeOut) {
for (uint64_t remainingPoint = pointIndex + 1; remainingPoint < input.size(); ++remainingPoint) {
vertices.set(remainingPoint);
}

Loading…
Cancel
Save