@@ -61,15 +61,12 @@ To use the incremental SMT2 backend it is enough to add the `--incremental-smt2-
61
61
the CBMC command line followed by the command to invoke the chosen solver using smtlib 2.6 input in
62
62
interactive mode.
63
63
64
- Note that the use of the ` --slice-formula ` option is recommended at this time to slice out
65
- unnecessary code (that may not be supported at the moment) and this can also improve performance.
66
-
67
64
Here are two examples to show how to analyse a file ` program.c ` using Z3 and CVC5 solvers.
68
65
69
66
To use the Z3 SMT solver:
70
67
71
68
``` shell
72
- cbmc --slice-formula -- incremental-smt2-solver ' z3 -smt2 -in' program.c
69
+ cbmc --incremental-smt2-solver ' z3 -smt2 -in' program.c
73
70
```
74
71
75
72
If ` z3 ` is not on the ` PATH ` , then it is enough to replace ` 'z3 -smt2 -in' `
@@ -78,7 +75,7 @@ with `'<command-to-execute-z3> -smt2 -in'`,
78
75
Similarly to execute CBMC using the CVC5 solver:
79
76
80
77
``` shell
81
- cbmc --slice-formula -- incremental-smt2-solver ' cvc5 --lang=smtlib2.6 --incremental' program.c
78
+ cbmc --incremental-smt2-solver ' cvc5 --lang=smtlib2.6 --incremental' program.c
82
79
```
83
80
84
81
As the command to execute the solver is left to the user, it is possible to fine-tune it by passing
@@ -87,7 +84,7 @@ adding `param_name=value` to the command line, so to use the Z3 solver with `wel
87
84
property set to ` false ` the following has to be run:
88
85
89
86
``` shell
90
- cbmc --slice-formula -- incremental-smt2-solver ' z3 -smt2 -in well_sorted_check=false' program.c
87
+ cbmc --incremental-smt2-solver ' z3 -smt2 -in well_sorted_check=false' program.c
91
88
```
92
89
93
90
### Examples
@@ -110,7 +107,7 @@ int main()
110
107
To analyze it we should run:
111
108
112
109
``` shell
113
- cbmc --incremental-smt2-solver ' z3 -smt2 -in' --slice-formula program.c
110
+ cbmc --incremental-smt2-solver ' z3 -smt2 -in' program.c
114
111
```
115
112
116
113
We will get the verification results as follows:
@@ -162,7 +159,7 @@ The incremental smt2 backend also supports trace generation, so to get a trace t
162
159
assertions the ` --trace ` argument should be added, so the command to run is:
163
160
164
161
``` shell
165
- cbmc --incremental-smt2-solver ' z3 -smt2 -in' --slice-formula -- trace program.c
162
+ cbmc --incremental-smt2-solver ' z3 -smt2 -in' --trace program.c
166
163
```
167
164
168
165
This will append the trace to CBMC's output as follows:
0 commit comments