-rw-r--r-- 187 saferewrite-20241004/src/int32_positive_mask/shift2optbug/positive.c raw
#include <inttypes.h> int32_t int32_negative_mask(int32_t x) { return x >> 31; } int32_t int32_positive_mask(int32_t x) { if (x == -x) return 0; return int32_negative_mask(-x); }