|
@ -4,6 +4,7 @@ |
|
|
#include "GraphConditions.h"
|
|
|
#include "GraphConditions.h"
|
|
|
#include "storm/utility/constants.h"
|
|
|
#include "storm/utility/constants.h"
|
|
|
#include "storm/exceptions/NotImplementedException.h"
|
|
|
#include "storm/exceptions/NotImplementedException.h"
|
|
|
|
|
|
#include "storm/exceptions/UnexpectedException.h"
|
|
|
#include "storm/models/sparse/StandardRewardModel.h"
|
|
|
#include "storm/models/sparse/StandardRewardModel.h"
|
|
|
|
|
|
|
|
|
namespace storm { |
|
|
namespace storm { |
|
@ -44,7 +45,7 @@ namespace storm { |
|
|
} else if (entry.denominator().constantPart() < 0) { |
|
|
} else if (entry.denominator().constantPart() < 0) { |
|
|
wellformedConstraintSet.emplace(entry.nominator().polynomialWithCoefficient(), storm::CompareRelation::LEQ); |
|
|
wellformedConstraintSet.emplace(entry.nominator().polynomialWithCoefficient(), storm::CompareRelation::LEQ); |
|
|
} else { |
|
|
} else { |
|
|
assert(false); // Should fail before.
|
|
|
|
|
|
|
|
|
STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Should have failed before."); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
wellformedConstraintSet.emplace(entry.denominator().polynomialWithCoefficient(), storm::CompareRelation::NEQ); |
|
|
wellformedConstraintSet.emplace(entry.denominator().polynomialWithCoefficient(), storm::CompareRelation::NEQ); |
|
@ -111,7 +112,7 @@ namespace storm { |
|
|
} else if (transition.getValue().denominator().constantPart() < 0) { |
|
|
} else if (transition.getValue().denominator().constantPart() < 0) { |
|
|
wellformedConstraintSet.emplace(transition.getValue().nominator().polynomialWithCoefficient(), storm::CompareRelation::LEQ); |
|
|
wellformedConstraintSet.emplace(transition.getValue().nominator().polynomialWithCoefficient(), storm::CompareRelation::LEQ); |
|
|
} else { |
|
|
} else { |
|
|
assert(false); // Should fail before.
|
|
|
|
|
|
|
|
|
STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Should have failed before."); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
wellformedConstraintSet.emplace(transition.getValue().denominator().polynomialWithCoefficient(), storm::CompareRelation::NEQ); |
|
|
wellformedConstraintSet.emplace(transition.getValue().denominator().polynomialWithCoefficient(), storm::CompareRelation::NEQ); |
|
@ -147,7 +148,7 @@ namespace storm { |
|
|
} else if (entry.getValue().denominator().constantPart() < 0) { |
|
|
} else if (entry.getValue().denominator().constantPart() < 0) { |
|
|
wellformedConstraintSet.emplace(entry.getValue().nominator().polynomialWithCoefficient(), storm::CompareRelation::LEQ); |
|
|
wellformedConstraintSet.emplace(entry.getValue().nominator().polynomialWithCoefficient(), storm::CompareRelation::LEQ); |
|
|
} else { |
|
|
} else { |
|
|
assert(false); // Should fail before.
|
|
|
|
|
|
|
|
|
STORM_LOG_THROW(false, storm::exceptions::UnexpectedException, "Should have failed before."); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
wellformedConstraintSet.emplace(entry.getValue().denominator().polynomialWithCoefficient(), storm::CompareRelation::NEQ); |
|
|
wellformedConstraintSet.emplace(entry.getValue().denominator().polynomialWithCoefficient(), storm::CompareRelation::NEQ); |
|
|