File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
[ Assertions] ( http://en.wikipedia.org/wiki/Assertion_%28computing%29 ) are
6
6
statements within the program that attempt to capture the programmer's
7
- intent. The ANSI- C standard defines a header file
7
+ intent. The ANSI C standard defines a header file
8
8
[ assert.h] ( http://en.wikipedia.org/wiki/Assert.h ) , which offers a macro
9
- ` assert(cond) ` . When executing a statement such as
9
+ ` assert(cond) ` . When executing a statement such as:
10
10
11
11
``` C
12
12
assert (p!=NULL);
13
13
```
14
14
15
15
the execution is aborted with an error message if the condition
16
- evaluates to *false*, i.e. , if `p` is NULL in the example above. The
16
+ evaluates to *false*, that is , if `p` is NULL in the example above. The
17
17
CPROVER tools can check the validity of the programmer-annotated
18
18
assertions statically. Specifically, the CPROVER tools will check that
19
19
the assertions hold for *any* nondeterministic choice that the program
@@ -49,7 +49,7 @@ if(i>=0 && i<100)
49
49
```
50
50
51
51
The nondeterministic choice will guess the element of the array that is
52
- nonzero. The code fragment above is therefore equivalent to
52
+ nonzero. The code fragment above is therefore equivalent to:
53
53
54
54
```C
55
55
int a[100], i;
You can’t perform that action at this time.
0 commit comments