isl_pw_templ.c: extract out isl_pw_*_exploit_equalities_and_remove_if_empty