update isl for isl_schedule_gist_domain_params
[barvinok.git] / decomposer.h
blobb853afc6708b70e03ad6f00dfa7895511c867dbd
1 #ifndef DECOMPOSER_H
2 #define DECOMPOSER_H
4 #include <gmp.h>
5 #include <NTL/mat_ZZ.h>
6 #include <barvinok/polylib.h>
7 #include <barvinok/options.h>
9 using namespace NTL;
11 struct signed_cone {
12 signed_cone(const mat_ZZ& rays, int sign, unsigned long det) :
13 C(NULL), rays(rays), sign(sign), det(det) {}
14 signed_cone(Polyhedron *C, const mat_ZZ& rays, int sign,
15 unsigned long det = 0) :
16 C(C), rays(rays), sign(sign), det(det) {}
17 Polyhedron *C;
18 const mat_ZZ& rays;
19 int sign;
20 unsigned long det;
23 struct signed_cone_consumer {
24 virtual void handle(const signed_cone& sc, barvinok_options *options) = 0;
25 virtual ~signed_cone_consumer() {}
28 struct vertex_decomposer {
29 Param_Polyhedron *PP;
30 Param_Vertices *V; // current vertex
31 int vert; // current vertex index
32 signed_cone_consumer& scc;
34 vertex_decomposer(Param_Polyhedron *PP, signed_cone_consumer& scc) :
35 PP(PP), scc(scc) {}
36 void decompose_at_vertex(Param_Vertices *V, int _i, barvinok_options *options);
39 void barvinok_decompose(Polyhedron *C, signed_cone_consumer& scc,
40 barvinok_options *options);
42 #endif