return NULL;
}
+static struct isl_map *isl_basic_map_partial_lexopt(
+ struct isl_basic_map *bmap, struct isl_basic_set *dom,
+ struct isl_set **empty, int max)
+{
+ return isl_pip_basic_map_lexopt(bmap, dom, empty, max);
+}
+
struct isl_map *isl_basic_map_partial_lexmax(
struct isl_basic_map *bmap, struct isl_basic_set *dom,
struct isl_set **empty)
{
- return isl_pip_basic_map_lexmax(bmap, dom, empty);
+ return isl_basic_map_partial_lexopt(bmap, dom, empty, 1);
}
struct isl_map *isl_basic_map_partial_lexmin(
struct isl_basic_map *bmap, struct isl_basic_set *dom,
struct isl_set **empty)
{
- return isl_pip_basic_map_lexmin(bmap, dom, empty);
+ return isl_basic_map_partial_lexopt(bmap, dom, empty, 0);
}
struct isl_set *isl_basic_set_partial_lexmin(
#include "isl_map_piplib.h"
-struct isl_map *isl_pip_basic_map_lexmax(
+struct isl_map *isl_pip_basic_map_lexopt(
struct isl_basic_map *bmap, struct isl_basic_set *dom,
- struct isl_set **empty)
-{
- isl_basic_map_free(bmap);
- isl_basic_set_free(dom);
- return NULL;
-}
-
-struct isl_map *isl_pip_basic_map_lexmin(
- struct isl_basic_map *bmap, struct isl_basic_set *dom,
- struct isl_set **empty)
+ struct isl_set **empty, int max)
{
isl_basic_map_free(bmap);
isl_basic_set_free(dom);
pip_param, extra_front, extra_back);
}
-static struct isl_map *extremum_on(
+struct isl_map *isl_pip_basic_map_lexopt(
struct isl_basic_map *bmap, struct isl_basic_set *dom,
struct isl_set **empty, int max)
{
return NULL;
}
-struct isl_map *isl_pip_basic_map_lexmax(
- struct isl_basic_map *bmap, struct isl_basic_set *dom,
- struct isl_set **empty)
-{
- return extremum_on(bmap, dom, empty, 1);
-}
-
-struct isl_map *isl_pip_basic_map_lexmin(
- struct isl_basic_map *bmap, struct isl_basic_set *dom,
- struct isl_set **empty)
-{
- return extremum_on(bmap, dom, empty, 0);
-}
-
/* Project the given basic set onto its parameter domain, possibly introducing
* new, explicit, existential variables in the constraints.
* The input has parameters and output variables.
extern "C" {
#endif
-struct isl_map *isl_pip_basic_map_lexmax(
+struct isl_map *isl_pip_basic_map_lexopt(
struct isl_basic_map *bmap, struct isl_basic_set *dom,
- struct isl_set **empty);
-struct isl_map *isl_pip_basic_map_lexmin(
- struct isl_basic_map *bmap, struct isl_basic_set *dom,
- struct isl_set **empty);
+ struct isl_set **empty, int max);
struct isl_map *isl_pip_basic_map_compute_divs(struct isl_basic_map *bmap);
#if defined(__cplusplus)