Coverage Report

Created: 2017-03-27 23:01

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/tools/polly/lib/External/isl/isl_map_private.h
Line
Count
Source
1
/*
2
 * Copyright 2008-2009 Katholieke Universiteit Leuven
3
 *
4
 * Use of this software is governed by the MIT license
5
 *
6
 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7
 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8
 */
9
10
#ifndef ISL_MAP_PRIVATE_H
11
#define ISL_MAP_PRIVATE_H
12
13
878k
#define isl_basic_set isl_basic_map
14
1.51k
#define isl_maybe_isl_basic_set isl_maybe_isl_basic_map
15
318k
#define isl_set   isl_map
16
1.15k
#define isl_basic_set_list  isl_basic_map_list
17
1.85k
#define isl_set_list  isl_map_list
18
#include <isl/list.h>
19
#include <isl/set.h>
20
#include <isl/map.h>
21
#include <isl_reordering.h>
22
#include <isl/vec.h>
23
#include <isl/hash.h>
24
#include <isl_blk.h>
25
26
/* A "basic map" is a relation between two sets of variables,
27
 * called the "in" and "out" variables.
28
 * A "basic set" is a basic map with a zero-dimensional
29
 * domain.
30
 *
31
 * It is implemented as a set with two extra fields:
32
 * n_in is the number of in variables
33
 * n_out is the number of out variables
34
 * n_in + n_out should be equal to set.dim
35
 */
36
struct isl_basic_map {
37
  int ref;
38
#define ISL_BASIC_MAP_FINAL   (1 << 0)
39
#define ISL_BASIC_MAP_EMPTY   (1 << 1)
40
#define ISL_BASIC_MAP_NO_IMPLICIT (1 << 2)
41
#define ISL_BASIC_MAP_NO_REDUNDANT  (1 << 3)
42
#define ISL_BASIC_MAP_RATIONAL    (1 << 4)
43
#define ISL_BASIC_MAP_NORMALIZED  (1 << 5)
44
#define ISL_BASIC_MAP_NORMALIZED_DIVS (1 << 6)
45
#define ISL_BASIC_MAP_ALL_EQUALITIES  (1 << 7)
46
#define ISL_BASIC_MAP_REDUCED_COEFFICIENTS  (1 << 8)
47
#define ISL_BASIC_SET_FINAL   (1 << 0)
48
#define ISL_BASIC_SET_EMPTY   (1 << 1)
49
#define ISL_BASIC_SET_NO_IMPLICIT (1 << 2)
50
#define ISL_BASIC_SET_NO_REDUNDANT  (1 << 3)
51
#define ISL_BASIC_SET_RATIONAL    (1 << 4)
52
#define ISL_BASIC_SET_NORMALIZED  (1 << 5)
53
#define ISL_BASIC_SET_NORMALIZED_DIVS (1 << 6)
54
#define ISL_BASIC_SET_ALL_EQUALITIES  (1 << 7)
55
#define ISL_BASIC_SET_REDUCED_COEFFICIENTS  (1 << 8)
56
  unsigned flags;
57
58
  struct isl_ctx *ctx;
59
60
  isl_space *dim;
61
  unsigned extra;
62
63
  unsigned n_eq;
64
  unsigned n_ineq;
65
66
  size_t c_size;
67
  isl_int **eq;
68
  isl_int **ineq;
69
70
  unsigned n_div;
71
72
  isl_int **div;
73
74
  struct isl_vec *sample;
75
76
  struct isl_blk block;
77
  struct isl_blk block2;
78
};
79
80
#undef EL
81
#define EL isl_basic_set
82
83
#include <isl_list_templ.h>
84
85
/* A "map" is a (possibly disjoint) union of basic maps.
86
 * A "set" is a (possibly disjoint) union of basic sets.
87
 *
88
 * Currently, the isl_set structure is identical to the isl_map structure
89
 * and the library depends on this correspondence internally.
90
 * However, users should not depend on this correspondence.
91
 *
92
 * "cached_simple_hull" contains copies of the unshifted and shifted
93
 * simple hulls, if they have already been computed.  Otherwise,
94
 * the entries are NULL.
95
 */
96
struct isl_map {
97
  int ref;
98
437k
#define ISL_MAP_DISJOINT    (1 << 0)
99
#define ISL_MAP_NORMALIZED    (1 << 1)
100
1.43k
#define ISL_SET_DISJOINT    (1 << 0)
101
#define ISL_SET_NORMALIZED    (1 << 1)
102
  unsigned flags;
103
  isl_basic_map *cached_simple_hull[2];
104
105
  struct isl_ctx *ctx;
106
107
  isl_space *dim;
108
109
  int n;
110
111
  size_t size;
112
  struct isl_basic_map *p[1];
113
};
114
115
#undef EL
116
#define EL isl_set
117
118
#include <isl_list_templ.h>
119
120
__isl_give isl_basic_set *isl_basic_set_alloc(isl_ctx *ctx,
121
  unsigned nparam, unsigned dim, unsigned extra,
122
  unsigned n_eq, unsigned n_ineq);
123
__isl_give isl_basic_set *isl_basic_set_extend(__isl_take isl_basic_set *base,
124
  unsigned nparam, unsigned dim, unsigned extra,
125
  unsigned n_eq, unsigned n_ineq);
126
__isl_give isl_basic_set *isl_basic_set_extend_constraints(
127
  __isl_take isl_basic_set *base, unsigned n_eq, unsigned n_ineq);
128
__isl_give isl_basic_set *isl_basic_set_finalize(
129
  __isl_take isl_basic_set *bset);
130
__isl_give isl_basic_set *isl_basic_set_dup(__isl_keep isl_basic_set *bset);
131
__isl_give isl_basic_set *isl_basic_set_simplify(
132
  __isl_take isl_basic_set *bset);
133
134
__isl_give isl_basic_map *isl_basic_map_alloc(isl_ctx *ctx,
135
  unsigned nparam, unsigned in, unsigned out, unsigned extra,
136
  unsigned n_eq, unsigned n_ineq);
137
__isl_give isl_basic_map *isl_basic_map_mark_final(
138
  __isl_take isl_basic_map *bmap);
139
__isl_give isl_basic_map *isl_basic_map_finalize(
140
  __isl_take isl_basic_map *bmap);
141
__isl_give isl_basic_map *isl_basic_map_extend(__isl_take isl_basic_map *base,
142
  unsigned nparam, unsigned n_in, unsigned n_out, unsigned extra,
143
  unsigned n_eq, unsigned n_ineq);
144
__isl_give isl_basic_map *isl_basic_map_extend_constraints(
145
  __isl_take isl_basic_map *base, unsigned n_eq, unsigned n_ineq);
146
__isl_give isl_basic_map *isl_basic_map_simplify(
147
  __isl_take isl_basic_map *bmap);
148
149
__isl_give isl_set *isl_set_add_basic_set(__isl_take isl_set *set,
150
  __isl_take isl_basic_set *bset);
151
152
__isl_give isl_map *isl_map_add_basic_map(__isl_take isl_map *map,
153
  __isl_take isl_basic_map *bmap);
154
__isl_give isl_map *isl_map_dup(__isl_keep isl_map *map);
155
156
__isl_give isl_basic_set *isl_basic_set_from_underlying_set(
157
  __isl_take isl_basic_set *bset, __isl_take isl_basic_set *like);
158
159
__isl_give isl_map *isl_map_realign(__isl_take isl_map *map,
160
  __isl_take isl_reordering *r);
161
__isl_give isl_set *isl_set_realign(__isl_take isl_set *set,
162
  __isl_take isl_reordering *r);
163
164
__isl_give isl_map *isl_map_reset(__isl_take isl_map *map,
165
  enum isl_dim_type type);
166
167
__isl_keep isl_space *isl_basic_map_peek_space(
168
  __isl_keep const isl_basic_map *bmap);
169
__isl_keep isl_space *isl_basic_set_peek_space(__isl_keep isl_basic_set *bset);
170
171
__isl_give isl_basic_set *isl_basic_set_reset_space(
172
  __isl_take isl_basic_set *bset, __isl_take isl_space *dim);
173
__isl_give isl_basic_map *isl_basic_map_reset_space(
174
  __isl_take isl_basic_map *bmap, __isl_take isl_space *dim);
175
__isl_give isl_map *isl_map_reset_space(__isl_take isl_map *map,
176
  __isl_take isl_space *dim);
177
178
unsigned isl_basic_map_offset(struct isl_basic_map *bmap,
179
          enum isl_dim_type type);
180
unsigned isl_basic_set_offset(struct isl_basic_set *bset,
181
          enum isl_dim_type type);
182
183
isl_bool isl_basic_map_may_be_set(__isl_keep isl_basic_map *bmap);
184
int isl_map_may_be_set(__isl_keep isl_map *map);
185
isl_bool isl_map_compatible_domain(__isl_keep isl_map *map,
186
  __isl_keep isl_set *set);
187
isl_bool isl_basic_map_compatible_domain(__isl_keep isl_basic_map *bmap,
188
  __isl_keep isl_basic_set *bset);
189
isl_bool isl_basic_map_compatible_range(__isl_keep isl_basic_map *bmap,
190
  __isl_keep isl_basic_set *bset);
191
192
struct isl_basic_map *isl_basic_map_extend_space(struct isl_basic_map *base,
193
    __isl_take isl_space *dim, unsigned extra,
194
    unsigned n_eq, unsigned n_ineq);
195
struct isl_basic_set *isl_basic_set_extend_space(struct isl_basic_set *base,
196
    __isl_take isl_space *dim, unsigned extra,
197
    unsigned n_eq, unsigned n_ineq);
198
struct isl_basic_set *isl_basic_set_add_constraints(struct isl_basic_set *bset1,
199
    struct isl_basic_set *bset2, unsigned pos);
200
201
struct isl_map *isl_map_grow(struct isl_map *map, int n);
202
struct isl_set *isl_set_grow(struct isl_set *set, int n);
203
204
isl_bool isl_basic_set_contains(__isl_keep isl_basic_set *bset,
205
  __isl_keep isl_vec *vec);
206
isl_bool isl_basic_map_contains(__isl_keep isl_basic_map *bmap,
207
  __isl_keep isl_vec *vec);
208
209
__isl_give isl_basic_set *isl_basic_set_alloc_space(__isl_take isl_space *dim,
210
    unsigned extra, unsigned n_eq, unsigned n_ineq);
211
__isl_give isl_set *isl_set_alloc_space(__isl_take isl_space *dim, int n,
212
  unsigned flags);
213
__isl_give isl_basic_map *isl_basic_map_alloc_space(__isl_take isl_space *dim,
214
    unsigned extra, unsigned n_eq, unsigned n_ineq);
215
__isl_give isl_map *isl_map_alloc_space(__isl_take isl_space *dim, int n,
216
  unsigned flags);
217
218
int isl_basic_map_alloc_equality(struct isl_basic_map *bmap);
219
int isl_basic_set_alloc_equality(struct isl_basic_set *bset);
220
int isl_basic_set_free_inequality(struct isl_basic_set *bset, unsigned n);
221
int isl_basic_map_free_equality(struct isl_basic_map *bmap, unsigned n);
222
int isl_basic_set_free_equality(struct isl_basic_set *bset, unsigned n);
223
int isl_basic_set_alloc_inequality(struct isl_basic_set *bset);
224
int isl_basic_map_alloc_inequality(struct isl_basic_map *bmap);
225
int isl_basic_map_free_inequality(struct isl_basic_map *bmap, unsigned n);
226
int isl_basic_map_alloc_div(struct isl_basic_map *bmap);
227
__isl_give isl_basic_map *isl_basic_map_insert_div(
228
  __isl_take isl_basic_map *bmap, int pos, __isl_keep isl_vec *div);
229
int isl_basic_set_alloc_div(struct isl_basic_set *bset);
230
isl_stat isl_basic_map_free_div(struct isl_basic_map *bmap, unsigned n);
231
__isl_give isl_basic_map *isl_basic_map_drop_div(
232
  __isl_take isl_basic_map *bmap, unsigned div);
233
void isl_basic_map_inequality_to_equality(
234
    struct isl_basic_map *bmap, unsigned pos);
235
int isl_basic_map_drop_equality(struct isl_basic_map *bmap, unsigned pos);
236
int isl_basic_set_drop_inequality(struct isl_basic_set *bset, unsigned pos);
237
int isl_basic_map_drop_inequality(struct isl_basic_map *bmap, unsigned pos);
238
__isl_give isl_basic_set *isl_basic_set_add_eq(__isl_take isl_basic_set *bset,
239
  isl_int *eq);
240
__isl_give isl_basic_map *isl_basic_map_add_eq(__isl_take isl_basic_map *bmap,
241
  isl_int *eq);
242
__isl_give isl_basic_set *isl_basic_set_add_ineq(__isl_take isl_basic_set *bset,
243
  isl_int *ineq);
244
__isl_give isl_basic_map *isl_basic_map_add_ineq(__isl_take isl_basic_map *bmap,
245
  isl_int *ineq);
246
247
__isl_give isl_basic_set *isl_basic_set_tighten_outward(
248
  __isl_take isl_basic_set *bset, __isl_keep isl_vec *vec);
249
250
int isl_inequality_negate(struct isl_basic_map *bmap, unsigned pos);
251
252
struct isl_basic_set *isl_basic_set_cow(struct isl_basic_set *bset);
253
struct isl_basic_map *isl_basic_map_cow(struct isl_basic_map *bmap);
254
struct isl_set *isl_set_cow(struct isl_set *set);
255
struct isl_map *isl_map_cow(struct isl_map *map);
256
257
uint32_t isl_basic_map_get_hash(__isl_keep isl_basic_map *bmap);
258
259
__isl_give isl_set *isl_basic_set_list_union(
260
  __isl_take isl_basic_set_list *list);
261
262
struct isl_basic_map *isl_basic_map_set_to_empty(struct isl_basic_map *bmap);
263
struct isl_basic_set *isl_basic_set_set_to_empty(struct isl_basic_set *bset);
264
struct isl_basic_set *isl_basic_set_order_divs(struct isl_basic_set *bset);
265
void isl_basic_map_swap_div(struct isl_basic_map *bmap, int a, int b);
266
void isl_basic_set_swap_div(struct isl_basic_set *bset, int a, int b);
267
struct isl_basic_map *isl_basic_map_order_divs(struct isl_basic_map *bmap);
268
__isl_give isl_map *isl_map_order_divs(__isl_take isl_map *map);
269
struct isl_basic_map *isl_basic_map_align_divs(
270
    struct isl_basic_map *dst, struct isl_basic_map *src);
271
__isl_give isl_map *isl_map_align_divs_to_basic_map_list(
272
  __isl_take isl_map *map, __isl_keep isl_basic_map_list *list);
273
__isl_give isl_basic_map_list *isl_basic_map_list_align_divs_to_basic_map(
274
  __isl_take isl_basic_map_list *list, __isl_keep isl_basic_map *bmap);
275
__isl_give isl_map *isl_map_align_divs_internal(__isl_take isl_map *map);
276
__isl_give isl_basic_set *isl_basic_set_sort_divs(
277
  __isl_take isl_basic_set *bset);
278
__isl_give isl_basic_map *isl_basic_map_sort_divs(
279
  __isl_take isl_basic_map *bmap);
280
__isl_give isl_map *isl_map_sort_divs(__isl_take isl_map *map);
281
struct isl_basic_map *isl_basic_map_gauss(
282
  struct isl_basic_map *bmap, int *progress);
283
struct isl_basic_set *isl_basic_set_gauss(
284
  struct isl_basic_set *bset, int *progress);
285
int isl_basic_map_constraint_cmp(__isl_keep isl_basic_map *bmap,
286
  isl_int *c1, isl_int *c2);
287
__isl_give isl_basic_map *isl_basic_map_sort_constraints(
288
  __isl_take isl_basic_map *bmap);
289
__isl_give isl_basic_set *isl_basic_set_sort_constraints(
290
  __isl_take isl_basic_set *bset);
291
int isl_basic_map_plain_cmp(__isl_keep isl_basic_map *bmap1,
292
  __isl_keep isl_basic_map *bmap2);
293
isl_bool isl_basic_map_plain_is_equal(__isl_keep isl_basic_map *bmap1,
294
  __isl_keep isl_basic_map *bmap2);
295
struct isl_basic_map *isl_basic_map_normalize_constraints(
296
  struct isl_basic_map *bmap);
297
struct isl_basic_set *isl_basic_set_normalize_constraints(
298
  struct isl_basic_set *bset);
299
struct isl_basic_map *isl_basic_map_implicit_equalities(
300
            struct isl_basic_map *bmap);
301
struct isl_basic_set *isl_basic_map_underlying_set(struct isl_basic_map *bmap);
302
__isl_give isl_basic_set *isl_basic_set_underlying_set(
303
    __isl_take isl_basic_set *bset);
304
__isl_give isl_basic_set_list *isl_basic_map_list_underlying_set(
305
  __isl_take isl_basic_map_list *list);
306
struct isl_set *isl_map_underlying_set(struct isl_map *map);
307
struct isl_basic_map *isl_basic_map_overlying_set(struct isl_basic_set *bset,
308
  struct isl_basic_map *like);
309
__isl_give isl_basic_map *isl_basic_map_drop_constraint_involving_unknown_divs(
310
  __isl_take isl_basic_map *bmap);
311
__isl_give isl_map *isl_map_drop_constraint_involving_unknown_divs(
312
  __isl_take isl_map *map);
313
__isl_give isl_basic_set *isl_basic_set_drop_constraints_involving(
314
  __isl_take isl_basic_set *bset, unsigned first, unsigned n);
315
__isl_give isl_basic_set *isl_basic_set_drop(__isl_take isl_basic_set *bset,
316
  enum isl_dim_type type, unsigned first, unsigned n);
317
struct isl_basic_map *isl_basic_map_drop(struct isl_basic_map *bmap,
318
  enum isl_dim_type type, unsigned first, unsigned n);
319
struct isl_set *isl_set_drop(struct isl_set *set,
320
  enum isl_dim_type type, unsigned first, unsigned n);
321
struct isl_basic_set *isl_basic_set_drop_dims(
322
    struct isl_basic_set *bset, unsigned first, unsigned n);
323
struct isl_map *isl_map_drop(struct isl_map *map,
324
  enum isl_dim_type type, unsigned first, unsigned n);
325
__isl_give isl_basic_map *isl_basic_map_drop_unrelated_constraints(
326
  __isl_take isl_basic_map *bmap, __isl_take int *group);
327
328
__isl_give isl_basic_map *isl_basic_map_remove_duplicate_constraints(
329
  __isl_take isl_basic_map *bmap, int *progress, int detect_divs);
330
__isl_give isl_basic_map *isl_basic_map_detect_inequality_pairs(
331
  __isl_take isl_basic_map *bmap, int *progress);
332
333
struct isl_map *isl_map_remove_empty_parts(struct isl_map *map);
334
struct isl_set *isl_set_remove_empty_parts(struct isl_set *set);
335
__isl_give isl_map *isl_map_remove_obvious_duplicates(__isl_take isl_map *map);
336
337
struct isl_set *isl_set_normalize(struct isl_set *set);
338
339
struct isl_set *isl_set_drop_vars(
340
    struct isl_set *set, unsigned first, unsigned n);
341
342
struct isl_basic_map *isl_basic_map_eliminate_vars(
343
  struct isl_basic_map *bmap, unsigned pos, unsigned n);
344
struct isl_basic_set *isl_basic_set_eliminate_vars(
345
  struct isl_basic_set *bset, unsigned pos, unsigned n);
346
347
__isl_give isl_map *isl_map_eliminate(__isl_take isl_map *map,
348
  enum isl_dim_type type, unsigned first, unsigned n);
349
__isl_give isl_set *isl_set_eliminate(__isl_take isl_set *set,
350
  enum isl_dim_type type, unsigned first, unsigned n);
351
352
int isl_basic_map_add_div_constraint(__isl_keep isl_basic_map *bmap,
353
  unsigned div, int sign);
354
int isl_basic_map_add_div_constraints(struct isl_basic_map *bmap, unsigned div);
355
__isl_give isl_basic_map *isl_basic_map_add_known_div_constraints(
356
  __isl_take isl_basic_map *bmap);
357
struct isl_basic_map *isl_basic_map_drop_redundant_divs(
358
  struct isl_basic_map *bmap);
359
360
struct isl_basic_set *isl_basic_set_recession_cone(struct isl_basic_set *bset);
361
struct isl_basic_set *isl_basic_set_lineality_space(struct isl_basic_set *bset);
362
363
struct isl_basic_set *isl_basic_set_set_rational(struct isl_basic_set *bset);
364
__isl_give isl_set *isl_set_set_rational(__isl_take isl_set *set);
365
__isl_give isl_basic_map *isl_basic_map_set_rational(
366
  __isl_take isl_basic_map *bmap);
367
__isl_give isl_map *isl_map_set_rational(__isl_take isl_map *map);
368
369
isl_bool isl_map_is_rational(__isl_keep isl_map *map);
370
isl_bool isl_set_is_rational(__isl_keep isl_set *set);
371
372
isl_bool isl_map_has_rational(__isl_keep isl_map *map);
373
isl_bool isl_set_has_rational(__isl_keep isl_set *set);
374
375
__isl_give isl_basic_map *isl_basic_map_from_multi_aff2(
376
  __isl_take isl_multi_aff *maff, int rational);
377
378
struct isl_mat;
379
380
struct isl_basic_set *isl_basic_set_preimage(struct isl_basic_set *bset,
381
  struct isl_mat *mat);
382
struct isl_set *isl_set_preimage(struct isl_set *set, struct isl_mat *mat);
383
384
__isl_give isl_basic_map *isl_basic_map_transform_dims(
385
  __isl_take isl_basic_map *bmap, enum isl_dim_type type, unsigned first,
386
  __isl_take isl_mat *trans);
387
__isl_give isl_basic_set *isl_basic_set_transform_dims(
388
  __isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned first,
389
  __isl_take isl_mat *trans);
390
391
isl_int *isl_set_wrap_facet(__isl_keep isl_set *set,
392
  isl_int *facet, isl_int *ridge);
393
394
isl_bool isl_basic_map_contains_point(__isl_keep isl_basic_map *bmap,
395
  __isl_keep isl_point *point);
396
isl_bool isl_set_contains_point(__isl_keep isl_set *set,
397
  __isl_keep isl_point *point);
398
399
isl_stat isl_basic_set_vars_get_sign(__isl_keep isl_basic_set *bset,
400
  unsigned first, unsigned n, int *signs);
401
isl_stat isl_set_foreach_orthant(__isl_keep isl_set *set,
402
  isl_stat (*fn)(__isl_take isl_set *orthant, int *signs, void *user),
403
  void *user);
404
405
int isl_basic_map_add_div_constraints_var(__isl_keep isl_basic_map *bmap,
406
  unsigned pos, isl_int *div);
407
int isl_basic_set_add_div_constraints_var(__isl_keep isl_basic_set *bset,
408
  unsigned pos, isl_int *div);
409
isl_bool isl_basic_map_is_div_constraint(__isl_keep isl_basic_map *bmap,
410
  isl_int *constraint, unsigned div);
411
isl_bool isl_basic_set_is_div_constraint(__isl_keep isl_basic_set *bset,
412
  isl_int *constraint, unsigned div);
413
414
__isl_give isl_basic_set *isl_basic_set_from_local_space(
415
  __isl_take isl_local_space *ls);
416
__isl_give isl_basic_map *isl_basic_map_from_local_space(
417
  __isl_take isl_local_space *ls);
418
__isl_give isl_basic_set *isl_basic_set_expand_divs(
419
  __isl_take isl_basic_set *bset, __isl_take isl_mat *div, int *exp);
420
__isl_give isl_basic_map *isl_basic_map_expand_divs(
421
  __isl_take isl_basic_set *bmap, __isl_take isl_mat *div, int *exp);
422
423
__isl_give isl_basic_map *isl_basic_map_mark_div_unknown(
424
  __isl_take isl_basic_map *bmap, int div);
425
isl_bool isl_basic_map_div_is_marked_unknown(__isl_keep isl_basic_map *bmap,
426
  int div);
427
isl_bool isl_basic_map_div_is_known(__isl_keep isl_basic_map *bmap, int div);
428
int isl_basic_set_first_unknown_div(__isl_keep isl_basic_set *bset);
429
int isl_basic_map_first_unknown_div(__isl_keep isl_basic_map *bmap);
430
isl_bool isl_basic_map_divs_known(__isl_keep isl_basic_map *bmap);
431
isl_bool isl_map_divs_known(__isl_keep isl_map *map);
432
__isl_give isl_mat *isl_basic_set_get_divs(__isl_keep isl_basic_set *bset);
433
__isl_give isl_mat *isl_basic_map_get_divs(__isl_keep isl_basic_map *bmap);
434
435
__isl_give isl_map *isl_map_inline_foreach_basic_map(__isl_take isl_map *map,
436
  __isl_give isl_basic_map *(*fn)(__isl_take isl_basic_map *bmap));
437
438
isl_stat isl_map_check_named_params(__isl_keep isl_map *map);
439
440
isl_bool isl_map_has_equal_params(__isl_keep isl_map *map1,
441
  __isl_keep isl_map *map2);
442
isl_bool isl_basic_set_space_has_equal_params(__isl_keep isl_basic_set *bset,
443
  __isl_keep isl_space *space);
444
isl_bool isl_set_space_has_equal_params(__isl_keep isl_set *set,
445
  __isl_keep isl_space *space);
446
isl_bool isl_map_space_has_equal_params(__isl_keep isl_map *map,
447
  __isl_keep isl_space *space);
448
449
__isl_give isl_map *isl_map_align_params_map_map_and(
450
  __isl_take isl_map *map1, __isl_take isl_map *map2,
451
  __isl_give isl_map *(*fn)(__isl_take isl_map *map1,
452
            __isl_take isl_map *map2));
453
isl_bool isl_map_align_params_map_map_and_test(__isl_keep isl_map *map1,
454
  __isl_keep isl_map *map2,
455
  isl_bool (*fn)(__isl_keep isl_map *map1, __isl_keep isl_map *map2));
456
457
isl_stat isl_basic_map_foreach_lexopt(__isl_keep isl_basic_map *bmap, int max,
458
  isl_stat (*fn)(__isl_take isl_basic_set *dom,
459
    __isl_take isl_aff_list *list, void *user),
460
  void *user);
461
462
__isl_give isl_set *isl_set_substitute(__isl_take isl_set *set,
463
  enum isl_dim_type type, unsigned pos, __isl_keep isl_aff *subs);
464
465
__isl_give isl_set *isl_set_gist_params_basic_set(__isl_take isl_set *set,
466
  __isl_take isl_basic_set *context);
467
468
isl_bool isl_map_compatible_range(__isl_keep isl_map *map,
469
  __isl_keep isl_set *set);
470
471
isl_bool isl_basic_map_plain_is_non_empty(__isl_keep isl_basic_map *bmap);
472
isl_bool isl_basic_map_plain_is_single_valued(__isl_keep isl_basic_map *bmap);
473
474
isl_bool isl_map_is_set(__isl_keep isl_map *map);
475
476
isl_bool isl_basic_set_plain_dim_is_fixed(__isl_keep isl_basic_set *bset,
477
  unsigned dim, isl_int *val);
478
479
__isl_give isl_map *isl_map_plain_gist_basic_map(__isl_take isl_map *map,
480
  __isl_take isl_basic_map *context);
481
482
__isl_give isl_basic_set *isl_basic_set_plain_affine_hull(
483
  __isl_take isl_basic_set *bset);
484
__isl_give isl_basic_map *isl_basic_map_plain_affine_hull(
485
  __isl_take isl_basic_map *bmap);
486
487
isl_stat isl_basic_set_dim_residue_class(__isl_keep isl_basic_set *bset,
488
  int pos, isl_int *modulo, isl_int *residue);
489
isl_stat isl_set_dim_residue_class(__isl_keep isl_set *set,
490
  int pos, isl_int *modulo, isl_int *residue);
491
492
__isl_give isl_basic_set *isl_basic_set_fix(__isl_take isl_basic_set *bset,
493
  enum isl_dim_type type, unsigned pos, isl_int value);
494
__isl_give isl_basic_map *isl_basic_map_fix(__isl_take isl_basic_map *bmap,
495
  enum isl_dim_type type, unsigned pos, isl_int value);
496
__isl_give isl_set *isl_set_fix(__isl_take isl_set *set,
497
  enum isl_dim_type type, unsigned pos, isl_int value);
498
isl_bool isl_map_plain_is_fixed(__isl_keep isl_map *map,
499
  enum isl_dim_type type, unsigned pos, isl_int *val);
500
501
int isl_basic_map_output_defining_equality(__isl_keep isl_basic_map *bmap,
502
  int pos, int *div, int *ineq);
503
504
__isl_give isl_basic_map *isl_basic_map_reduce_coefficients(
505
  __isl_take isl_basic_map *bmap);
506
507
__isl_give isl_basic_map *isl_basic_map_shift_div(
508
  __isl_take isl_basic_map *bmap, int div, int pos, isl_int shift);
509
510
__isl_give isl_basic_map_list *isl_map_get_basic_map_list(
511
  __isl_keep isl_map *map);
512
513
__isl_give isl_map *isl_map_fixed_power(__isl_take isl_map *map, isl_int exp);
514
515
int isl_basic_set_count_upto(__isl_keep isl_basic_set *bset,
516
  isl_int max, isl_int *count);
517
int isl_set_count_upto(__isl_keep isl_set *set, isl_int max, isl_int *count);
518
519
isl_bool isl_basic_map_equal_div_expr_part(__isl_keep isl_basic_map *bmap1,
520
  int pos1, __isl_keep isl_basic_map *bmap2, int pos2,
521
  unsigned first, unsigned n);
522
isl_bool isl_basic_map_equal_div_expr_except_constant(
523
  __isl_keep isl_basic_map *bmap1, int pos1,
524
  __isl_keep isl_basic_map *bmap2, int pos2);
525
__isl_give isl_basic_map *isl_basic_map_set_div_expr_constant_num_si_inplace(
526
  __isl_take isl_basic_map *bmap, int div, int value);
527
528
#endif