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)
37 struct isl_vec *sample;
40 struct isl_blk block2;
43 /* A "set" is a (possibly disjoint) union of basic sets.
45 * See the documentation of isl_map.
49 #define ISL_SET_DISJOINT (1 << 0)
61 struct isl_basic_set *p[0];
64 struct isl_basic_set *isl_basic_set_alloc(struct isl_ctx *ctx,
65 unsigned nparam, unsigned dim, unsigned extra,
66 unsigned n_eq, unsigned n_ineq);
67 struct isl_basic_set *isl_basic_set_extend(struct isl_basic_set *base,
68 unsigned nparam, unsigned dim, unsigned extra,
69 unsigned n_eq, unsigned n_ineq);
70 struct isl_basic_set *isl_basic_set_finalize(struct isl_basic_set *bset);
71 void isl_basic_set_free(struct isl_basic_set *bset);
72 struct isl_basic_set *isl_basic_set_copy(struct isl_basic_set *bset);
73 struct isl_basic_set *isl_basic_set_empty(struct isl_ctx *ctx,
74 unsigned nparam, unsigned dim);
75 struct isl_basic_set *isl_basic_set_universe(struct isl_ctx *ctx,
76 unsigned nparam, unsigned dim);
77 void isl_basic_set_dump(struct isl_basic_set *bset,
78 FILE *out, int indent);
79 struct isl_basic_set *isl_basic_set_swap_vars(
80 struct isl_basic_set *bset, unsigned n);
81 struct isl_basic_set *isl_basic_set_intersect(
82 struct isl_basic_set *bset1,
83 struct isl_basic_set *bset2);
84 struct isl_basic_set *isl_basic_set_apply(
85 struct isl_basic_set *bset,
86 struct isl_basic_map *bmap);
87 struct isl_basic_set *isl_basic_set_affine_hull(struct isl_basic_set *bset);
88 struct isl_basic_set *isl_basic_set_simplify(struct isl_basic_set *bset);
89 #define ISL_FORMAT_POLYLIB 1
90 #define ISL_FORMAT_OMEGA 2
91 struct isl_basic_set *isl_basic_set_read_from_file(struct isl_ctx *ctx,
92 FILE *input, unsigned nparam, unsigned input_format);
93 struct isl_set *isl_set_read_from_file(struct isl_ctx *ctx,
94 FILE *input, unsigned nparam, unsigned input_format);
95 struct isl_basic_set *isl_basic_set_from_underlying_set(
96 struct isl_basic_set *bset, struct isl_basic_set *like);
97 struct isl_set *isl_set_from_underlying_set(
98 struct isl_set *set, struct isl_basic_set *like);
99 struct isl_set *isl_set_to_underlying_set(struct isl_set *set);
101 int isl_basic_set_is_equal(
102 struct isl_basic_set *bset1, struct isl_basic_set *bset2);
104 struct isl_set *isl_basic_set_lexmin(struct isl_basic_set *bset);
105 struct isl_set *isl_basic_set_union(
106 struct isl_basic_set *bset1,
107 struct isl_basic_set *bset2);
109 struct isl_set *isl_set_alloc(struct isl_ctx *ctx,
110 unsigned nparam, unsigned dim, int n, unsigned flags);
111 struct isl_set *isl_set_extend(struct isl_set *base,
112 unsigned nparam, unsigned dim);
113 struct isl_set *isl_set_empty(struct isl_ctx *ctx,
114 unsigned nparam, unsigned dim);
115 struct isl_set *isl_set_add(struct isl_set *set, struct isl_basic_set *bset);
116 struct isl_set *isl_set_finalize(struct isl_set *set);
117 struct isl_set *isl_set_copy(struct isl_set *set);
118 void isl_set_free(struct isl_set *set);
119 struct isl_set *isl_set_dup(struct isl_set *set);
120 struct isl_set *isl_set_from_basic_set(struct isl_basic_set *bset);
121 struct isl_basic_set *isl_set_affine_hull(struct isl_set *set);
122 struct isl_basic_set *isl_set_convex_hull(struct isl_set *set);
124 struct isl_set *isl_set_union_disjoint(
125 struct isl_set *set1, struct isl_set *set2);
126 struct isl_set *isl_set_union(struct isl_set *set1, struct isl_set *set2);
127 struct isl_set *isl_set_intersect(struct isl_set *set1, struct isl_set *set2);
128 struct isl_set *isl_set_subtract(struct isl_set *set1, struct isl_set *set2);
129 struct isl_set *isl_set_apply(struct isl_set *set, struct isl_map *map);
130 struct isl_set *isl_set_fix_dim_si(struct isl_set *set,
131 unsigned dim, int value);
132 struct isl_basic_set *isl_basic_set_remove_dims(struct isl_basic_set *bset,
133 unsigned first, unsigned n);
134 struct isl_set *isl_set_remove_dims(struct isl_set *set,
135 unsigned first, unsigned n);
137 void isl_set_dump(struct isl_set *set, FILE *out, int indent);
138 struct isl_set *isl_set_swap_vars(struct isl_set *set, unsigned n);
139 int isl_set_is_empty(struct isl_set *set);
140 int isl_set_is_subset(struct isl_set *set1, struct isl_set *set2);
141 int isl_set_is_equal(struct isl_set *set1, struct isl_set *set2);
143 struct isl_set *isl_basic_set_compute_divs(struct isl_basic_set *bset);
145 struct isl_basic_set *isl_set_copy_basic_set(struct isl_set *set);
146 struct isl_set *isl_set_drop_basic_set(struct isl_set *set,
147 struct isl_basic_set *bset);
149 #if defined(__cplusplus)