Skip to content

Commit 1a5ff93

Browse files
committed
Spell checking
1 parent c1f7640 commit 1a5ff93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/architectural/background-concepts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ digraph ast {
331331
332332
Note that the parameter `n` in `factorial` and the local variable `n` in
333333
`main` are now disambiguated as `n.1` and `n.2`; furthermore, we leave
334-
the names of global objects as-is. In the CProver framework, a more
334+
the names of global objects as-is. In the CPROVER framework, a more
335335
elaborate system is used: local variables are prefixed with the function names,
336336
and further disambiguation is performed by adding indices. For brevity,
337337
we use indices only.
@@ -463,7 +463,7 @@ This function consists of four basic blocks:
463463
4. `return fac.1`
464464
(this block has a label, `for_loop_end`).
465465

466-
One way to undestand which functions form basic blocks is to consider the
466+
One way to understand which functions form basic blocks is to consider the
467467
successors of each instruction. If we have two instructions A and B, we say
468468
that B is a *successor* of A if, after executing A, we can execute B without any
469469
intervening instructions. For instance, in the example above, the loop
@@ -472,11 +472,11 @@ initialization statement `unsigned long int i.1 = 1` is a successor of
472472
of `unsigned long fac.1 = 1`: we always have to execute some other intermediate
473473
statements to reach the return statement.
474474

475-
Now, consider the `if` statment,
475+
Now, consider the `if` statement,
476476
`if (i.1 <= n.1) goto for_loop_entry else goto for_loop_end`.
477477
This statement has *two* successors: `fac.1 *= i.1` and `return fac.1`.
478478

479-
Similarily, we say that A is a *predecessor* of B if B is a sucessor of A.
479+
Similarly, we say that A is a *predecessor* of B if B is a successor of A.
480480
We find that the `if` statement has two predecessors,
481481
`unsigned int i.1 = 1` and `goto for_loop_start`.
482482

0 commit comments

Comments
 (0)