Browse Source

Workarounds for more Windows quirks. Compiles but tests crash.

Former-commit-id: 0c47ae886d
tempestpy_adaptions
David_Korzeniewski 10 years ago
parent
commit
ab36c5fb0d
  1. 2
      src/solver/MathsatSmtSolver.cpp
  2. 2
      src/solver/MathsatSmtSolver.h
  3. 4
      src/solver/SmtSolver.h
  4. 10
      src/storage/expressions/Expression.h

2
src/solver/MathsatSmtSolver.cpp

@ -191,6 +191,7 @@ namespace storm {
#endif
}
#ifndef WINDOWS
SmtSolver::CheckResult MathsatSmtSolver::checkWithAssumptions(std::initializer_list<storm::expressions::Expression> const& assumptions)
{
#ifdef STORM_HAVE_MSAT
@ -218,6 +219,7 @@ namespace storm {
STORM_LOG_THROW(false, storm::exceptions::NotSupportedException, "StoRM is compiled without MathSAT support.");
#endif
}
#endif
storm::expressions::SimpleValuation MathsatSmtSolver::getModelAsValuation()
{

2
src/solver/MathsatSmtSolver.h

@ -79,7 +79,9 @@ namespace storm {
virtual CheckResult checkWithAssumptions(std::set<storm::expressions::Expression> const& assumptions) override;
#ifndef WINDOWS
virtual CheckResult checkWithAssumptions(std::initializer_list<storm::expressions::Expression> const& assumptions) override;
#endif
virtual storm::expressions::SimpleValuation getModelAsValuation() override;

4
src/solver/SmtSolver.h

@ -152,8 +152,10 @@ namespace storm {
* @param assumptions The assumptions to add to the call.
* @return Sat if the conjunction of the asserted expressions together with the provided assumptions is
* satisfiable, Unsat if it is unsatisfiable and Unknown if the solver could not determine satisfiability.
*/
*/
#ifndef WINDOWS
virtual CheckResult checkWithAssumptions(std::initializer_list<storm::expressions::Expression> const& assumptions) = 0;
#endif
/*!
* If the last call to check() or checkWithAssumptions() returned Sat, this method retrieves a model that

10
src/storage/expressions/Expression.h

@ -324,4 +324,14 @@ namespace storm {
}
}
//specialize
namespace std {
template<>
struct less < storm::expressions::Expression > {
bool operator()(const storm::expressions::Expression& lhs, const storm::expressions::Expression& rhs) const {
return lhs.getBaseExpressionPointer() < rhs.getBaseExpressionPointer();
}
};
}
#endif /* STORM_STORAGE_EXPRESSIONS_EXPRESSION_H_ */
Loading…
Cancel
Save