isl_tab_relax: avoid NULL pointer dereference
[isl.git] / isl_constraint_private.h
blob5cef0170e80d1e46936b73e1ca55449d3047b2b9
1 #ifndef ISL_CONSTRAINT_PRIVATE_H
2 #define ISL_CONSTRAINT_PRIVATE_H
4 #include <isl/constraint.h>
5 #include <isl/local_space.h>
6 #include <isl/vec.h>
8 struct isl_constraint {
9 int ref;
11 int eq;
12 isl_local_space *ls;
13 isl_vec *v;
16 #undef EL
17 #define EL isl_constraint
19 #include <isl_list_templ.h>
21 struct isl_constraint *isl_basic_set_constraint(struct isl_basic_set *bset,
22 isl_int **line);
24 void isl_constraint_get_coefficient(__isl_keep isl_constraint *constraint,
25 enum isl_dim_type type, int pos, isl_int *v);
26 __isl_give isl_constraint *isl_constraint_set_constant(
27 __isl_take isl_constraint *constraint, isl_int v);
28 __isl_give isl_constraint *isl_constraint_set_coefficient(
29 __isl_take isl_constraint *constraint,
30 enum isl_dim_type type, int pos, isl_int v);
32 #endif