@@ -33,7 +33,7 @@ void goto_check(
33
33
" (bounds-check)(pointer-check)(memory-leak-check)" \
34
34
" (div-by-zero-check)(signed-overflow-check)(unsigned-overflow-check)" \
35
35
" (pointer-overflow-check)(conversion-check)(undefined-shift-check)" \
36
- " (float-overflow-check)(nan-check)"
36
+ " (float-overflow-check)(nan-check)(no-built-in-assertions) "
37
37
38
38
#define HELP_GOTO_CHECK \
39
39
" --bounds-check enable array bounds checks\n " \
@@ -47,6 +47,7 @@ void goto_check(
47
47
" --undefined-shift-check check shift greater than bit-width\n " \
48
48
" --float-overflow-check check floating-point for +/-Inf\n " \
49
49
" --nan-check check floating-point for NaN\n " \
50
+ " --no-built-in-assertions ignore assertions in built-in library\n " \
50
51
51
52
#define PARSE_OPTIONS_GOTO_CHECK (cmdline, options ) \
52
53
options.set_option(" bounds-check" , cmdline.isset(" bounds-check" )); \
@@ -59,6 +60,7 @@ void goto_check(
59
60
options.set_option(" conversion-check" , cmdline.isset(" conversion-check" )); \
60
61
options.set_option(" undefined-shift-check" , cmdline.isset(" undefined-shift-check" )); /* NOLINT(whitespace/line_length) */ \
61
62
options.set_option(" float-overflow-check" , cmdline.isset(" float-overflow-check" )); /* NOLINT(whitespace/line_length) */ \
62
- options.set_option(" nan-check" , cmdline.isset(" nan-check" ))
63
+ options.set_option(" nan-check" , cmdline.isset(" nan-check" )); \
64
+ options.set_option(" built-in-assertions" , !cmdline.isset(" no-built-in-assertions" )) /* NOLINT(whitespace/line_length) */
63
65
64
66
#endif // CPROVER_ANALYSES_GOTO_CHECK_H
0 commit comments