Skip to content

Commit 8c6ea70

Browse files
Update user manual
Simplify calls to JBMC
1 parent 60edc60 commit 8c6ea70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/cprover-manual/jbmc-user-manual.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ depends on an input):
123123
To limit the number of times the for-loop is unwound, we use the `--unwind N`
124124
options, in which case the following call to JBMC:
125125
```
126-
$ jbmc tutorial.ExampleUnwind --function tutorial.ExampleUnwind.isPrime --unwind 10
126+
$ jbmc tutorial.ExampleUnwind.isPrime --unwind 10
127127
```
128128
will terminate correctly. In this case, we will see `VERIFICATION SUCCESSFUL`,
129129
as no automatic assertions are violated.
@@ -139,7 +139,7 @@ JBMC will try to refute. On line 7, we check the assertion that all odd
139139
numbers greater than 1 are prime. To be sure that this always holds, we run
140140
JBMC on the example, with a reasonable `unwind` value:
141141
```
142-
$ jbmc tutorial.ExampleUnwind --function tutorial.ExampleUnwind.doSomething --unwind 10
142+
$ jbmc tutorial.ExampleUnwind.doSomething --unwind 10
143143
```
144144
Unsurprisingly JBMC doesn't agree, and prints an assertion failure
145145
(truncated here for readability):
@@ -223,7 +223,7 @@ Consider the following code:
223223

224224
When given the `--throw-runtime-exceptions` options:
225225
```
226-
$ jbmc tutorial.ExampleExceptions --tutorial.ExampleExceptions.strLength --throw-runtime-exceptions
226+
$ jbmc tutorial.ExampleExceptions.strLength --throw-runtime-exceptions
227227
```
228228
JBMC will signal that the `str.length()` call may throw a runtime exception
229229
and that this exception is not caught.

0 commit comments

Comments
 (0)