isl_union_map_sample: don't return NULL on empty input
[isl.git] / isl_sample.h
blobb657e6e1cfbbaefbcd0a259a9c61be5ca91429db
1 /*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
10 #ifndef ISL_SAMPLE_H
11 #define ISL_SAMPLE
13 #include <isl/set.h>
14 #include <isl_tab.h>
16 #if defined(__cplusplus)
17 extern "C" {
18 #endif
20 __isl_give isl_vec *isl_basic_set_sample_vec(__isl_take isl_basic_set *bset);
21 struct isl_vec *isl_basic_set_sample_bounded(struct isl_basic_set *bset);
22 __isl_give isl_vec *isl_basic_set_sample_with_cone(
23 __isl_take isl_basic_set *bset, __isl_take isl_basic_set *cone);
25 __isl_give isl_basic_set *isl_basic_set_from_vec(__isl_take isl_vec *vec);
27 int isl_tab_set_initial_basis_with_cone(struct isl_tab *tab,
28 struct isl_tab *tab_cone);
29 struct isl_vec *isl_tab_sample(struct isl_tab *tab);
31 #if defined(__cplusplus)
33 #endif
35 #endif