Skip to content

Commit 4c59d28

Browse files
authored
Merge pull request #8471 from tautschnig/loops-man-pages
Man pages: improve wording of unwinding-related options
2 parents a209b44 + 36ba12e commit 4c59d28

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

doc/man/cbmc.1

+12-9
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,13 @@ sensitivity size for arrays to 0
389389
\fB\-\-show\-loops\fR
390390
show the loops in the program
391391
.TP
392-
\fB\-\-unwind\fR nr
393-
unwind nr times
392+
\fB\-\-unwind\fR \fInr\fR
393+
unwind all loops at most \fInr\fR times
394394
.TP
395-
\fB\-\-unwindset\fR [T:]L:B,...
396-
unwind loop L with a bound of B
397-
(optionally restricted to thread T)
398-
(use \fB\-\-show\-loops\fR to get the loop IDs)
395+
\fB\-\-unwindset\fR [\fIT\fR:]\fIL\fR:\fIB\fR,...
396+
unwind loop \fIL\fR with a bound of \fIB\fR, optionally restricted to thread
397+
\fIT\fR, and overriding what may be set as default unwinding via
398+
\fB\-\-unwind\fR (use \fB\-\-show\-loops\fR to get the loop IDs)
399399
.TP
400400
\fB\-\-incremental\-loop\fR L
401401
check properties after each unwinding
@@ -424,11 +424,14 @@ show the verification conditions
424424
remove assignments unrelated to property
425425
.TP
426426
\fB\-\-unwinding\-assertions\fR
427-
generate unwinding assertions (cannot be
428-
used with \fB\-\-cover\fR)
427+
generate unwinding assertions (which are enabled by default; overrides
428+
\fB\-\-no\-unwinding\-assertions\fR when both of these are given); cannot be
429+
used with \fB\-\-cover\fR
429430
.TP
430431
\fB\-\-partial\-loops\fR
431-
permit paths with partial loops
432+
permit paths that execute loops only partially (up to the given unwinding bound)
433+
and then continue beyond the loop even when the loop condition would still hold
434+
(such paths may be spurious, resulting in false alarms)
432435
.TP
433436
\fB\-\-no\-self\-loops\-to\-assumptions\fR
434437
do not simplify while(1){} to assume(0)

doc/man/goto-instrument.1

+5-3
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ empty the function pointer is removed using the standard
849849
show the loops in the program
850850
.TP
851851
\fB\-\-unwind\fR \fInr\fR
852-
unwind nr times
852+
unwind all loops \fInr\fR times
853853
.TP
854854
\fB\-\-unwindset\fR [\fIT\fR:]\fIL\fR:\fIB\fR,...
855855
unwind loop \fIL\fR with a bound of \fIB\fR
@@ -860,13 +860,15 @@ unwind loop \fIL\fR with a bound of \fIB\fR
860860
read unwindset from file
861861
.TP
862862
\fB\-\-partial\-loops\fR
863-
permit paths with partial loops
863+
permit paths that execute loops only partially (up to the given unwinding bound)
864+
and then continue beyond the loop even when the loop condition would still hold
865+
(such paths may be spurious, resulting in false alarms)
864866
.TP
865867
\fB\-\-no\-unwinding\-assertions\fR
866868
do not generate unwinding assertions
867869
.TP
868870
\fB\-\-unwinding\-assertions\fR
869-
generate unwinding assertions (enabled by default; overrides
871+
generate unwinding assertions (which are enabled by default; overrides
870872
\fB\-\-no\-unwinding\-assertions\fR when both of these are given)
871873
.TP
872874
\fB\-\-continue\-as\-loops\fR

doc/man/jbmc.1

+11-8
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ sensitivity size for arrays to 0
312312
show the loops in the program
313313
.TP
314314
\fB\-\-unwind\fR nr
315-
unwind nr times
315+
unwind all loops at most nr times
316316
.TP
317-
\fB\-\-unwindset\fR [T:]L:B,...
318-
unwind loop L with a bound of B
319-
(optionally restricted to thread T)
320-
(use \fB\-\-show\-loops\fR to get the loop IDs)
317+
\fB\-\-unwindset\fR [\fIT\fR:]\fIL\fR:\fIB\fR,...
318+
unwind loop \fIL\fR with a bound of \fIB\fR, optionally restricted to thread
319+
\fIT\fR, and overriding what may be set as default unwinding via
320+
\fB\-\-unwind\fR (use \fB\-\-show\-loops\fR to get the loop IDs)
321321
.TP
322322
\fB\-\-incremental\-loop\fR L
323323
check properties after each unwinding
@@ -346,14 +346,17 @@ show the verification conditions
346346
remove assignments unrelated to property
347347
.TP
348348
\fB\-\-unwinding\-assertions\fR
349-
generate unwinding assertions (cannot be
350-
used with \fB\-\-cover\fR)
349+
generate unwinding assertions (which are enabled by default; overrides
350+
\fB\-\-no\-unwinding\-assertions\fR when both of these are given); cannot be
351+
used with \fB\-\-cover\fR
351352
.TP
352353
\fB\-\-no\-unwinding\-assertions\fR
353354
do not generate unwinding assertions
354355
.TP
355356
\fB\-\-partial\-loops\fR
356-
permit paths with partial loops
357+
permit paths that execute loops only partially (up to the given unwinding bound)
358+
and then continue beyond the loop even when the loop condition would still hold
359+
(such paths may be spurious, resulting in false alarms)
357360
.TP
358361
\fB\-\-no\-self\-loops\-to\-assumptions\fR
359362
do not simplify while(1){} to assume(0)

0 commit comments

Comments
 (0)