isl_tab_pip.c: no_sol_in_strict: fix error handling
commit0710160057b2122b93d8d4c01ea8a12d5b6c2311
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 23 Mar 2023 21:54:26 +0000 (23 22:54 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sun, 26 Mar 2023 17:40:31 +0000 (26 19:40 +0200)
tree4965531b8a48bd423dc5eb0a5cc1c06f7ca3bc62
parent7d198d0bc8c80cfe1f8b2e8946edcdc436b86bde
isl_tab_pip.c: no_sol_in_strict: fix error handling

Ever since the context handling was extracted out in
isl-0.01-78-gfc0a2defe3 (isl_tab_pip.c: extract out context handling,
Thu Oct 8 13:49:57 2009 +0200), the add_ineq method
has never caused the isl_context pointer to become NULL.
The proper way of checking for errors is to call is_ok(),
which was introduced in the same commit.

Furthermore, ever since isl-0.01-79-gcfb1ea42e2 (isl_tab_pip:
add generalized basis reduction based context handling,
Thu Oct 8 14:10:30 2009 +0200), the save() method may perform
an allocation, which must be freed by calling restore()
(or discard()).

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_tab_pip.c