Storm 1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
RationalNumberAdapter.h
Go to the documentation of this file.
1#pragma once
2
4
5#if defined(STORM_HAVE_CLN)
6#pragma clang diagnostic push
7#pragma clang diagnostic ignored "-Wmismatched-tags"
8#include <cln/cln.h>
9#pragma clang diagnostic pop
10#endif
11
12#if defined(STORM_HAVE_GMP)
13// Disable potential warning on newer AppleClang versions
14#if __GNUC__ && defined(__has_warning)
15#if __has_warning("-Wdeprecated-literal-operator")
16#define SUPPRESSING
17#pragma GCC diagnostic push
18#pragma GCC diagnostic ignored "-Wdeprecated-literal-operator"
19#endif
20#endif
21
22#include <gmpxx.h>
23
24#ifdef SUPPRESSING
25#undef SUPPRESSING
26#pragma GCC diagnostic pop
27#endif
28
29#endif
30
31#include <carl/numbers/numbers.h>
32
33#if defined(STORM_HAVE_CLN)
34namespace cln {
35inline size_t hash_value(cl_RA const& n) {
36 std::hash<cln::cl_RA> h;
37 return h(n);
38}
39} // namespace cln
40#endif
41
42#if defined(STORM_HAVE_GMP)
43inline size_t hash_value(mpq_class const& q) {
44 std::hash<mpq_class> h;
45 return h(q);
46}
47#endif
size_t hash_value(carl::Interval< Number > const &i)