Go to the documentation of this file.
12 #ifndef CPROVER_ANALYSES_GOTO_CHECK_H
13 #define CPROVER_ANALYSES_GOTO_CHECK_H
36 #define OPT_GOTO_CHECK \
37 "(bounds-check)(pointer-check)(memory-leak-check)" \
38 "(div-by-zero-check)(enum-range-check)(signed-overflow-check)(unsigned-" \
40 "(pointer-overflow-check)(conversion-check)(undefined-shift-check)" \
41 "(float-overflow-check)(nan-check)(no-built-in-assertions)" \
42 "(pointer-primitive-check)"
45 #define HELP_GOTO_CHECK \
46 " --bounds-check enable array bounds checks\n" \
47 " --pointer-check enable pointer checks\n" \
48 " --memory-leak-check enable memory leak checks\n" \
49 " --div-by-zero-check enable division by zero checks\n" \
50 " --signed-overflow-check enable signed arithmetic over- and underflow checks\n" \
51 " --unsigned-overflow-check enable arithmetic over- and underflow checks\n" \
52 " --pointer-overflow-check enable pointer arithmetic over- and underflow checks\n" \
53 " --conversion-check check whether values can be represented after type cast\n" \
54 " --undefined-shift-check check shift greater than bit-width\n" \
55 " --float-overflow-check check floating-point for +/-Inf\n" \
56 " --nan-check check floating-point for NaN\n" \
57 " --no-built-in-assertions ignore assertions in built-in library\n" \
58 " --enum-range-check checks that all enum type expressions have values in the enum range\n" \
59 " --pointer-primitive-check checks that all pointers in pointer primitives are valid or null\n"
61 #define PARSE_OPTIONS_GOTO_CHECK(cmdline, options) \
62 options.set_option("bounds-check", cmdline.isset("bounds-check")); \
63 options.set_option("pointer-check", cmdline.isset("pointer-check")); \
64 options.set_option("memory-leak-check", cmdline.isset("memory-leak-check")); \
65 options.set_option("div-by-zero-check", cmdline.isset("div-by-zero-check")); \
66 options.set_option("enum-range-check", cmdline.isset("enum-range-check")); \
67 options.set_option("signed-overflow-check", cmdline.isset("signed-overflow-check")); \
68 options.set_option("unsigned-overflow-check", cmdline.isset("unsigned-overflow-check")); \
69 options.set_option("pointer-overflow-check", cmdline.isset("pointer-overflow-check")); \
70 options.set_option("conversion-check", cmdline.isset("conversion-check")); \
71 options.set_option("undefined-shift-check", cmdline.isset("undefined-shift-check")); \
72 options.set_option("float-overflow-check", cmdline.isset("float-overflow-check")); \
73 options.set_option("nan-check", cmdline.isset("nan-check")); \
74 options.set_option("built-in-assertions", !cmdline.isset("no-built-in-assertions")); \
75 options.set_option("pointer-primitive-check", cmdline.isset("pointer-primitive-check"))
78 #endif // CPROVER_ANALYSES_GOTO_CHECK_H
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
::goto_functiont goto_functiont
A collection of goto functions.
Goto Programs with Functions.
void goto_check(const namespacet &ns, const optionst &options, goto_functionst &goto_functions)