Skip to content

Commit c94494e

Browse files
author
Joel Allred
committed
Peter's comments 3
Consider that compiled class file is in a folder named after its package.
1 parent c7b714d commit c94494e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ features of JBMC, and explore the most useful features.
2222

2323
\subsection jbmc-manual-auto-assert Automatic assertions
2424

25-
Consider the following simplistic `ExampleArray.java` file which we have compiled
26-
into `ExampleArray.class` and which contains a utility method to query a given
27-
array at a given index:
25+
Consider the following simplistic `ExampleArray.java` file which we have
26+
compiled into `tutorial/ExampleArray.class` and which contains a utility method
27+
to query a given array at a given index:
2828
```
2929
1| package tutorial;
3030
2|
@@ -39,7 +39,7 @@ array at a given index:
3939
Now let's run the following command to let JBMC tell us about potential errors
4040
in our `query` method.
4141

42-
$ jbmc ExampleArray.class --function tutorial.ExampleArray.query
42+
$ jbmc tutorial/ExampleArray.class --function tutorial.ExampleArray.query
4343

4444

4545
The output contains the following:
@@ -116,7 +116,7 @@ depends on an input):
116116
To limit the number of times the for-loop is unwound, we use the `--unwind N`
117117
options, in which case the following call to JBMC:
118118

119-
$ jbmc ExampleUnwind.class --function tutorial.ExampleUnwind.isPrime --unwind 10
119+
$ jbmc tutorial/ExampleUnwind.class --function tutorial.ExampleUnwind.isPrime --unwind 10
120120

121121
will terminate correctly. In this case, we will see `VERIFICATION SUCCESSFUL`,
122122
as no automatic assertions are violated.
@@ -129,7 +129,7 @@ JBMC will try do refute. On line 7, we check the assertion that all odd
129129
numbers greater than 1 are prime. To be sure that this always holds, we run
130130
JBMC on the example, with a reasonable `unwind` value:
131131

132-
$ jbmc ExampleUnwind.class --function tutorial.ExampleUnwind.doSomething --unwind 10
132+
$ jbmc tutorial/ExampleUnwind.class --function tutorial.ExampleUnwind.doSomething --unwind 10
133133

134134
Unsurprisingly JBMC doesn't agree, and prints an assertion failure
135135
(truncated here for readability):
@@ -178,7 +178,7 @@ from `java.lang.String`, e.g.
178178
The following command line (note that the current directory is also added to
179179
the classpath):
180180

181-
$ jbmc ExampleModels.class --cp <path_to_cbmc>/jbmc/src/java_bytecode/library/core-models.jar:.
181+
$ jbmc tutorial/ExampleModels.class --cp <path_to_cbmc>/jbmc/src/java_bytecode/library/core-models.jar:.
182182

183183
will flag this violation (truncated):
184184
```c

0 commit comments

Comments
 (0)