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. 2
      src/solver/SmtSolver.h
  4. 10
      src/storage/expressions/Expression.h

2
src/solver/MathsatSmtSolver.cpp

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

2
src/solver/SmtSolver.h

@ -153,7 +153,9 @@ namespace storm {
* @return Sat if the conjunction of the asserted expressions together with the provided assumptions is * @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. * 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; 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 * 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_ */ #endif /* STORM_STORAGE_EXPRESSIONS_EXPRESSION_H_ */
Loading…
Cancel
Save