verbose reads now tells about conversions
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user