Related, hardbool, it seems gcc can automatically handle this soon.
https://blog.adacore.com/adacore-enhances-gcc-security-with-... and https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.ht...
https://blog.adacore.com/adacore-enhances-gcc-security-with-... and https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.ht...
It's very relevant! The problematic comparison in this code isn't true/false! A feature that only protects true/false does not help here.