6 #if defined(__cplusplus)
10 /* A "basic set" is a basic map with a zero-dimensional
13 struct isl_basic_set {
15 #define ISL_BASIC_SET_FINAL (1 << 0)
35 struct isl_blk block2;
38 /* A "set" is a (possibly disjoint) union of basic sets.
40 * See the documentation of isl_map.
44 #define ISL_SET_DISJOINT (1 << 0)
54 struct isl_basic_set *p[0];
57 struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx,
58 unsigned nparam, unsigned dim, unsigned extra,
59 unsigned n_eq, unsigned n_ineq);
60 struct isl_basic_set *isl_basic_set_extend(struct isl_ctx *ctx,
61 struct isl_basic_set *base,
62 unsigned nparam, unsigned dim, unsigned extra,
63 unsigned n_eq, unsigned n_ineq);
64 struct isl_basic_set *isl_basic_set_finalize(struct isl_ctx *ctx,
65 struct isl_basic_set *bset);
66 void isl_basic_set_free(struct isl_ctx *ctx, struct isl_basic_set *bset);
67 struct isl_basic_set *isl_basic_set_copy(struct isl_ctx *ctx,
68 struct isl_basic_set *bset);
69 void isl_basic_set_dump(struct isl_ctx *ctx, struct isl_basic_set *bset,
70 FILE *out, int indent);
71 struct isl_basic_set *isl_basic_set_swap_vars(struct isl_ctx *ctx,
72 struct isl_basic_set *bset, unsigned n);
73 struct isl_basic_set *isl_basic_set_drop_vars(struct isl_ctx *ctx,
74 struct isl_basic_set *bset, unsigned first, unsigned n);
75 struct isl_basic_set *isl_basic_set_intersect(
76 struct isl_ctx *ctx, struct isl_basic_set *bset1,
77 struct isl_basic_set *bset2);
78 struct isl_basic_set *isl_basic_set_affine_hull(struct isl_ctx *ctx,
79 struct isl_basic_set *bset);
80 struct isl_basic_set *isl_basic_set_simplify(
81 struct isl_ctx *ctx, struct isl_basic_set *bset);
83 struct isl_set *isl_basic_set_lexmin(struct isl_ctx *ctx,
84 struct isl_basic_set *bset);
85 struct isl_set *isl_basic_set_union(
86 struct isl_ctx *ctx, struct isl_basic_set *bset1,
87 struct isl_basic_set *bset2);
89 struct isl_set *isl_set_alloc(struct isl_ctx *ctx,
90 unsigned nparam, unsigned dim, int n, unsigned flags);
91 struct isl_set *isl_set_empty(struct isl_ctx *ctx,
92 unsigned nparam, unsigned dim);
93 struct isl_set *isl_set_add(struct isl_ctx *ctx, struct isl_set *set,
94 struct isl_basic_set *bset);
95 struct isl_set *isl_set_finalize(struct isl_ctx *ctx, struct isl_set *set);
96 struct isl_set *isl_set_copy(struct isl_ctx *ctx, struct isl_set *set);
97 void isl_set_free(struct isl_ctx *ctx, struct isl_set *set);
98 struct isl_set *isl_set_dup(struct isl_ctx *ctx, struct isl_set *set);
99 struct isl_set *isl_set_from_basic_set(struct isl_ctx *ctx,
100 struct isl_basic_set *bset);
101 struct isl_basic_set *isl_set_affine_hull(struct isl_ctx *ctx,
102 struct isl_set *set);
104 struct isl_set *isl_set_union_disjoint(struct isl_ctx *ctx,
105 struct isl_set *set1, struct isl_set *set2);
106 struct isl_set *isl_set_union(struct isl_ctx *ctx,
107 struct isl_set *set1, struct isl_set *set2);
108 struct isl_set *isl_set_subtract(struct isl_ctx *ctx, struct isl_set *set1,
109 struct isl_set *set2);
110 struct isl_set *isl_set_apply(struct isl_ctx *ctx, struct isl_set *set,
111 struct isl_map *map);
113 void isl_set_dump(struct isl_ctx *ctx, struct isl_set *set, FILE *out,
115 struct isl_set *isl_set_swap_vars(struct isl_ctx *ctx,
116 struct isl_set *set, unsigned n);
117 int isl_set_is_empty(struct isl_ctx *ctx, struct isl_set *set);
118 int isl_set_is_subset(struct isl_ctx *ctx,
119 struct isl_set *set1, struct isl_set *set2);
120 int isl_set_is_equal(struct isl_ctx *ctx,
121 struct isl_set *set1, struct isl_set *set2);
123 struct isl_set *isl_basic_set_compute_divs(struct isl_ctx *ctx,
124 struct isl_basic_set *bset);
126 #if defined(__cplusplus)