Storm 1.11.1.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#include <gmpxx.h>
14#endif
15
16#include <carl/numbers/numbers.h>
17
18#if defined(STORM_HAVE_CLN)
19namespace cln {
20inline size_t hash_value(cl_RA const& n) {
21 std::hash<cln::cl_RA> h;
22 return h(n);
23}
24} // namespace cln
25#endif
26
27#if defined(STORM_HAVE_GMP)
28inline size_t hash_value(mpq_class const& q) {
29 std::hash<mpq_class> h;
30 return h(q);
31}
32#endif
size_t hash_value(carl::Interval< Number > const &i)