verbose reads now tells about conversions

This commit is contained in:
agroce
2019-05-17 09:47:48 -07:00
parent e187b1db5e
commit 72688701b8
+5
View File
@@ -295,6 +295,11 @@ DEEPSTATE_INLINE static void DeepState_Check(int expr) {
} \
if ((x < low) || (x > high)) { \
const tname size = (high - low) + 1; \
if (FLAGS_verbose_reads) { \
if (x != (low + ((x % size + size) % size))) { \
printf("Converting out-of-range value to %u\n", (unsigned int)(low + ((x % size + size) % size))); \
} \
} \
return low + ((x % size + size) % size); \
} \
return x; \