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)
16 #define ISL_BASIC_SET_EMPTY (1 << 1)
36 struct isl_blk block2;
39 /* A "set" is a (possibly disjoint) union of basic sets.
41 * See the documentation of isl_map.
45 #define ISL_SET_DISJOINT (1 << 0)
55 struct isl_basic_set *p[0];
58 struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx,
59 unsigned nparam, unsigned dim, unsigned extra,
60 unsigned n_eq, unsigned n_ineq);
61 struct isl_basic_set *isl_basic_set_extend(struct isl_ctx *ctx,
62 struct isl_basic_set *base,
63 unsigned nparam, unsigned dim, unsigned extra,
64 unsigned n_eq, unsigned n_ineq);
65 struct isl_basic_set *isl_basic_set_finalize(struct isl_ctx *ctx,
66 struct isl_basic_set *bset);
67 void isl_basic_set_free(struct isl_ctx *ctx, struct isl_basic_set *bset);
68 struct isl_basic_set *isl_basic_set_copy(struct isl_ctx *ctx,
69 struct isl_basic_set *bset);
70 void isl_basic_set_dump(struct isl_ctx *ctx, struct isl_basic_set *bset,
71 FILE *out, int indent);
72 struct isl_basic_set *isl_basic_set_swap_vars(struct isl_ctx *ctx,
73 struct isl_basic_set *bset, unsigned n);
74 struct isl_basic_set *isl_basic_set_drop_vars(struct isl_ctx *ctx,
75 struct isl_basic_set *bset, unsigned first, unsigned n);
76 struct isl_basic_set *isl_basic_set_intersect(
77 struct isl_ctx *ctx, struct isl_basic_set *bset1,
78 struct isl_basic_set *bset2);
79 struct isl_basic_set *isl_basic_set_affine_hull(struct isl_ctx *ctx,
80 struct isl_basic_set *bset);
81 struct isl_basic_set *isl_basic_set_simplify(
82 struct isl_ctx *ctx, struct isl_basic_set *bset);
84 struct isl_set *isl_basic_set_lexmin(struct isl_ctx *ctx,
85 struct isl_basic_set *bset);
86 struct isl_set *isl_basic_set_union(
87 struct isl_ctx *ctx, struct isl_basic_set *bset1,
88 struct isl_basic_set *bset2);
90 struct isl_set *isl_set_alloc(struct isl_ctx *ctx,
91 unsigned nparam, unsigned dim, int n, unsigned flags);
92 struct isl_set *isl_set_empty(struct isl_ctx *ctx,
93 unsigned nparam, unsigned dim);
94 struct isl_set *isl_set_add(struct isl_ctx *ctx, struct isl_set *set,
95 struct isl_basic_set *bset);
96 struct isl_set *isl_set_finalize(struct isl_ctx *ctx, struct isl_set *set);
97 struct isl_set *isl_set_copy(struct isl_ctx *ctx, struct isl_set *set);
98 void isl_set_free(struct isl_ctx *ctx, struct isl_set *set);
99 struct isl_set *isl_set_dup(struct isl_ctx *ctx, struct isl_set *set);
100 struct isl_set *isl_set_from_basic_set(struct isl_ctx *ctx,
101 struct isl_basic_set *bset);
102 struct isl_basic_set *isl_set_affine_hull(struct isl_ctx *ctx,
103 struct isl_set *set);
105 struct isl_set *isl_set_union_disjoint(struct isl_ctx *ctx,
106 struct isl_set *set1, struct isl_set *set2);
107 struct isl_set *isl_set_union(struct isl_ctx *ctx,
108 struct isl_set *set1, struct isl_set *set2);
109 struct isl_set *isl_set_subtract(struct isl_ctx *ctx, struct isl_set *set1,
110 struct isl_set *set2);
111 struct isl_set *isl_set_apply(struct isl_ctx *ctx, struct isl_set *set,
112 struct isl_map *map);
114 void isl_set_dump(struct isl_ctx *ctx, struct isl_set *set, FILE *out,
116 struct isl_set *isl_set_swap_vars(struct isl_ctx *ctx,
117 struct isl_set *set, unsigned n);
118 int isl_set_is_empty(struct isl_ctx *ctx, struct isl_set *set);
119 int isl_set_is_subset(struct isl_ctx *ctx,
120 struct isl_set *set1, struct isl_set *set2);
121 int isl_set_is_equal(struct isl_ctx *ctx,
122 struct isl_set *set1, struct isl_set *set2);
124 struct isl_set *isl_basic_set_compute_divs(struct isl_ctx *ctx,
125 struct isl_basic_set *bset);
127 #if defined(__cplusplus)