@@ -314,12 +314,12 @@ VERIFICATION SUCCESSFUL
314
314
315
315
### The memory snapshot harness
316
316
317
- The `function-call` harness is used in situations when we want the analysed
317
+ The `function-call` harness is used in situations in which we want the analysed
318
318
function to work in arbitrary environment. If we want a more restricted
319
- environment or if we have the program in which our function will only be called,
320
- we call the `memory-snapshot` harness instead.
319
+ environment or if we have the program in which our function will be called,
320
+ we can call the `memory-snapshot` harness instead.
321
321
322
- Furthermore, the program state of interest may be taken a particular location
322
+ Furthermore, the program state of interest may be taken at a particular location
323
323
within a function. In that case we do not want the harness to instrument the
324
324
whole function but rather to allow starting the execution from a specific
325
325
initial location (specified via `--initial-location func[:<n>]`).
@@ -374,8 +374,8 @@ int main() {
374
374
}
375
375
```
376
376
377
- But are not particularly interested in the analysing the complex function, since
378
- we trust that its implementation is correct. Hence we run the above program
377
+ But are not particularly interested in analysing the complex function, since we
378
+ trust that its implementation is correct. Hence we run the above program
379
379
stopping after the assignments to ` x ` and ` x ` and storing the program state,
380
380
e.g. using the ` memory-analyzer ` , in a JSON file ` snapshot.json ` . Then run the
381
381
harness and verify the assertion with:
0 commit comments