CBMC
common_harness_generator_options.h
Go to the documentation of this file.
1 /******************************************************************\
2 
3 Module: common_harness_generator_options
4 
5 Author: Diffblue Ltd.
6 
7 \******************************************************************/
8 
9 #ifndef CPROVER_GOTO_HARNESS_COMMON_HARNESS_GENERATOR_OPTIONS_H
10 #define CPROVER_GOTO_HARNESS_COMMON_HARNESS_GENERATOR_OPTIONS_H
11 
12 #define COMMON_HARNESS_GENERATOR_MIN_NULL_TREE_DEPTH_OPT "min-null-tree-depth"
13 #define COMMON_HARNESS_GENERATOR_MAX_NONDET_TREE_DEPTH_OPT \
14  "max-nondet-tree-depth"
15 #define COMMON_HARNESS_GENERATOR_MIN_ARRAY_SIZE_OPT "min-array-size"
16 #define COMMON_HARNESS_GENERATOR_MAX_ARRAY_SIZE_OPT "max-array-size"
17 #define COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT \
18  "function-pointer-can-be-null"
19 #define COMMON_HARNESS_GENERATOR_HAVOC_MEMBER_OPT "havoc-member"
20 
21 #define COMMON_HARNESS_GENERATOR_OPTIONS \
22  "(" COMMON_HARNESS_GENERATOR_MIN_NULL_TREE_DEPTH_OPT \
23  "):" \
24  "(" COMMON_HARNESS_GENERATOR_MAX_NONDET_TREE_DEPTH_OPT \
25  "):" \
26  "(" COMMON_HARNESS_GENERATOR_MIN_ARRAY_SIZE_OPT \
27  "):" \
28  "(" COMMON_HARNESS_GENERATOR_MAX_ARRAY_SIZE_OPT \
29  "):" \
30  "(" COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT \
31  "):" \
32  "(" COMMON_HARNESS_GENERATOR_HAVOC_MEMBER_OPT "):"
33 
34 #define COMMON_HARNESS_GENERATOR_HELP \
35  " {y--" COMMON_HARNESS_GENERATOR_MIN_NULL_TREE_DEPTH_OPT \
36  "} {uN} \t " \
37  "minimum level at which a pointer can first be NULL in a recursively " \
38  "nondet initialized struct\n" \
39  " {y--" COMMON_HARNESS_GENERATOR_MAX_NONDET_TREE_DEPTH_OPT \
40  "} {uN} \t " \
41  "limit size of nondet (e.g. input) object tree; at level {uN} pointers " \
42  "are set to null\n" \
43  " {y--" COMMON_HARNESS_GENERATOR_MIN_ARRAY_SIZE_OPT \
44  "} {uN} \t " \
45  "minimum size of dynamically created arrays (default: 1)\n" \
46  " {y--" COMMON_HARNESS_GENERATOR_MAX_ARRAY_SIZE_OPT \
47  "} {uN} \t " \
48  "maximum size of dynamically created arrays (default: 2)\n" \
49  " {y--" COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT \
50  "} " \
51  "{ufunction_name} \t " \
52  "name of the function(s) pointer parameters that can be NULL " \
53  "pointing\n" \
54  " {y--" COMMON_HARNESS_GENERATOR_HAVOC_MEMBER_OPT \
55  "} {umember_expr} \t " \
56  "path to the member to be havocked\n"
57 
58 #endif // CPROVER_GOTO_HARNESS_COMMON_HARNESS_GENERATOR_OPTIONS_H