+/EE379K

programming paradigms

git clone https://git.julia.blue/+/EE379K

Joseph RyanAdd code coverage with JPF206709a

master
1.1 KiB35 linesraw
1Implement code coverage tools by utilizing Java Pathfinder (JPF), as
2well as a memoization framework.
3
4
5***Code Coverage***
6
7Implement a code coverage tool using the Listener mechanism available
8in JPF.  Each coverage report should be a plain txt and it should
9include files and lines that are covered; the lines in the report
10should be sorted (first based on the class name and then based on the
11line numbers).
12
13
14***Memoization framework***
15
16Memoization captures the results of methods and returns those results
17if the method is invoked with same arguments (in the same program
18state).  Your task is to implement a memoization framework that
19captures the result of any method (static and instance) that returns a
20primitive type.  To check if the result can be reused, you will have
21to traverse heap starting from both "this" and all the arguments give
22to the method.  We will assume that static fields are not used.
23
24
25***Submission Instructions***
26
27See syllabus.
28
29
30***Important***
31
32Be creative.  When something is unclear make a reasonable assumption.
33
34Also, do not try to cover everything at once; start with small
35examples and then expand from there.