@@ -33,7 +33,7 @@ void goto_check(
3333 " (bounds-check)(pointer-check)(memory-leak-check)" \
3434 " (div-by-zero-check)(signed-overflow-check)(unsigned-overflow-check)" \
3535 " (pointer-overflow-check)(conversion-check)(undefined-shift-check)" \
36- " (float-overflow-check)(nan-check)"
36+ " (float-overflow-check)(nan-check)(no-built-in-assertions) "
3737
3838#define HELP_GOTO_CHECK \
3939 " --bounds-check enable array bounds checks\n " \
@@ -47,6 +47,7 @@ void goto_check(
4747 " --undefined-shift-check check shift greater than bit-width\n " \
4848 " --float-overflow-check check floating-point for +/-Inf\n " \
4949 " --nan-check check floating-point for NaN\n " \
50+ " --no-built-in-assertions ignore assertions in built-in library\n " \
5051
5152#define PARSE_OPTIONS_GOTO_CHECK (cmdline, options ) \
5253 options.set_option(" bounds-check" , cmdline.isset(" bounds-check" )); \
@@ -59,6 +60,7 @@ void goto_check(
5960 options.set_option(" conversion-check" , cmdline.isset(" conversion-check" )); \
6061 options.set_option(" undefined-shift-check" , cmdline.isset(" undefined-shift-check" )); /* NOLINT(whitespace/line_length) */ \
6162 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) */
6365
6466#endif // CPROVER_ANALYSES_GOTO_CHECK_H
0 commit comments