12#ifndef CPROVER_ANALYSES_GOTO_CHECK_JAVA_H
13#define CPROVER_ANALYSES_GOTO_CHECK_JAVA_H
40#define OPT_GOTO_CHECK_JAVA \
41 "(bounds-check)(pointer-check)" \
42 "(div-by-zero-check)(enum-range-check)(signed-overflow-check)(unsigned-" \
44 "(conversion-check)" \
45 "(float-overflow-check)(nan-check)(no-built-in-assertions)" \
46 "(retain-trivial-checks)" \
48 "(no-assertions)(no-assumptions)" \
52#define HELP_GOTO_CHECK_JAVA \
53 " --bounds-check enable array bounds checks\n" \
54 " --pointer-check enable pointer checks\n" \
55 " --div-by-zero-check enable division by zero checks\n" \
56 " --signed-overflow-check enable signed arithmetic over- and underflow checks\n" \
57 " --unsigned-overflow-check enable arithmetic over- and underflow checks\n" \
58 " --conversion-check check whether values can be represented after type cast\n" \
59 " --float-overflow-check check floating-point for +/-Inf\n" \
60 " --nan-check check floating-point for NaN\n" \
61 " --retain-trivial-checks include checks that are trivially true\n" \
62 " --error-label label check that label is unreachable\n" \
63 " --no-built-in-assertions ignore assertions in built-in library\n" \
64 " --no-assertions ignore user assertions\n" \
65 " --no-assumptions ignore user assumptions\n" \
66 " --assert-to-assume convert user assertions to assumptions\n" \
68#define PARSE_OPTIONS_GOTO_CHECK_JAVA(cmdline, options) \
69 options.set_option("bounds-check", cmdline.isset("bounds-check")); \
70 options.set_option("pointer-check", cmdline.isset("pointer-check")); \
71 options.set_option("memory-leak-check", cmdline.isset("memory-leak-check")); \
72 options.set_option("div-by-zero-check", cmdline.isset("div-by-zero-check")); \
73 options.set_option("enum-range-check", cmdline.isset("enum-range-check")); \
74 options.set_option("signed-overflow-check", cmdline.isset("signed-overflow-check")); \
75 options.set_option("unsigned-overflow-check", cmdline.isset("unsigned-overflow-check")); \
76 options.set_option("pointer-overflow-check", cmdline.isset("pointer-overflow-check")); \
77 options.set_option("conversion-check", cmdline.isset("conversion-check")); \
78 options.set_option("undefined-shift-check", cmdline.isset("undefined-shift-check")); \
79 options.set_option("float-overflow-check", cmdline.isset("float-overflow-check")); \
80 options.set_option("nan-check", cmdline.isset("nan-check")); \
81 options.set_option("built-in-assertions", !cmdline.isset("no-built-in-assertions")); \
82 options.set_option("pointer-primitive-check", cmdline.isset("pointer-primitive-check")); \
83 options.set_option("retain-trivial-checks", \
84 cmdline.isset("retain-trivial-checks")); \
85 options.set_option("assertions", !cmdline.isset("no-assertions")); \
86 options.set_option("assumptions", !cmdline.isset("no-assumptions")); \
87 options.set_option("assert-to-assume", cmdline.isset("assert-to-assume")); \
88 options.set_option("retain-trivial", cmdline.isset("retain-trivial")); \
89 if(cmdline.isset("error-label")) \
90 options.set_option("error-label", cmdline.get_values("error-label")); \
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
A collection of goto functions.
::goto_functiont goto_functiont
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
void goto_check_java(const namespacet &ns, const optionst &options, goto_functionst &goto_functions, message_handlert &message_handler)
Goto Programs with Functions.