You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The easiest solution seems to be parsing of the overflow warnings emitted by clang. However, we still need to check that the expression is reachable (clang generates these warnings even if such expression is wrapped in if (0) statement) and to generate a suitable witness.
$ clang -Winteger-overflow -S -emit-llvm const.c -o const.llconst.c:2:18: warning: overflow in expression; result is -2147483648 with type 'int' [-Winteger-overflow]int a = (INT_MAX + 1) - 5; ^const.c:2:23: warning: overflow in expression; result is 2147483643 with type 'int' [-Winteger-overflow]int a = (INT_MAX + 1) - 5;2 warnings generated.
Code:
IR:
The easiest solution seems to be parsing of the overflow warnings emitted by
clang
. However, we still need to check that the expression is reachable (clang
generates these warnings even if such expression is wrapped inif (0)
statement) and to generate a suitable witness.Related: https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks/-/issues/1327
The text was updated successfully, but these errors were encountered: