From 52099b16ce07deb631cf4147a9c797646faa24a1 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 4 Feb 2010 17:51:11 +0100 Subject: [PATCH] isl_map_read: make sure polylib constraint coefficients are on a single line --- isl_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/isl_input.c b/isl_input.c index 42ab055..bdd9a2f 100644 --- a/isl_input.c +++ b/isl_input.c @@ -623,6 +623,12 @@ static __isl_give isl_basic_map *basic_map_read_polylib_constraint( isl_stream_push_token(s, tok); goto error; } + if (tok->on_new_line) { + isl_stream_error(s, tok, + "coefficient should not appear on new line"); + isl_stream_push_token(s, tok); + goto error; + } pos = polylib_pos_to_isl_pos(bmap, j); isl_int_set(c[pos], tok->u.v); isl_token_free(tok); -- 2.7.4