Skip to content

Commit 9c9ebfb

Browse files
author
Daniel Kroening
authored
Merge pull request #3538 from edstenson/review_modeling_assumptions
Updated language use in modeling-assumptions.md
2 parents 958ac5f + 534baef commit 9c9ebfb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/cprover-manual/modeling-assumptions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ unsigned int one_to_hundred()
1919
}
2020
```
2121

22-
The function above returns the desired integer from 1 to 100. You must
22+
This function returns the desired integer from 1 to 100. You must
2323
ensure that the condition given as an assumption is actually satisfiable
24-
by some nondeterministic choice, or otherwise the model checking step
24+
by some nondeterministic choice, otherwise the model checking step
2525
will pass vacuously.
2626

27-
Also note that assumptions are never retroactive: They only affect
27+
Also note that assumptions are never retroactive. They only affect
2828
assertions (or other properties) that follow them in program order. This
29-
is best illustrated with an example. In the following fragment, the
29+
is best illustrated with an example. In the following fragment the
3030
assumption has no effect on the assertion, which means that the
3131
assertion will fail:
3232

@@ -37,7 +37,7 @@ __CPROVER_assume(x==100);
3737
```
3838
3939
Assumptions do restrict the search space, but only for assertions that
40-
follow. As an example, the following program will pass:
40+
follow. As an example, this program will pass:
4141
4242
```C
4343
int main() {
@@ -52,7 +52,7 @@ int main() {
5252
```
5353

5454
Beware that nondeterminism cannot be used to obtain the effect of
55-
universal quantification in assumptions. As an example,
55+
universal quantification in assumptions. For example:
5656

5757
```C
5858
int main() {
@@ -68,6 +68,6 @@ int main() {
6868
}
6969
```
7070

71-
fails, as there is a choice of x and y which results in a counterexample
71+
This code fails, as there is a choice of x and y which results in a counterexample
7272
(any choice in which x and y are different).
7373

0 commit comments

Comments
 (0)