Browse Source

Reverting the previous fix since the jit builder wasn't happy about the carl/formula/Formula.h include.

tempestpy_adaptions
Tim Quatmann 6 years ago
parent
commit
fe658ee787
  1. 23
      src/storm/adapters/RationalFunctionAdapter.h
  2. 3
      src/storm/analysis/GraphConditions.h

23
src/storm/adapters/RationalFunctionAdapter.h

@ -9,27 +9,6 @@
#include <carl/core/Relation.h>
#include <carl/util/stringparser.h>
// Some header files on macOS (included via INTEL TBB) might #define TRUE and FALSE, which in carl/formula/Formula.h are used as FormulaTypes.
// Hence, we temporarily #undef these:
#ifdef TRUE
#define STORM_TEMP_TRUE TRUE
#undef TRUE
#endif
#ifdef FALSE
#define STORM_TEMP_FALSE FALSE
#undef FALSE
#endif
#include <carl/formula/Formula.h>
// Restore TRUE / FALSE macros.
#ifdef STORM_TEMP_TRUE
#define TRUE STORM_TEMP_TRUE
#undef STORM_TEMP_TRUE
#endif
#ifdef STORM_TEMP_FALSE
#define FALSE STORM_TEMP_FALSE
#undef STORM_TEMP_FALSE
#endif
namespace carl {
// Define hash values for all polynomials and rational function.
template<typename C, typename O, typename P>
@ -78,7 +57,5 @@ namespace storm {
typedef carl::RationalFunction<Polynomial, true> RationalFunction;
typedef carl::Interval<double> Interval;
typedef carl::Formula<RawPolynomial> RationalFunctionConstraint;
}

3
src/storm/analysis/GraphConditions.h

@ -4,6 +4,7 @@
#include <unordered_set>
#include "storm/adapters/RationalFunctionAdapter.h"
#include "storm/models/sparse/Dtmc.h"
#include <carl/formula/Formula.h>
namespace storm {
namespace analysis {
@ -16,7 +17,7 @@ namespace storm {
template<typename ValueType>
struct ConstraintType<ValueType, typename std::enable_if<std::is_same<storm::RationalFunction, ValueType>::value>::type> {
typedef storm::RationalFunctionConstraint val;
typedef carl::Formula<typename storm::RationalFunction::PolyType::PolyType> val;
};
/**

Loading…
Cancel
Save