Skip to content

Commit c408367

Browse files
authored
Merge pull request #5826 from tautschnig/gb-suffix
Documentation: consistently use .gb suffix for goto binaries
2 parents 4018bbc + 05e3ab4 commit c408367

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

doc/architectural/howto.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ If you built using CMake on Unix, you should be able to run the
7676
Find or write a moderately-interesting C program; we'll call it `main.c`.
7777
Run the following commands:
7878

79-
goto-gcc -o main.goto main.c
79+
goto-gcc -o main.gb main.c
8080
cc -o main.exe main.c
8181

82-
Invoke `./main.goto` and `./main.exe` and observe that they run identically.
82+
Invoke `./main.gb` and `./main.exe` and observe that they run identically.
8383
The version that was compiled with `goto-gcc` is larger, though:
8484

8585
du -hs *.{goto,exe}
@@ -95,7 +95,7 @@ is (informally) called a *goto-program*.
9595
`goto-instrument` is a Swiss army knife for viewing goto-programs and
9696
performing single program analyses on them. Run the following command:
9797

98-
goto-instrument --show-goto-functions main.goto
98+
goto-instrument --show-goto-functions main.gb
9999

100100
Many of the instructions in the goto-program intermediate representation
101101
are similar to their C counterparts. `if` and `goto` statements replace
@@ -105,7 +105,7 @@ Find or write a small C program (2 or 3 functions, each containing a few
105105
varied statements). Compile it using `goto-gcc` as above into an object
106106
file called `main`. You can write the diagram to a file and then view it:
107107

108-
goto-instrument --dot main.goto | tail -n +2 | dot -Tpng > main.png
108+
goto-instrument --dot main.gb | tail -n +2 | dot -Tpng > main.png
109109
open main.png
110110

111111
(the invocation of `tail` is used to filter out the first line of
@@ -143,7 +143,7 @@ At some point in that function, there will be a long sequence of `if` statements
143143
**Task:** Add a `--greet` switch to `goto-instrument`, taking an optional
144144
argument, with the following behaviour:
145145

146-
$ goto-instrument --greet main.goto
146+
$ goto-instrument --greet main.gb
147147
hello, world!
148148
$ goto-instrument --greet Leperina main
149149
hello, Leperina!

doc/cprover-manual/properties.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ Now, we can compile the program and detect that the error functions are indeed
227227
called by invoking these commands:
228228

229229
```
230-
goto-cc error_example.c -o error_example.goto
230+
goto-cc error_example.c -o error_example.gb
231231
# Replace all functions ending with _error
232232
# (Excluding those starting with __)
233233
# With ones that have an assert(false) body
234-
goto-instrument error_example.goto error_example_replaced.goto \
234+
goto-instrument error_example.gb error_example_replaced.gb \
235235
--generate-function-body '(?!__).*_error' \
236236
--generate-function-body-options assert-false
237-
cbmc error_example_replaced.goto
237+
cbmc error_example_replaced.gb
238238
```
239239

240240
This generates the following output:
@@ -277,7 +277,7 @@ int do_something_with_complex(struct Complex *complex);
277277
And the command line
278278
279279
```
280-
goto-instrument in.goto out.goto
280+
goto-instrument in.gb out.gb
281281
--generate-function-body do_something_with_complex
282282
--generate-function-body-options
283283
'havoc,params:.*,globals:AGlobalComplex'

0 commit comments

Comments
 (0)