From 5df545df3bede37c9c788987d8234887a8a8f949 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 2 Dec 2010 16:41:49 +0100 Subject: [PATCH] isl_stream_read_pw_qpolynomial: accept powers on compound expressions Signed-off-by: Sven Verdoolaege --- isl_input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/isl_input.c b/isl_input.c index eba527c8..ec25b7fc 100644 --- a/isl_input.c +++ b/isl_input.c @@ -1330,12 +1330,16 @@ static __isl_give isl_qpolynomial *read_factor(struct isl_stream *s, return NULL; } if (tok->type == '(') { + int pow; + isl_token_free(tok); qp = read_term(s, bmap, v); if (!qp) return NULL; if (isl_stream_eat(s, ')')) goto error; + pow = optional_power(s); + qp = isl_qpolynomial_pow(qp, pow); } else if (tok->type == ISL_TOKEN_VALUE) { struct isl_token *tok2; tok2 = isl_stream_next_token(s); -- 2.11.4.GIT