/* * Copyright 2010 INRIA Saclay * * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France, * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod, * 91893 Orsay, France */ /* Compute the maximal value attained by the piecewise quasipolynomial * on its domain or zero if the domain is empty. * In the worst case, the domain is scanned completely, * so the domain is assumed to be bounded. */ __isl_give isl_val *FN(PW,opt)(__isl_take PW *pw, int max) { … } __isl_give isl_val *FN(PW,max)(__isl_take PW *pw) { … } __isl_give isl_val *FN(PW,min)(__isl_take PW *pw) { … }