CBMC
memory_snapshot_harness_generator_options.h
Go to the documentation of this file.
1 /******************************************************************\
2 
3 Module: memory_snapshot_harness_generator_options
4 
5 Author: Diffblue Ltd.
6 
7 \******************************************************************/
8 
9 #ifndef CPROVER_GOTO_HARNESS_MEMORY_SNAPSHOT_HARNESS_GENERATOR_OPTIONS_H
10 #define CPROVER_GOTO_HARNESS_MEMORY_SNAPSHOT_HARNESS_GENERATOR_OPTIONS_H
11 
13 
14 #define MEMORY_SNAPSHOT_HARNESS_SNAPSHOT_OPT "memory-snapshot"
15 #define MEMORY_SNAPSHOT_HARNESS_INITIAL_GOTO_LOC_OPT "initial-goto-location"
16 #define MEMORY_SNAPSHOT_HARNESS_INITIAL_SOURCE_LOC_OPT "initial-source-location"
17 #define MEMORY_SNAPSHOT_HARNESS_HAVOC_VARIABLES_OPT "havoc-variables"
18 #define MEMORY_SNAPSHOT_HARNESS_TREAT_POINTER_AS_ARRAY_OPT "pointer-as-array"
19 #define MEMORY_SNAPSHOT_HARNESS_ASSOCIATED_ARRAY_SIZE_OPT "size-of-array"
20 
21 #define MEMORY_SNAPSHOT_HARNESS_GENERATOR_OPTIONS \
22  "(" MEMORY_SNAPSHOT_HARNESS_SNAPSHOT_OPT \
23  "):" \
24  "(" MEMORY_SNAPSHOT_HARNESS_INITIAL_GOTO_LOC_OPT \
25  "):" \
26  "(" MEMORY_SNAPSHOT_HARNESS_INITIAL_SOURCE_LOC_OPT \
27  "):" \
28  "(" MEMORY_SNAPSHOT_HARNESS_HAVOC_VARIABLES_OPT \
29  "):" \
30  "(" MEMORY_SNAPSHOT_HARNESS_TREAT_POINTER_AS_ARRAY_OPT \
31  "):" \
32  "(" MEMORY_SNAPSHOT_HARNESS_ASSOCIATED_ARRAY_SIZE_OPT "):"
33 
34 #define MEMORY_SNAPSHOT_HARNESS_GENERATOR_HELP \
35  "memory snapshot harness generator ({y--harness-type}\n" \
36  " {yinitialize-with-memory-snapshot}):\n" \
37  " {y--" MEMORY_SNAPSHOT_HARNESS_SNAPSHOT_OPT \
38  "} {ufile} \t " \
39  "initialize memory from JSON memory snapshot\n" \
40  " {y--" MEMORY_SNAPSHOT_HARNESS_INITIAL_GOTO_LOC_OPT \
41  "} {ufunc}[{y:}{un}] " \
42  "\t " \
43  "use given function and location number as entry point\n" \
44  " {y--" MEMORY_SNAPSHOT_HARNESS_INITIAL_SOURCE_LOC_OPT \
45  "} {ufile}{y:}{un} " \
46  "\t " \
47  "use given file name and line number as entry point\n" \
48  " {y--" MEMORY_SNAPSHOT_HARNESS_HAVOC_VARIABLES_OPT \
49  "} {uvars} \t " \
50  "initialize variables from {uvars} to non-deterministic " \
51  "values\n" COMMON_HARNESS_GENERATOR_HELP \
52  " {y--" MEMORY_SNAPSHOT_HARNESS_TREAT_POINTER_AS_ARRAY_OPT \
53  "} {up} \t " \
54  "treat the global pointer with the name {up} as an array\n" \
55  " {y--" MEMORY_SNAPSHOT_HARNESS_ASSOCIATED_ARRAY_SIZE_OPT \
56  "} " \
57  "{uarray_name}{y:}{usize_name} \t " \
58  "set the parameter {usize_name} to the size of the array {uarray_name} " \
59  "(implies " \
60  "{y-- " MEMORY_SNAPSHOT_HARNESS_TREAT_POINTER_AS_ARRAY_OPT \
61  "} " \
62  "{uarray_name})\n"
63 
64 #endif // CPROVER_GOTO_HARNESS_MEMORY_SNAPSHOT_HARNESS_GENERATOR_OPTIONS_H