coalesce.c: use isl_bool enums instead of plain integers
commita62d05f2c61d5aa8a0d6a34c041b951bbfe446c1
authorTobias Grosser <tobias@grosser.es>
Tue, 29 May 2018 11:41:07 +0000 (29 13:41 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 30 May 2018 21:28:53 +0000 (30 23:28 +0200)
treec8f50955c720ad9ba723be4fd38df2c9416a7f1c
parent591e80b37aa76168b16cf5470f82292887688456
coalesce.c: use isl_bool enums instead of plain integers

This improves readability of the code and helps bug-finding tools [1],
which warn on integer to enum conversions in C. Such conversions,
despite being valid C, often cause bugs in C code.

[1] https://noamlewis.wordpress.com/2017/10/05/type-safe-enums-in-c-using-a-clang-plugin/)

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_coalesce.c