verif_ehrhart: combine check_poly from barvinok_enumerate_e.cc