PET: Partial Evaluation-based Test Case Generator for Bytecode

Target Class and its Dependencies


Class: Rational

Dependencies:

PET Arguments

a) Choose the method to generate test-cases for:

string(60) "javap -classpath ../../../../examples/heap -s Rational 2>&1 " string(90) "Warning: File ../../../../examples/heap/Rational.class does not contain class Rational
" string(33) "Compiled from "Rational.java"
" string(32) "public class heap.Rational {
" array(4) { [0]=> string(23) "c class heap.Rational {" [1]=> string(2) "c " ["name"]=> string(13) "heap.Rational" [2]=> string(13) "heap.Rational" } <init>()V
<init>(II)V
abs(I)I
gcd(II)I
simplify()V
simp([Lheap/Rational;)[Lheap/Rational;
equals(Ljava/lang/Object;)Z
toFloat()F
toString()Ljava/lang/String;
mul(Lheap/Rational;)Lheap/Rational;
div(Lheap/Rational;)Lheap/Rational;
arraycopy([Ljava/lang/Object;[Ljava/lang/Object;I)V
main([Ljava/lang/String;)V

b) Coverage criterion: Block-k: Depth-k:

c) Get numeric test-cases or path-constraints: Path-constraints Numeric (In this case a range must be especified in step d)

d) Specify the range of integers to take data from: None Range: ..

e) Labeling strategy (see the SWI-Prolog CLPFD library) : ff    leftmost    min    max   

f) References aliasing: Don't alias    Might alias    CLP Heap Solver

g) Verbosity level: 1   2   3

h) Generate JUnit test:    Type: no   minimum complete   Use reflection: no yes

i) Tracing: no   statements   blocks

j) Check code coverage: no   yes

l) Compositional TDG: no   yes