lab8
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lab8 [2016/03/02 19:30] – created franck | lab8 [2017/03/03 15:55] (current) – franck | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Implement a listener and publisher that, given the following app, | + | ====== Lab 8 ====== |
| + | |||
| + | |||
| + | Consider | ||
| < | < | ||
| <pre> | <pre> | ||
| - | import java.util.Random; | + | public class ComputeSquareRoot |
| - | + | ||
| - | public class Example | + | |
| public static void main(String[] args) { | public static void main(String[] args) { | ||
| - | Random random | + | double data = 3.1415926; |
| - | if (random.nextBoolean()) { | + | System.out.println(" |
| - | | + | |
| - | } else { | + | |
| - | System.out.println(" | + | |
| - | } | + | |
| } | } | ||
| } | } | ||
| </ | </ | ||
| </ | </ | ||
| - | and the application configuration file | ||
| - | < | ||
| - | <pre> | ||
| - | target=Example | ||
| - | classpath=. | ||
| - | native_classpath=. | ||
| - | listener=AmountOfNonDeterminism | ||
| - | </pre> | + | - Develop a model class so that the above app can be verified with JPF. [[https://en.wikipedia.org/ |
| - | </html> | + | - Develop a native peer so that the above app can be verified with JPF. |
| - | produces output similar to | + | |
| - | < | + | |
| - | < | + | |
| - | JavaPathfinder core system v8.0 (rev 29) - (C) 2005-2014 United States Government. All rights reserved. | + | |
| - | + | To receive feedback, submit your code using the submit command before Tuesday March 7:\\ | |
| - | ====================================================== system under test | + | submit 4315 lab8 <name of class>.java |
| - | Example.main() | + | |
| - | + | ||
| - | ====================================================== search started: 3/2/16 2:27 PM | + | |
| - | false | + | |
| - | true | + | |
| - | + | ||
| - | ====================================================== | + | |
| - | maximum amount of nondeterminism: | + | |
| - | + | ||
| - | ====================================================== results | + | |
| - | no errors detected | + | |
| - | + | ||
| - | ====================================================== statistics | + | |
| - | elapsed time: | + | |
| - | states: | + | |
| - | search: | + | |
| - | choice generators: | + | |
| - | heap: | + | |
| - | instructions: | + | |
| - | max memory: | + | |
| - | loaded | + | |
| - | + | ||
| - | ====================================================== search finished: 3/2/16 2:27 PM | + | |
| - | </pre> | + | |
| - | </ | + | |
| - | Apart from the classes that have been discussed in the lectures, also the class ChoiceGenerator, | + | |
lab8.1456947048.txt.gz · Last modified: by franck
