Polly 20.0.0git
isl_map_private.h
Go to the documentation of this file.
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#define isl_basic_set isl_basic_map
14#define isl_maybe_isl_basic_set isl_maybe_isl_basic_map
15#define isl_set isl_map
16#define isl_basic_set_list isl_basic_map_list
17#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 */
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_SORTED (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_SORTED (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
61 unsigned extra;
62
63 unsigned n_eq;
64 unsigned n_ineq;
65
66 size_t c_size;
69
70 unsigned n_div;
71
73
74 struct isl_vec *sample;
75
76 struct isl_blk block;
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 */
96struct isl_map {
97 int ref;
98#define ISL_MAP_DISJOINT (1 << 0)
99#define ISL_MAP_NORMALIZED (1 << 1)
100#define ISL_SET_DISJOINT (1 << 0)
101#define ISL_SET_NORMALIZED (1 << 1)
102 unsigned flags;
104
105 struct isl_ctx *ctx;
106
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
121 unsigned nparam, unsigned dim, unsigned extra,
122 unsigned n_eq, unsigned n_ineq);
124 __isl_take isl_basic_set *base, unsigned n_eq, unsigned n_ineq);
130
132 unsigned nparam, unsigned in, unsigned out, unsigned extra,
133 unsigned n_eq, unsigned n_ineq);
139 __isl_take isl_basic_map *base, unsigned n_eq, unsigned n_ineq);
142
145
149
152
157
159 enum isl_dim_type type);
161 enum isl_dim_type type);
162
164 __isl_keep const isl_basic_map *bmap);
168
174 __isl_take isl_space *space);
176 __isl_take isl_space *space);
177
179 enum isl_dim_type type);
181 enum isl_dim_type type);
183 enum isl_dim_type type);
185 enum isl_dim_type type);
186
195
197 unsigned extra, unsigned n_eq, unsigned n_ineq);
199 unsigned extra, unsigned n_eq, unsigned n_ineq);
200
203
205 __isl_keep isl_vec *vec);
207 __isl_keep isl_vec *vec);
208
210 unsigned extra, unsigned n_eq, unsigned n_ineq);
212 unsigned flags);
214 unsigned extra, unsigned n_eq, unsigned n_ineq);
216 unsigned flags);
217
221 __isl_take isl_basic_set *bset, unsigned n);
223 __isl_take isl_basic_map *bmap, unsigned n);
225 __isl_take isl_basic_set *bset, unsigned n);
229 __isl_take isl_basic_map *bmap, unsigned n);
236 __isl_take isl_basic_map *bmap, unsigned div);
238 __isl_keep isl_basic_map *bmap, unsigned pos);
243 isl_int *eq);
245 isl_int *eq);
247 isl_int *ineq);
249 isl_int *ineq);
250
253
255 unsigned pos);
256
262
264
267
273 int a, int b);
280 __isl_take isl_map *map, __isl_keep isl_basic_map_list *list);
282 __isl_take isl_basic_map_list *list, __isl_keep isl_basic_map *bmap);
290 int *progress,
291 isl_stat (*swap)(unsigned a, unsigned b, void *user),
292 isl_stat (*drop)(unsigned n, void *user), void *user);
294 int *progress);
296 __isl_take isl_basic_set *bset, int *progress);
298 isl_int *c1, isl_int *c2);
318 __isl_take isl_basic_map_list *list);
329 __isl_take isl_basic_map *bmap, unsigned first, unsigned n);
331 __isl_take isl_basic_set *bset, unsigned first, unsigned n);
333 enum isl_dim_type type, unsigned first, unsigned n);
335 enum isl_dim_type type, unsigned first, unsigned n);
337 enum isl_dim_type type, unsigned first, unsigned n);
339 __isl_take isl_basic_set *bset, unsigned first, unsigned n);
341 enum isl_dim_type type, unsigned first, unsigned n);
343 __isl_take isl_basic_map *bmap, __isl_take int *group);
344
348 __isl_take isl_basic_map *bmap, int *progress, int detect_divs);
350 __isl_take isl_basic_map *bmap, int *progress);
351
355
357
359 __isl_take isl_basic_map *bmap, unsigned pos, unsigned n);
361 __isl_take isl_basic_set *bset, unsigned pos, unsigned n);
362
364 enum isl_dim_type type, unsigned first, unsigned n);
366 enum isl_dim_type type, unsigned first, unsigned n);
368 enum isl_dim_type type, unsigned first, unsigned n);
369
371 __isl_take isl_basic_map *bmap, unsigned div, int sign);
373 __isl_take isl_basic_map *bmap, unsigned div);
378
385
394
397
400
402 __isl_take isl_multi_aff *maff, int rational);
408
409struct isl_mat;
410
415
417 __isl_take isl_basic_map *bmap, enum isl_dim_type type, unsigned first,
418 __isl_take isl_mat *trans);
420 __isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned first,
421 __isl_take isl_mat *trans);
422
424 isl_int *facet, isl_int *ridge);
425
430
432 unsigned first, unsigned n, int *signs);
434 isl_stat (*fn)(__isl_take isl_set *orthant, int *signs, void *user),
435 void *user);
436
438
440 isl_int *constraint, unsigned div);
441
447 __isl_take isl_basic_set *bset, __isl_take isl_mat *div, int *exp);
449 __isl_take isl_basic_set *bmap, __isl_take isl_mat *div, int *exp);
450
455
457 __isl_take isl_basic_map *bmap, int div);
459 int div);
467
469 isl_bool (*test)(__isl_keep isl_basic_set *bset, void *user),
470 void *user);
473
476
478 enum isl_dim_type type, unsigned first, unsigned n);
480 enum isl_dim_type type, unsigned first, unsigned n);
482 enum isl_dim_type type, unsigned first, unsigned n);
484
488 __isl_keep isl_space *space);
490 __isl_keep isl_space *space);
492 __isl_keep isl_space *space);
493
501
503 unsigned pos, __isl_keep isl_aff *subs);
504
507
510
513
516
518 unsigned dim, isl_int *val);
519
526
531
533 int pos, isl_int *modulo, isl_int *residue);
535 int pos, isl_int *modulo, isl_int *residue);
536
538 enum isl_dim_type type, unsigned pos, isl_int value);
540 enum isl_dim_type type, unsigned pos, isl_int value);
542 enum isl_dim_type type, unsigned pos, isl_int value);
544 enum isl_dim_type type, unsigned pos, isl_int *val);
545
547 int pos, int *div, int *ineq);
548
551
553 __isl_take isl_basic_map *bmap, int div, int pos, isl_int shift);
554
556 isl_int max, isl_int *count);
558
560 enum isl_dim_type type1, __isl_keep isl_space *space,
561 enum isl_dim_type type2);
563 enum isl_dim_type type1, __isl_keep isl_map *map2,
564 enum isl_dim_type type2);
566 __isl_keep isl_space *space);
568 __isl_keep isl_space *space);
569
582
585
588
590 int pos1, __isl_keep isl_basic_map *bmap2, int pos2,
591 unsigned first, unsigned n);
593 __isl_keep isl_basic_map *bmap1, int pos1,
594 __isl_keep isl_basic_map *bmap2, int pos2);
596 __isl_take isl_basic_map *bmap, int div, int value);
597
598#endif
struct isl_multi_aff isl_multi_aff
Definition: aff_type.h:29
#define __isl_take
Definition: ctx.h:22
isl_stat
Definition: ctx.h:84
#define __isl_give
Definition: ctx.h:19
#define __isl_keep
Definition: ctx.h:25
int isl_size
Definition: ctx.h:96
isl_bool
Definition: ctx.h:89
c1
Definition: dot.c:2
__isl_export __isl_give ISL_HMAP __isl_take ISL_KEY __isl_take ISL_VAL * val
Definition: hmap.h:32
isl_stat isl_stat(* fn)(__isl_take ISL_KEY *key, __isl_take ISL_VAL *val, void *user)
Definition: hmap.h:37
isl_stat isl_stat(*) void user)
Definition: hmap.h:39
isl_bool isl_bool(* test)(__isl_keep ISL_KEY *key, __isl_keep ISL_VAL *val, void *user)
Definition: hmap.h:41
void GMPZAPI() swap(mp_int rop1, mp_int rop2)
static int count(int *con, unsigned len, int status)
Definition: isl_coalesce.c:152
static void drop(struct isl_coalesce_info *info)
Definition: isl_coalesce.c:367
static unsigned pos(__isl_keep isl_space *space, enum isl_dim_type type)
Definition: isl_map.c:70
__isl_give isl_basic_set * isl_basic_set_alloc_space(__isl_take isl_space *space, unsigned extra, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:1361
isl_bool isl_basic_set_contains(__isl_keep isl_basic_set *bset, __isl_keep isl_vec *vec)
Definition: isl_map.c:3698
__isl_give isl_basic_set * isl_basic_set_drop(__isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:2455
isl_bool isl_basic_set_plain_dim_is_fixed(__isl_keep isl_basic_set *bset, unsigned dim, isl_int *val)
Definition: isl_map.c:10218
isl_size isl_basic_map_var_offset(__isl_keep isl_basic_map *bmap, enum isl_dim_type type)
Definition: isl_map.c:144
__isl_give isl_map * isl_map_drop(__isl_take isl_map *map, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:2472
__isl_give isl_basic_map_list * isl_basic_map_list_align_divs_to_basic_map(__isl_take isl_basic_map_list *list, __isl_keep isl_basic_map *bmap)
Definition: isl_map.c:9797
__isl_give isl_basic_map * isl_basic_map_free_inequality(__isl_take isl_basic_map *bmap, unsigned n)
Definition: isl_map.c:1766
__isl_give isl_basic_map * isl_basic_map_add_ineq(__isl_take isl_basic_map *bmap, isl_int *ineq)
Definition: isl_map.c:1842
isl_size isl_basic_set_n_equality(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:257
__isl_give isl_basic_map * isl_basic_map_order_divs(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:9491
__isl_give isl_basic_set * isl_basic_set_drop_constraints_involving(__isl_take isl_basic_set *bset, unsigned first, unsigned n)
Definition: isl_map.c:3063
int isl_basic_set_count_upto(__isl_keep isl_basic_set *bset, isl_int max, isl_int *count)
Definition: isl_scan.c:251
isl_stat isl_set_basic_set_check_equal_space(__isl_keep isl_set *set, __isl_keep isl_basic_set *bset)
__isl_give isl_set * isl_set_alloc_space(__isl_take isl_space *space, int n, unsigned flags)
Definition: isl_map.c:3435
__isl_give isl_basic_map * isl_basic_map_drop_constraints_involving(__isl_take isl_basic_map *bmap, unsigned first, unsigned n)
Definition: isl_map.c:3029
isl_bool isl_basic_map_may_be_set(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:5998
isl_stat isl_map_align_params_bin(__isl_keep isl_map **map1, __isl_keep isl_map **map2)
int isl_basic_set_alloc_div(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1883
__isl_give isl_basic_set * isl_basic_set_set_to_empty(__isl_take isl_basic_set *bset)
Definition: isl_map.c:2209
__isl_give isl_basic_map * isl_basic_map_remove_duplicate_constraints(__isl_take isl_basic_map *bmap, int *progress, int detect_divs)
__isl_give isl_basic_set * isl_basic_set_dup(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1457
__isl_give isl_basic_map * isl_basic_map_eliminate_vars(__isl_take isl_basic_map *bmap, unsigned pos, unsigned n)
__isl_give isl_set * isl_set_plain_gist_basic_set(__isl_take isl_set *set, __isl_take isl_basic_set *context)
__isl_give isl_basic_map * isl_basic_map_alloc(isl_ctx *ctx, unsigned nparam, unsigned in, unsigned out, unsigned extra, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:1393
__isl_give isl_set * isl_map_underlying_set(__isl_take isl_map *map)
Definition: isl_map.c:5757
__isl_give isl_basic_map * isl_basic_map_simplify(__isl_take isl_basic_map *bmap)
isl_bool isl_map_has_space(__isl_keep isl_map *map, __isl_keep isl_space *space)
__isl_give isl_map * isl_map_inline_foreach_basic_map(__isl_take isl_map *map, __isl_give isl_basic_map *(*fn)(__isl_take isl_basic_map *bmap))
Definition: isl_map.c:6589
isl_bool isl_basic_map_plain_is_equal(__isl_keep isl_basic_map *bmap1, __isl_keep isl_basic_map *bmap2)
Definition: isl_map.c:10415
__isl_give isl_map * isl_map_eliminate(__isl_take isl_map *map, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:2526
isl_bool isl_basic_map_applies_range(__isl_keep isl_basic_map *bmap1, __isl_keep isl_basic_map *bmap2)
Definition: isl_map.c:4726
__isl_give isl_basic_set * isl_basic_set_drop_dims(__isl_take isl_basic_set *bset, unsigned first, unsigned n)
Definition: isl_map.c:2331
__isl_give isl_set * isl_set_add_basic_set(__isl_take isl_set *set, __isl_take isl_basic_set *bset)
Definition: isl_map.c:3506
void isl_basic_map_inequality_to_equality(__isl_keep isl_basic_map *bmap, unsigned pos)
Definition: isl_map.c:1719
__isl_give isl_map * isl_map_align_divs_internal(__isl_take isl_map *map)
Definition: isl_map.c:9726
isl_size isl_basic_map_n_equality(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:247
isl_size isl_basic_map_n_inequality(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:265
isl_bool isl_set_contains_point(__isl_keep isl_set *set, __isl_keep isl_point *point)
Definition: isl_point.c:668
int isl_basic_map_drop_equality(__isl_keep isl_basic_map *bmap, unsigned pos)
Definition: isl_map.c:1694
__isl_give isl_basic_map * isl_inequality_negate(__isl_take isl_basic_map *bmap, unsigned pos)
Definition: isl_map.c:3417
isl_bool isl_basic_map_div_is_known(__isl_keep isl_basic_map *bmap, int div)
Definition: isl_map.c:3237
__isl_give isl_basic_set * isl_basic_set_expand_divs(__isl_take isl_basic_set *bset, __isl_take isl_mat *div, int *exp)
Definition: isl_map.c:9613
__isl_give isl_set * isl_set_normalize(__isl_take isl_set *set)
Definition: isl_map.c:10528
__isl_give isl_set * isl_set_fix(__isl_take isl_set *set, enum isl_dim_type type, unsigned pos, isl_int value)
Definition: isl_map.c:6660
__isl_give isl_map * isl_map_reset(__isl_take isl_map *map, enum isl_dim_type type)
Definition: isl_map.c:12259
unsigned isl_basic_map_offset(__isl_keep isl_basic_map *bmap, enum isl_dim_type type)
Definition: isl_map.c:177
__isl_give isl_basic_set * isl_basic_set_drop_constraints_involving_unknown_divs(__isl_take isl_basic_set *bset)
__isl_give isl_map * isl_map_project_onto(__isl_take isl_map *map, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:4623
__isl_give isl_basic_set * isl_basic_set_preimage(__isl_take isl_basic_set *bset, __isl_take isl_mat *mat)
Definition: isl_mat.c:1360
isl_bool isl_set_has_rational(__isl_keep isl_set *set)
Definition: isl_map.c:1254
#define isl_basic_set_list
__isl_give isl_set * isl_set_cow(__isl_take isl_set *set)
Definition: isl_map.c:2082
isl_stat isl_map_align_params_set(__isl_keep isl_map **map, __isl_keep isl_set **set)
__isl_give isl_basic_map * isl_basic_map_finalize(__isl_take isl_basic_map *bmap)
isl_bool isl_basic_set_space_has_equal_params(__isl_keep isl_basic_set *bset, __isl_keep isl_space *space)
Definition: isl_map.c:12560
isl_stat isl_basic_map_check_equal_space(__isl_keep isl_basic_map *bmap1, __isl_keep isl_basic_map *bmap2)
isl_bool isl_set_every_basic_set(__isl_keep isl_set *set, isl_bool(*test)(__isl_keep isl_basic_set *bset, void *user), void *user)
Definition: isl_map.c:11294
__isl_give isl_basic_map * isl_basic_map_add_known_div_constraints(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:5580
__isl_give isl_basic_set * isl_basic_set_add_ineq(__isl_take isl_basic_set *bset, isl_int *ineq)
Definition: isl_map.c:1863
__isl_give isl_basic_map * isl_basic_map_from_local_space(__isl_take isl_local_space *ls)
Definition: isl_map.c:560
__isl_give isl_basic_map * isl_basic_map_add_eq(__isl_take isl_basic_map *bmap, isl_int *eq)
Definition: isl_map.c:1808
__isl_give isl_basic_set * isl_set_combined_lineality_space(__isl_take isl_set *set)
__isl_give isl_basic_map * isl_basic_map_gauss(__isl_take isl_basic_map *bmap, int *progress)
__isl_give isl_basic_set * isl_basic_set_extend_constraints(__isl_take isl_basic_set *base, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:2039
int isl_basic_set_first_unknown_div(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:8017
isl_stat isl_basic_set_check_range(__isl_keep isl_basic_set *bset, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:1895
__isl_give isl_map * isl_map_reset_space(__isl_take isl_map *map, __isl_take isl_space *space)
Definition: isl_map.c:5848
int isl_basic_set_alloc_equality(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1666
__isl_give isl_basic_map * isl_basic_map_fix(__isl_take isl_basic_map *bmap, enum isl_dim_type type, unsigned pos, isl_int value)
Definition: isl_map.c:6500
unsigned isl_basic_set_offset(__isl_keep isl_basic_set *bset, enum isl_dim_type type)
Definition: isl_map.c:190
isl_bool isl_set_is_rational(__isl_keep isl_set *set)
Definition: isl_map.c:1181
__isl_give isl_basic_map * isl_basic_map_drop(__isl_take isl_basic_map *bmap, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:2437
__isl_give isl_basic_set * isl_basic_set_extend(__isl_take isl_basic_set *base, unsigned extra, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:2026
isl_bool isl_basic_map_equal_div_expr_part(__isl_keep isl_basic_map *bmap1, int pos1, __isl_keep isl_basic_map *bmap2, int pos2, unsigned first, unsigned n)
Definition: isl_map.c:14290
__isl_give isl_basic_map * isl_basic_map_from_multi_aff2(__isl_take isl_multi_aff *maff, int rational)
Definition: isl_aff_map.c:131
__isl_give isl_basic_map * isl_basic_map_set_div_expr_constant_num_si_inplace(__isl_take isl_basic_map *bmap, int div, int value)
Definition: isl_map.c:14337
int isl_basic_map_constraint_cmp(__isl_keep isl_basic_map *bmap, isl_int *c1, isl_int *c2)
Definition: isl_map.c:10275
int isl_basic_map_alloc_div(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:1869
isl_bool isl_basic_map_div_is_marked_unknown(__isl_keep isl_basic_map *bmap, int div)
Definition: isl_map.c:7983
__isl_give isl_map * isl_map_order_divs(__isl_take isl_map *map)
Definition: isl_map.c:9521
isl_bool isl_map_has_space_tuples(__isl_keep isl_map *map, __isl_keep isl_space *space)
Definition: isl_map.c:8749
__isl_give isl_set * isl_set_eliminate(__isl_take isl_set *set, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:2556
__isl_give isl_basic_set * isl_basic_set_tighten_outward(__isl_take isl_basic_set *bset, __isl_keep isl_vec *vec)
Definition: isl_map.c:14394
isl_size isl_basic_set_n_inequality(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:275
isl_stat isl_basic_set_check_no_locals(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1551
isl_stat isl_basic_set_vars_get_sign(__isl_keep isl_basic_set *bset, unsigned first, unsigned n, int *signs)
Definition: isl_map.c:11594
__isl_give isl_basic_map * isl_basic_map_detect_inequality_pairs(__isl_take isl_basic_map *bmap, int *progress)
__isl_give isl_map * isl_map_from_pw_multi_aff_internal(__isl_take isl_pw_multi_aff *pma)
Definition: isl_aff_map.c:360
__isl_give isl_basic_map * isl_basic_map_reduce_coefficients(__isl_take isl_basic_map *bmap)
__isl_give isl_basic_set * isl_basic_set_fix(__isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned pos, isl_int value)
Definition: isl_map.c:6548
__isl_give isl_basic_map * isl_basic_map_set_to_empty(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:2167
isl_int * isl_set_wrap_facet(__isl_keep isl_set *set, isl_int *facet, isl_int *ridge)
int isl_basic_map_first_unknown_div(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:7997
isl_bool isl_basic_map_is_div_constraint(__isl_keep isl_basic_map *bmap, isl_int *constraint, unsigned div)
__isl_give isl_basic_set_list * isl_basic_map_list_underlying_set(__isl_take isl_basic_map_list *list)
Definition: isl_map.c:5657
__isl_give isl_basic_set * isl_basic_set_free_inequality(__isl_take isl_basic_set *bset, unsigned n)
Definition: isl_map.c:1779
__isl_give isl_basic_map * isl_basic_map_shift_div(__isl_take isl_basic_map *bmap, int div, int pos, isl_int shift)
isl_stat isl_map_basic_map_check_equal_space(__isl_keep isl_map *map, __isl_keep isl_basic_map *bmap)
__isl_give isl_basic_map * isl_basic_map_free_equality(__isl_take isl_basic_map *bmap, unsigned n)
Definition: isl_map.c:1671
isl_stat isl_basic_set_dim_residue_class(__isl_keep isl_basic_set *bset, int pos, isl_int *modulo, isl_int *residue)
int isl_basic_map_output_defining_equality(__isl_keep isl_basic_map *bmap, int pos, int *div, int *ineq)
Definition: isl_map.c:11828
int isl_basic_map_drop_inequality(__isl_keep isl_basic_map *bmap, unsigned pos)
Definition: isl_map.c:1786
__isl_give isl_map * isl_map_plain_gist_basic_map(__isl_take isl_map *map, __isl_take isl_basic_map *context)
int isl_basic_map_alloc_inequality(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:1742
__isl_give isl_basic_map * isl_basic_map_add_div_constraint(__isl_take isl_basic_map *bmap, unsigned div, int sign)
Definition: isl_map.c:5610
__isl_give isl_map * isl_map_realign(__isl_take isl_map *map, __isl_take isl_reordering *r)
Definition: isl_map.c:12430
__isl_give isl_basic_map * isl_basic_map_expand_divs(__isl_take isl_basic_set *bmap, __isl_take isl_mat *div, int *exp)
__isl_give isl_basic_set * isl_basic_set_add_eq(__isl_take isl_basic_set *bset, isl_int *eq)
Definition: isl_map.c:1836
isl_bool isl_map_has_equal_params(__isl_keep isl_map *map1, __isl_keep isl_map *map2)
Definition: isl_map.c:294
isl_stat isl_basic_set_check_no_params(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1535
isl_bool isl_map_space_tuple_is_equal(__isl_keep isl_map *map, enum isl_dim_type type1, __isl_keep isl_space *space, enum isl_dim_type type2)
Definition: isl_map.c:8723
__isl_give isl_map * isl_map_cow(__isl_take isl_map *map)
Definition: isl_map.c:2097
isl_bool isl_basic_map_has_single_reference(__isl_keep isl_basic_map *bmap)
isl_size isl_basic_set_var_offset(__isl_keep isl_basic_set *bset, enum isl_dim_type type)
Definition: isl_map.c:168
__isl_give isl_basic_map * isl_basic_map_mark_div_unknown(__isl_take isl_basic_map *bmap, int div)
Definition: isl_map.c:7958
isl_stat isl_set_foreach_orthant(__isl_keep isl_set *set, isl_stat(*fn)(__isl_take isl_set *orthant, int *signs, void *user), void *user)
Definition: isl_map.c:9054
__isl_give isl_basic_set * isl_basic_map_underlying_set(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:5619
__isl_give isl_basic_set * isl_basic_set_simplify(__isl_take isl_basic_set *bset)
isl_stat isl_map_check_equal_space(__isl_keep isl_map *map1, __isl_keep isl_map *map2)
__isl_give isl_basic_map * isl_basic_map_gauss5(__isl_take isl_basic_map *bmap, int *progress, isl_stat(*swap)(unsigned a, unsigned b, void *user), isl_stat(*drop)(unsigned n, void *user), void *user)
__isl_give isl_map * isl_map_remove_obvious_duplicates(__isl_take isl_map *map)
Definition: isl_map.c:10474
__isl_give isl_basic_set * isl_basic_set_free_equality(__isl_take isl_basic_set *bset, unsigned n)
Definition: isl_map.c:1684
__isl_give isl_basic_map * isl_basic_map_cow(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:2052
isl_bool isl_basic_map_is_transformation(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:8651
__isl_give isl_basic_map * isl_basic_map_drop_redundant_divs(__isl_take isl_basic_map *bmap)
isl_bool isl_map_align_params_map_map_and_test(__isl_keep isl_map *map1, __isl_keep isl_map *map2, isl_bool(*fn)(__isl_keep isl_map *map1, __isl_keep isl_map *map2))
Definition: isl_map.c:1607
__isl_give isl_basic_map * isl_basic_map_eliminate_pure_unit_divs(__isl_take isl_basic_map *bmap)
__isl_give isl_basic_map * isl_basic_map_drop_constraints_involving_unknown_divs(__isl_take isl_basic_map *bmap)
__isl_give isl_mat * isl_basic_map_get_divs(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:480
__isl_give isl_basic_set * isl_basic_set_cow(__isl_take isl_basic_set *bset)
Definition: isl_map.c:2047
__isl_give isl_basic_set * isl_basic_set_set_rational(__isl_take isl_basic_set *bset)
Definition: isl_map.c:2233
__isl_give isl_basic_map * isl_basic_map_insert_div(__isl_take isl_basic_map *bmap, int pos, __isl_keep isl_vec *div)
Definition: isl_map.c:1908
isl_bool isl_map_is_params(__isl_keep isl_map *map)
Definition: isl_map.c:1281
__isl_give isl_basic_map * isl_basic_map_sort_constraints(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:10288
__isl_give isl_basic_set * isl_basic_set_lineality_space(__isl_take isl_basic_set *bset)
__isl_give isl_basic_map * isl_basic_map_plain_affine_hull(__isl_take isl_basic_map *bmap)
isl_stat isl_map_check_named_params(__isl_keep isl_map *map)
__isl_give isl_basic_set * isl_basic_set_sort_divs(__isl_take isl_basic_set *bset)
Definition: isl_map.c:9542
__isl_give isl_basic_map * isl_basic_map_reset(__isl_take isl_basic_map *bmap, enum isl_dim_type type)
Definition: isl_map.c:12245
__isl_give isl_basic_set * isl_basic_set_underlying_set(__isl_take isl_basic_set *bset)
Definition: isl_map.c:5648
__isl_give isl_map * isl_map_alloc_space(__isl_take isl_space *space, int n, unsigned flags)
Definition: isl_map.c:6238
__isl_give isl_basic_map * isl_basic_map_drop_div(__isl_take isl_basic_map *bmap, unsigned div)
Definition: isl_map.c:2516
__isl_give isl_basic_set * isl_basic_set_set_integral(__isl_take isl_basic_set *bset)
Definition: isl_map.c:2239
__isl_give isl_map * isl_map_drop_constraints_involving_unknown_divs(__isl_take isl_map *map)
__isl_give isl_map * isl_map_sort_divs(__isl_take isl_map *map)
__isl_give isl_mat * isl_basic_set_get_divs(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:506
__isl_give isl_basic_map * isl_basic_map_mark_final(__isl_take isl_basic_map *bmap)
isl_bool isl_set_space_has_equal_params(__isl_keep isl_set *set, __isl_keep isl_space *space)
Definition: isl_map.c:12582
isl_bool isl_basic_map_compatible_domain(__isl_keep isl_basic_map *bmap, __isl_keep isl_basic_set *bset)
Definition: isl_map.c:345
__isl_give isl_map * isl_map_plain_gist(__isl_take isl_map *map, __isl_take isl_map *context)
isl_bool isl_map_compatible_range(__isl_keep isl_map *map, __isl_keep isl_set *set)
Definition: isl_map.c:357
isl_bool isl_basic_map_plain_is_non_empty(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:9442
__isl_give isl_map * isl_map_align_divs_to_basic_map_list(__isl_take isl_map *map, __isl_keep isl_basic_map_list *list)
Definition: isl_map.c:9766
__isl_give isl_basic_set * isl_basic_set_gauss(__isl_take isl_basic_set *bset, int *progress)
__isl_give isl_map * isl_map_reset_equal_dim_space(__isl_take isl_map *map, __isl_take isl_space *space)
Definition: isl_map.c:5879
__isl_give isl_basic_set * isl_basic_set_eliminate_vars(__isl_take isl_basic_set *bset, unsigned pos, unsigned n)
__isl_give isl_basic_set * isl_basic_set_finalize(__isl_take isl_basic_set *bset)
__isl_give isl_map * isl_map_remove_empty_parts(__isl_take isl_map *map)
Definition: isl_map.c:9842
__isl_give isl_basic_set * isl_basic_set_reset_space(__isl_take isl_basic_set *bset, __isl_take isl_space *space)
Definition: isl_map.c:5824
int isl_basic_set_drop_inequality(__isl_keep isl_basic_set *bset, unsigned pos)
Definition: isl_map.c:1803
__isl_give isl_map * isl_map_from_pw_aff_internal(__isl_take isl_pw_aff *pa)
Definition: isl_aff_map.c:296
int isl_basic_map_alloc_equality(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:1631
isl_bool isl_basic_map_contains(__isl_keep isl_basic_map *bmap, __isl_keep isl_vec *vec)
Definition: isl_map.c:3661
isl_bool isl_map_plain_is_fixed(__isl_keep isl_map *map, enum isl_dim_type type, unsigned pos, isl_int *val)
Definition: isl_map.c:10138
isl_bool isl_map_has_rational(__isl_keep isl_map *map)
Definition: isl_map.c:1237
isl_bool isl_basic_map_compatible_range(__isl_keep isl_basic_map *bmap, __isl_keep isl_basic_set *bset)
Definition: isl_map.c:369
__isl_give isl_basic_set * isl_basic_set_recession_cone(__isl_take isl_basic_set *bset)
__isl_keep isl_space * isl_set_peek_space(__isl_keep isl_set *set)
Definition: isl_map.c:105
int isl_set_count_upto(__isl_keep isl_set *set, isl_int max, isl_int *count)
Definition: isl_scan.c:278
__isl_give isl_basic_map * isl_basic_map_transform_dims(__isl_take isl_basic_map *bmap, enum isl_dim_type type, unsigned first, __isl_take isl_mat *trans)
Definition: isl_map.c:14422
__isl_give isl_basic_map * isl_basic_map_drop_unrelated_constraints(__isl_take isl_basic_map *bmap, __isl_take int *group)
__isl_give isl_basic_set * isl_basic_set_from_underlying_set(__isl_take isl_basic_set *bset, __isl_take isl_basic_set *like)
Definition: isl_map.c:5750
isl_bool isl_basic_map_contains_point(__isl_keep isl_basic_map *bmap, __isl_keep isl_point *point)
Definition: isl_point.c:616
isl_stat isl_basic_map_free_div(__isl_keep isl_basic_map *bmap, unsigned n)
Definition: isl_map.c:1938
__isl_give isl_set * isl_set_grow(__isl_take isl_set *set, int n)
Definition: isl_map.c:3477
isl_stat isl_map_check_transformation(__isl_keep isl_map *map)
Definition: isl_map.c:8761
__isl_give isl_set * isl_set_preimage(__isl_take isl_set *set, __isl_take isl_mat *mat)
Definition: isl_mat.c:1416
__isl_give isl_basic_map * isl_basic_map_sort_divs(__isl_take isl_basic_map *bmap)
__isl_give isl_basic_set * isl_basic_set_plain_affine_hull(__isl_take isl_basic_set *bset)
isl_bool isl_basic_set_eq_is_stride(__isl_keep isl_basic_set *bset, int i)
Definition: isl_map.c:1074
isl_stat isl_set_check_range(__isl_keep isl_set *set, enum isl_dim_type type, unsigned first, unsigned n)
isl_stat isl_basic_map_check_range(__isl_keep isl_basic_map *bmap, enum isl_dim_type type, unsigned first, unsigned n)
__isl_give isl_basic_map * isl_basic_map_implicit_equalities(__isl_take isl_basic_map *bmap)
__isl_give isl_map * isl_map_from_multi_aff_internal(__isl_take isl_multi_aff *ma)
Definition: isl_aff_map.c:211
uint32_t isl_basic_map_get_hash(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:11178
isl_bool isl_basic_map_equal_div_expr_except_constant(__isl_keep isl_basic_map *bmap1, int pos1, __isl_keep isl_basic_map *bmap2, int pos2)
Definition: isl_map.c:14306
__isl_give isl_basic_map * isl_basic_map_normalize_constraints(__isl_take isl_basic_map *bmap)
__isl_give isl_set * isl_basic_set_list_union(__isl_take isl_basic_set_list *list)
Definition: isl_map.c:10643
__isl_give isl_basic_map * isl_basic_map_extend_constraints(__isl_take isl_basic_map *base, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:2033
isl_bool isl_basic_map_divs_known(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:8024
__isl_give isl_basic_map * isl_basic_map_reset_space(__isl_take isl_basic_map *bmap, __isl_take isl_space *space)
Definition: isl_map.c:5796
__isl_give isl_map * isl_map_set_rational(__isl_take isl_map *map)
Definition: isl_map.c:2257
__isl_give isl_basic_map * isl_basic_map_extend(__isl_take isl_basic_map *base, unsigned extra, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:1984
isl_bool isl_map_is_rational(__isl_keep isl_map *map)
Definition: isl_map.c:1148
isl_bool isl_map_compatible_domain(__isl_keep isl_map *map, __isl_keep isl_set *set)
Definition: isl_map.c:333
__isl_give isl_map * isl_map_add_basic_map(__isl_take isl_map *map, __isl_take isl_basic_map *bmap)
Definition: isl_map.c:6397
int isl_map_may_be_set(__isl_keep isl_map *map)
Definition: isl_map.c:6091
__isl_give isl_basic_map * isl_basic_map_overlying_set(__isl_take isl_basic_set *bset, __isl_take isl_basic_map *like)
Definition: isl_map.c:5682
__isl_keep isl_space * isl_map_peek_space(__isl_keep const isl_map *map)
Definition: isl_map.c:98
isl_stat isl_basic_set_check_equal_space(__isl_keep isl_basic_set *bset1, __isl_keep isl_basic_set *bset2)
__isl_give isl_basic_map * isl_basic_map_align_divs(__isl_take isl_basic_map *dst, __isl_keep isl_basic_map *src)
Definition: isl_map.c:9663
__isl_keep isl_space * isl_basic_set_peek_space(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:411
__isl_give isl_mat * isl_basic_set_extract_equalities(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:14270
__isl_give isl_map * isl_map_grow(__isl_take isl_map *map, int n)
Definition: isl_map.c:3448
__isl_give isl_set * isl_set_gist_params_basic_set(__isl_take isl_set *set, __isl_take isl_basic_set *context)
__isl_give isl_basic_set * isl_basic_set_alloc(isl_ctx *ctx, unsigned nparam, unsigned dim, unsigned extra, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:1346
isl_bool isl_map_divs_known(__isl_keep isl_map *map)
Definition: isl_map.c:8039
__isl_give isl_basic_set * isl_basic_set_from_local_space(__isl_take isl_local_space *ls)
Definition: isl_map.c:592
isl_stat isl_set_dim_residue_class(__isl_keep isl_set *set, int pos, isl_int *modulo, isl_int *residue)
__isl_give isl_basic_map * isl_basic_map_swap_div(__isl_take isl_basic_map *bmap, int a, int b)
Definition: isl_map.c:2293
__isl_give isl_set * isl_set_drop(__isl_take isl_set *set, enum isl_dim_type type, unsigned first, unsigned n)
Definition: isl_map.c:2504
__isl_give isl_map * isl_map_dup(__isl_keep isl_map *map)
Definition: isl_map.c:6384
__isl_give isl_basic_set * isl_basic_set_transform_dims(__isl_take isl_basic_set *bset, enum isl_dim_type type, unsigned first, __isl_take isl_mat *trans)
Definition: isl_map.c:14467
__isl_give isl_basic_set * isl_basic_set_normalize_constraints(__isl_take isl_basic_set *bset)
__isl_give isl_set * isl_set_set_rational(__isl_take isl_set *set)
Definition: isl_map.c:2275
__isl_give isl_set * isl_set_remove_empty_parts(__isl_take isl_set *set)
Definition: isl_map.c:9855
isl_bool isl_map_space_has_equal_params(__isl_keep isl_map *map, __isl_keep isl_space *space)
Definition: isl_map.c:12571
__isl_give isl_set * isl_set_realign(__isl_take isl_set *set, __isl_take isl_reordering *r)
Definition: isl_map.c:12467
__isl_give isl_set * isl_set_substitute(__isl_take isl_set *set, unsigned pos, __isl_keep isl_aff *subs)
Definition: isl_map.c:13551
__isl_give isl_basic_map * isl_basic_map_set_rational(__isl_take isl_basic_map *bmap)
Definition: isl_map.c:2215
isl_bool isl_map_tuple_is_equal(__isl_keep isl_map *map1, enum isl_dim_type type1, __isl_keep isl_map *map2, enum isl_dim_type type2)
Definition: isl_map.c:8736
int isl_basic_set_alloc_inequality(__isl_keep isl_basic_set *bset)
Definition: isl_map.c:1761
__isl_give isl_basic_map * isl_basic_map_add_div_constraints(__isl_take isl_basic_map *bmap, unsigned div)
Definition: isl_map.c:5564
isl_bool isl_map_is_set(__isl_keep isl_map *map)
Definition: isl_map.c:6102
isl_bool isl_basic_map_plain_is_single_valued(__isl_keep isl_basic_map *bmap)
Definition: isl_map.c:11884
__isl_keep isl_space * isl_basic_map_peek_space(__isl_keep const isl_basic_map *bmap)
Definition: isl_map.c:403
int isl_basic_map_plain_cmp(__isl_keep isl_basic_map *bmap1, __isl_keep isl_basic_map *bmap2)
Definition: isl_map.c:10325
__isl_give isl_basic_set * isl_basic_set_sort_constraints(__isl_take isl_basic_set *bset)
Definition: isl_map.c:10311
__isl_give isl_basic_map * isl_basic_map_alloc_space(__isl_take isl_space *space, unsigned extra, unsigned n_eq, unsigned n_ineq)
Definition: isl_map.c:1375
enum isl_fold type
Definition: isl_test.c:4017
const char * set
Definition: isl_test.c:1356
const char * ma
Definition: isl_test.c:7535
const char * map
Definition: isl_test.c:1783
const char * pma
Definition: isl_test.c:3169
const char * point
Definition: isl_test.c:10700
const char * context
Definition: isl_test.c:1784
const char * map1
Definition: isl_test.c:360
const char * map2
Definition: isl_test.c:361
struct isl_set isl_set
Definition: map_type.h:26
struct isl_basic_set isl_basic_set
Definition: map_type.h:20
a(0)
b(9)
isl_dim_type
Definition: space_type.h:13
struct isl_blk block2
struct isl_vec * sample
isl_int ** div
isl_int ** eq
struct isl_ctx * ctx
struct isl_blk block
isl_int ** ineq
isl_space * dim
size_t size
isl_space * dim
struct isl_ctx * ctx
struct isl_basic_map * p[1]
unsigned flags
isl_basic_map * cached_simple_hull[2]
n
Definition: youcefn.c:8