summaryrefslogtreecommitdiff
path: root/instchk.hh
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 07:10:54 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-06 07:10:54 -0800
commitede95f2eabeab645352a36af072ee998c400bca1 (patch)
treefcd5dc9c73c1bdc0444deee28a9b329f62a2ed7b /instchk.hh
downloadppl-upstream/0.11.2.tar.gz
ppl-upstream/0.11.2.tar.bz2
ppl-upstream/0.11.2.zip
Imported Upstream version 0.11.2upstream/0.11.2upstream
Diffstat (limited to 'instchk.hh')
-rw-r--r--instchk.hh389
1 files changed, 389 insertions, 0 deletions
diff --git a/instchk.hh b/instchk.hh
new file mode 100644
index 000000000..f66c14565
--- /dev/null
+++ b/instchk.hh
@@ -0,0 +1,389 @@
+/* Fake declarations to test the validity of the arguments of the
+ --enabled-instantiations option defined in configure.ac.
+ Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
+ Copyright (C) 2010-2011 BUGSENG srl (http://bugseng.com)
+
+This file is part of the Parma Polyhedra Library (PPL).
+
+The PPL is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+The PPL is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
+
+For the most up-to-date information see the Parma Polyhedra Library
+site: http://www.cs.unipr.it/ppl/ . */
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#include "gmpxx.h"
+
+namespace Parma_Polyhedra_Library {
+
+class Polyhedron {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+};
+
+class C_Polyhedron {
+public:
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class NNC_Polyhedron {
+public:
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Grid {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Rational_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Z_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+#if PPL_SUPPORTED_FLOAT
+class Float_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+#endif // PPL_SUPPORTED_FLOAT
+
+#if PPL_SUPPORTED_DOUBLE
+class Double_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+#endif // PPL_SUPPORTED_DOUBLE
+
+#if PPL_SUPPORTED_LONG_DOUBLE
+class Long_Double_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+#endif // PPL_SUPPORTED_LONG_DOUBLE
+
+class Int8_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Int16_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Int32_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Int64_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Uint8_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Uint16_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Uint32_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+class Uint64_Box {
+public:
+ static bool valid_instantiation() {
+ return true;
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+template <typename PSET>
+class Pointset_Powerset {
+public:
+ static bool valid_instantiation() {
+ return PSET::valid_Pointset_Powerset_argument();
+ }
+};
+
+template <typename T>
+bool
+valid_BD_Shape_argument(void);
+
+template <>
+bool
+valid_BD_Shape_argument<signed char>() {
+ return true;
+}
+
+template <>
+bool
+valid_BD_Shape_argument<short>() {
+ return true;
+}
+
+template <>
+bool
+valid_BD_Shape_argument<int>() {
+ return true;
+}
+
+template <>
+bool
+valid_BD_Shape_argument<long>() {
+ return true;
+}
+
+template <>
+bool
+valid_BD_Shape_argument<long long>() {
+ return true;
+}
+
+#if PPL_SUPPORTED_FLOAT
+template <>
+bool
+valid_BD_Shape_argument<float>() {
+ return true;
+}
+#endif // PPL_SUPPORTED_FLOAT
+
+#if PPL_SUPPORTED_DOUBLE
+template <>
+bool
+valid_BD_Shape_argument<double>() {
+ return true;
+}
+#endif // PPL_SUPPORTED_DOUBLE
+
+#if PPL_SUPPORTED_LONG_DOUBLE
+template <>
+bool
+valid_BD_Shape_argument<long double>() {
+ return true;
+}
+#endif // PPL_SUPPORTED_LONG_DOUBLE
+
+template <>
+bool
+valid_BD_Shape_argument<mpz_class>() {
+ return true;
+}
+
+template <>
+bool
+valid_BD_Shape_argument<mpq_class>() {
+ return true;
+}
+
+template <typename T>
+class BD_Shape {
+public:
+ static bool valid_instantiation() {
+ return valid_BD_Shape_argument<T>();
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+template <typename T>
+class Octagonal_Shape {
+public:
+ static bool valid_instantiation() {
+ return valid_BD_Shape_argument<T>();
+ }
+ static bool valid_Pointset_Powerset_argument() {
+ return true;
+ }
+ static bool valid_Product_argument() {
+ return true;
+ }
+};
+
+template <typename D1, typename D2>
+class Direct_Product {
+public:
+ static bool valid_instantiation() {
+ return D1::valid_Product_argument() && D2::valid_Product_argument();
+ }
+};
+
+template <typename D1, typename D2>
+class Smash_Product {
+public:
+ static bool valid_instantiation() {
+ return D1::valid_Product_argument() && D2::valid_Product_argument();
+ }
+};
+
+template <typename D1, typename D2>
+class Constraints_Product {
+public:
+ static bool valid_instantiation() {
+ return D1::valid_Product_argument() && D2::valid_Product_argument();
+ }
+};
+
+template <typename D1, typename D2>
+class Shape_Preserving_Product {
+public:
+ static bool valid_instantiation() {
+ return D1::valid_Product_argument() && D2::valid_Product_argument();
+ }
+};
+
+} // namespace Parma_Polyhedra_Library