5
5
### Rationale
6
6
7
7
Programs typically read inputs from an environment. These inputs can
8
- take the form of data read from a file, keyboard or network socket, or
8
+ take the form of data read from a file, keyboard, or network socket, or
9
9
arguments passed on the command line. It is usually desirable to analyze
10
10
the program for any choice of these inputs. In Model Checking, inputs
11
11
are therefore modeled by means of * nondeterminism* , which means that the
@@ -16,13 +16,13 @@ computation that results from any choice of inputs.
16
16
17
17
The CPROVER tools support the following sources of nondeterminism:
18
18
19
- - functions that read inputs from the environments;
20
- - the thread schedule in concurrent programs;
21
- - initial values of local-scoped variables and memory allocated with
22
- ` malloc ` ;
23
- - initial values of variables that are ` extern ` in all compilation
24
- units;
25
- - explicit functions for generating nondeterminism.
19
+ - Functions that read inputs from the environments.
20
+ - The thread schedule in concurrent programs.
21
+ - Initial values of local-scoped variables and memory allocated with
22
+ ` malloc ` .
23
+ - Initial values of variables that are ` extern ` in all compilation
24
+ units.
25
+ - Explicit functions for generating nondeterminism.
26
26
27
27
The CPROVER tools are shipped with a number of stubs for the most
28
28
commonly used library functions. When executing a statement such as
@@ -46,11 +46,13 @@ probabilistic (or random) choice.
46
46
### Uninterpreted Functions
47
47
48
48
It may be necessary to check parts of a program independently.
49
- Nondeterminism can be used to over-approximate the behaviour of part of
49
+ Nondeterminism can be used to over-approximate the behavior of a part of
50
50
the system which is not being checked. Rather than calling a complex or
51
51
unrelated function, a nondeterministic stub is used. However, separate
52
52
calls to the function can return different results, even for the same
53
- inputs. If the function output only depends on its inputs then this can
53
+ inputs.
54
+
55
+ If the function output only depends on its inputs, this can
54
56
introduce spurious errors. To avoid this problem, functions whose names
55
57
begin with the prefix ` __CPROVER_uninterpreted_ ` are treated as
56
58
uninterpreted functions. Their value is non-deterministic but different
0 commit comments