isl_ctx *ctx, const char *str, int nparam);
__isl_give isl_map *isl_map_read_from_file(
struct isl_ctx *ctx, FILE *input, int nparam);
+ __isl_give isl_map *isl_map_read_from_str(isl_ctx *ctx,
+ const char *str, int nparam);
The input may be either in C<PolyLib> format or in the
C<isl> format, which is similar to the C<Omega> format.
const char *str, int nparam);
__isl_give isl_map *isl_map_read_from_file(struct isl_ctx *ctx,
FILE *input, int nparam);
+__isl_give isl_map *isl_map_read_from_str(isl_ctx *ctx,
+ const char *str, int nparam);
struct isl_basic_map *isl_basic_map_fix_si(struct isl_basic_map *bmap,
enum isl_dim_type type, unsigned pos, int value);
return map;
}
+__isl_give isl_map *isl_map_read_from_str(struct isl_ctx *ctx,
+ const char *str, int nparam)
+{
+ struct isl_map *map;
+ struct isl_stream *s = isl_stream_new_str(ctx, str);
+ if (!s)
+ return NULL;
+ map = map_read(s, nparam);
+ isl_stream_free(s);
+ return map;
+}
+
__isl_give isl_set *isl_set_read_from_file(struct isl_ctx *ctx,
FILE *input, int nparam)
{