isl_basic_set_expand_divs: avoid moving coefficients in extra integer divisions
isl_basic_set_expand_divs needs to move the integer divisions in its
input to the right position and introduce additional integer divisions.
It would do these two tasks together, but this could result
in an additional integer division getting added that refers
to an earlier integer division that had not yet been added,
the position instead being occupied by an integer division
that still had to be moved. The outer integer division would
then end up referring to this moved integer division instead
of to the integer division that eventually ends up in that position.
Move the integer divisions into their new positions before
adding new ones.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>